4 Replies Latest reply on Dec 17, 2012 5:47 AM by Bartosz Majsak

    java.lang.NoSuchMethodError: org.apache.commons.logging.impl.Log4JLogger.<init>(Lorg/apache/log4j/Logger;)V

    Matti Linnanvuori Newbie

      It seems to me that Arquillian persistence and my installation of JBossAS [6.1.0.Final "Neo"] are incompatible.

      Both Arquillian persistence and my installation of have StaticLoggerBinder.class.

      I have the following Arquillian persistence 1.0.0.Alpha5 dependency in my ivy.xml file:



      <dependency org="org.jboss.arquillian.extension" name="arquillian-persistence-impl"



      rev="1.0.0.Alpha5" />

      Any ideas how to solve that?

       

      I got the following log entries:

      23.10 15:28:52,961 ERROR [STDERR] (WorkerThread#0[127.0.0.1:36825]:) SLF4J: Class path contains multiple SLF4J bindings.

      23.10 15:28:52,961 ERROR [STDERR] (WorkerThread#0[127.0.0.1:36825]:) SLF4J: Found binding in [vfs:/opt/ecolane/jboss6/common/lib/slf4j-jboss-logmanager.jar/org/slf4j/impl/StaticLoggerBinder.class]

      23.10 15:28:52,961 ERROR [STDERR] (WorkerThread#0[127.0.0.1:36825]:) SLF4J: Found binding in [vfs:/opt/ecolane/jboss6/server/default/deploy/496f91d1-231f-4f34-bbf7-c6e8a120771e.ear/lib/arquillian-persistence.jar/org/slf4j/impl/StaticLoggerBinder.class]

      23.10 15:28:52,961 ERROR [STDERR] (WorkerThread#0[127.0.0.1:36825]:) SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

      23.10 15:28:52,962 ERROR [STDERR] (WorkerThread#0[127.0.0.1:36825]:) SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]

      23.10 15:28:52,992 ERROR [STDERR] (WorkerThread#0[127.0.0.1:36825]:) log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).

      23.10 15:28:52,992 ERROR [STDERR] (WorkerThread#0[127.0.0.1:36825]:) log4j:WARN Please initialize the log4j system properly.

      23.10 15:28:52,992 ERROR [STDERR] (WorkerThread#0[127.0.0.1:36825]:) log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

      23.10 15:28:53,085 DEBUG [com.ecolane.mpk.scheduler.InitializerService] (WorkerThread#0[127.0.0.1:36825]:) no items seem to be missing from db configuration

      23.10 15:28:53,086 DEBUG [com.ecolane.mpk.scheduler.InitializerService] (WorkerThread#0[127.0.0.1:36825]:) loaded configuration data (145 milliseconds)

      23.10 15:28:53,086 INFO  [com.ecolane.mpk.scheduler.InitializerService] (WorkerThread#0[127.0.0.1:36825]:) binding resource (com.ecolane.k3.util.K3ConfigurationCache) to k3/production/configuration

      23.10 15:28:53,107 INFO  [com.ecolane.mpk.scheduler.InitializerService] (WorkerThread#0[127.0.0.1:36825]:) binding resource (com.ecolane.mpk.scheduler.SharedServices) to k3/production/sharedServices

      23.10 15:28:53,109 DEBUG [com.ecolane.mpk.scheduler.InitializerService] (WorkerThread#0[127.0.0.1:36825]:) XGATE connector is disabled

      23.10 15:28:53,117 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (WorkerThread#0[127.0.0.1:36825]:) Error installing to Start: name=k3:service=ProductionInitializerService state=Create mode=Manual requiredState=Installed: java.lang.NoSuchMethodError: org.apache.commons.logging.impl.Log4JLogger.<init>(Lorg/apache/log4j/Logger;)V

              at com.ecolane.mpk.vterm.VTermMessageHandler.<init>(VTermMessageHandler.java:117)

              at com.ecolane.mpk.avt.AvtMessageHandler.<init>(AvtMessageHandler.java:96)

              at com.ecolane.mpk.avt.AvtConnector.<init>(AvtConnector.java:60)

              at com.ecolane.mpk.scheduler.InitializerService.startService(InitializerService.java:120)

              at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:355)

              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:301)

              at sun.reflect.GeneratedMethodAccessor236.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670)

              at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)

              at $Proxy41.start(Unknown Source)

              at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:53)

              at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:41)

              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)

              at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301)

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)

              at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)

              at org.jboss.system.ServiceController.doChange(ServiceController.java:671)

              at org.jboss.system.ServiceController.start(ServiceController.java:443)

              at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:189)

              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:102)

              at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:49)

              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:63)

              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)

              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1603)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491)

              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)

              at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076)

              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679)

              at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106)

              at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143)

              at org.jboss.profileservice.plugins.deploy.actions.DeploymentStartAction.doPrepare(DeploymentStartAction.java:98)

              at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:101)

              at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87)

              at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234)

              at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213)

              at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150)

              at org.jboss.profileservice.plugins.deploy.AbstractDeployHandler.startDeployments(AbstractDeployHandler.java:168)

              at org.jboss.profileservice.management.upload.remoting.DeployHandlerDelegate.startDeployments(DeployHandlerDelegate.java:74)

              at org.jboss.profileservice.management.upload.remoting.DeployHandler.invoke(DeployHandler.java:156)

              at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967)

              at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)

              at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)

              at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)

              at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)