0 Replies Latest reply on Mar 28, 2011 6:21 AM by Matthias Becker

    Embedded: java.lang.NoSuchMethodError: org.jboss.logging.Logger.tracef

    Matthias Becker Newbie

      Hi

       

        I try to setup a test environment on my system and to make use of the Embedded JBoss for that. When I call

      EJBContainer.createEJBContainer(properties);
      

      I get this stack trace:

       

       

       javax.ejb.EJBException: java.lang.reflect.InvocationTargetException
           at org.jboss.ejb3.embedded.impl.standalone.JBossStandaloneEJBContainerProvider.createEJBContainer(JBossStandaloneEJBContainerProvider.java:153)
           at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:93)
           at de.xyz.Monitor.unittest.MonitorTestSuite.setUpClass(MonitorTestSuite.java:39)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
           at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
           at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
           at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
           at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
           at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
           at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
           at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
       Caused by: java.lang.reflect.InvocationTargetException
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at org.jboss.ejb3.embedded.impl.standalone.JBossStandaloneEJBContainerProvider.createEJBContainer(JBossStandaloneEJBContainerProvider.java:141)
           ... 18 more
       Caused by: java.lang.RuntimeException: Could not create default configuration of type class org.jboss.bootstrap.impl.as.config.BasicJBossASServerConfig
           at org.jboss.bootstrap.impl.base.server.AbstractServer.<init>(AbstractServer.java:193)
           at org.jboss.bootstrap.impl.mc.server.AbstractMCServerBase.<init>(AbstractMCServerBase.java:110)
           at org.jboss.bootstrap.impl.as.server.AbstractJBossASServerBase.<init>(AbstractJBossASServerBase.java:158)
           at org.jboss.bootstrap.impl.as.server.AbstractJBossASServerBase.<init>(AbstractJBossASServerBase.java:143)
           at org.jboss.embedded.core.server.JBossASEmbeddedServerImpl.<init>(JBossASEmbeddedServerImpl.java:135)
           at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
           at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
           at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
           at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
           at java.lang.Class.newInstance0(Class.java:355)
           at java.lang.Class.newInstance(Class.java:308)
           at org.jboss.bootstrap.api.factory.SecurityActions$1.run(SecurityActions.java:95)
           at java.security.AccessController.doPrivileged(Native Method)
           at org.jboss.bootstrap.api.factory.SecurityActions.newInstance(SecurityActions.java:75)
           at org.jboss.bootstrap.api.factory.GenericFactory.createInstance(GenericFactory.java:97)
           at org.jboss.bootstrap.api.factory.ServerFactory.createServer(ServerFactory.java:84)
           at org.jboss.bootstrap.api.as.server.JBossASServerFactory.createServer(JBossASServerFactory.java:145)
           at org.jboss.embedded.api.server.JBossASEmbeddedServerFactory.createServer(JBossASEmbeddedServerFactory.java:126)
           at org.jboss.ejb3.embedded.sub.JBossSubmersibleEJBContainer.createEJBContainer(JBossSubmersibleEJBContainer.java:129)
           ... 23 more
       Caused by: java.lang.NoSuchMethodError: org.jboss.logging.Logger.tracef(Ljava/lang/String;[Ljava/lang/Object;)V
           at org.jboss.bootstrap.impl.base.server.SecurityActions$3.run(SecurityActions.java:151)
           at java.security.AccessController.doPrivileged(Native Method)
           at org.jboss.bootstrap.impl.base.server.SecurityActions.newInstance(SecurityActions.java:146)
           at org.jboss.bootstrap.impl.base.server.AbstractServer.<init>(AbstractServer.java:188)
           ... 41 more
      

       

      When i look into this class i find out that the method IS actually missing.

       

      i use jboss-embedded-all beta3.SP10.

       

      This is the command line (Eclipse Debug):

       "C:\Program Files\Java\jdk1.6.0_24\bin\javaw.exe" -Xmx512m -XX:MaxPermSize=256m 
       -Djava.endorsed.dirs=C:\development\tools\jboss-6.0.0.Final/lib/endorsed -Dfile.encoding=UTF-8 
       -classpath C:\development\tools\jboss-6.0.0.Final\client\jboss-ejb3-embedded-standalone.jar;
       C:\development\projekte\esb-monitoring\branches\JBOSS_DERBY_0.1\03_Implementation\02_Source\Monitor\MonitorEJB\target\test-classes;
       C:\development\projekte\esb-monitoring\branches\JBOSS_DERBY_0.1\03_Implementation\02_Source\Monitor\MonitorEJB\target\classes;
       C:\development\tools\maven\repository\org\jboss\spec\javax\annotation\jboss-annotations-api_1.1_spec\1.0.0.Final\jboss-annotations-api_1.1_spec-1.0.0.Final.jar;
       C:\development\tools\maven\repository\org\jboss\spec\javax\resource\jboss-connector-api_1.5_spec\1.0.0.Final\jboss-connector-api_1.5_spec-1.0.0.Final.jar;
       C:\development\tools\maven\repository\org\jboss\spec\javax\ejb\jboss-ejb-api_3.1_spec\1.0.0.Final\jboss-ejb-api_3.1_spec-1.0.0.Final.jar;
       C:\development\tools\maven\repository\javax\xml\jaxrpc-api\1.1\jaxrpc-api-1.1.jar;
       C:\development\tools\maven\repository\org\jboss\spec\javax\el\jboss-el-api_2.2_spec\1.0.0.Final\jboss-el-api_2.2_spec-1.0.0.Final.jar;
       C:\development\tools\maven\repository\org\jboss\spec\javax\interceptor\jboss-interceptors-api_1.1_spec\1.0.0.Final\jboss-interceptors-api_1.1_spec-1.0.0.Final.jar;
       C:\development\tools\maven\repository\org\jboss\spec\javax\security\jacc\jboss-jacc-api_1.4_spec\1.0.0.Final\jboss-jacc-api_1.4_spec-1.0.0.Final.jar;
       C:\development\tools\maven\repository\org\jboss\spec\javax\enterprise\deploy\jboss-jad-api_1.2_spec\1.0.0.Final\jboss-jad-api_1.2_spec-1.0.0.Final.jar;
       C:\development\tools\maven\repository\org\jboss\spec\javax\security\auth\message\jboss-jaspi-api_1.0_spec\1.0.0.Final\jboss-jaspi-api_1.0_spec-1.0.0.Final.jar;
       C:\development\tools\maven\repository\org\jboss\spec\javax\xml\registry\jboss-jaxr-api_1.0_spec\1.0.0.Final\jboss-jaxr-api_1.0_spec-1.0.0.Final.jar;
       C:\development\tools\maven\repository\org\jboss\spec\javax\jms\jboss-jms-api_1.1_spec\1.0.0.Final\jboss-jms-api_1.1_spec-1.0.0.Final.jar;
       C:\development\tools\maven\repository\org\jboss\spec\javax\servlet\jsp\jboss-jsp-api_2.2_spec\1.0.0.Final\jboss-jsp-api_2.2_spec-1.0.0.Final.jar;
       C:\development\tools\maven\repository\org\jboss\spec\javax\servlet\jboss-servlet-api_3.0_spec\1.0.0.Final\jboss-servlet-api_3.0_spec-1.0.0.Final.jar;
       C:\development\tools\maven\repository\org\jboss\spec\javax\transaction\jboss-transaction-api_1.1_spec\1.0.0.Final\jboss-transaction-api_1.1_spec-1.0.0.Final.jar;
       C:\development\tools\maven\repository\org\jboss\spec\javax\xml\bind\jboss-jaxb-api_2.2_spec\1.0.0.Final\jboss-jaxb-api_2.2_spec-1.0.0.Final.jar;
       C:\development\tools\maven\repository\org\jboss\spec\javax\xml\rpc\jboss-jaxrpc-api_1.1_spec\1.0.0.Final\jboss-jaxrpc-api_1.1_spec-1.0.0.Final.jar;
       C:\development\tools\maven\repository\org\jboss\spec\javax\xml\soap\jboss-saaj-api_1.3_spec\1.0.0.Final\jboss-saaj-api_1.3_spec-1.0.0.Final.jar;
       C:\development\tools\maven\repository\org\jboss\spec\javax\xml\ws\jboss-jaxws-api_2.2_spec\1.0.0.Final\jboss-jaxws-api_2.2_spec-1.0.0.Final.jar;
       C:\development\tools\maven\repository\javax\activation\activation\1.1\activation-1.1.jar;
       C:\development\tools\maven\repository\javax\enterprise\cdi-api\1.0-SP4\cdi-api-1.0-SP4.jar;
       C:\development\tools\maven\repository\com\sun\faces\jsf-api\2.0.3-b05\jsf-api-2.0.3-b05.jar;
       C:\development\tools\maven\repository\javax\inject\javax.inject\1\javax.inject-1.jar;
       C:\development\tools\maven\repository\javax\jws\jsr181-api\1.0-MR1\jsr181-api-1.0-MR1.jar;
       C:\development\tools\maven\repository\javax\mail\mail\1.4.2\mail-1.4.2.jar;
       C:\development\tools\maven\repository\javax\servlet\jstl\1.2\jstl-1.2.jar;
       C:\development\tools\maven\repository\org\hibernate\javax\persistence\hibernate-jpa-2.0-api\1.0.0.Final\hibernate-jpa-2.0-api-1.0.0.Final.jar;
       C:\development\tools\maven\repository\org\jboss\resteasy\jaxrs-api\2.1.0.GA\jaxrs-api-2.1.0.GA.jar;C:\development\tools\maven\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;
       C:\development\tools\maven\repository\javax\validation\validation-api\1.0.0.GA\validation-api-1.0.0.GA.jar;
       C:\development\tools\maven\repository\org\dbunit\dbunit\2.4.8\dbunit-2.4.8.jar;
       C:\development\tools\maven\repository\org\slf4j\slf4j-api\1.5.6\slf4j-api-1.5.6.jar;
       C:\development\tools\maven\repository\commons-collections\commons-collections\3.2.1\commons-collections-3.2.1.jar;
       C:\development\tools\maven\repository\junit\junit\4.8.2\junit-4.8.2.jar;
       C:\development\tools\maven\repository\org\apache\poi\poi-ooxml\3.7\poi-ooxml-3.7.jar;
       C:\development\tools\maven\repository\org\apache\poi\poi\3.7\poi-3.7.jar;
       C:\development\tools\maven\repository\org\apache\poi\poi-ooxml-schemas\3.7\poi-ooxml-schemas-3.7.jar;
       C:\development\tools\maven\repository\org\apache\xmlbeans\xmlbeans\2.3.0\xmlbeans-2.3.0.jar;
       C:\development\tools\maven\repository\org\apache\geronimo\specs\geronimo-stax-api_1.0_spec\1.0\geronimo-stax-api_1.0_spec-1.0.jar;
       C:\development\tools\maven\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar;
       C:\development\tools\maven\repository\xml-apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar;
       C:\development\tools\maven\repository\org\apache\derby\derbyclient\10.7.1.1\derbyclient-10.7.1.1.jar;
       C:\development\tools\maven\repository\org\slf4j\slf4j-jdk14\1.5.5\slf4j-jdk14-1.5.5.jar;
       C:\development\tools\maven\repository\org\jboss\embedded\jboss-embedded-all\beta3.SP10\jboss-embedded-all-beta3.SP10.jar;
       C:\development\tools\maven\repository\org\jboss\embedded\jboss-embedded\beta3.SP10\jboss-embedded-beta3.SP10.jar;
       C:\development\tools\maven\repository\org\jboss\microcontainer\jboss-deployers-client-spi\2.0.0.Beta6\jboss-deployers-client-spi-2.0.0.Beta6.jar;
       C:\development\tools\maven\repository\org\jboss\microcontainer\jboss-deployers-core-spi\2.0.0.Beta6\jboss-deployers-core-spi-2.0.0.Beta6.jar;
       /C:/development/tools/eclipse/configuration/org.eclipse.osgi/bundles/317/1/.cp/;
       /C:/development/tools/eclipse/configuration/org.eclipse.osgi/bundles/315/1/.cp/;
       /C:/development/tools/eclipse/configuration/org.eclipse.osgi/bundles/316/1/.cp/ org.eclipse.jdt.internal.junit.runner.RemoteTestRunner -version 3 
       -port 58990 -testLoaderClass org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader 
       -loaderpluginname org.eclipse.jdt.junit4.runtime -classNames de.xyz.Monitor.unittest.MonitorTestSuite
      

       

      Any ideas?

       

      Thank you