Hi Ralph, I haven't seen this exact issue before but I have a couple of questions:
1) Did you try removing docker from the setup to validate if this is related to the docker image? This means deploying your application using tar/zip file TomEE M3 distribution intead of docker container. 2) Did you try the above step but using Java 8 instead of Java 11 used by the TomEE docker image? 3) When you wrote "TomEE 8.0.0-M2/M3 on Docker official image" does this means TomEE 8.0.0-M1 Docker image works without issues? El vie., 2 ago. 2019 a las 11:52, Ralph Soika (<[email protected]>) escribió: > Hi, > > I am running TomEE 8.0.0-M2/M3 on Docker official image. And I try to > deploy my Java EE application with a docker file like this: > > FROM tomee:11-jre-8.0.0-M3-microprofile > COPY ./src/docker/configuration/tomee/eclipselink.jar /usr/local/tomee/lib > COPY ./src/docker/configuration/tomee/postgresql-9.4.1212.jar > /usr/local/tomee/lib > COPY ./src/docker/configuration/tomee/tomee.xml /usr/local/tomee/conf > COPY ./target/imixs-jsf-example-*.war /usr/local/tomee/webapps/ > > I think the configuration is fine and my DataSource resource is correct > and successful connected. > > But during deployment TomEE throws the following kind of exceptions: > > > .....SEVERE [main] jdk.internal.reflect.NativeMethodAccessorImpl.invoke > Error destroying child > imixssample-app_1 | org.apache.catalina.LifecycleException: An > invalid Lifecycle transition was attempted ([before_destroy]) for > component > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/imixs-jsf-example-5.0.0]] > > in state [STARTING_PREP] > > ...... > > ....SEVERE [main] > org.apache.openejb.assembler.classic.Assembler.destroyApplication > undeployException original cause > imixssample-app_1 | java.lang.Exception: deployment not found: > ModelService > > ..... > > .....Exception Description: Predeployment of PersistenceUnit > [org.imixs.workflow.jpa] failed. > imixssample-app_1 | Internal Exception: java.lang.RuntimeException: > java.nio.file.NoSuchFileException: > > /usr/local/tomee/webapps/imixs-jsf-example-5.0.0/WEB-INF/classes/lib/imixs-workflow-engine-5.0.3.jar > > > The strange thing which I do not understand is the NoSuchFileException > in the directory ../WEB-INF/classes/lib/* > > All jars containing the JPA Entity Classes are available on > ../WEB-INF/lib/* > > Why does my TomEE try to lookup the jar files under /WEB-INF/classes/lib/ > ?? > > I think this is the wrong location. > > Can any body give me a hint what TomEE tries to do during my deployment. > > My Application contains EJBs, JPA and Microprofile Classes. And I am > using PostgreSQL with EclipseLink > > > Thanks for any help > > > === > Ralph > > -- Atentamente: César Hernández.
