You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Thomas <tm...@tmueller.com> on 2011/03/07 09:45:46 UTC

3.2-SNAPSHOT: org.apache.openejb.OpenEJBException: Creating application failed: classpath.ear: org.apache.webbeans.config.WebBeansContext.getxMLSpecializesManager()Lorg/apache/webbeans/xml/XMLSpecializesManager;

Hi,

I want to use OpenEJB for JUnit Tests but I get the following exception:

org.apache.openejb.OpenEJBException: Creating application failed:
classpath.ear:
org.apache.webbeans.config.WebBeansContext.getxMLSpecializesManager()Lorg/apache/webbeans/xml/XMLSpecializesManager;
	at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:752)
	at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:461)
	at
org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:371)
	at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:283)
...
Caused by: java.lang.NoSuchMethodError:
org.apache.webbeans.config.WebBeansContext.getxMLSpecializesManager()Lorg/apache/webbeans/xml/XMLSpecializesManager;
	at
org.apache.openejb.cdi.BeansDeployer.checkXMLSpecializations(BeansDeployer.java:434)
	at
org.apache.openejb.cdi.BeansDeployer.checkSpecializations(BeansDeployer.java:413)

I guess there is some dependency problem?
These are my dependencies:

[INFO] service:ServiceTest:jar:0.0.1
[INFO] +- org.apache.openejb:openejb-core:jar:3.2-SNAPSHOT:test
[INFO] |  +- org.apache.openejb:javaee-api:jar:6.0-SNAPSHOT:test
[INFO] |  +- org.apache.openejb:openejb-api:jar:3.2-SNAPSHOT:test
[INFO] |  +- org.apache.openejb:openejb-loader:jar:3.2-SNAPSHOT:test
[INFO] |  +- org.apache.openejb:openejb-javaagent:jar:3.2-SNAPSHOT:test
[INFO] |  +- org.apache.openejb:openejb-jee:jar:3.2-SNAPSHOT:test
[INFO] |  |  +- org.codehaus.woodstox:woodstox-core-asl:jar:4.0.8:test
[INFO] |  |  |  \- org.codehaus.woodstox:stax2-api:jar:3.0.2:test
[INFO] |  |  \- com.sun.xml.bind:jaxb-impl:jar:2.1.9:test
[INFO] |  +- commons-cli:commons-cli:jar:1.1:test
[INFO] |  +- org.apache.activemq:activemq-ra:jar:5.4.1:test
[INFO] |  +- org.apache.activemq:activemq-core:jar:5.4.1:test
[INFO] |  |  +-
org.apache.geronimo.specs:geronimo-jms_1.1_spec:jar:1.1.1:test
[INFO] |  |  +- org.apache.activemq:activeio-core:jar:3.1.2:test
[INFO] |  |  +- org.apache.activemq:kahadb:jar:5.4.1:test
[INFO] |  |  +- org.apache.activemq.protobuf:activemq-protobuf:jar:1.1:test
[INFO] |  |  +- org.osgi:org.osgi.core:jar:4.1.0:test
[INFO] |  |  +-
org.apache.geronimo.specs:geronimo-j2ee-management_1.1_spec:jar:1.0.1:test
[INFO] |  |  +- org.springframework:spring-context:jar:3.0.3.RELEASE:test
[INFO] |  |  |  +- org.springframework:spring-aop:jar:3.0.3.RELEASE:test
[INFO] |  |  |  |  \- aopalliance:aopalliance:jar:1.0:test
[INFO] |  |  |  +- org.springframework:spring-beans:jar:3.0.3.RELEASE:test
[INFO] |  |  |  +- org.springframework:spring-core:jar:3.0.3.RELEASE:test
[INFO] |  |  |  +-
org.springframework:spring-expression:jar:3.0.3.RELEASE:test
[INFO] |  |  |  \- org.springframework:spring-asm:jar:3.0.3.RELEASE:test
[INFO] |  |  +- commons-net:commons-net:jar:2.0:test
[INFO] |  |  \- com.ibm.icu:icu4j:jar:4.0.1:test
[INFO] |  +- org.apache.openjpa:openjpa:jar:2.0.1:test
[INFO] |  +- org.apache.geronimo.components:geronimo-connector:jar:2.1:test
[INFO] |  +-
org.apache.geronimo.components:geronimo-transaction:jar:2.1:test
[INFO] |  +- org.objectweb.howl:howl:jar:1.0.1-1:test
[INFO] |  +-
org.apache.geronimo.javamail:geronimo-javamail_1.4_mail:jar:1.8.2:test
[INFO] |  +- org.apache.xbean:xbean-asm-shaded:jar:3.8-SNAPSHOT:test
[INFO] |  +- org.apache.xbean:xbean-finder-shaded:jar:3.8-SNAPSHOT:test
[INFO] |  +- org.apache.xbean:xbean-reflect:jar:3.8-SNAPSHOT:test
[INFO] |  +- org.apache.xbean:xbean-naming:jar:3.8-SNAPSHOT:test
[INFO] |  +- org.apache.xbean:xbean-bundleutils:jar:3.8-SNAPSHOT:test
[INFO] |  +- hsqldb:hsqldb:jar:1.8.0.10:test
[INFO] |  +- org.apache.openejb:commons-dbcp-all:jar:1.3-r699049:test
[INFO] |  +- org.codehaus.swizzle:swizzle-stream:jar:1.0.2:test
[INFO] |  +- commons-logging:commons-logging:jar:1.1.1:test
[INFO] |  +- wsdl4j:wsdl4j:jar:1.6.2:test
[INFO] |  +- org.quartz-scheduler:quartz:jar:1.8.4:test
[INFO] |  +- javassist:javassist:jar:3.12.0.GA:test
[INFO] |  +-
org.apache.openwebbeans:openwebbeans-impl:jar:1.1.0-SNAPSHOT:test
[INFO] |  |  \- net.sf.scannotation:scannotation:jar:1.0.2:test
[INFO] |  +-
org.apache.openwebbeans:openwebbeans-spi:jar:1.1.0-SNAPSHOT:test
[INFO] |  +-
org.apache.openwebbeans:openwebbeans-ejb:jar:1.1.0-SNAPSHOT:test
[INFO] |  |  \-
org.apache.geronimo.specs:geronimo-ejb_3.1_spec:jar:1.0.2:test
[INFO] |  +- org.apache.openwebbeans:openwebbeans-ee:jar:1.1.0-SNAPSHOT:test
[INFO] |  +-
org.apache.openwebbeans:openwebbeans-ee-common:jar:1.1.0-SNAPSHOT:test
[INFO] |  +- net.sourceforge.serp:serp:jar:1.13.1:test
[INFO] |  +- commons-collections:commons-collections:jar:3.2.1:test
[INFO] |  +- commons-lang:commons-lang:jar:2.5:test
[INFO] |  \- commons-logging:commons-logging-api:jar:1.1:test
[INFO] +- org.hibernate:hibernate-core:jar:3.6.0.Final:test
[INFO] |  +- antlr:antlr:jar:2.7.6:test
[INFO] |  +- dom4j:dom4j:jar:1.6.1:test
[INFO] |  +-
org.hibernate:hibernate-commons-annotations:jar:3.2.0.Final:test
[INFO] |  \- javax.transaction:jta:jar:1.1:test
[INFO] +- org.hibernate:hibernate-entitymanager:jar:3.6.0.Final:test
[INFO] |  \- cglib:cglib:jar:2.2:test
[INFO] |     \- asm:asm:jar:3.1:test
[INFO] +-
org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Final:test
[INFO] +- org.hibernate:hibernate-validator:jar:4.1.0.Final:test
[INFO] |  \- javax.validation:validation-api:jar:1.0.0.GA:test
[INFO] +- org.hibernate:hibernate-envers:jar:3.6.0.Final:provided
[INFO] |  \- org.hibernate:hibernate-tools:jar:3.2.0.ga:provided
[INFO] |     +- org.beanshell:bsh:jar:2.0b4:provided
[INFO] |     +- freemarker:freemarker:jar:2.3.8:provided
[INFO] |     \- org.hibernate:jtidy:jar:r8-20060801:provided
[INFO] +- org.slf4j:slf4j-api:jar:1.6.1:compile
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.6.1:compile
[INFO] +- log4j:log4j:jar:1.2.16:compile
[INFO] \- junit:junit:jar:4.8.2:test
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 6.797s
[INFO] Finished at: Mon Mar 07 09:41:35 CET 2011
[INFO] Final Memory: 7M/16M
[INFO]
------------------------------------------------------------------------


Thanks,
Thomas

--
View this message in context: http://openejb.979440.n4.nabble.com/3-2-SNAPSHOT-org-apache-openejb-OpenEJBException-Creating-application-failed-classpath-ear-org-apach-tp3338547p3338547.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: 3.2-SNAPSHOT: org.apache.openejb.OpenEJBException: Creating application failed: classpath.ear: org.apache.webbeans.config.WebBeansContext.getxMLSpecializesManager()Lorg/apache/webbeans/xml/XMLSpecializesManager;

Posted by Thomas <tm...@tmueller.com>.
Hi Jean-Louis,

thanks a lot, the current Snapshot works again.


Thomas

--
View this message in context: http://openejb.979440.n4.nabble.com/3-2-SNAPSHOT-org-apache-openejb-OpenEJBException-Creating-application-failed-classpath-ear-org-apach-tp3338547p3345513.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: 3.2-SNAPSHOT: org.apache.openejb.OpenEJBException: Creating application failed: classpath.ear: org.apache.webbeans.config.WebBeansContext.getxMLSpecializesManager()Lorg/apache/webbeans/xml/XMLSpecializesManager;

Posted by Jean-Louis MONTEIRO <je...@gmail.com>.
Hi Thomas,

OpenEJB 3.2-SNAPSHOT is actually using Apache OpenWebBeans 1.x-SNAPSHOT
I've seen some changes and incompatibility issues.

David B. already fixed them in the trunk, but we probably need to push a new
SNAPSHOT to Maven.

We'll try to do that today if possible.

Jean-Louis

--
View this message in context: http://openejb.979440.n4.nabble.com/3-2-SNAPSHOT-org-apache-openejb-OpenEJBException-Creating-application-failed-classpath-ear-org-apach-tp3338547p3340775.html
Sent from the OpenEJB User mailing list archive at Nabble.com.