You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "zied yaich (JIRA)" <ji...@apache.org> on 2018/04/21 19:03:00 UTC
[jira] [Created] (TOMEE-2188) Deploying EJB app with docker TomEE
image
zied yaich created TOMEE-2188:
---------------------------------
Summary: Deploying EJB app with docker TomEE image
Key: TOMEE-2188
URL: https://issues.apache.org/jira/browse/TOMEE-2188
Project: TomEE
Issue Type: Bug
Components: Compliance Checks, TomEE Build, TomEE Maven Plugin
Affects Versions: 1.7.4
Environment: Docker
Reporter: zied yaich
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*
{code:java}
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){code}
*List of Jar added to TomEE lib folder:*
{code:java}
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 {code}
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)