Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-714

Required dependency to commons-logging is not declared.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0-beta-1
    • 3.0-beta-2
    • None
    • None

    Description

      I have creates a simple ejb test based on the "Embedded and Remotable" example [1]. Per the documentation the only dependency for OpenEJB is openejb-ejbd. I get the following stack trace unless I add commons-logging.
      FATAL - OpenEJB has encountered a fatal error and cannot be started: The Assembler encountered an unexpected error while attempting to build the container system
      java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
      at org.apache.geronimo.transaction.manager.TransactionManagerImpl.<clinit>(TransactionManagerImpl.java:42)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:242)
      at org.apache.xbean.recipe.ObjectRecipe.getType(ObjectRecipe.java:259)
      at org.apache.xbean.recipe.ObjectRecipe.create(ObjectRecipe.java:166)
      at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:28)
      at org.apache.openejb.assembler.classic.Assembler.createTransactionManager(Assembler.java:950)
      at org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:279)
      at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:207)
      at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:149)
      at org.apache.openejb.OpenEJB.init(OpenEJB.java:293)
      at org.apache.openejb.OpenEJB.init(OpenEJB.java:272)
      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:585)
      at org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)
      at org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:59)
      at org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:45)
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
      at javax.naming.InitialContext.init(InitialContext.java:223)
      at javax.naming.InitialContext.<init>(InitialContext.java:197)
      at com.foo.helloworld.company.beans.CompanyAdminBeanEjbTest.setUp(CompanyAdminBeanEjbTest.java:56)
      at junit.framework.TestCase.runBare(TestCase.java:125)
      at junit.framework.TestResult$1.protect(TestResult.java:106)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.framework.TestResult.run(TestResult.java:109)
      at junit.framework.TestCase.run(TestCase.java:118)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      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:585)
      at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
      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:585)
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
      Tests run: 6, Failures: 3, Errors: 3, Skipped: 0, Time elapsed: 10.25 sec <<< FAILURE!

      [1] http://openejb.apache.org/embedded-and-remotable.html

      Attachments

        Activity

          People

            dblevins David Blevins
            paulsp Paul Spencer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: