-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
 Post subject: Errors when compiling trunk
PostPosted: Wed Jun 10, 2009 6:56 pm 
Regular
Regular

Joined: Tue May 24, 2005 9:06 am
Posts: 64
I just checked out trunk, and tried to invoke "mvn install". It fails using either maven 2.1 or maven 2.2RC1. IMHO the dependency of jaxb-xjc 2.0.3 looks strange. Any hint is appreciated.

Code:
[INFO] parsing a schema...
[FATAL ERROR] org.codehaus.mojo.jaxb2.XjcMojo#execute() caused a linkage error (java.lang.NoSuchMethodError) and may be out-of-date. Check the realms:
[FATAL ERROR] Plugin realm = app0.child-container[org.codehaus.mojo:jaxb2-maven-plugin:1.2]
urls[0] = file:/C:/Users/ziju0001/.m2/repository/org/codehaus/mojo/jaxb2-maven-plugin/1.2/jaxb2-maven-plugin-1.2.jar
urls[1] = file:/C:/Users/ziju0001/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
urls[2] = file:/C:/Users/ziju0001/.m2/repository/com/sun/xml/bind/jaxb-impl/2.0.3/jaxb-impl-2.0.3.jar
urls[3] = file:/C:/Users/ziju0001/.m2/repository/javax/xml/bind/jaxb-api/2.0/jaxb-api-2.0.jar
urls[4] = file:/C:/Users/ziju0001/.m2/repository/javax/xml/bind/jsr173_api/1.0/jsr173_api-1.0.jar
urls[5] = file:/C:/Users/ziju0001/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar
urls[6] = file:/C:/Users/ziju0001/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.0.3/jaxb-xjc-2.0.3.jar


Top
 Profile  
 
 Post subject: Re: Errors when compiling trunk
PostPosted: Wed Jun 10, 2009 7:09 pm 
Regular
Regular

Joined: Tue May 24, 2005 9:06 am
Posts: 64
Sorry, maven output wasn't complete:

Code:
[INFO] [jaxb2:xjc {execution: default}]
[INFO] Generating source...
[INFO] parsing a schema...
[FATAL ERROR] org.codehaus.mojo.jaxb2.XjcMojo#execute() caused a linkage error (java.lang.NoSuchMethodError) and may be out-of-date. Check the realms:
[FATAL ERROR] Plugin realm = app0.child-container[org.codehaus.mojo:jaxb2-maven-plugin]
urls[0] = file:/C:/Users/ziju0001/.m2/repository/org/codehaus/mojo/jaxb2-maven-plugin/1.2/jaxb2-maven-plugin-1.2.jar
urls[1] = file:/C:/Users/ziju0001/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
urls[2] = file:/C:/Users/ziju0001/.m2/repository/com/sun/xml/bind/jaxb-impl/2.0.3/jaxb-impl-2.0.3.jar
urls[3] = file:/C:/Users/ziju0001/.m2/repository/javax/xml/bind/jaxb-api/2.0/jaxb-api-2.0.jar
urls[4] = file:/C:/Users/ziju0001/.m2/repository/javax/xml/bind/jsr173_api/1.0/jsr173_api-1.0.jar
urls[5] = file:/C:/Users/ziju0001/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar
urls[6] = file:/C:/Users/ziju0001/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.0.3/jaxb-xjc-2.0.3.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/C:/Software/maven/bin/../lib/maven-2.0.10-uber.jar


Top
 Profile  
 
 Post subject: Re: Errors when compiling trunk
PostPosted: Wed Jun 10, 2009 8:57 pm 
Regular
Regular

Joined: Tue May 24, 2005 9:06 am
Posts: 64
I'm using JDK 1.6_14 and in addition JAXB 2.1.11. Disabling JAXB 2.1.11 solved the issue.


Top
 Profile  
 
 Post subject: Re: Errors when compiling trunk
PostPosted: Mon Jun 22, 2009 3:20 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Juergen, do you still have the issue? (check later tomorrow we are doing some API surgery today so it won't compile :) )

_________________
Emmanuel


Top
 Profile  
 
 Post subject: Re: Errors when compiling trunk
PostPosted: Tue Jun 23, 2009 4:02 am 
Regular
Regular

Joined: Tue May 24, 2005 9:06 am
Posts: 64
Yes, the issue still exists:
1) Using JDK 1.6_14 and implicitely JAXB 2.1.10 works fine
2) Using JDK 1.6_14 and JAXB 2.1.11 via the endorsed mechanism fails


Top
 Profile  
 
 Post subject: Re: Errors when compiling trunk
PostPosted: Fri Jul 03, 2009 12:30 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Let see what Hardy has to say about it :)
http://opensource.atlassian.com/projects/hibernate/browse/HV-180

_________________
Emmanuel


Top
 Profile  
 
 Post subject: Re: Errors when compiling trunk
PostPosted: Mon Jul 06, 2009 8:32 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
So far I am not able to reproduce this. I downloaded JAXB2_20090206.jar (jaxb 2.1.11) and added it to my endorsed directory.
My setup was:

Code:
Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200)
Java version: 1.6.0_13
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.5.7" arch: "x86_64" Family: "mac"


Running 'maven clean install' worked just fine. under which OS are you working? I will try the same on my Linux machine.

--Hardy


Top
 Profile  
 
 Post subject: Re: Errors when compiling trunk
PostPosted: Mon Jul 06, 2009 9:07 am 
Regular
Regular

Joined: Tue May 24, 2005 9:06 am
Posts: 64
Code:
mvn -version
Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200)
Java version: 1.6.0_14
Java home: C:\Software\Java\jdk\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.