Re: [mevenide-user] maven-jaxb2-plugin problems
"Milos Kleint" <[email protected]>
| Newsgroups | gmane.comp.jakarta.turbine.maven.mevenide.user |
|---|---|
| Message-ID | <[email protected]> |
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 > >