JBOSS to TomEE migration

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

JBOSS to TomEE migration

chilu49
I am trying to deploy an EAR file which is already running in JBOSS in TomEE but its giving below error while starting up. I have already placed all required JAR's in <tomeehomedir>/lib/ directory.

Red Hat Enterprise Linux Server release 7.3
apache-tomee-1.7.4-plume
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)

INFO: Configuring enterprise application: /opt/tomee/apache-tomee-plume-sponsorships-new/webapps/Sponsorships-ear
Jul 18, 2017 8:13:22 AM org.apache.openejb.config.InitEjbDeployments deploy
INFO: Auto-deploying ejb SponsorshipSessionBean: EjbDeployment(deployment-id=SponsorshipSessionBean)
Jul 18, 2017 8:13:22 AM org.apache.openejb.config.AutoConfig deploy
INFO: Configuring PersistenceUnit(name=SponsorshipsJTA, provider=org.hibernate.ejb.HibernatePersistence)
Jul 18, 2017 8:13:22 AM org.apache.openejb.config.AutoConfig logAutoCreateResource
INFO: Auto-creating a Resource with id 'jdbc/SponsorshipsDSNonJta' of type 'DataSource for 'SponsorshipsJTA'.
Jul 18, 2017 8:13:22 AM org.apache.openejb.config.AutoConfig deploy
INFO: Configuring Service(id=jdbc/SponsorshipsDSNonJta, type=Resource, provider-id=jdbc/SponsorshipsDS)
Jul 18, 2017 8:13:22 AM org.apache.openejb.assembler.classic.Assembler createRecipe
INFO: Creating Resource(id=jdbc/SponsorshipsDSNonJta)
Jul 18, 2017 8:13:22 AM org.apache.tomee.jdbc.TomEEDataSourceCreator$TomEEDataSource readOnly
INFO: Disabling testOnBorrow since no validation query is provided
Jul 18, 2017 8:13:22 AM org.apache.openejb.config.AutoConfig setJtaDataSource
INFO: Adjusting PersistenceUnit SponsorshipsJTA <jta-data-source> to Resource ID 'jdbc/SponsorshipsDS' from '/jdbc/SponsorshipsDS'
Jul 18, 2017 8:13:22 AM org.apache.openejb.config.AutoConfig setNonJtaDataSource
INFO: Adjusting PersistenceUnit SponsorshipsJTA <non-jta-data-source> to Resource ID 'jdbc/SponsorshipsDSNonJta' from 'null'
Jul 18, 2017 8:13:22 AM org.apache.openejb.config.AppInfoBuilder build
INFO: Enterprise application "/opt/tomee/apache-tomee-plume-sponsorships-new/webapps/Sponsorships-ear" loaded.
Jul 18, 2017 8:13:22 AM org.apache.openejb.assembler.classic.Assembler createApplication
INFO: Assembling app: /opt/tomee/apache-tomee-plume-sponsorships-new/webapps/Sponsorships-ear
Jul 18, 2017 8:13:22 AM org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory createDelegate
INFO: PersistenceUnit(name=SponsorshipsJTA, provider=org.hibernate.ejb.HibernatePersistence) - provider time 12ms
Jul 18, 2017 8:13:22 AM org.apache.openejb.assembler.classic.Assembler destroyApplication
INFO: Undeploying app: /opt/tomee/apache-tomee-plume-sponsorships-new/webapps/Sponsorships-ear
Jul 18, 2017 8:13:22 AM org.apache.tomee.catalina.TomcatWebAppBuilder startInternal
SEVERE: Unable to deploy collapsed ear in war StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Sponsorships-ear]
org.apache.openejb.OpenEJBException: Creating application failed: /opt/tomee/apache-tomee-plume-sponsorships-new/webapps/Sponsorships-ear: org/dom4j/DocumentException
        at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:843)
        at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:677)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1261)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1100)
        at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1259)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1998)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: org/dom4j/DocumentException
        at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:130)
        at org.apache.openejb.assembler.classic.EntityManagerFactoryCallable.call(EntityManagerFactoryCallable.java:64)
        at org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.createDelegate(ReloadableEntityManagerFactory.java:116)
        at org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.<init>(ReloadableEntityManagerFactory.java:102)
        at org.apache.openejb.assembler.classic.PersistenceBuilder.createEntityManagerFactory(PersistenceBuilder.java:154)
        at org.apache.openejb.assembler.classic.Assembler.loadPersistenceUnits(Assembler.java:982)
        at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:741)
        ... 18 more
Caused by: java.lang.ClassNotFoundException: org.dom4j.DocumentException
        at org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:176)
        at org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:80)
        ... 25 more

Jul 18, 2017 8:13:22 AM org.apache.catalina.core.ContainerBase removeChild
SEVERE: ContainerBase.removeChild: destroy:
org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_destroy]) for component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Sponsorships-ear]] in state [STARTING_PREP]
        at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:401)
        at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:291)
        at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1038)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:1537)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:1518)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1267)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1100)
        at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1259)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1998)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

Jul 18, 2017 8:13:22 AM org.apache.catalina.core.ContainerBase addChildInternal
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Sponsorships-ear]]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1259)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1998)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.tomee.catalina.TomEERuntimeException: org.apache.openejb.OpenEJBException: Creating application failed: /opt/tomee/apache-tomee-plume-sponsorships-new/webapps/Sponsorships-ear: org/dom4j/DocumentException
        at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1270)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1100)
        at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
        ... 10 more
Caused by: org.apache.openejb.OpenEJBException: Creating application failed: /opt/tomee/apache-tomee-plume-sponsorships-new/webapps/Sponsorships-ear: org/dom4j/DocumentException
        at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:843)
        at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:677)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1261)
        ... 16 more
Caused by: java.lang.NoClassDefFoundError: org/dom4j/DocumentException
        at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:130)
        at org.apache.openejb.assembler.classic.EntityManagerFactoryCallable.call(EntityManagerFactoryCallable.java:64)
        at org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.createDelegate(ReloadableEntityManagerFactory.java:116)
        at org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.<init>(ReloadableEntityManagerFactory.java:102)
        at org.apache.openejb.assembler.classic.PersistenceBuilder.createEntityManagerFactory(PersistenceBuilder.java:154)
        at org.apache.openejb.assembler.classic.Assembler.loadPersistenceUnits(Assembler.java:982)
        at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:741)
        ... 18 more
Caused by: java.lang.ClassNotFoundException: org.dom4j.DocumentException
        at org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:176)
        at org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:80)
        ... 25 more

Jul 18, 2017 8:13:22 AM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory /opt/tomee/apache-tomee-plume-sponsorships-new/webapps/Sponsorships-ear
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Sponsorships-ear]]
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1259)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1998)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

Jul 18, 2017 8:13:22 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /opt/tomee/apache-tomee-plume-sponsorships-new/webapps/Sponsorships-ear has finished in 3,961 ms
Jul 18, 2017 8:13:23 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8016"]
Jul 18, 2017 8:13:23 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8018"]
Jul 18, 2017 8:13:23 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4909 ms
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: JBOSS to TomEE migration

jayleg
My guess is that the jar containing " org/dom4j/DocumentException" was likely provided by JBoss.  You will need to locate the jar and add it to your TomEE classpath.

-----Original Message-----
From: chilu49 [mailto:[hidden email]]
Sent: Tuesday, July 18, 2017 10:08 AM
To: [hidden email]
Subject: JBOSS to TomEE migration

I am trying to deploy an EAR file which is already running in JBOSS in TomEE but its giving below error while starting up. I have already placed all required JAR's in <tomeehomedir>/lib/ directory.

Red Hat Enterprise Linux Server release 7.3 apache-tomee-1.7.4-plume
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)

INFO: Configuring enterprise application:
/opt/tomee/apache-tomee-plume-sponsorships-new/webapps/Sponsorships-ear
Jul 18, 2017 8:13:22 AM org.apache.openejb.config.InitEjbDeployments deploy
INFO: Auto-deploying ejb SponsorshipSessionBean:
EjbDeployment(deployment-id=SponsorshipSessionBean)
Jul 18, 2017 8:13:22 AM org.apache.openejb.config.AutoConfig deploy
INFO: Configuring PersistenceUnit(name=SponsorshipsJTA,
provider=org.hibernate.ejb.HibernatePersistence)
Jul 18, 2017 8:13:22 AM org.apache.openejb.config.AutoConfig
logAutoCreateResource
INFO: Auto-creating a Resource with id 'jdbc/SponsorshipsDSNonJta' of type 'DataSource for 'SponsorshipsJTA'.
Jul 18, 2017 8:13:22 AM org.apache.openejb.config.AutoConfig deploy
INFO: Configuring Service(id=jdbc/SponsorshipsDSNonJta, type=Resource,
provider-id=jdbc/SponsorshipsDS)
Jul 18, 2017 8:13:22 AM org.apache.openejb.assembler.classic.Assembler
createRecipe
INFO: Creating Resource(id=jdbc/SponsorshipsDSNonJta)
Jul 18, 2017 8:13:22 AM
org.apache.tomee.jdbc.TomEEDataSourceCreator$TomEEDataSource readOnly
INFO: Disabling testOnBorrow since no validation query is provided Jul 18, 2017 8:13:22 AM org.apache.openejb.config.AutoConfig
setJtaDataSource
INFO: Adjusting PersistenceUnit SponsorshipsJTA <jta-data-source> to Resource ID 'jdbc/SponsorshipsDS' from '/jdbc/SponsorshipsDS'
Jul 18, 2017 8:13:22 AM org.apache.openejb.config.AutoConfig
setNonJtaDataSource
INFO: Adjusting PersistenceUnit SponsorshipsJTA <non-jta-data-source> to Resource ID 'jdbc/SponsorshipsDSNonJta' from 'null'
Jul 18, 2017 8:13:22 AM org.apache.openejb.config.AppInfoBuilder build
INFO: Enterprise application
"/opt/tomee/apache-tomee-plume-sponsorships-new/webapps/Sponsorships-ear"
loaded.
Jul 18, 2017 8:13:22 AM org.apache.openejb.assembler.classic.Assembler
createApplication
INFO: Assembling app:
/opt/tomee/apache-tomee-plume-sponsorships-new/webapps/Sponsorships-ear
Jul 18, 2017 8:13:22 AM
org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory
createDelegate
INFO: PersistenceUnit(name=SponsorshipsJTA,
provider=org.hibernate.ejb.HibernatePersistence) - provider time 12ms Jul 18, 2017 8:13:22 AM org.apache.openejb.assembler.classic.Assembler
destroyApplication
INFO: Undeploying app:
/opt/tomee/apache-tomee-plume-sponsorships-new/webapps/Sponsorships-ear
Jul 18, 2017 8:13:22 AM org.apache.tomee.catalina.TomcatWebAppBuilder
startInternal
SEVERE: Unable to deploy collapsed ear in war StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Sponsorships-ear]
org.apache.openejb.OpenEJBException: Creating application failed:
/opt/tomee/apache-tomee-plume-sponsorships-new/webapps/Sponsorships-ear:
org/dom4j/DocumentException
        at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:843)
        at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:677)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1261)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1100)
        at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)
        at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1259)
        at
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1998)
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: org/dom4j/DocumentException
        at
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:130)
        at
org.apache.openejb.assembler.classic.EntityManagerFactoryCallable.call(EntityManagerFactoryCallable.java:64)
        at
org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.createDelegate(ReloadableEntityManagerFactory.java:116)
        at
org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.<init>(ReloadableEntityManagerFactory.java:102)
        at
org.apache.openejb.assembler.classic.PersistenceBuilder.createEntityManagerFactory(PersistenceBuilder.java:154)
        at
org.apache.openejb.assembler.classic.Assembler.loadPersistenceUnits(Assembler.java:982)
        at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:741)
        ... 18 more
Caused by: java.lang.ClassNotFoundException: org.dom4j.DocumentException
        at
org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:176)
        at
org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:80)
        ... 25 more

Jul 18, 2017 8:13:22 AM org.apache.catalina.core.ContainerBase removeChild
SEVERE: ContainerBase.removeChild: destroy:
org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_destroy]) for component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Sponsorships-ear]]
in state [STARTING_PREP]
        at
org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:401)
        at
org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:291)
        at
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1038)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:1537)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:1518)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1267)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1100)
        at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)
        at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1259)
        at
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1998)
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

Jul 18, 2017 8:13:22 AM org.apache.catalina.core.ContainerBase
addChildInternal
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Sponsorships-ear]]
        at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1259)
        at
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1998)
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.tomee.catalina.TomEERuntimeException:
org.apache.openejb.OpenEJBException: Creating application failed:
/opt/tomee/apache-tomee-plume-sponsorships-new/webapps/Sponsorships-ear:
org/dom4j/DocumentException
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1270)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1100)
        at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)
        at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
        ... 10 more
Caused by: org.apache.openejb.OpenEJBException: Creating application failed:
/opt/tomee/apache-tomee-plume-sponsorships-new/webapps/Sponsorships-ear:
org/dom4j/DocumentException
        at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:843)
        at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:677)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1261)
        ... 16 more
Caused by: java.lang.NoClassDefFoundError: org/dom4j/DocumentException
        at
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:130)
        at
org.apache.openejb.assembler.classic.EntityManagerFactoryCallable.call(EntityManagerFactoryCallable.java:64)
        at
org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.createDelegate(ReloadableEntityManagerFactory.java:116)
        at
org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.<init>(ReloadableEntityManagerFactory.java:102)
        at
org.apache.openejb.assembler.classic.PersistenceBuilder.createEntityManagerFactory(PersistenceBuilder.java:154)
        at
org.apache.openejb.assembler.classic.Assembler.loadPersistenceUnits(Assembler.java:982)
        at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:741)
        ... 18 more
Caused by: java.lang.ClassNotFoundException: org.dom4j.DocumentException
        at
org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:176)
        at
org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:80)
        ... 25 more

Jul 18, 2017 8:13:22 AM org.apache.catalina.startup.HostConfig
deployDirectory
SEVERE: Error deploying web application directory /opt/tomee/apache-tomee-plume-sponsorships-new/webapps/Sponsorships-ear
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Sponsorships-ear]]
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1259)
        at
org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1998)
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

Jul 18, 2017 8:13:22 AM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deployment of web application directory /opt/tomee/apache-tomee-plume-sponsorships-new/webapps/Sponsorships-ear has finished in 3,961 ms Jul 18, 2017 8:13:23 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8016"] Jul 18, 2017 8:13:23 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8018"] Jul 18, 2017 8:13:23 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4909 ms




--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/JBOSS-to-TomEE-migration-tp4682280.html
Sent from the TomEE Users mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: JBOSS to TomEE migration

chilu49
Thanks jayleg for pointing me right direction.
The JAR "dom4j.jar" was missing and when I placed it in lib directory of TomEE home the error vanished.
Though I am facing other issues now, the issue in this post is now addressed.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: JBOSS to TomEE migration

Jean-Louis MONTEIRO
Feel free to post any stacktrace if you need

--
Jean-Louis Monteiro
http://twitter.com/jlouismonteiro
http://www.tomitribe.com

On Tue, Jul 18, 2017 at 6:33 PM, chilu49 <[hidden email]> wrote:

> Thanks jayleg for pointing me right direction.
> The JAR "dom4j.jar" was missing and when I placed it in lib directory of
> TomEE home the error vanished.
> Though I am facing other issues now, the issue in this post is now
> addressed.
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/JBOSS-to-TomEE-migration-tp4682280p4682282.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>
   --
    Jean-Louis Monteiro
    http://twitter.com/jlouismonteiro
    http://www.tomitribe.com
Loading...