You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Shane Blake <sh...@oakton.com.au> on 2007/10/03 03:25:20 UTC

Maven install from Incubator TRUNK error

I have completed a checkout from
http://svn.apache.org/repos/asf/incubator/cxf/trunk

Downloaded and installed Maven 2.0.7.

Went to execute:

mvn install -Pfastinstall -Psetup.eclipse

from the trunk directory and are getting the following error:

[INFO] Building Apache CXF API
[INFO]    task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO] [dependency:unpack {execution: unpack-schemas}]
[INFO] Configured Artifact:
org.apache.cxf:cxf-common-schemas:2.1-incubator-SNAPSHOT:jar
[INFO] Expanding: C:\Documents and
Settings\shaneb\.m2\repository\org\apache\cxf\cxf-common-schemas\2.1-incubator-SNAPSHOT\cx
f-common-schemas-2.1-incubator-SNAPSHOT.jar into
C:\dev\apache\cxf\trunk\api\target\schemas
[INFO] [cxf-common-xsd:xsdtojava {execution: generate-sources}]
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] JAXB 2.0 API is being loaded from the bootstrap classloader, but this
RI (from jar:file:/C:/Documents and Settings/sha
neb/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.4/jaxb-impl-2.1.4.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class)
n
eeds 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in
the bootstrap classloader. (See http://java.sun.c
om/j2se/1.5.0/docs/guide/standards/)
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap
classloader, but this RI (from jar:file:/C:/Documents and
Settings/shaneb/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.4/jaxb-impl-2.1.4.jar!/com/sun/xml/bind/v2/model/impl/Mode
lBuilder.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/)

Where is maven picking up the original JAXB classes from?
-- 
View this message in context: http://www.nabble.com/Maven-install-from-Incubator-TRUNK-error-tf4559360.html#a13011454
Sent from the cxf-dev mailing list archive at Nabble.com.


Re: Maven install from Incubator TRUNK error

Posted by Shane Blake <sh...@oakton.com.au>.
Got it in one. Thank you.


dkulp wrote:
> 
> 
> JDK 1.6.0 is definitely the issue.    We haven't investigated everything 
> needed to get things to build or run with 1.6.
> 
> Dan
> 
> 
> 
> On Tuesday 02 October 2007, Shane Blake wrote:
>> Sorry for the double:
>>
>> Additional info:
>>
>> Windows XP SP2, JDK 1.6.0
>>
>> Shane Blake wrote:
>> > I have completed a checkout from
>> > http://svn.apache.org/repos/asf/incubator/cxf/trunk
>> >
>> > Downloaded and installed Maven 2.0.7.
>> >
>> > Went to execute:
>> >
>> > mvn install -Pfastinstall -Psetup.eclipse
>> >
>> > from the trunk directory and are getting the following error:
>> >
>> > [INFO] Building Apache CXF API
>> > [INFO]    task-segment: [install]
>> > [INFO]
>> > --------------------------------------------------------------------
>> >-------- [INFO] [dependency:unpack {execution: unpack-schemas}]
>> > [INFO] Configured Artifact:
>> > org.apache.cxf:cxf-common-schemas:2.1-incubator-SNAPSHOT:jar
>> > [INFO] Expanding: C:\Documents and
>> > Settings\shaneb\.m2\repository\org\apache\cxf\cxf-common-schemas\2.1
>> >-incubator-SNAPSHOT\cx f-common-schemas-2.1-incubator-SNAPSHOT.jar
>> > into
>> > C:\dev\apache\cxf\trunk\api\target\schemas
>> > [INFO] [cxf-common-xsd:xsdtojava {execution: generate-sources}]
>> > [INFO]
>> > --------------------------------------------------------------------
>> >---- [ERROR] FATAL ERROR
>> > [INFO]
>> > --------------------------------------------------------------------
>> >---- [INFO] JAXB 2.0 API is being loaded from the bootstrap
>> > classloader, but this RI (from jar:file:/C:/Documents and
>> > Settings/sha
>> > neb/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.4/jaxb-impl-2.1.4.
>> >jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) n
>> > eeds 2.1 API. Use the endorsed directory mechanism to place
>> > jaxb-api.jar in the bootstrap classloader. (See http://java.sun.c
>> > om/j2se/1.5.0/docs/guide/standards/)
>> > [INFO]
>> > --------------------------------------------------------------------
>> >---- [INFO] Trace
>> > java.lang.LinkageError: JAXB 2.0 API is being loaded from the
>> > bootstrap classloader, but this RI (from jar:file:/C:/Documents and
>> > Settings/shaneb/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.4/jaxb
>> >-impl-2.1.4.jar!/com/sun/xml/bind/v2/model/impl/Mode lBuilder.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/)
>> >
>> > Where is maven picking up the original JAXB classes from?
> 
> 
> 
> -- 
> J. Daniel Kulp
> Principal Engineer
> IONA
> P: 781-902-8727    C: 508-380-7194
> daniel.kulp@iona.com
> http://www.dankulp.com/blog
> 
> 

-- 
View this message in context: http://www.nabble.com/Maven-install-from-Incubator-TRUNK-error-tf4559360.html#a13011637
Sent from the cxf-dev mailing list archive at Nabble.com.


Re: Maven install from Incubator TRUNK error

Posted by James Mao <ja...@iona.com>.
Oops, you got the answer here.

BTW, you can not pass all the tests even if you endorse the jaxws 2.1 
and jaxb 2.1, probably caused by the assertFiles()?

You're welcomed to contribute some patches.

Thanks,
James

> JDK 1.6.0 is definitely the issue.    We haven't investigated everything 
> needed to get things to build or run with 1.6.
>
> Dan
>
>
>
> On Tuesday 02 October 2007, Shane Blake wrote:
>   
>> Sorry for the double:
>>
>> Additional info:
>>
>> Windows XP SP2, JDK 1.6.0
>>
>> Shane Blake wrote:
>>     
>>> I have completed a checkout from
>>> http://svn.apache.org/repos/asf/incubator/cxf/trunk
>>>
>>> Downloaded and installed Maven 2.0.7.
>>>
>>> Went to execute:
>>>
>>> mvn install -Pfastinstall -Psetup.eclipse
>>>
>>> from the trunk directory and are getting the following error:
>>>
>>> [INFO] Building Apache CXF API
>>> [INFO]    task-segment: [install]
>>> [INFO]
>>> --------------------------------------------------------------------
>>> -------- [INFO] [dependency:unpack {execution: unpack-schemas}]
>>> [INFO] Configured Artifact:
>>> org.apache.cxf:cxf-common-schemas:2.1-incubator-SNAPSHOT:jar
>>> [INFO] Expanding: C:\Documents and
>>> Settings\shaneb\.m2\repository\org\apache\cxf\cxf-common-schemas\2.1
>>> -incubator-SNAPSHOT\cx f-common-schemas-2.1-incubator-SNAPSHOT.jar
>>> into
>>> C:\dev\apache\cxf\trunk\api\target\schemas
>>> [INFO] [cxf-common-xsd:xsdtojava {execution: generate-sources}]
>>> [INFO]
>>> --------------------------------------------------------------------
>>> ---- [ERROR] FATAL ERROR
>>> [INFO]
>>> --------------------------------------------------------------------
>>> ---- [INFO] JAXB 2.0 API is being loaded from the bootstrap
>>> classloader, but this RI (from jar:file:/C:/Documents and
>>> Settings/sha
>>> neb/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.4/jaxb-impl-2.1.4.
>>> jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) n
>>> eeds 2.1 API. Use the endorsed directory mechanism to place
>>> jaxb-api.jar in the bootstrap classloader. (See http://java.sun.c
>>> om/j2se/1.5.0/docs/guide/standards/)
>>> [INFO]
>>> --------------------------------------------------------------------
>>> ---- [INFO] Trace
>>> java.lang.LinkageError: JAXB 2.0 API is being loaded from the
>>> bootstrap classloader, but this RI (from jar:file:/C:/Documents and
>>> Settings/shaneb/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.4/jaxb
>>> -impl-2.1.4.jar!/com/sun/xml/bind/v2/model/impl/Mode lBuilder.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/)
>>>
>>> Where is maven picking up the original JAXB classes from?
>>>       
>
>
>
>   

Re: Maven install from Incubator TRUNK error

Posted by Daniel Kulp <dk...@apache.org>.
JDK 1.6.0 is definitely the issue.    We haven't investigated everything 
needed to get things to build or run with 1.6.

Dan



On Tuesday 02 October 2007, Shane Blake wrote:
> Sorry for the double:
>
> Additional info:
>
> Windows XP SP2, JDK 1.6.0
>
> Shane Blake wrote:
> > I have completed a checkout from
> > http://svn.apache.org/repos/asf/incubator/cxf/trunk
> >
> > Downloaded and installed Maven 2.0.7.
> >
> > Went to execute:
> >
> > mvn install -Pfastinstall -Psetup.eclipse
> >
> > from the trunk directory and are getting the following error:
> >
> > [INFO] Building Apache CXF API
> > [INFO]    task-segment: [install]
> > [INFO]
> > --------------------------------------------------------------------
> >-------- [INFO] [dependency:unpack {execution: unpack-schemas}]
> > [INFO] Configured Artifact:
> > org.apache.cxf:cxf-common-schemas:2.1-incubator-SNAPSHOT:jar
> > [INFO] Expanding: C:\Documents and
> > Settings\shaneb\.m2\repository\org\apache\cxf\cxf-common-schemas\2.1
> >-incubator-SNAPSHOT\cx f-common-schemas-2.1-incubator-SNAPSHOT.jar
> > into
> > C:\dev\apache\cxf\trunk\api\target\schemas
> > [INFO] [cxf-common-xsd:xsdtojava {execution: generate-sources}]
> > [INFO]
> > --------------------------------------------------------------------
> >---- [ERROR] FATAL ERROR
> > [INFO]
> > --------------------------------------------------------------------
> >---- [INFO] JAXB 2.0 API is being loaded from the bootstrap
> > classloader, but this RI (from jar:file:/C:/Documents and
> > Settings/sha
> > neb/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.4/jaxb-impl-2.1.4.
> >jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class) n
> > eeds 2.1 API. Use the endorsed directory mechanism to place
> > jaxb-api.jar in the bootstrap classloader. (See http://java.sun.c
> > om/j2se/1.5.0/docs/guide/standards/)
> > [INFO]
> > --------------------------------------------------------------------
> >---- [INFO] Trace
> > java.lang.LinkageError: JAXB 2.0 API is being loaded from the
> > bootstrap classloader, but this RI (from jar:file:/C:/Documents and
> > Settings/shaneb/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.4/jaxb
> >-impl-2.1.4.jar!/com/sun/xml/bind/v2/model/impl/Mode lBuilder.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/)
> >
> > Where is maven picking up the original JAXB classes from?



-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog

Re: Maven install from Incubator TRUNK error

Posted by Shane Blake <sh...@oakton.com.au>.
Sorry for the double:

Additional info:

Windows XP SP2, JDK 1.6.0


Shane Blake wrote:
> 
> I have completed a checkout from
> http://svn.apache.org/repos/asf/incubator/cxf/trunk
> 
> Downloaded and installed Maven 2.0.7.
> 
> Went to execute:
> 
> mvn install -Pfastinstall -Psetup.eclipse
> 
> from the trunk directory and are getting the following error:
> 
> [INFO] Building Apache CXF API
> [INFO]    task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] [dependency:unpack {execution: unpack-schemas}]
> [INFO] Configured Artifact:
> org.apache.cxf:cxf-common-schemas:2.1-incubator-SNAPSHOT:jar
> [INFO] Expanding: C:\Documents and
> Settings\shaneb\.m2\repository\org\apache\cxf\cxf-common-schemas\2.1-incubator-SNAPSHOT\cx
> f-common-schemas-2.1-incubator-SNAPSHOT.jar into
> C:\dev\apache\cxf\trunk\api\target\schemas
> [INFO] [cxf-common-xsd:xsdtojava {execution: generate-sources}]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] JAXB 2.0 API is being loaded from the bootstrap classloader, but
> this RI (from jar:file:/C:/Documents and Settings/sha
> neb/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.4/jaxb-impl-2.1.4.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class)
> n
> eeds 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar
> in the bootstrap classloader. (See http://java.sun.c
> om/j2se/1.5.0/docs/guide/standards/)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap
> classloader, but this RI (from jar:file:/C:/Documents and
> Settings/shaneb/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.4/jaxb-impl-2.1.4.jar!/com/sun/xml/bind/v2/model/impl/Mode
> lBuilder.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/)
> 
> Where is maven picking up the original JAXB classes from?
> 

-- 
View this message in context: http://www.nabble.com/Maven-install-from-Incubator-TRUNK-error-tf4559360.html#a13011496
Sent from the cxf-dev mailing list archive at Nabble.com.


Re: Maven install from Incubator TRUNK error

Posted by James Mao <ja...@iona.com>.
You must use jdk6, which include the 2.0 version of jaxb and jaxws.
You have to endorse the jaxb 2.1 and jaxws 2.1 jars

James

> I have completed a checkout from
> http://svn.apache.org/repos/asf/incubator/cxf/trunk
>
> Downloaded and installed Maven 2.0.7.
>
> Went to execute:
>
> mvn install -Pfastinstall -Psetup.eclipse
>
> from the trunk directory and are getting the following error:
>
> [INFO] Building Apache CXF API
> [INFO]    task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] [dependency:unpack {execution: unpack-schemas}]
> [INFO] Configured Artifact:
> org.apache.cxf:cxf-common-schemas:2.1-incubator-SNAPSHOT:jar
> [INFO] Expanding: C:\Documents and
> Settings\shaneb\.m2\repository\org\apache\cxf\cxf-common-schemas\2.1-incubator-SNAPSHOT\cx
> f-common-schemas-2.1-incubator-SNAPSHOT.jar into
> C:\dev\apache\cxf\trunk\api\target\schemas
> [INFO] [cxf-common-xsd:xsdtojava {execution: generate-sources}]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] JAXB 2.0 API is being loaded from the bootstrap classloader, but this
> RI (from jar:file:/C:/Documents and Settings/sha
> neb/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.4/jaxb-impl-2.1.4.jar!/com/sun/xml/bind/v2/model/impl/ModelBuilder.class)
> n
> eeds 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in
> the bootstrap classloader. (See http://java.sun.c
> om/j2se/1.5.0/docs/guide/standards/)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap
> classloader, but this RI (from jar:file:/C:/Documents and
> Settings/shaneb/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.4/jaxb-impl-2.1.4.jar!/com/sun/xml/bind/v2/model/impl/Mode
> lBuilder.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/)
>
> Where is maven picking up the original JAXB classes from?
>