Re: [mevenide-user] maven-jaxb2-plugin problems
"Milos Kleint" <[email protected]>
| Newsgroups | gmane.comp.jakarta.turbine.maven.mevenide.user |
|---|---|
| Message-ID | <[email protected]> |
from what I understand the plugins use the JVM/JDK they are running within and use it to do their work directly. That JJDK includes a version of the jars that are old apparently. So you need to put the correct jar on the bootclasspath of the JDK to override the content that ships with the JDK by default. It's IMHO a consequence of the JDK having no module system (aka JSR-277(?) or OSGI. With such a system these parts of jdk could be easily overriden when new version arrives... Milos On Nov 20, 2007 2:37 PM, Mohni, Daniel <[email protected]> wrote: > realy looks to be related, I think this is a big issue in embedded > environment when going > to ws development or other fancy stuff... > > does this meen that the plugin is putting stuff in the classpath or is > this netbeans related ? > > Regards > > Daniel > > ------------------------------ > *From:* Milos Kleint [mailto:[email protected]] > *Sent:* Tuesday, November 20, 2007 12:58 PM > *To:* [email protected] > *Subject:* Re: [mevenide-user] maven-jaxb2-plugin problems > > possibly related to this issue: > > http://www.netbeans.org/issues/show_bug.cgi?id=118480 > > that one is about jaxws but generally the same sick approach of putting > stuff into bootclasspath. Not sure it will ever work in embedded > environment. > The maven plugin should somehow be able to deal with it IMHO. Maybe by > forking to a jvm one specifies, not idea.. > > Regards > > Milos > > > On Nov 20, 2007 11:11 AM, Mohni, Daniel < [email protected]> > wrote: > > > Hi all, > > > > I currently try to get the jaxb2 sample maven project to work inside > > netbeans 6.0rc1 > > > > downloaded the sample project from: > > > > https://maven-jaxb2-plugin.dev.java.net/repository/org/jvnet/jaxb2/maven > > 2/maven-jaxb2-plugin-sample/1.0/maven-jaxb2-plugin-sample-1.0-src.zip > > > > tryed to build project inside ide, I get the following error: > > > > ------------------------------------------------------------------------ > > [ERROR]FATAL ERROR > > ------------------------------------------------------------------------ > > JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI > > > > (from > > jar:file:/D:/maven/nbrepo/com/sun/xml/bind/jaxb-impl/2.1.3/jaxb-impl-2.1 > > .3.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 > > API. Use the endorsed directory mechanism to place jaxb-api.jar > > in the bootstrap classloader. (See > > http://java.sun.com/j2se/1.5.0/docs/guide/standards/) > > ------------------------------------------------------------------------ > > > > Trace > > java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap > > classloader, but this RI (from > > jar:file:/D:/maven/nbrepo/com/sun/xml/bind/jaxb-impl/2.1.3/jaxb-impl-2.1 > > .3.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 > > API. Use the endorsed directory mechanism to place jaxb-api.jar in > > the bootstrap classloader. (See > > http://java.sun.com/j2se/1.5.0/docs/guide/standards/ ) > > at > > com.sun.xml.bind.v2.model.impl.ModelBuilder.<clinit>(ModelBuilder.java:1 > > 36) > > at > > com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextIm > > pl.java:406) > > at > > com.sun.xml.bin > > > > <snip> > > > > > > > if I call mvn clean install on the commandline this will work, any hints > > > > about this ? > > > > is this a problem related with netbeans or the actual maven-embedder > > > version ? > > > > > Regards > > > > Daniel > > > > > > PS: I was also missing the jaxb binding wizard in the new class dialog > > under xml.... > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe from this list please visit: > > > > http://xircles.codehaus.org/manage_email > > > > >