Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-2188

Deploying EJB app with docker TomEE image

    XMLWordPrintableJSON

Details

    • Patch, Important

    Description

      I have an EJB application that is currently deployed on TomEE 1.7.4 with OpenJDK 7. I'm trying to deploy it within docker container so I used tomee:7-jre-1.7.4-plume docker image to create my own image in order to add some extra Jar files within TomEE lib folder such as hibernate-jpa-2.1-api:1.0.0.Final.

      The unexpected behavior: It seems that the application can't reconize the Jar files that I added to TomEE lib folder.

      I even replaced TomEE folder within docker with a TomEE server that contain the exact same app working perfectly and I installed the same exact OpenJDK version with no luck.

      Note: The Jar files that I added within TomEE lib folder are reconized by the application, because I had some errors that has been solved after adding those Jar files.

      The error log

       

      SEVERE: ContainerBase.removeChild: destroy: org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_destroy]) for component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/myApp]] in state [STARTING_PREP] at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:401) SEVERE: Unable to deploy collapsed ear in war StandardEngine[Catalina].StandardHost[localhost].StandardContext[/myApp] org.apache.openejb.OpenEJBException: Creating application failed: /usr/local/tomee/webapps/myApp: javax.persistence.Table.indexes()[Ljavax/persistence/Index; at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:843)

       

      List of Jar added to TomEE lib folder:

      mysql:mysql-connector-java:5.1.22
      org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.0.Final
      org.hibernate:hibernate-entitymanager:4.3.9.Final
      org.hibernate:hibernate-core:4.3.9.Final
      org.hibernate.common:hibernate-commons-annotations:4.0.5.Final
      org.jboss:jandex:1.1.0.Final
      org.jboss.logging:jboss-logging:3.1.3.GA
      org.javassist:javassist:3.18.1-GA
      antlr:antlr:2.7.7
      dom4j:dom4j:1.6.1 

      Although, I tried to deploy other apps within this docker image and every think works as expected.

      Any kind of help would be appreciated, Thanks.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ziedYaich zied yaich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: