0

I am trying to use Kundera with Tomee. After giving Kundera dependency I am getting below error.

Nov 11, 2016 12:13:58 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[/tomee-start-example-1.0.0-SNAPSHOT]] in state [STARTING_PREP]
at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:409)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:299)
at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)
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.undeployWebApps(TomcatWebAppBuilder.java:762)

I have give below dependency in pom

<dependency>
   <groupId>com.impetus.kundera.client</groupId>
   <artifactId>kundera-cassandra</artifactId>
   <version>3.6</version>
 </dependency>
Dev
  • 13,492
  • 19
  • 81
  • 174
Raj
  • 115
  • 8
  • this information is insufficient to debug the issue. Share more details of the project. Is there ant Kundera related errors in the log? – Dev Nov 11 '16 at 09:01
  • Service was working fine until this Kundera dependency added. Should I exclude JPA related dependency ? There is no Kundera related error in the log – Raj Nov 11 '16 at 09:12
  • More information is needed to debug this. I may need sample project. I am from team Kundera. We can discuss this issue at [Kundera chat](https://gitter.im/impetus-opensource/Kundera) – Dev Nov 11 '16 at 09:34

1 Answers1

0

Before

Nov 11, 2016 12:13:58 AM org.apache.catalina.core.ContainerBase removeChild
SEVERE: ContainerBase.removeChild: destroy: 

You have the actual exception giving you why it failed.

I suspect you have some library conflicts due to kundera transitive dependencies (take care it is very huge and you need to exclude a bunch of them when not in plain SE standalone mode, at least javax APIs).

Romain Manni-Bucau
  • 3,354
  • 1
  • 16
  • 13