openejb-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Blevins <david.blev...@visi.com>
Subject Re: java.lang.NoSuchMethodError: org.slf4j.Logger.trace(Ljava/lang/String;)V
Date Fri, 19 Jun 2009 19:57:43 GMT
Thanks, Alessandro,

Didn't see the details at the bottom of that first message, thanks for  
pointing them out again.

I upgraded our hibernate example so that it uses 3.4.0.GA and got it  
to run by making it use the slf4j-api-1.4.2.jar and slf4j- 
jdk14-1.4.2.jar.  That example runs with maven and it seems maven  
pulls in more hibernate jars than you had in your lib dir listing, so  
here's the full list of jars that were in my test case's classpath to  
be on the safe side:

activeio-core-3.0.0-incubator.jar
activemq-core-4.1.1.jar
activemq-ra-4.1.1.jar
antlr-2.7.6.jar  (hibernate)
backport-util-concurrent-2.1.jar
commons-cli-1.1.jar
commons-collections-3.2.jar
commons-dbcp-all-1.3-r699049.jar
commons-lang-2.1.jar
commons-logging-1.1.jar
dom4j-1.6.1.jar  (hibernate)
ejb3-persistence-1.0.2.GA.jar  (hibernate)
ejb31-api-experimental-3.1.1.jar
geronimo-connector-2.1.jar
geronimo-javamail_1.4_mail-1.2.jar
geronimo-transaction-2.1.jar
hibernate-annotations-3.4.0.GA.jar  (hibernate)
hibernate-commons-annotations-3.1.0.GA.jar  (hibernate)
hibernate-core-3.3.0.SP1.jar  (hibernate)
hibernate-entitymanager-3.4.0.GA.jar  (hibernate)
howl-1.0.1-1.jar
hsqldb-1.8.0.7.jar
javaee-api-5.0-2.jar
javassist-3.4.GA.jar  (hibernate)
jaxb-impl-2.0.5.jar
log4j-1.2.12.jar
openejb-api-3.1.1.jar
openejb-core-3.1.1.jar
openejb-javaagent-3.1.1.jar
openejb-jee-3.1.1.jar
openejb-loader-3.1.1.jar
quartz-1.5.2.jar
serp-1.13.1.jar
slf4j-api-1.4.2.jar  (hibernate/cxf)
slf4j-jdk14-1.4.2.jar  (hibernate/cxf)
stax-api-1.0.1.jar
swizzle-stream-1.0.1.jar
xbean-asm-shaded-3.6-r779512.jar
xbean-finder-shaded-3.6-r779512.jar
xbean-naming-3.5.jar
xbean-reflect-3.6-r779512.jar

This is a minimal classpath without WebServices support via CXF; it's  
really CXF who is using slf4j.  If you don't need Web Services in your  
tests, this is a great classpath.  But in case you do, I verified that  
CXF will have no issues running with slfj4 1.4.2 and all was fine.  So  
here are the libraries you can add to enable Web Services support  
should you need it:

XmlSchema-1.4.2.jar
bcprov-jdk15-140.jar
commons-pool-1.3.jar
cxf-bundle-2.0.9.jar
neethi-2.0.4.jar
openejb-client-3.1.1.jar
openejb-cxf-3.1.1.jar
openejb-ejbd-3.1.1.jar
openejb-http-3.1.1.jar
openejb-server-3.1.1.jar
openejb-webservices-3.1.1.jar
opensaml-1.1.jar
saaj-impl-1.3.jar
wss4j-1.5.4.jar
wstx-asl-3.2.0.jar
xml-resolver-1.2.jar
xmlsec-1.4.0.jar

For simplicity sake, you really can include all the openejb-3.1.1/lib/ 
* jars as long as you delete the slfj4 jars we ship with and replace  
them with the slfj4 1.4.2 jars that Hibernate needs.

The long and short is that slfj4 1.4.2 api has some new method  
signatures that Hibernate uses, so with only the slf4j 1.3.1 jars in  
the classpath the VM throws the NoSuchMethodError when loading  
Hibernate as the vm is unable to find all the slf4j methods that  
Hibernate needs.

Hope that helps.


-David


On Jun 19, 2009, at 7:05 AM, AlessandroIlardo wrote:

>
> On the previous message I reported the version (it should be in the  
> end) of
> Hibernate and its slf4j library. If you check the OpenEJB lib  
> directory
> list, you can see that I added the Hibernate jars, except for slf4j  
> which I
> prefered to leave the existing one included in OpenEJB.
> To me looks like the slf4j required by Hibernate is the same  
> available in
> the OpenEJB classpath, so the 1.3.1, but apparently I am wrong.
> This is the message where you should find the version.
> http://www.nabble.com/Re%3A-java.lang.NoSuchMethodError%3A-org.slf4j.Logger.trace(Ljava-lang-String-)V-p24053855.html
>
> Thanks in advance
>
>
> AlessandroIlardo wrote:
>>
>> Hello there,
>> I am using NetBeans with Junit, HIbernate and OpenEJB to test an EJB
>> module.
>> On the OpenEJB log I get the following error:
>>
>>
>> 2009-06-15 14:56:22,434 - INFO  - openejb.home =
>> /home/alessandro/Documents/Java/shared-lib/openejb-3.1.1
>> 2009-06-15 14:56:22,435 - INFO  - openejb.base =
>> /home/alessandro/Documents/Java/shared-lib/openejb-3.1.1
>> 2009-06-15 14:56:23,371 - INFO  - Configuring Service(id=Default  
>> Security
>> Service, type=SecurityService, provider-id=Default Security Service)
>> 2009-06-15 14:56:23,384 - INFO  - Configuring Service(id=Default
>> Transaction Manager, type=TransactionManager, provider-id=Default
>> Transaction Manager)
>> 2009-06-15 14:56:23,395 - INFO  - Configuring Service(id=My  
>> DataSource,
>> type=Resource, provider-id=Default JDBC Database)
>> 2009-06-15 14:56:23,413 - INFO  - Configuring Service(id=My Unmanaged
>> DataSource, type=Resource, provider-id=Default JDBC Database)
>> 2009-06-15 14:56:23,424 - INFO  - Configuring Service(id=My JMS  
>> Resource
>> Adapter, type=Resource, provider-id=Default JMS Resource Adapter)
>> 2009-06-15 14:56:23,436 - INFO  - Configuring Service(id=My JMS  
>> Connection
>> Factory, type=Resource, provider-id=Default JMS Connection Factory)
>> 2009-06-15 14:56:23,448 - INFO  - Configuring
>> Service(id=UnmanagedIdentityManagerDS, type=Resource, provider- 
>> id=Default
>> JDBC Database)
>> 2009-06-15 14:56:23,461 - INFO  - Configuring Service(id=My CMP  
>> Container,
>> type=Container, provider-id=Default CMP Container)
>> 2009-06-15 14:56:23,472 - INFO  - Configuring Service(id=My BMP  
>> Container,
>> type=Container, provider-id=Default BMP Container)
>> 2009-06-15 14:56:23,483 - INFO  - Configuring Service(id=My Stateful
>> Container, type=Container, provider-id=Default Stateful Container)
>> 2009-06-15 14:56:23,495 - INFO  - Configuring Service(id=My Stateless
>> Container, type=Container, provider-id=Default Stateless Container)
>> 2009-06-15 14:56:23,520 - INFO  - Configuring Service(id=My MDB  
>> Container
>> , type=Container, provider-id=Default MDB Container)
>> 2009-06-15 14:56:23,596 - INFO  - Configuring enterprise application:
>> /home/alessandro/Documents/Java/shared-lib/openejb-3.1.1/apps/ 
>> IdentityManager-ejb.jar
>> 2009-06-15 14:56:24,986 - INFO  - Configuring
>> PersistenceUnit(name=IdentityManager-ejbPU,
>> provider=org.hibernate.ejb.HibernatePersistence)
>> 2009-06-15 14:56:24,988 - INFO  - Adjusting PersistenceUnit
>> IdentityManager-ejbPU <jta-data-source> to Resource ID 'My  
>> DataSource'
>> from 'java:/IdentityManagerDS'
>> 2009-06-15 14:56:24,989 - INFO  - Adjusting PersistenceUnit
>> IdentityManager-ejbPU <non-jta-data-source> to Resource ID 'My  
>> Unmanaged
>> DataSource' from 'null'
>> 2009-06-15 14:56:25,037 - INFO  - Enterprise application
>> "/home/alessandro/Documents/Java/shared-lib/openejb-3.1.1/apps/ 
>> IdentityManager-ejb.jar"
>> loaded.
>> 2009-06-15 14:56:25,549 - INFO  - Found ClientModule in classpath:
>> /home/alessandro/Documents/Java/shared-lib/openejb-3.1.1/lib/xml- 
>> resolver-1.2.jar
>> 2009-06-15 14:56:25,593 - INFO  - Found ClientModule in classpath:
>> /home/alessandro/Documents/Java/shared-lib/hibernate- 
>> entitymanager-3.4.0.GA/lib/javassist.jar
>> 2009-06-15 14:56:25,597 - INFO  - Found EjbModule in classpath:
>> /home/alessandro/Work-Space/NetBeansProject/IdentityManager/ 
>> IdentityManager-ejb/trunk/dist/IdentityManager-ejb.jar
>> 2009-06-15 14:56:25,682 - INFO  - Found ClientModule in classpath:
>> /home/alessandro/.netbeans/6.1/ant/lib/ant.jar
>> 2009-06-15 14:56:26,389 - INFO  - Found ClientModule in classpath:
>> /home/alessandro/.netbeans/6.1/ant/lib/ant-launcher.jar
>> 2009-06-15 14:56:26,435 - INFO  - Beginning load:
>> /home/alessandro/Documents/Java/shared-lib/openejb-3.1.1/lib/xml- 
>> resolver-1.2.jar
>> 2009-06-15 14:56:26,441 - INFO  - Beginning load:
>> /home/alessandro/Documents/Java/shared-lib/hibernate- 
>> entitymanager-3.4.0.GA/lib/javassist.jar
>> 2009-06-15 14:56:26,463 - INFO  - Beginning load:
>> /home/alessandro/Work-Space/NetBeansProject/IdentityManager/ 
>> IdentityManager-ejb/trunk/dist/IdentityManager-ejb.jar
>> 2009-06-15 14:56:26,468 - INFO  - Beginning load:
>> /home/alessandro/.netbeans/6.1/ant/lib/ant.jar
>> 2009-06-15 14:56:26,494 - INFO  - Beginning load:
>> /home/alessandro/.netbeans/6.1/ant/lib/ant-launcher.jar
>> 2009-06-15 14:56:26,513 - INFO  - Configuring enterprise application:
>> classpath.ear
>> 2009-06-15 14:56:26,516 - WARN  - No application-client.xml found  
>> assuming
>> annotations present: classpath.ear, module: xml-resolver-1.2.jar
>> 2009-06-15 14:56:26,517 - WARN  - No application-client.xml found  
>> assuming
>> annotations present: classpath.ear, module: javassist.jar
>> 2009-06-15 14:56:26,517 - WARN  - No application-client.xml found  
>> assuming
>> annotations present: classpath.ear, module: ant.jar
>> 2009-06-15 14:56:26,517 - WARN  - No application-client.xml found  
>> assuming
>> annotations present: classpath.ear, module: ant-launcher.jar
>> 2009-06-15 14:56:27,994 - INFO  - Configuring
>> PersistenceUnit(name=IdentityManager-ejbPU,
>> provider=org.hibernate.ejb.HibernatePersistence)
>> 2009-06-15 14:56:28,005 - INFO  - Enterprise application  
>> "classpath.ear"
>> loaded.
>> 2009-06-15 14:56:28,006 - INFO  - Creating  
>> TransactionManager(id=Default
>> Transaction Manager)
>> 2009-06-15 14:56:28,122 - INFO  - Creating SecurityService(id=Default
>> Security Service)
>> 2009-06-15 14:56:28,183 - INFO  - Creating Resource(id=My DataSource)
>> 2009-06-15 14:56:28,216 - INFO  - Creating Resource(id=My Unmanaged
>> DataSource)
>> 2009-06-15 14:56:28,239 - INFO  - Creating
>> Resource(id=UnmanagedIdentityManagerDS)
>> 2009-06-15 14:56:28,248 - INFO  - Creating Resource(id=My JMS  
>> Resource
>> Adapter)
>> 2009-06-15 14:56:28,733 - INFO  - Creating Resource(id=My JMS  
>> Connection
>> Factory)
>> 2009-06-15 14:56:28,741 - INFO  - Creating ConnectionManager for
>> Resource(id=My JMS Connection Factory)
>> 2009-06-15 14:56:28,784 - INFO  - Creating Container(id=My CMP  
>> Container)
>> 2009-06-15 14:56:28,817 - INFO  - Creating Container(id=My BMP  
>> Container)
>> 2009-06-15 14:56:28,835 - INFO  - Creating Container(id=My Stateful
>> Container)
>> 2009-06-15 14:56:28,889 - INFO  - Creating Container(id=My Stateless
>> Container)
>> 2009-06-15 14:56:28,901 - INFO  - Creating Container(id=My MDB  
>> Container )
>> 2009-06-15 14:56:28,912 - INFO  - Assembling app:
>> /home/alessandro/Documents/Java/shared-lib/openejb-3.1.1/apps/ 
>> IdentityManager-ejb.jar
>> 2009-06-15 14:56:28,954 - INFO  -
>> PersistenceUnit(name=IdentityManager-ejbPU,
>> provider=org.hibernate.ejb.HibernatePersistence)
>> 2009-06-15 14:56:29,575 - INFO  - Undeploying app:
>> /home/alessandro/Documents/Java/shared-lib/openejb-3.1.1/apps/ 
>> IdentityManager-ejb.jar
>> 2009-06-15 14:56:29,582 - ERROR - Application could not be deployed:
>> /home/alessandro/Documents/Java/shared-lib/openejb-3.1.1/apps/ 
>> IdentityManager-ejb.jar
>> org.apache.openejb.OpenEJBException: Creating application failed:
>> /home/alessandro/Documents/Java/shared-lib/openejb-3.1.1/apps/ 
>> IdentityManager-ejb.jar:
>> org.slf4j.Logger.trace(Ljava/lang/String;)V
>> 	at
>> org 
>> .apache 
>> .openejb 
>> .assembler.classic.Assembler.createApplication(Assembler.java:658)
>> 	at
>> org 
>> .apache 
>> .openejb 
>> .assembler.classic.Assembler.createApplication(Assembler.java:442)
>> 	at
>> org 
>> .apache 
>> .openejb 
>> .assembler.classic.Assembler.buildContainerSystem(Assembler.java:360)
>> 	at
>> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java: 
>> 272)
>> 	at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:137)
>> 	at org.apache.openejb.OpenEJB.init(OpenEJB.java:286)
>> 	at org.apache.openejb.OpenEJB.init(OpenEJB.java:265)
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> 	at
>> sun 
>> .reflect 
>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> 	at
>> sun 
>> .reflect 
>> .DelegatingMethodAccessorImpl 
>> .invoke(DelegatingMethodAccessorImpl.java:43)
>> 	at java.lang.reflect.Method.invoke(Method.java:616)
>> 	at
>> org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java: 
>> 36)
>> 	at
>> org 
>> .apache 
>> .openejb 
>> .client 
>> .LocalInitialContextFactory.init(LocalInitialContextFactory.java:71)
>> 	at
>> org 
>> .apache 
>> .openejb 
>> .client 
>> .LocalInitialContextFactory.init(LocalInitialContextFactory.java:53)
>> 	at
>> org 
>> .apache 
>> .openejb 
>> .client 
>> .LocalInitialContextFactory 
>> .getInitialContext(LocalInitialContextFactory.java:42)
>> 	at
>> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java: 
>> 684)
>> 	at  
>> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java: 
>> 305)
>> 	at javax.naming.InitialContext.init(InitialContext.java:240)
>> 	at javax.naming.InitialContext.<init>(InitialContext.java:214)
>> 	at eu.virtualLab.security.user.test.Init.setUp(Init.java:72)
>> 	at junit.framework.TestCase.runBare(TestCase.java:128)
>> 	at junit.framework.TestResult$1.protect(TestResult.java:110)
>> 	at junit.framework.TestResult.runProtected(TestResult.java:128)
>> 	at junit.framework.TestResult.run(TestResult.java:113)
>> 	at junit.framework.TestCase.run(TestCase.java:120)
>> 	at junit.framework.TestSuite.runTest(TestSuite.java:228)
>> 	at junit.framework.TestSuite.run(TestSuite.java:223)
>> 	at
>> org 
>> .junit 
>> .internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
>> 	at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:32)
>> 	at
>> org 
>> .apache 
>> .tools 
>> .ant 
>> .taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java: 
>> 421)
>> 	at
>> org 
>> .apache 
>> .tools 
>> .ant 
>> .taskdefs 
>> .optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
>> 	at
>> org 
>> .apache 
>> .tools 
>> .ant 
>> .taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java: 
>> 766)
>> Caused by: java.lang.NoSuchMethodError:
>> org.slf4j.Logger.trace(Ljava/lang/String;)V
>> 	at
>> org 
>> .hibernate.cfg.annotations.PropertyBinder.make(PropertyBinder.java: 
>> 184)
>> 	at org.hibernate.cfg.AnnotationBinder.bindId(AnnotationBinder.java: 
>> 1911)
>> 	at
>> org 
>> .hibernate 
>> .cfg 
>> .AnnotationBinder.processElementAnnotations(AnnotationBinder.java: 
>> 1279)
>> 	at
>> org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java: 
>> 754)
>> 	at
>> org 
>> .hibernate 
>> .cfg 
>> .AnnotationConfiguration 
>> .processArtifactsOfType(AnnotationConfiguration.java:546)
>> 	at
>> org 
>> .hibernate 
>> .cfg 
>> .AnnotationConfiguration 
>> .secondPassCompile(AnnotationConfiguration.java:291)
>> 	at  
>> org.hibernate.cfg.Configuration.buildMappings(Configuration.java: 
>> 1148)
>> 	at
>> org 
>> .hibernate 
>> .ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1226)
>> 	at
>> org 
>> .hibernate 
>> .ejb 
>> .EventListenerConfigurator.configure(EventListenerConfigurator.java: 
>> 173)
>> 	at
>> org 
>> .hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java: 
>> 854)
>> 	at
>> org 
>> .hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java: 
>> 425)
>> 	at
>> org 
>> .hibernate 
>> .ejb 
>> .HibernatePersistence 
>> .createContainerEntityManagerFactory(HibernatePersistence.java:131)
>> 	at
>> org 
>> .apache 
>> .openejb 
>> .assembler 
>> .classic 
>> .PersistenceBuilder 
>> .createEntityManagerFactory(PersistenceBuilder.java:183)
>> 	at
>> org 
>> .apache 
>> .openejb 
>> .assembler.classic.Assembler.createApplication(Assembler.java:482)
>> 	... 31 more
>> 2009-06-15 14:56:29,585 - INFO  - Assembling app: classpath.ear
>> 2009-06-15 14:56:29,586 - INFO  - Undeploying app: classpath.ear
>> 2009-06-15 14:56:29,588 - ERROR - Application could not be deployed:
>> classpath.ear
>> org.apache.openejb.OpenEJBException: Creating application failed:
>> classpath.ear: org.apache.openejb.OpenEJBException: Could not lookup
>> <jta-data-source> 'java:openejb/Resource/java:/IdentityManagerDS'  
>> for unit
>> 'IdentityManager-ejbPU': Need to specify class name in environment or
>> system property, or as an applet parameter, or in an application  
>> resource
>> file:  java.naming.factory.initial: Could not lookup <jta-data- 
>> source>
>> 'java:openejb/Resource/java:/IdentityManagerDS' for unit
>> 'IdentityManager-ejbPU': Need to specify class name in environment or
>> system property, or as an applet parameter, or in an application  
>> resource
>> file:  java.naming.factory.initial
>> 	at
>> org 
>> .apache 
>> .openejb 
>> .assembler.classic.Assembler.createApplication(Assembler.java:658)
>> 	at
>> org 
>> .apache 
>> .openejb 
>> .assembler.classic.Assembler.createApplication(Assembler.java:442)
>> 	at
>> org 
>> .apache 
>> .openejb 
>> .assembler.classic.Assembler.buildContainerSystem(Assembler.java:360)
>> 	at
>> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java: 
>> 272)
>> 	at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:137)
>> 	at org.apache.openejb.OpenEJB.init(OpenEJB.java:286)
>> 	at org.apache.openejb.OpenEJB.init(OpenEJB.java:265)
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> 	at
>> sun 
>> .reflect 
>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> 	at
>> sun 
>> .reflect 
>> .DelegatingMethodAccessorImpl 
>> .invoke(DelegatingMethodAccessorImpl.java:43)
>> 	at java.lang.reflect.Method.invoke(Method.java:616)
>> 	at
>> org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java: 
>> 36)
>> 	at
>> org 
>> .apache 
>> .openejb 
>> .client 
>> .LocalInitialContextFactory.init(LocalInitialContextFactory.java:71)
>> 	at
>> org 
>> .apache 
>> .openejb 
>> .client 
>> .LocalInitialContextFactory.init(LocalInitialContextFactory.java:53)
>> 	at
>> org 
>> .apache 
>> .openejb 
>> .client 
>> .LocalInitialContextFactory 
>> .getInitialContext(LocalInitialContextFactory.java:42)
>> 	at
>> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java: 
>> 684)
>> 	at  
>> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java: 
>> 305)
>> 	at javax.naming.InitialContext.init(InitialContext.java:240)
>> 	at javax.naming.InitialContext.<init>(InitialContext.java:214)
>> 	at eu.virtualLab.security.user.test.Init.setUp(Init.java:72)
>> 	at junit.framework.TestCase.runBare(TestCase.java:128)
>> 	at junit.framework.TestResult$1.protect(TestResult.java:110)
>> 	at junit.framework.TestResult.runProtected(TestResult.java:128)
>> 	at junit.framework.TestResult.run(TestResult.java:113)
>> 	at junit.framework.TestCase.run(TestCase.java:120)
>> 	at junit.framework.TestSuite.runTest(TestSuite.java:228)
>> 	at junit.framework.TestSuite.run(TestSuite.java:223)
>> 	at
>> org 
>> .junit 
>> .internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
>> 	at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:32)
>> 	at
>> org 
>> .apache 
>> .tools 
>> .ant 
>> .taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java: 
>> 421)
>> 	at
>> org 
>> .apache 
>> .tools 
>> .ant 
>> .taskdefs 
>> .optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
>> 	at
>> org 
>> .apache 
>> .tools 
>> .ant 
>> .taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java: 
>> 766)
>> Caused by: org.apache.openejb.OpenEJBException:
>> org.apache.openejb.OpenEJBException: Could not lookup <jta-data- 
>> source>
>> 'java:openejb/Resource/java:/IdentityManagerDS' for unit
>> 'IdentityManager-ejbPU': Need to specify class name in environment or
>> system property, or as an applet parameter, or in an application  
>> resource
>> file:  java.naming.factory.initial: Could not lookup <jta-data- 
>> source>
>> 'java:openejb/Resource/java:/IdentityManagerDS' for unit
>> 'IdentityManager-ejbPU': Need to specify class name in environment or
>> system property, or as an applet parameter, or in an application  
>> resource
>> file:  java.naming.factory.initial
>> 	at
>> org 
>> .apache 
>> .openejb 
>> .assembler.classic.Assembler.createApplication(Assembler.java:487)
>> 	... 31 more
>> Caused by: org.apache.openejb.OpenEJBException: Could not lookup
>> <jta-data-source> 'java:openejb/Resource/java:/IdentityManagerDS'  
>> for unit
>> 'IdentityManager-ejbPU': Need to specify class name in environment or
>> system property, or as an applet parameter, or in an application  
>> resource
>> file:  java.naming.factory.initial
>> 	at
>> org 
>> .apache 
>> .openejb 
>> .assembler 
>> .classic 
>> .PersistenceBuilder 
>> .createEntityManagerFactory(PersistenceBuilder.java:122)
>> 	at
>> org 
>> .apache 
>> .openejb 
>> .assembler.classic.Assembler.createApplication(Assembler.java:482)
>> 	... 31 more
>> Caused by: javax.naming.NoInitialContextException: Need to specify  
>> class
>> name in environment or system property, or as an applet parameter,  
>> or in
>> an application resource file:  java.naming.factory.initial
>> 	at
>> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java: 
>> 662)
>> 	at  
>> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java: 
>> 305)
>> 	at
>> javax 
>> .naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java: 
>> 342)
>> 	at javax.naming.InitialContext.lookup(InitialContext.java:409)
>> 	at
>> org 
>> .apache.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java: 
>> 133)
>> 	at
>> org 
>> .apache.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java: 
>> 123)
>> 	at
>> org 
>> .apache 
>> .openejb 
>> .assembler 
>> .classic 
>> .PersistenceBuilder 
>> .createEntityManagerFactory(PersistenceBuilder.java:119)
>> 	... 32 more
>>
>>
>>
>> To me it looks like a jars conflict. The OpenEJB library included  
>> into the
>> project
>>
>> -rw-r--r-- 1 alessandro alessandro   106398 2009-05-23 01:25
>> activeio-core-3.0.0-incubator.jar
>> -rw-r--r-- 1 alessandro alessandro  1683897 2009-05-23 01:25
>> activemq-core-4.1.1.jar
>> -rw-r--r-- 1 alessandro alessandro    78641 2009-05-23 01:27
>> activemq-ra-4.1.1.jar
>> -rw-r--r-- 1 alessandro alessandro   329586 2009-05-23 01:25
>> backport-util-concurrent-2.1.jar
>> -rw-r--r-- 1 alessandro alessandro  1593423 2009-05-23 01:34
>> bcprov-jdk15-140.jar
>> -rw-r--r-- 1 alessandro alessandro    36174 2009-05-23 01:27
>> commons-cli-1.1.jar
>> -rw-r--r-- 1 alessandro alessandro   571259 2009-05-20 20:35
>> commons-collections-3.2.jar
>> -rw-r--r-- 1 alessandro alessandro   202182 2009-05-28 23:23
>> commons-dbcp-all-1.3-r699049.jar
>> -rw-r--r-- 1 alessandro alessandro   207723 2009-05-20 20:35
>> commons-lang-2.1.jar
>> -rw-r--r-- 1 alessandro alessandro    52915 2009-05-20 20:37
>> commons-logging-1.1.jar
>> -rw-r--r-- 1 alessandro alessandro    62086 2009-05-23 01:27
>> commons-pool-1.3.jar
>> -rw-r--r-- 1 alessandro alessandro  2881944 2009-05-23 01:34
>> cxf-bundle-2.0.9.jar
>> lrwxrwxrwx 1 alessandro alessandro       52 2009-06-15 14:39  
>> dom4j.jar ->
>> ../../hibernate-entitymanager-3.4.0.GA/lib/dom4j.jar
>> -rw-r--r-- 1 alessandro alessandro    18843 2009-05-31 03:15
>> ejb31-api-experimental-3.1.1.jar
>> lrwxrwxrwx 1 alessandro alessandro       63 2009-06-15 14:40
>> ejb3-persistence.jar ->
>> ../../hibernate-entitymanager-3.4.0.GA/lib/ejb3-persistence.jar
>> -rw-r--r-- 1 alessandro alessandro   100863 2009-05-23 01:27
>> geronimo-connector-2.1.jar
>> -rw-r--r-- 1 alessandro alessandro   304552 2009-05-23 01:27
>> geronimo-javamail_1.4_mail-1.2.jar
>> -rw-r--r-- 1 alessandro alessandro    51278 2009-05-23 01:27
>> geronimo-transaction-2.1.jar
>> lrwxrwxrwx 1 alessandro alessandro       68 2009-06-15 14:35
>> hibernate-annotations.jar ->
>> ../../hibernate-entitymanager-3.4.0.GA/lib/hibernate-annotations.jar
>> lrwxrwxrwx 1 alessandro alessandro       76 2009-06-15 14:36
>> hibernate-commons-annotations.jar ->
>> ../../hibernate-entitymanager-3.4.0.GA/lib/hibernate-commons- 
>> annotations.jar
>> lrwxrwxrwx 1 alessandro alessandro       61 2009-06-15 14:36
>> hibernate-core.jar ->
>> ../../hibernate-entitymanager-3.4.0.GA/lib/hibernate-core.jar
>> -rw-r--r-- 1 alessandro alessandro    79981 2009-05-23 01:27
>> howl-1.0.1-1.jar
>> -rw-r--r-- 1 alessandro alessandro   643727 2009-05-23 01:27
>> hsqldb-1.8.0.7.jar
>> -rw-r--r-- 1 alessandro alessandro   753070 2009-05-31 03:15
>> javaee-api-5.0-2.jar
>> lrwxrwxrwx 1 alessandro alessandro       56 2009-06-15 14:40  
>> javassist.jar
>> -> ../../hibernate-entitymanager-3.4.0.GA/lib/javassist.jar
>> -rw-r--r-- 1 alessandro alessandro   787619 2009-05-23 01:26
>> jaxb-impl-2.0.5.jar
>> lrwxrwxrwx 1 alessandro alessandro       50 2009-06-15 14:40  
>> jta.jar ->
>> ../../hibernate-entitymanager-3.4.0.GA/lib/jta.jar
>> -rw-r--r-- 1 alessandro alessandro   358085 2009-05-23 01:25
>> log4j-1.2.12.jar
>> -rw-r--r-- 1 alessandro alessandro    32900 2009-05-23 01:34
>> neethi-2.0.4.jar
>> -rw-r--r-- 1 alessandro alessandro     8517 2009-05-31 03:17
>> openejb-api-3.1.1.jar
>> -rw-r--r-- 1 alessandro alessandro   200563 2009-05-31 03:18
>> openejb-client-3.1.1.jar
>> -rw-r--r-- 1 alessandro alessandro  1448855 2009-05-31 03:18
>> openejb-core-3.1.1.jar
>> -rw-r--r-- 1 alessandro alessandro    56068 2009-05-31 03:21
>> openejb-cxf-3.1.1.jar
>> -rw-r--r-- 1 alessandro alessandro    56184 2009-05-31 03:19
>> openejb-ejbd-3.1.1.jar
>> -rw-r--r-- 1 alessandro alessandro    16019 2009-05-31 03:19
>> openejb-hsql-3.1.1.jar
>> -rw-r--r-- 1 alessandro alessandro    41760 2009-05-31 03:19
>> openejb-http-3.1.1.jar
>> -rw-r--r-- 1 alessandro alessandro    12847 2009-05-31 03:17
>> openejb-javaagent-3.1.1.jar
>> -rw-r--r-- 1 alessandro alessandro   788210 2009-05-31 03:17
>> openejb-jee-3.1.1.jar
>> -rw-r--r-- 1 alessandro alessandro    41511 2009-05-31 03:17
>> openejb-loader-3.1.1.jar
>> -rw-r--r-- 1 alessandro alessandro    27680 2009-05-31 03:19
>> openejb-multicast-3.1.1.jar
>> -rw-r--r-- 1 alessandro alessandro    74989 2009-05-31 03:18
>> openejb-server-3.1.1.jar
>> -rw-r--r-- 1 alessandro alessandro    31632 2009-05-31 03:19
>> openejb-telnet-3.1.1.jar
>> -rw-r--r-- 1 alessandro alessandro    46317 2009-05-31 03:19
>> openejb-webservices-3.1.1.jar
>> -rw-r--r-- 1 alessandro alessandro 11712276 2009-05-23 01:27
>> openjpa-1.2.0.jar
>> -rw-r--r-- 1 alessandro alessandro   155714 2009-05-23 01:34
>> opensaml-1.1.jar
>> -rw-r--r-- 1 alessandro alessandro   388716 2009-05-23 01:28
>> quartz-1.5.2.jar
>> -rw-r--r-- 1 alessandro alessandro   278301 2009-05-23 01:30
>> saaj-impl-1.3.jar
>> -rw-r--r-- 1 alessandro alessandro   205877 2009-05-23 01:27
>> serp-1.13.1.jar
>> -rw-r--r-- 1 alessandro alessandro    12231 2009-05-23 01:34
>> slf4j-api-1.3.1.jar
>> -rw-r--r-- 1 alessandro alessandro     7515 2009-05-23 01:34
>> slf4j-jdk14-1.3.1.jar
>> -rw-r--r-- 1 alessandro alessandro    26514 2009-05-23 01:26
>> stax-api-1.0.1.jar
>> -rw-r--r-- 1 alessandro alessandro    43161 2009-05-23 01:28
>> swizzle-stream-1.0.1.jar
>> -rw-r--r-- 1 alessandro alessandro   148522 2009-05-23 01:28
>> wsdl4j-1.6.1.jar
>> -rw-r--r-- 1 alessandro alessandro   307437 2009-05-23 01:34
>> wss4j-1.5.4.jar
>> -rw-r--r-- 1 alessandro alessandro   504969 2009-05-23 01:26
>> wstx-asl-3.2.0.jar
>> -rw-r--r-- 1 alessandro alessandro   123396 2009-05-31 03:15
>> xbean-asm-shaded-3.6-r779512.jar
>> -rw-r--r-- 1 alessandro alessandro    40330 2009-05-31 03:15
>> xbean-finder-shaded-3.6-r779512.jar
>> -rw-r--r-- 1 alessandro alessandro    51495 2009-05-28 13:31
>> xbean-naming-3.5.jar
>> -rw-r--r-- 1 alessandro alessandro   150222 2009-05-31 03:15
>> xbean-reflect-3.6-r779512.jar
>> -rw-r--r-- 1 alessandro alessandro    84091 2009-05-23 01:34
>> xml-resolver-1.2.jar
>> -rw-r--r-- 1 alessandro alessandro   139721 2009-05-23 01:34
>> XmlSchema-1.4.2.jar
>> -rw-r--r-- 1 alessandro alessandro   413902 2009-05-23 01:34
>> xmlsec-1.4.0.jar
>>
>>
>> Thanks in advance for any help
>>
>
> -- 
> View this message in context: http://www.nabble.com/java.lang.NoSuchMethodError%3A-org.slf4j.Logger.trace%28Ljava-lang-String-%29V-tp24034248p24112201.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
>


Mime
View raw message