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:
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.