Can't get TomEE running

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
19 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't get TomEE running

karlkilden
Hello!

I can't get TomEE running. I thought it was related to hibernate first so I removed it from classpath but that didn't change anything.

I ran the project fine before with Tomcat 7 and weld (removed weld from claspath too).

expected=org.apache.openejb.spi.SecurityService
actual=org.apache.tomee.catalina.TomcatSecurityService


Weird imo. I tried to search for it found someone with the problem but no answers.

Also, Unable to deploy collapsed ear in war? Im not sure what's going on.

I also don't understand why OpenEJB seems to have a depedency to OpenWebBeans-impl rather then JSR-299 api? I was pretty happy with weld.

Well I hope I get this going I appreciate this project and I would love to eventually have a full blown apache stack but I (or rather our dev team) needs steps. We always switch one thing at the time so any errors can be isolated easier.

Cheers

SEVERE: Unable to deploy collapsed ear in war StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]
org.apache.xbean.recipe.ConstructionException: Invalid and non-convertable constructor parameter type: name=securityService, index=1, expected=org.apache.openejb.spi.SecurityService, actual=org.apache.tomee.catalina.TomcatSecurityService
        at org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:586)
        at org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:275)
        at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
        at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
        at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
        at org.apache.openejb.assembler.classic.Assembler.createContainer(Assembler.java:1505)
        at org.apache.openejb.config.ConfigurationFactory.install(ConfigurationFactory.java:389)
        at org.apache.openejb.config.AutoConfig.createContainer(AutoConfig.java:1059)
        at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:818)
        at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:186)
        at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:363)
        at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:850)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:791)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
        at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)

okt 18, 2012 8:13:04 EM 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[/voteweb]] in state [STARTING_PREP]
        at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:408)
        at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:298)
        at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:977)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:956)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:797)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
        at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)

okt 18, 2012 8:13:04 EM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]]
        at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
        at java.util.concurrent.FutureTask.get(FutureTask.java:111)
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
        at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
        ... 7 more
Caused by: org.apache.tomee.catalina.TomEERuntimeException: org.apache.xbean.recipe.ConstructionException: Invalid and non-convertable constructor parameter type: name=securityService, index=1, expected=org.apache.openejb.spi.SecurityService, actual=org.apache.tomee.catalina.TomcatSecurityService
        at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:800)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
        at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        ... 7 more
Caused by: org.apache.xbean.recipe.ConstructionException: Invalid and non-convertable constructor parameter type: name=securityService, index=1, expected=org.apache.openejb.spi.SecurityService, actual=org.apache.tomee.catalina.TomcatSecurityService
        at org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:586)
        at org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:275)
        at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
        at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
        at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
        at org.apache.openejb.assembler.classic.Assembler.createContainer(Assembler.java:1505)
        at org.apache.openejb.config.ConfigurationFactory.install(ConfigurationFactory.java:389)
        at org.apache.openejb.config.AutoConfig.createContainer(AutoConfig.java:1059)
        at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:818)
        at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:186)
        at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:363)
        at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:850)
        at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:791)
        ... 13 more

okt 18, 2012 8:13:04 EM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
        at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
        at java.util.concurrent.FutureTask.get(FutureTask.java:111)
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
        at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:684)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
        at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
        at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        ... 7 more

okt 18, 2012 8:13:04 EM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:684)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        ... 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
        at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        ... 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
        at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        ... 11 more
Reply | Threaded
Open this post in threaded view
|

Re: Can't get TomEE running

Romain Manni-Bucau
Hi,

didn't you provide openejb in your webapp?

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*




2012/10/18 karlkilden <[hidden email]>

> Hello!
>
> I can't get TomEE running. I thought it was related to hibernate first so I
> removed it from classpath but that didn't change anything.
>
> I ran the project fine before with Tomcat 7 and weld (removed weld from
> claspath too).
>
> *expected=org.apache.openejb.spi.SecurityService
> actual=org.apache.tomee.catalina.TomcatSecurityService
> *
>
> Weird imo. I tried to search for it found someone with the problem but no
> answers.
>
> Also, Unable to deploy collapsed ear in war? Im not sure what's going on.
>
> I also don't understand why OpenEJB seems to have a depedency to
> OpenWebBeans-impl rather then JSR-299 api? I was pretty happy with weld.
>
> Well I hope I get this going I appreciate this project and I would love to
> eventually have a full blown apache stack but I (or rather our dev team)
> needs steps. We always switch one thing at the time so any errors can be
> isolated easier.
>
> Cheers
>
> SEVERE: Unable to deploy collapsed ear in war
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]
> org.apache.xbean.recipe.ConstructionException: Invalid and non-convertable
> constructor parameter type: name=securityService, index=1,
> expected=org.apache.openejb.spi.SecurityService,
> actual=org.apache.tomee.catalina.TomcatSecurityService
>         at
>
> org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:586)
>         at
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:275)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
>         at
>
> org.apache.openejb.assembler.classic.Assembler.createContainer(Assembler.java:1505)
>         at
>
> org.apache.openejb.config.ConfigurationFactory.install(ConfigurationFactory.java:389)
>         at
> org.apache.openejb.config.AutoConfig.createContainer(AutoConfig.java:1059)
>         at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:818)
>         at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:186)
>         at
>
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:363)
>         at
>
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:850)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:791)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
>         at
>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
>         at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>         at
>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>         at
>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
>         at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:722)
>
> okt 18, 2012 8:13:04 EM 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[/voteweb]]
> in state [STARTING_PREP]
>         at
>
> org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:408)
>         at
> org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:298)
>         at
> org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:977)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:956)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:797)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
>         at
>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
>         at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>         at
>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>         at
>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
>         at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:722)
>
> okt 18, 2012 8:13:04 EM org.apache.catalina.core.ContainerBase
> startInternal
> SEVERE: A child container failed during start
> java.util.concurrent.ExecutionException:
> org.apache.catalina.LifecycleException: Failed to start component
>
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]]
>         at
> java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
>         at java.util.concurrent.FutureTask.get(FutureTask.java:111)
>         at
>
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
>         at
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
>         at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:722)
> Caused by: org.apache.catalina.LifecycleException: Failed to start
> component
>
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]]
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>         ... 7 more
> Caused by: org.apache.tomee.catalina.TomEERuntimeException:
> org.apache.xbean.recipe.ConstructionException: Invalid and non-convertable
> constructor parameter type: name=securityService, index=1,
> expected=org.apache.openejb.spi.SecurityService,
> actual=org.apache.tomee.catalina.TomcatSecurityService
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:800)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
>         at
>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
>         at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>         at
>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>         at
>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         ... 7 more
> Caused by: org.apache.xbean.recipe.ConstructionException: Invalid and
> non-convertable constructor parameter type: name=securityService, index=1,
> expected=org.apache.openejb.spi.SecurityService,
> actual=org.apache.tomee.catalina.TomcatSecurityService
>         at
>
> org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:586)
>         at
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:275)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
>         at
>
> org.apache.openejb.assembler.classic.Assembler.createContainer(Assembler.java:1505)
>         at
>
> org.apache.openejb.config.ConfigurationFactory.install(ConfigurationFactory.java:389)
>         at
> org.apache.openejb.config.AutoConfig.createContainer(AutoConfig.java:1059)
>         at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:818)
>         at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:186)
>         at
>
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:363)
>         at
>
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:850)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:791)
>         ... 13 more
>
> okt 18, 2012 8:13:04 EM org.apache.catalina.core.ContainerBase
> startInternal
> SEVERE: A child container failed during start
> java.util.concurrent.ExecutionException:
> org.apache.catalina.LifecycleException: Failed to start component
> [StandardEngine[Catalina].StandardHost[localhost]]
>         at
> java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
>         at java.util.concurrent.FutureTask.get(FutureTask.java:111)
>         at
>
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
>         at
>
> org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
>
> org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
>
> org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:684)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:601)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
> Caused by: org.apache.catalina.LifecycleException: Failed to start
> component
> [StandardEngine[Catalina].StandardHost[localhost]]
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
>         at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:722)
> Caused by: org.apache.catalina.LifecycleException: A child container failed
> during start
>         at
>
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
>         at
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         ... 7 more
>
> okt 18, 2012 8:13:04 EM org.apache.catalina.startup.Catalina start
> SEVERE: Catalina.start:
> org.apache.catalina.LifecycleException: Failed to start component
> [StandardServer[8005]]
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:684)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:601)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
> Caused by: org.apache.catalina.LifecycleException: Failed to start
> component
> [StandardService[Catalina]]
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>         at
>
> org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         ... 7 more
> Caused by: org.apache.catalina.LifecycleException: Failed to start
> component
> [StandardEngine[Catalina]]
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>         at
>
> org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         ... 9 more
> Caused by: org.apache.catalina.LifecycleException: A child container failed
> during start
>         at
>
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
>         at
>
> org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         ... 11 more
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: Can't get TomEE running

karlkilden
Hello!

No I didn't. I got the expression I was supposed to not have any dependencies to the technology included in tomcat\lib of TomEE.

If  I need to add openEJB myself I don't really understand the benefit of TomEE?

Sorry if i'm being stupid : -) feels like im missing something here.

cheers

2012/10/18 Romain Manni-Bucau [via OpenEJB] <[hidden email]>
Hi,

didn't you provide openejb in your webapp?

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*




2012/10/18 karlkilden <[hidden email]>

> Hello!
>
> I can't get TomEE running. I thought it was related to hibernate first so I
> removed it from classpath but that didn't change anything.
>
> I ran the project fine before with Tomcat 7 and weld (removed weld from
> claspath too).
>
> *expected=org.apache.openejb.spi.SecurityService
> actual=org.apache.tomee.catalina.TomcatSecurityService
> *
>
> Weird imo. I tried to search for it found someone with the problem but no
> answers.
>
> Also, Unable to deploy collapsed ear in war? Im not sure what's going on.
>
> I also don't understand why OpenEJB seems to have a depedency to
> OpenWebBeans-impl rather then JSR-299 api? I was pretty happy with weld.
>
> Well I hope I get this going I appreciate this project and I would love to
> eventually have a full blown apache stack but I (or rather our dev team)
> needs steps. We always switch one thing at the time so any errors can be
> isolated easier.
>
> Cheers
>
> SEVERE: Unable to deploy collapsed ear in war
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]
> org.apache.xbean.recipe.ConstructionException: Invalid and non-convertable
> constructor parameter type: name=securityService, index=1,
> expected=org.apache.openejb.spi.SecurityService,
> actual=org.apache.tomee.catalina.TomcatSecurityService
>         at
>
> org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:586)
>         at
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:275)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
>         at
>
> org.apache.openejb.assembler.classic.Assembler.createContainer(Assembler.java:1505)
>         at
>
> org.apache.openejb.config.ConfigurationFactory.install(ConfigurationFactory.java:389)
>         at
> org.apache.openejb.config.AutoConfig.createContainer(AutoConfig.java:1059)
>         at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:818)
>         at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:186)
>         at
>
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:363)
>         at
>
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:850)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:791)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
>         at
>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
>         at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>         at
>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>         at
>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
>         at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:722)
>
> okt 18, 2012 8:13:04 EM 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[/voteweb]]
> in state [STARTING_PREP]
>         at
>
> org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:408)
>         at
> org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:298)
>         at
> org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:977)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:956)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:797)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
>         at
>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
>         at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>         at
>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>         at
>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
>         at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:722)
>
> okt 18, 2012 8:13:04 EM org.apache.catalina.core.ContainerBase
> startInternal
> SEVERE: A child container failed during start
> java.util.concurrent.ExecutionException:
> org.apache.catalina.LifecycleException: Failed to start component
>
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]]
>         at
> java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
>         at java.util.concurrent.FutureTask.get(FutureTask.java:111)
>         at
>
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
>         at
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
>         at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:722)
> Caused by: org.apache.catalina.LifecycleException: Failed to start
> component
>
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]]
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>         ... 7 more
> Caused by: org.apache.tomee.catalina.TomEERuntimeException:
> org.apache.xbean.recipe.ConstructionException: Invalid and non-convertable
> constructor parameter type: name=securityService, index=1,
> expected=org.apache.openejb.spi.SecurityService,
> actual=org.apache.tomee.catalina.TomcatSecurityService
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:800)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
>         at
>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
>         at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>         at
>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>         at
>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         ... 7 more
> Caused by: org.apache.xbean.recipe.ConstructionException: Invalid and
> non-convertable constructor parameter type: name=securityService, index=1,
> expected=org.apache.openejb.spi.SecurityService,
> actual=org.apache.tomee.catalina.TomcatSecurityService
>         at
>
> org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:586)
>         at
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:275)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
>         at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
>         at
>
> org.apache.openejb.assembler.classic.Assembler.createContainer(Assembler.java:1505)
>         at
>
> org.apache.openejb.config.ConfigurationFactory.install(ConfigurationFactory.java:389)
>         at
> org.apache.openejb.config.AutoConfig.createContainer(AutoConfig.java:1059)
>         at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:818)
>         at org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:186)
>         at
>
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:363)
>         at
>
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:850)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:791)
>         ... 13 more
>
> okt 18, 2012 8:13:04 EM org.apache.catalina.core.ContainerBase
> startInternal
> SEVERE: A child container failed during start
> java.util.concurrent.ExecutionException:
> org.apache.catalina.LifecycleException: Failed to start component
> [StandardEngine[Catalina].StandardHost[localhost]]
>         at
> java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
>         at java.util.concurrent.FutureTask.get(FutureTask.java:111)
>         at
>
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
>         at
>
> org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
>
> org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
>
> org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:684)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:601)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
> Caused by: org.apache.catalina.LifecycleException: Failed to start
> component
> [StandardEngine[Catalina].StandardHost[localhost]]
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
>         at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
>         at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:722)
> Caused by: org.apache.catalina.LifecycleException: A child container failed
> during start
>         at
>
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
>         at
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         ... 7 more
>
> okt 18, 2012 8:13:04 EM org.apache.catalina.startup.Catalina start
> SEVERE: Catalina.start:
> org.apache.catalina.LifecycleException: Failed to start component
> [StandardServer[8005]]
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:684)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:601)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
> Caused by: org.apache.catalina.LifecycleException: Failed to start
> component
> [StandardService[Catalina]]
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>         at
>
> org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         ... 7 more
> Caused by: org.apache.catalina.LifecycleException: Failed to start
> component
> [StandardEngine[Catalina]]
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>         at
>
> org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         ... 9 more
> Caused by: org.apache.catalina.LifecycleException: A child container failed
> during start
>         at
>
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
>         at
>
> org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         ... 11 more
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>



If you reply to this email, your message will be added to the discussion below:
http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142p4658143.html
To unsubscribe from Can't get TomEE running, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Can't get TomEE running

Romain Manni-Bucau
your exception made me think it but you are right it shouldnt be the case

well the installation shouldnt be done correctly, how did you do it?

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*




2012/10/18 karlkilden <[hidden email]>

> Hello!
>
> No I didn't. I got the expression I was supposed to not have any
> dependencies to the technology included in tomcat\lib of TomEE.
>
> If  I need to add openEJB myself I don't really understand the benefit of
> TomEE?
>
> Sorry if i'm being stupid : -) feels like im missing something here.
>
> cheers
>
> 2012/10/18 Romain Manni-Bucau [via OpenEJB] <
> [hidden email]>
>
> > Hi,
> >
> > didn't you provide openejb in your webapp?
> >
> > *Romain Manni-Bucau*
> > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> > *Blog: **http://rmannibucau.wordpress.com/*<
> > http://rmannibucau.wordpress.com/>
> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> > *Github: https://github.com/rmannibucau*
> >
> >
> >
> >
> > 2012/10/18 karlkilden <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=4658143&i=0>>
> >
> >
> > > Hello!
> > >
> > > I can't get TomEE running. I thought it was related to hibernate first
> > so I
> > > removed it from classpath but that didn't change anything.
> > >
> > > I ran the project fine before with Tomcat 7 and weld (removed weld from
> > > claspath too).
> > >
> > > *expected=org.apache.openejb.spi.SecurityService
> > > actual=org.apache.tomee.catalina.TomcatSecurityService
> > > *
> > >
> > > Weird imo. I tried to search for it found someone with the problem but
> > no
> > > answers.
> > >
> > > Also, Unable to deploy collapsed ear in war? Im not sure what's going
> > on.
> > >
> > > I also don't understand why OpenEJB seems to have a depedency to
> > > OpenWebBeans-impl rather then JSR-299 api? I was pretty happy with
> weld.
> > >
> > > Well I hope I get this going I appreciate this project and I would love
> > to
> > > eventually have a full blown apache stack but I (or rather our dev
> team)
> > > needs steps. We always switch one thing at the time so any errors can
> be
> > > isolated easier.
> > >
> > > Cheers
> > >
> > > SEVERE: Unable to deploy collapsed ear in war
> > >
> >
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]
> > > org.apache.xbean.recipe.ConstructionException: Invalid and
> > non-convertable
> > > constructor parameter type: name=securityService, index=1,
> > > expected=org.apache.openejb.spi.SecurityService,
> > > actual=org.apache.tomee.catalina.TomcatSecurityService
> > >         at
> > >
> > >
> >
> org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:586)
> >
> > >         at
> > >
> >
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:275)
> > >         at
> > > org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
> > >         at
> > > org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
> > >         at
> > > org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
> > >         at
> > >
> > >
> >
> org.apache.openejb.assembler.classic.Assembler.createContainer(Assembler.java:1505)
> >
> > >         at
> > >
> > >
> >
> org.apache.openejb.config.ConfigurationFactory.install(ConfigurationFactory.java:389)
> >
> > >         at
> > >
> >
> org.apache.openejb.config.AutoConfig.createContainer(AutoConfig.java:1059)
> > >         at
> > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:818)
> > >         at
> > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:186)
> > >         at
> > >
> > >
> >
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:363)
> >
> > >         at
> > >
> > >
> >
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:850)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:791)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >
> > >         at
> > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> > >         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >
> > >         at java.lang.Thread.run(Thread.java:722)
> > >
> > > okt 18, 2012 8:13:04 EM 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[/voteweb]]
> >
> > > in state [STARTING_PREP]
> > >         atca
> > >
> > >
> >
> org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:408)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:298)
> > >         at
> > >
> >
> org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:977)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:956)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:797)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >
> > >         at
> > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> > >         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >
> > >         at java.lang.Thread.run(Thread.java:722)
> > >
> > > okt 18, 2012 8:13:04 EM org.apache.catalina.core.ContainerBase
> > > startInternal
> > > SEVERE: A child container failed during start
> > > java.util.concurrent.ExecutionException:
> > > org.apache.catalina.LifecycleException: Failed to start component
> > >
> > >
> >
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]]
> >
> > >         at
> > > java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
> > >         at java.util.concurrent.FutureTask.get(FutureTask.java:111)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
> >
> > >         at
> > >
> >
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >
> > >         at
> > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> > >         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >
> > >         at java.lang.Thread.run(Thread.java:722)
> > > Caused by: org.apache.catalina.LifecycleException: Failed to start
> > > component
> > >
> > >
> >
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]]
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> > >         ... 7 more
> > > Caused by: org.apache.tomee.catalina.TomEERuntimeException:
> > > org.apache.xbean.recipe.ConstructionException: Invalid and
> > non-convertable
> > > constructor parameter type: name=securityService, index=1,
> > > expected=org.apache.openejb.spi.SecurityService,
> > > actual=org.apache.tomee.catalina.TomcatSecurityService
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:800)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         ... 7 more
> > > Caused by: org.apache.xbean.recipe.ConstructionException: Invalid and
> > > non-convertable constructor parameter type: name=securityService,
> > index=1,
> > > expected=org.apache.openejb.spi.SecurityService,
> > > actual=org.apache.tomee.catalina.TomcatSecurityService
> > >         at
> > >
> > >
> >
> org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:586)
> >
> > >         at
> > >
> >
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:275)
> > >         at
> > > org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
> > >         at
> > > org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
> > >         at
> > > org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
> > >         at
> > >
> > >
> >
> org.apache.openejb.assembler.classic.Assembler.createContainer(Assembler.java:1505)
> >
> > >         at
> > >
> > >
> >
> org.apache.openejb.config.ConfigurationFactory.install(ConfigurationFactory.java:389)
> >
> > >         at
> > >
> >
> org.apache.openejb.config.AutoConfig.createContainer(AutoConfig.java:1059)
> > >         at
> > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:818)
> > >         at
> > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:186)
> > >         at
> > >
> > >
> >
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:363)
> >
> > >         at
> > >
> > >
> >
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:850)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:791)
> >
> > >         ... 13 more
> > >
> > > okt 18, 2012 8:13:04 EM org.apache.catalina.core.ContainerBase
> > > startInternal
> > > SEVERE: A child container failed during start
> > > java.util.concurrent.ExecutionException:
> > > org.apache.catalina.LifecycleException: Failed to start component
> > > [StandardEngine[Catalina].StandardHost[localhost]]
> > >         at
> > > java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
> > >         at java.util.concurrent.FutureTask.get(FutureTask.java:111)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         at
> org.apache.catalina.startup.Catalina.start(Catalina.java:684)
> > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >         at
> > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> >
> > >         at
> > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >
> > >         at java.lang.reflect.Method.invoke(Method.java:601)
> > >         at
> > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
> > >         at
> > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
> > > Caused by: org.apache.catalina.LifecycleException: Failed to start
> > > component
> > > [StandardEngine[Catalina].StandardHost[localhost]]
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >
> > >         at
> > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> > >         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >
> > >         at java.lang.Thread.run(Thread.java:722)
> > > Caused by: org.apache.catalina.LifecycleException: A child container
> > failed
> > > during start
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
> >
> > >         at
> > >
> >
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         ... 7 more
> > >
> > > okt 18, 2012 8:13:04 EM org.apache.catalina.startup.Catalina start
> > > SEVERE: Catalina.start:
> > > org.apache.catalina.LifecycleException: Failed to start component
> > > [StandardServer[8005]]
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> > >         at
> org.apache.catalina.startup.Catalina.start(Catalina.java:684)
> > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >         at
> > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> >
> > >         at
> > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >
> > >         at java.lang.reflect.Method.invoke(Method.java:601)
> > >         at
> > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
> > >         at
> > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
> > > Caused by: org.apache.catalina.LifecycleException: Failed to start
> > > component
> > > [StandardService[Catalina]]
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         ... 7 more
> > > Caused by: org.apache.catalina.LifecycleException: Failed to start
> > > component
> > > [StandardEngine[Catalina]]
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         ... 9 more
> > > Caused by: org.apache.catalina.LifecycleException: A child container
> > failed
> > > during start
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         ... 11 more
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142.html
> > > Sent from the OpenEJB User mailing list archive at Nabble.com.
> > >
> >
> >
> > ------------------------------
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142p4658143.html
> >  To unsubscribe from Can't get TomEE running, click here<
> >
> > .
> > NAML<
>
http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142p4658144.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: Can't get TomEE running

karlkilden
apache-tomee-1.5.0-webprofile.zip

Downloaded, unzipped and pointed it out as tomcat 7 in eclipse.

Now I didn't actually want that version, I wanted Apache OpenEJB 4.5.0 but every link to it was dead :O The links I am talking about are these:

http://www.apache.org/dyn/closer.cgi/openejb/openejb-4.5.0/openejb-standalone-4.5.0.zip

I don't know if I will get problems trying webprofile since I use Mojarra and have those dependecies on the classpath. (Switching to MyFaces is even further down the road if ever).



2012/10/18 Romain Manni-Bucau [via OpenEJB] <[hidden email]>
your exception made me think it but you are right it shouldnt be the case

well the installation shouldnt be done correctly, how did you do it?

> Hello!
>
> No I didn't. I got the expression I was supposed to not have any

> dependencies to the technology included in tomcat\lib of TomEE.
>
> If  I need to add openEJB myself I don't really understand the benefit of
> TomEE?
>
> Sorry if i'm being stupid : -) feels like im missing something here.
>
> cheers
>
> 2012/10/18 Romain Manni-Bucau [via OpenEJB] <
> [hidden email]>
>

> > Hi,
> >
> > didn't you provide openejb in your webapp?
> >
> > *Romain Manni-Bucau*
> > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> > *Blog: **http://rmannibucau.wordpress.com/*<
> > http://rmannibucau.wordpress.com/>
> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> > *Github: https://github.com/rmannibucau*
> >
> >
> >
> >
> > 2012/10/18 karlkilden <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=4658143&i=0>>
> >

> >
> > > Hello!
> > >
> > > I can't get TomEE running. I thought it was related to hibernate first
> > so I
> > > removed it from classpath but that didn't change anything.
> > >
> > > I ran the project fine before with Tomcat 7 and weld (removed weld from
> > > claspath too).
> > >
> > > *expected=org.apache.openejb.spi.SecurityService
> > > actual=org.apache.tomee.catalina.TomcatSecurityService
> > > *
> > >
> > > Weird imo. I tried to search for it found someone with the problem but
> > no
> > > answers.
> > >
> > > Also, Unable to deploy collapsed ear in war? Im not sure what's going
> > on.
> > >
> > > I also don't understand why OpenEJB seems to have a depedency to
> > > OpenWebBeans-impl rather then JSR-299 api? I was pretty happy with
> weld.
> > >
> > > Well I hope I get this going I appreciate this project and I would love
> > to
> > > eventually have a full blown apache stack but I (or rather our dev
> team)
> > > needs steps. We always switch one thing at the time so any errors can
> be
> > > isolated easier.
> > >
> > > Cheers
> > >
> > > SEVERE: Unable to deploy collapsed ear in war
> > >
> >
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]
> > > org.apache.xbean.recipe.ConstructionException: Invalid and
> > non-convertable
> > > constructor parameter type: name=securityService, index=1,
> > > expected=org.apache.openejb.spi.SecurityService,
> > > actual=org.apache.tomee.catalina.TomcatSecurityService
> > >         at
> > >
> > >
> >
> org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:586)
> >
> > >         at
> > >
> >
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:275)
> > >         at
> > > org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
> > >         at
> > > org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
> > >         at
> > > org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
> > >         at
> > >
> > >
> >
> org.apache.openejb.assembler.classic.Assembler.createContainer(Assembler.java:1505)
> >
> > >         at
> > >
> > >
> >
> org.apache.openejb.config.ConfigurationFactory.install(ConfigurationFactory.java:389)
> >
> > >         at
> > >
> >
> org.apache.openejb.config.AutoConfig.createContainer(AutoConfig.java:1059)
> > >         at
> > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:818)
> > >         at
> > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:186)
> > >         at
> > >
> > >
> >
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:363)
> >
> > >         at
> > >
> > >
> >
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:850)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:791)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >
> > >         at
> > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> > >         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >
> > >         at java.lang.Thread.run(Thread.java:722)
> > >
> > > okt 18, 2012 8:13:04 EM 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[/voteweb]]
> >
> > > in state [STARTING_PREP]
> > >         atca
> > >

> > >
> >
> org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:408)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:298)
> > >         at
> > >
> >
> org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:977)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:956)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:797)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >
> > >         at
> > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> > >         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >
> > >         at java.lang.Thread.run(Thread.java:722)
> > >
> > > okt 18, 2012 8:13:04 EM org.apache.catalina.core.ContainerBase
> > > startInternal
> > > SEVERE: A child container failed during start
> > > java.util.concurrent.ExecutionException:
> > > org.apache.catalina.LifecycleException: Failed to start component
> > >
> > >
> >
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]]
> >
> > >         at
> > > java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
> > >         at java.util.concurrent.FutureTask.get(FutureTask.java:111)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
> >
> > >         at
> > >
> >
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >
> > >         at
> > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> > >         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >
> > >         at java.lang.Thread.run(Thread.java:722)
> > > Caused by: org.apache.catalina.LifecycleException: Failed to start
> > > component
> > >
> > >
> >
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]]
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> > >         ... 7 more
> > > Caused by: org.apache.tomee.catalina.TomEERuntimeException:
> > > org.apache.xbean.recipe.ConstructionException: Invalid and
> > non-convertable
> > > constructor parameter type: name=securityService, index=1,
> > > expected=org.apache.openejb.spi.SecurityService,
> > > actual=org.apache.tomee.catalina.TomcatSecurityService
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:800)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         ... 7 more
> > > Caused by: org.apache.xbean.recipe.ConstructionException: Invalid and
> > > non-convertable constructor parameter type: name=securityService,
> > index=1,
> > > expected=org.apache.openejb.spi.SecurityService,
> > > actual=org.apache.tomee.catalina.TomcatSecurityService
> > >         at
> > >
> > >
> >
> org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:586)
> >
> > >         at
> > >
> >
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:275)
> > >         at
> > > org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
> > >         at
> > > org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
> > >         at
> > > org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
> > >         at
> > >
> > >
> >
> org.apache.openejb.assembler.classic.Assembler.createContainer(Assembler.java:1505)
> >
> > >         at
> > >
> > >
> >
> org.apache.openejb.config.ConfigurationFactory.install(ConfigurationFactory.java:389)
> >
> > >         at
> > >
> >
> org.apache.openejb.config.AutoConfig.createContainer(AutoConfig.java:1059)
> > >         at
> > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:818)
> > >         at
> > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:186)
> > >         at
> > >
> > >
> >
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:363)
> >
> > >         at
> > >
> > >
> >
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:850)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:791)
> >
> > >         ... 13 more
> > >
> > > okt 18, 2012 8:13:04 EM org.apache.catalina.core.ContainerBase
> > > startInternal
> > > SEVERE: A child container failed during start
> > > java.util.concurrent.ExecutionException:
> > > org.apache.catalina.LifecycleException: Failed to start component
> > > [StandardEngine[Catalina].StandardHost[localhost]]
> > >         at
> > > java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
> > >         at java.util.concurrent.FutureTask.get(FutureTask.java:111)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         at
> org.apache.catalina.startup.Catalina.start(Catalina.java:684)
> > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >         at
> > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> >
> > >         at
> > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >
> > >         at java.lang.reflect.Method.invoke(Method.java:601)
> > >         at
> > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
> > >         at
> > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
> > > Caused by: org.apache.catalina.LifecycleException: Failed to start
> > > component
> > > [StandardEngine[Catalina].StandardHost[localhost]]
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >
> > >         at
> > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> > >         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >
> > >         at java.lang.Thread.run(Thread.java:722)
> > > Caused by: org.apache.catalina.LifecycleException: A child container
> > failed
> > > during start
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
> >
> > >         at
> > >
> >
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         ... 7 more
> > >
> > > okt 18, 2012 8:13:04 EM org.apache.catalina.startup.Catalina start
> > > SEVERE: Catalina.start:
> > > org.apache.catalina.LifecycleException: Failed to start component
> > > [StandardServer[8005]]
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> > >         at
> org.apache.catalina.startup.Catalina.start(Catalina.java:684)
> > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >         at
> > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> >
> > >         at
> > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >
> > >         at java.lang.reflect.Method.invoke(Method.java:601)
> > >         at
> > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
> > >         at
> > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
> > > Caused by: org.apache.catalina.LifecycleException: Failed to start
> > > component
> > > [StandardService[Catalina]]
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         ... 7 more
> > > Caused by: org.apache.catalina.LifecycleException: Failed to start
> > > component
> > > [StandardEngine[Catalina]]
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         ... 9 more
> > > Caused by: org.apache.catalina.LifecycleException: A child container
> > failed
> > > during start
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         ... 11 more
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142.html
> > > Sent from the OpenEJB User mailing list archive at Nabble.com.
> > >
> >
> >
> > ------------------------------
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142p4658144.html

> Sent from the OpenEJB User mailing list archive at Nabble.com.
>



If you reply to this email, your message will be added to the discussion below:
http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142p4658145.html
To unsubscribe from Can't get TomEE running, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Can't get TomEE running

karlkilden
In reply to this post by Romain Manni-Bucau
I added OpenEJB to classpath and tried now. Turns out myfaces didn't work out :-)

SEVERE: An error occured while initializing MyFaces: null
java.lang.NullPointerException
at org.apache.tomee.myfaces.TomEEAnnotationProvider.getAnnotatedClasses(TomEEAnnotationProvider.java:41)
at org.apache.myfaces.config.annotation.AnnotationConfigurator.createFacesConfig(AnnotationConfigurator.java:90)
at org.apache.myfaces.config.DefaultFacesConfigurationProvider.getAnnotationsFacesConfig(DefaultFacesConfigurationProvider.java:152)
at org.apache.myfaces.config.DefaultFacesConfigurationMerger.getFacesConfigData(DefaultFacesConfigurationMerger.java:91)
at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:416)
at org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(AbstractFacesInitializer.java:370)
at org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(Jsp21FacesInitializer.java:73)
at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:143)
at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:119)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

I'll try removing it manually

2012/10/18 Karl Kildén <[hidden email]>
apache-tomee-1.5.0-webprofile.zip

Downloaded, unzipped and pointed it out as tomcat 7 in eclipse.

Now I didn't actually want that version, I wanted Apache OpenEJB 4.5.0 but every link to it was dead :O The links I am talking about are these:

http://www.apache.org/dyn/closer.cgi/openejb/openejb-4.5.0/openejb-standalone-4.5.0.zip

I don't know if I will get problems trying webprofile since I use Mojarra and have those dependecies on the classpath. (Switching to MyFaces is even further down the road if ever).



2012/10/18 Romain Manni-Bucau [via OpenEJB] <[hidden email]>

your exception made me think it but you are right it shouldnt be the case

well the installation shouldnt be done correctly, how did you do it?

> Hello!
>
> No I didn't. I got the expression I was supposed to not have any

> dependencies to the technology included in tomcat\lib of TomEE.
>
> If  I need to add openEJB myself I don't really understand the benefit of
> TomEE?
>
> Sorry if i'm being stupid : -) feels like im missing something here.
>
> cheers
>
> 2012/10/18 Romain Manni-Bucau [via OpenEJB] <
> [hidden email]>
>

> > Hi,
> >
> > didn't you provide openejb in your webapp?
> >
> > *Romain Manni-Bucau*
> > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> > *Blog: **http://rmannibucau.wordpress.com/*<
> > http://rmannibucau.wordpress.com/>
> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> > *Github: https://github.com/rmannibucau*
> >
> >
> >
> >
> > 2012/10/18 karlkilden <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=4658143&i=0>>
> >

> >
> > > Hello!
> > >
> > > I can't get TomEE running. I thought it was related to hibernate first
> > so I
> > > removed it from classpath but that didn't change anything.
> > >
> > > I ran the project fine before with Tomcat 7 and weld (removed weld from
> > > claspath too).
> > >
> > > *expected=org.apache.openejb.spi.SecurityService
> > > actual=org.apache.tomee.catalina.TomcatSecurityService
> > > *
> > >
> > > Weird imo. I tried to search for it found someone with the problem but
> > no
> > > answers.
> > >
> > > Also, Unable to deploy collapsed ear in war? Im not sure what's going
> > on.
> > >
> > > I also don't understand why OpenEJB seems to have a depedency to
> > > OpenWebBeans-impl rather then JSR-299 api? I was pretty happy with
> weld.
> > >
> > > Well I hope I get this going I appreciate this project and I would love
> > to
> > > eventually have a full blown apache stack but I (or rather our dev
> team)
> > > needs steps. We always switch one thing at the time so any errors can
> be
> > > isolated easier.
> > >
> > > Cheers
> > >
> > > SEVERE: Unable to deploy collapsed ear in war
> > >
> >
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]
> > > org.apache.xbean.recipe.ConstructionException: Invalid and
> > non-convertable
> > > constructor parameter type: name=securityService, index=1,
> > > expected=org.apache.openejb.spi.SecurityService,
> > > actual=org.apache.tomee.catalina.TomcatSecurityService
> > >         at
> > >
> > >
> >
> org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:586)
> >
> > >         at
> > >
> >
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:275)
> > >         at
> > > org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
> > >         at
> > > org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
> > >         at
> > > org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
> > >         at
> > >
> > >
> >
> org.apache.openejb.assembler.classic.Assembler.createContainer(Assembler.java:1505)
> >
> > >         at
> > >
> > >
> >
> org.apache.openejb.config.ConfigurationFactory.install(ConfigurationFactory.java:389)
> >
> > >         at
> > >
> >
> org.apache.openejb.config.AutoConfig.createContainer(AutoConfig.java:1059)
> > >         at
> > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:818)
> > >         at
> > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:186)
> > >         at
> > >
> > >
> >
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:363)
> >
> > >         at
> > >
> > >
> >
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:850)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:791)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >
> > >         at
> > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> > >         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >
> > >         at java.lang.Thread.run(Thread.java:722)
> > >
> > > okt 18, 2012 8:13:04 EM 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[/voteweb]]
> >
> > > in state [STARTING_PREP]
> > >         atca
> > >

> > >
> >
> org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:408)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:298)
> > >         at
> > >
> >
> org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:977)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:956)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:797)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >
> > >         at
> > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> > >         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >
> > >         at java.lang.Thread.run(Thread.java:722)
> > >
> > > okt 18, 2012 8:13:04 EM org.apache.catalina.core.ContainerBase
> > > startInternal
> > > SEVERE: A child container failed during start
> > > java.util.concurrent.ExecutionException:
> > > org.apache.catalina.LifecycleException: Failed to start component
> > >
> > >
> >
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]]
> >
> > >         at
> > > java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
> > >         at java.util.concurrent.FutureTask.get(FutureTask.java:111)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
> >
> > >         at
> > >
> >
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >
> > >         at
> > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> > >         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >
> > >         at java.lang.Thread.run(Thread.java:722)
> > > Caused by: org.apache.catalina.LifecycleException: Failed to start
> > > component
> > >
> > >
> >
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]]
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> > >         ... 7 more
> > > Caused by: org.apache.tomee.catalina.TomEERuntimeException:
> > > org.apache.xbean.recipe.ConstructionException: Invalid and
> > non-convertable
> > > constructor parameter type: name=securityService, index=1,
> > > expected=org.apache.openejb.spi.SecurityService,
> > > actual=org.apache.tomee.catalina.TomcatSecurityService
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:800)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         ... 7 more
> > > Caused by: org.apache.xbean.recipe.ConstructionException: Invalid and
> > > non-convertable constructor parameter type: name=securityService,
> > index=1,
> > > expected=org.apache.openejb.spi.SecurityService,
> > > actual=org.apache.tomee.catalina.TomcatSecurityService
> > >         at
> > >
> > >
> >
> org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:586)
> >
> > >         at
> > >
> >
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:275)
> > >         at
> > > org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
> > >         at
> > > org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
> > >         at
> > > org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
> > >         at
> > >
> > >
> >
> org.apache.openejb.assembler.classic.Assembler.createContainer(Assembler.java:1505)
> >
> > >         at
> > >
> > >
> >
> org.apache.openejb.config.ConfigurationFactory.install(ConfigurationFactory.java:389)
> >
> > >         at
> > >
> >
> org.apache.openejb.config.AutoConfig.createContainer(AutoConfig.java:1059)
> > >         at
> > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:818)
> > >         at
> > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:186)
> > >         at
> > >
> > >
> >
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:363)
> >
> > >         at
> > >
> > >
> >
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:850)
> >
> > >         at
> > >
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:791)
> >
> > >         ... 13 more
> > >
> > > okt 18, 2012 8:13:04 EM org.apache.catalina.core.ContainerBase
> > > startInternal
> > > SEVERE: A child container failed during start
> > > java.util.concurrent.ExecutionException:
> > > org.apache.catalina.LifecycleException: Failed to start component
> > > [StandardEngine[Catalina].StandardHost[localhost]]
> > >         at
> > > java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
> > >         at java.util.concurrent.FutureTask.get(FutureTask.java:111)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         at
> org.apache.catalina.startup.Catalina.start(Catalina.java:684)
> > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >         at
> > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> >
> > >         at
> > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >
> > >         at java.lang.reflect.Method.invoke(Method.java:601)
> > >         at
> > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
> > >         at
> > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
> > > Caused by: org.apache.catalina.LifecycleException: Failed to start
> > > component
> > > [StandardEngine[Catalina].StandardHost[localhost]]
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >
> > >         at
> > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> > >         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >
> > >         at java.lang.Thread.run(Thread.java:722)
> > > Caused by: org.apache.catalina.LifecycleException: A child container
> > failed
> > > during start
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
> >
> > >         at
> > >
> >
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         ... 7 more
> > >
> > > okt 18, 2012 8:13:04 EM org.apache.catalina.startup.Catalina start
> > > SEVERE: Catalina.start:
> > > org.apache.catalina.LifecycleException: Failed to start component
> > > [StandardServer[8005]]
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> > >         at
> org.apache.catalina.startup.Catalina.start(Catalina.java:684)
> > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >         at
> > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> >
> > >         at
> > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >
> > >         at java.lang.reflect.Method.invoke(Method.java:601)
> > >         at
> > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
> > >         at
> > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
> > > Caused by: org.apache.catalina.LifecycleException: Failed to start
> > > component
> > > [StandardService[Catalina]]
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         ... 7 more
> > > Caused by: org.apache.catalina.LifecycleException: Failed to start
> > > component
> > > [StandardEngine[Catalina]]
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         ... 9 more
> > > Caused by: org.apache.catalina.LifecycleException: A child container
> > failed
> > > during start
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
> >
> > >         at
> > >
> > >
> >
> org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
> >
> > >         at
> > > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > >         ... 11 more
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142.html
> > > Sent from the OpenEJB User mailing list archive at Nabble.com.
> > >
> >
> >
> > ------------------------------
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142p4658144.html

> Sent from the OpenEJB User mailing list archive at Nabble.com.
>



If you reply to this email, your message will be added to the discussion below:
http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142p4658145.html
To unsubscribe from Can't get TomEE running, click here.
NAML


Reply | Threaded
Open this post in threaded view
|

Re: Can't get TomEE running

Romain Manni-Bucau
added openejb to classpath?

side note: openejb-standalone is here
https://repository.apache.org/content/groups/public/org/apache/openejb/openejb-standalone/4.5.0/
(repo1
should get it too)

well don't play too much with the classpath, maybe share a list of lib and
in which folder you put it to let us follow you

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*




2012/10/18 karlkilden <[hidden email]>

> I added OpenEJB to classpath and tried now. Turns out myfaces didn't work
> out :-)
>
> SEVERE: An error occured while initializing MyFaces: null
> java.lang.NullPointerException
> at
>
> org.apache.tomee.myfaces.TomEEAnnotationProvider.getAnnotatedClasses(TomEEAnnotationProvider.java:41)
> at
>
> org.apache.myfaces.config.annotation.AnnotationConfigurator.createFacesConfig(AnnotationConfigurator.java:90)
> at
>
> org.apache.myfaces.config.DefaultFacesConfigurationProvider.getAnnotationsFacesConfig(DefaultFacesConfigurationProvider.java:152)
> at
>
> org.apache.myfaces.config.DefaultFacesConfigurationMerger.getFacesConfigData(DefaultFacesConfigurationMerger.java:91)
> at
>
> org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:416)
> at
>
> org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(AbstractFacesInitializer.java:370)
> at
>
> org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(Jsp21FacesInitializer.java:73)
> at
>
> org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:143)
> at
>
> org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:119)
> at
>
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
> at
>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> at java.lang.Thread.run(Thread.java:722)
>
> I'll try removing it manually
>
> 2012/10/18 Karl Kildén <[hidden email]>
>
> > apache-tomee-1.5.0-webprofile.zip<
> http://www.apache.org/dyn/closer.cgi/openejb/openejb-4.5.0/apache-tomee-1.5.0-webprofile.zip
> >
> >
> > Downloaded, unzipped and pointed it out as tomcat 7 in eclipse.
> >
> > Now I didn't actually want that version, I wanted Apache OpenEJB 4.5.0
> but
> > every link to it was dead :O The links I am talking about are these:
> >
> >
> >
> http://www.apache.org/dyn/closer.cgi/openejb/openejb-4.5.0/openejb-standalone-4.5.0.zip
> >
> > I don't know if I will get problems trying webprofile since I use Mojarra
> > and have those dependecies on the classpath. (Switching to MyFaces is
> even
> > further down the road if ever).
> >
> >
> > 2012/10/18 Romain Manni-Bucau [via OpenEJB] <
> > [hidden email]>
> >
> > your exception made me think it but you are right it shouldnt be the case
> >>
> >> well the installation shouldnt be done correctly, how did you do it?
> >>
> >> *Romain Manni-Bucau*
> >> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> >> *Blog: **http://rmannibucau.wordpress.com/*<
> >> http://rmannibucau.wordpress.com/>
> >> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> >> *Github: https://github.com/rmannibucau*
> >>
> >>
> >>
> >>
> >> 2012/10/18 karlkilden <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=4658145&i=0>>
> >>
> >>
> >> > Hello!
> >> >
> >> > No I didn't. I got the expression I was supposed to not have any
> >> > dependencies to the technology included in tomcat\lib of TomEE.
> >> >
> >> > If  I need to add openEJB myself I don't really understand the benefit
> >> of
> >> > TomEE?
> >> >
> >> > Sorry if i'm being stupid : -) feels like im missing something here.
> >> >
> >> > cheers
> >> >
> >> > 2012/10/18 Romain Manni-Bucau [via OpenEJB] <
> >> > [hidden email] <http://user/SendEmail.jtp?type=node&node=4658145&i=1
> >>
> >> >
> >> > > Hi,
> >> > >
> >> > > didn't you provide openejb in your webapp?
> >> > >
> >> > > *Romain Manni-Bucau*
> >> > > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> >> > > *Blog: **http://rmannibucau.wordpress.com/*<
> >> > > http://rmannibucau.wordpress.com/>
> >> > > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> >> > > *Github: https://github.com/rmannibucau*
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > 2012/10/18 karlkilden <[hidden email]<
> >> > http://user/SendEmail.jtp?type=node&node=4658143&i=0>>
> >> > >
> >> > >
> >> > > > Hello!
> >> > > >
> >> > > > I can't get TomEE running. I thought it was related to hibernate
> >> first
> >> > > so I
> >> > > > removed it from classpath but that didn't change anything.
> >> > > >
> >> > > > I ran the project fine before with Tomcat 7 and weld (removed weld
> >> from
> >> > > > claspath too).
> >> > > >
> >> > > > *expected=org.apache.openejb.spi.SecurityService
> >> > > > actual=org.apache.tomee.catalina.TomcatSecurityService
> >> > > > *
> >> > > >
> >> > > > Weird imo. I tried to search for it found someone with the problem
> >> but
> >> > > no
> >> > > > answers.
> >> > > >
> >> > > > Also, Unable to deploy collapsed ear in war? Im not sure what's
> >> going
> >> > > on.
> >> > > >
> >> > > > I also don't understand why OpenEJB seems to have a depedency to
> >> > > > OpenWebBeans-impl rather then JSR-299 api? I was pretty happy with
> >> > weld.
> >> > > >
> >> > > > Well I hope I get this going I appreciate this project and I would
> >> love
> >> > > to
> >> > > > eventually have a full blown apache stack but I (or rather our dev
> >> > team)
> >> > > > needs steps. We always switch one thing at the time so any errors
> >> can
> >> > be
> >> > > > isolated easier.
> >> > > >
> >> > > > Cheers
> >> > > >
> >> > > > SEVERE: Unable to deploy collapsed ear in war
> >> > > >
> >> > >
> >> >
> >>
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]
> >> > > > org.apache.xbean.recipe.ConstructionException: Invalid and
> >> > > non-convertable
> >> > > > constructor parameter type: name=securityService, index=1,
> >> > > > expected=org.apache.openejb.spi.SecurityService,
> >> > > > actual=org.apache.tomee.catalina.TomcatSecurityService
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:586)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:275)
> >> > > >         at
> >> > > >
> >> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
> >> > > >         at
> >> > > >
> >> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
> >> > > >         at
> >> > > >
> >> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.openejb.assembler.classic.Assembler.createContainer(Assembler.java:1505)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.openejb.config.ConfigurationFactory.install(ConfigurationFactory.java:389)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.openejb.config.AutoConfig.createContainer(AutoConfig.java:1059)
> >> > > >         at
> >> > > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:818)
> >> > > >         at
> >> > > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:186)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:363)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:850)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:791)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >>
> >> > >
> >> > > >         at
> >> > > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> >> > > >         at
> java.util.concurrent.FutureTask.run(FutureTask.java:166)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >>
> >> > >
> >> > > >         at java.lang.Thread.run(Thread.java:722)
> >> > > >
> >> > > > okt 18, 2012 8:13:04 EM 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[/voteweb]]
> >>
> >> > >
> >> > > > in state [STARTING_PREP]
> >> > > >         atca
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:408)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:298)
> >> > > >         at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:977)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:956)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:797)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >>
> >> > >
> >> > > >         at
> >> > > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> >> > > >         at
> java.util.concurrent.FutureTask.run(FutureTask.java:166)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >>
> >> > >
> >> > > >         at java.lang.Thread.run(Thread.java:722)
> >> > > >
> >> > > > okt 18, 2012 8:13:04 EM org.apache.catalina.core.ContainerBase
> >> > > > startInternal
> >> > > > SEVERE: A child container failed during start
> >> > > > java.util.concurrent.ExecutionException:
> >> > > > org.apache.catalina.LifecycleException: Failed to start component
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]]
> >>
> >> > >
> >> > > >         at
> >> > > > java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
> >> > > >         at
> java.util.concurrent.FutureTask.get(FutureTask.java:111)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >>
> >> > >
> >> > > >         at
> >> > > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> >> > > >         at
> java.util.concurrent.FutureTask.run(FutureTask.java:166)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >>
> >> > >
> >> > > >         at java.lang.Thread.run(Thread.java:722)
> >> > > > Caused by: org.apache.catalina.LifecycleException: Failed to start
> >> > > > component
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]]
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> >> > > >         ... 7 more
> >> > > > Caused by: org.apache.tomee.catalina.TomEERuntimeException:
> >> > > > org.apache.xbean.recipe.ConstructionException: Invalid and
> >> > > non-convertable
> >> > > > constructor parameter type: name=securityService, index=1,
> >> > > > expected=org.apache.openejb.spi.SecurityService,
> >> > > > actual=org.apache.tomee.catalina.TomcatSecurityService
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:800)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >> > > >         ... 7 more
> >> > > > Caused by: org.apache.xbean.recipe.ConstructionException: Invalid
> >> and
> >> > > > non-convertable constructor parameter type: name=securityService,
> >> > > index=1,
> >> > > > expected=org.apache.openejb.spi.SecurityService,
> >> > > > actual=org.apache.tomee.catalina.TomcatSecurityService
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:586)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:275)
> >> > > >         at
> >> > > >
> >> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
> >> > > >         at
> >> > > >
> >> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
> >> > > >         at
> >> > > >
> >> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.openejb.assembler.classic.Assembler.createContainer(Assembler.java:1505)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.openejb.config.ConfigurationFactory.install(ConfigurationFactory.java:389)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.openejb.config.AutoConfig.createContainer(AutoConfig.java:1059)
> >> > > >         at
> >> > > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:818)
> >> > > >         at
> >> > > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:186)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:363)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:850)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:791)
> >>
> >> > >
> >> > > >         ... 13 more
> >> > > >
> >> > > > okt 18, 2012 8:13:04 EM org.apache.catalina.core.ContainerBase
> >> > > > startInternal
> >> > > > SEVERE: A child container failed during start
> >> > > > java.util.concurrent.ExecutionException:
> >> > > > org.apache.catalina.LifecycleException: Failed to start component
> >> > > > [StandardEngine[Catalina].StandardHost[localhost]]
> >> > > >         at
> >> > > > java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
> >> > > >         at
> java.util.concurrent.FutureTask.get(FutureTask.java:111)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >> > > >         at
> >> > org.apache.catalina.startup.Catalina.start(Catalina.java:684)
> >> > > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >> Method)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >>
> >> > >
> >> > > >         at java.lang.reflect.Method.invoke(Method.java:601)
> >> > > >         at
> >> > > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
> >> > > >         at
> >> > > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
> >> > > > Caused by: org.apache.catalina.LifecycleException: Failed to start
> >> > > > component
> >> > > > [StandardEngine[Catalina].StandardHost[localhost]]
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >>
> >> > >
> >> > > >         at
> >> > > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> >> > > >         at
> java.util.concurrent.FutureTask.run(FutureTask.java:166)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >>
> >> > >
> >> > > >         at java.lang.Thread.run(Thread.java:722)
> >> > > > Caused by: org.apache.catalina.LifecycleException: A child
> >> container
> >> > > failed
> >> > > > during start
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >> > > >         ... 7 more
> >> > > >
> >> > > > okt 18, 2012 8:13:04 EM org.apache.catalina.startup.Catalina start
> >> > > > SEVERE: Catalina.start:
> >> > > > org.apache.catalina.LifecycleException: Failed to start component
> >> > > > [StandardServer[8005]]
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> >> > > >         at
> >> > org.apache.catalina.startup.Catalina.start(Catalina.java:684)
> >> > > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >> Method)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >>
> >> > >
> >> > > >         at java.lang.reflect.Method.invoke(Method.java:601)
> >> > > >         at
> >> > > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
> >> > > >         at
> >> > > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
> >> > > > Caused by: org.apache.catalina.LifecycleException: Failed to start
> >> > > > component
> >> > > > [StandardService[Catalina]]
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >> > > >         ... 7 more
> >> > > > Caused by: org.apache.catalina.LifecycleException: Failed to start
> >> > > > component
> >> > > > [StandardEngine[Catalina]]
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >> > > >         ... 9 more
> >> > > > Caused by: org.apache.catalina.LifecycleException: A child
> >> container
> >> > > failed
> >> > > > during start
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >> > > >         ... 11 more
> >> > > >
> >> > > >
> >> > > >
> >> > > > --
> >> > > > View this message in context:
> >> > > >
> >> > >
> >> >
> >>
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142.html
> >> > > > Sent from the OpenEJB User mailing list archive at Nabble.com.
> >> > > >
> >> > >
> >> > >
> >> > > ------------------------------
> >> > >  If you reply to this email, your message will be added to the
> >> discussion
> >> > > below:
> >> > >
> >> > >
> >> >
> >>
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142p4658143.html
> >> > >  To unsubscribe from Can't get TomEE running, click here<
> >> >
> >> >
> >> > > .
> >> > > NAML<
> >> >
> >>
> http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >>
> >> > >
> >> > >
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > View this message in context:
> >> >
> >>
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142p4658144.html
> >>
> >> > Sent from the OpenEJB User mailing list archive at Nabble.com.
> >> >
> >>
> >>
> >> ------------------------------
> >>  If you reply to this email, your message will be added to the
> >> discussion below:
> >>
> >>
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142p4658145.html
> >>  To unsubscribe from Can't get TomEE running, click here<
> >
> >> .
> >> NAML<
>
http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >>
> >
> >
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142p4658147.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: Can't get TomEE running

karlkilden
I missunderstood what standalone was, not what I wanted ;o

I liked is as normal Tomcat.

I'm back to the beginning:

Downloaded: tomee-webprofile-1.5.0
Unzipped and pointed it out in eclipse.

I added maven depedencies to Myfaces and OpenEJB and removed dependencies to mojarra (will worry about that later).

But now I am back to beginning with the same stacktrace

Invalid and non-convertable constructor parameter type: name=securityService, index=1, expected=org.apache.openejb.spi.SecurityService, actual=org.apache.tomee.catalina.TomcatSecurityService

I can try setting up my project from scratch pom-wise and add dependency-for-dependency If you think that might help narrow it down.

Thanks for the responses so far

cheers


2012/10/18 Romain Manni-Bucau [via OpenEJB] <[hidden email]>
added openejb to classpath?

side note: openejb-standalone is here
https://repository.apache.org/content/groups/public/org/apache/openejb/openejb-standalone/4.5.0/
(repo1
should get it too)

well don't play too much with the classpath, maybe share a list of lib and
in which folder you put it to let us follow you

> I added OpenEJB to classpath and tried now. Turns out myfaces didn't work
> out :-)
>
> SEVERE: An error occured while initializing MyFaces: null
> java.lang.NullPointerException
> at
>
> org.apache.tomee.myfaces.TomEEAnnotationProvider.getAnnotatedClasses(TomEEAnnotationProvider.java:41)
> at
>
> org.apache.myfaces.config.annotation.AnnotationConfigurator.createFacesConfig(AnnotationConfigurator.java:90)
> at
>
> org.apache.myfaces.config.DefaultFacesConfigurationProvider.getAnnotationsFacesConfig(DefaultFacesConfigurationProvider.java:152)
> at
>
> org.apache.myfaces.config.DefaultFacesConfigurationMerger.getFacesConfigData(DefaultFacesConfigurationMerger.java:91)
> at
>
> org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:416)
> at
>
> org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(AbstractFacesInitializer.java:370)
> at
>
> org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(Jsp21FacesInitializer.java:73)
> at
>
> org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:143)
> at
>
> org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:119)
> at
>
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
> at
>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> at
>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> at java.lang.Thread.run(Thread.java:722)
>
> I'll try removing it manually
>
> 2012/10/18 Karl Kildén <[hidden email]>

>
> > apache-tomee-1.5.0-webprofile.zip<
> http://www.apache.org/dyn/closer.cgi/openejb/openejb-4.5.0/apache-tomee-1.5.0-webprofile.zip

> >
> >
> > Downloaded, unzipped and pointed it out as tomcat 7 in eclipse.
> >
> > Now I didn't actually want that version, I wanted Apache OpenEJB 4.5.0
> but
> > every link to it was dead :O The links I am talking about are these:
> >
> >
> >
> http://www.apache.org/dyn/closer.cgi/openejb/openejb-4.5.0/openejb-standalone-4.5.0.zip
> >
> > I don't know if I will get problems trying webprofile since I use Mojarra
> > and have those dependecies on the classpath. (Switching to MyFaces is
> even
> > further down the road if ever).
> >
> >
> > 2012/10/18 Romain Manni-Bucau [via OpenEJB] <
> > [hidden email]>
> >

> > your exception made me think it but you are right it shouldnt be the case
> >>
> >> well the installation shouldnt be done correctly, how did you do it?
> >>
> >> *Romain Manni-Bucau*
> >> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> >> *Blog: **http://rmannibucau.wordpress.com/*<
> >> http://rmannibucau.wordpress.com/>
> >> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> >> *Github: https://github.com/rmannibucau*
> >>
> >>
> >>
> >>
> >> 2012/10/18 karlkilden <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=4658145&i=0>>
> >>

> >>
> >> > Hello!
> >> >
> >> > No I didn't. I got the expression I was supposed to not have any
> >> > dependencies to the technology included in tomcat\lib of TomEE.
> >> >
> >> > If  I need to add openEJB myself I don't really understand the benefit
> >> of
> >> > TomEE?
> >> >
> >> > Sorry if i'm being stupid : -) feels like im missing something here.
> >> >
> >> > cheers
> >> >
> >> > 2012/10/18 Romain Manni-Bucau [via OpenEJB] <
> >> > [hidden email] <http://user/SendEmail.jtp?type=node&node=4658145&i=1

> >>
> >> >
> >> > > Hi,
> >> > >
> >> > > didn't you provide openejb in your webapp?
> >> > >
> >> > > *Romain Manni-Bucau*
> >> > > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> >> > > *Blog: **http://rmannibucau.wordpress.com/*<
> >> > > http://rmannibucau.wordpress.com/>
> >> > > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> >> > > *Github: https://github.com/rmannibucau*
> >> > >

> >> > >
> >> > >
> >> > >
> >> > > 2012/10/18 karlkilden <[hidden email]<
> >> > http://user/SendEmail.jtp?type=node&node=4658143&i=0>>
> >> > >
> >> > >
> >> > > > Hello!
> >> > > >
> >> > > > I can't get TomEE running. I thought it was related to hibernate
> >> first
> >> > > so I
> >> > > > removed it from classpath but that didn't change anything.
> >> > > >
> >> > > > I ran the project fine before with Tomcat 7 and weld (removed weld
> >> from
> >> > > > claspath too).
> >> > > >
> >> > > > *expected=org.apache.openejb.spi.SecurityService
> >> > > > actual=org.apache.tomee.catalina.TomcatSecurityService
> >> > > > *
> >> > > >
> >> > > > Weird imo. I tried to search for it found someone with the problem
> >> but
> >> > > no
> >> > > > answers.
> >> > > >
> >> > > > Also, Unable to deploy collapsed ear in war? Im not sure what's
> >> going
> >> > > on.
> >> > > >
> >> > > > I also don't understand why OpenEJB seems to have a depedency to
> >> > > > OpenWebBeans-impl rather then JSR-299 api? I was pretty happy with
> >> > weld.
> >> > > >
> >> > > > Well I hope I get this going I appreciate this project and I would
> >> love
> >> > > to
> >> > > > eventually have a full blown apache stack but I (or rather our dev
> >> > team)
> >> > > > needs steps. We always switch one thing at the time so any errors
> >> can
> >> > be
> >> > > > isolated easier.
> >> > > >
> >> > > > Cheers
> >> > > >
> >> > > > SEVERE: Unable to deploy collapsed ear in war
> >> > > >
> >> > >
> >> >
> >>
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]
> >> > > > org.apache.xbean.recipe.ConstructionException: Invalid and
> >> > > non-convertable
> >> > > > constructor parameter type: name=securityService, index=1,
> >> > > > expected=org.apache.openejb.spi.SecurityService,
> >> > > > actual=org.apache.tomee.catalina.TomcatSecurityService
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:586)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:275)
> >> > > >         at
> >> > > >
> >> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
> >> > > >         at
> >> > > >
> >> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
> >> > > >         at
> >> > > >
> >> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.openejb.assembler.classic.Assembler.createContainer(Assembler.java:1505)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.openejb.config.ConfigurationFactory.install(ConfigurationFactory.java:389)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.openejb.config.AutoConfig.createContainer(AutoConfig.java:1059)
> >> > > >         at
> >> > > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:818)
> >> > > >         at
> >> > > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:186)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:363)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:850)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:791)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >>
> >> > >
> >> > > >         at
> >> > > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> >> > > >         at
> java.util.concurrent.FutureTask.run(FutureTask.java:166)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >>
> >> > >
> >> > > >         at java.lang.Thread.run(Thread.java:722)
> >> > > >
> >> > > > okt 18, 2012 8:13:04 EM 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[/voteweb]]
> >>
> >> > >
> >> > > > in state [STARTING_PREP]
> >> > > >         atca
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:408)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:298)
> >> > > >         at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:977)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:956)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:797)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >>
> >> > >
> >> > > >         at
> >> > > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> >> > > >         at
> java.util.concurrent.FutureTask.run(FutureTask.java:166)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >>
> >> > >
> >> > > >         at java.lang.Thread.run(Thread.java:722)
> >> > > >
> >> > > > okt 18, 2012 8:13:04 EM org.apache.catalina.core.ContainerBase
> >> > > > startInternal
> >> > > > SEVERE: A child container failed during start
> >> > > > java.util.concurrent.ExecutionException:
> >> > > > org.apache.catalina.LifecycleException: Failed to start component
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]]
> >>
> >> > >
> >> > > >         at
> >> > > > java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
> >> > > >         at
> java.util.concurrent.FutureTask.get(FutureTask.java:111)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >>
> >> > >
> >> > > >         at
> >> > > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> >> > > >         at
> java.util.concurrent.FutureTask.run(FutureTask.java:166)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >>
> >> > >
> >> > > >         at java.lang.Thread.run(Thread.java:722)
> >> > > > Caused by: org.apache.catalina.LifecycleException: Failed to start
> >> > > > component
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]]
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> >> > > >         ... 7 more
> >> > > > Caused by: org.apache.tomee.catalina.TomEERuntimeException:
> >> > > > org.apache.xbean.recipe.ConstructionException: Invalid and
> >> > > non-convertable
> >> > > > constructor parameter type: name=securityService, index=1,
> >> > > > expected=org.apache.openejb.spi.SecurityService,
> >> > > > actual=org.apache.tomee.catalina.TomcatSecurityService
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:800)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >> > > >         ... 7 more
> >> > > > Caused by: org.apache.xbean.recipe.ConstructionException: Invalid
> >> and
> >> > > > non-convertable constructor parameter type: name=securityService,
> >> > > index=1,
> >> > > > expected=org.apache.openejb.spi.SecurityService,
> >> > > > actual=org.apache.tomee.catalina.TomcatSecurityService
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:586)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:275)
> >> > > >         at
> >> > > >
> >> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
> >> > > >         at
> >> > > >
> >> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
> >> > > >         at
> >> > > >
> >> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.openejb.assembler.classic.Assembler.createContainer(Assembler.java:1505)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.openejb.config.ConfigurationFactory.install(ConfigurationFactory.java:389)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.openejb.config.AutoConfig.createContainer(AutoConfig.java:1059)
> >> > > >         at
> >> > > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:818)
> >> > > >         at
> >> > > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:186)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:363)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:850)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:791)
> >>
> >> > >
> >> > > >         ... 13 more
> >> > > >
> >> > > > okt 18, 2012 8:13:04 EM org.apache.catalina.core.ContainerBase
> >> > > > startInternal
> >> > > > SEVERE: A child container failed during start
> >> > > > java.util.concurrent.ExecutionException:
> >> > > > org.apache.catalina.LifecycleException: Failed to start component
> >> > > > [StandardEngine[Catalina].StandardHost[localhost]]
> >> > > >         at
> >> > > > java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
> >> > > >         at
> java.util.concurrent.FutureTask.get(FutureTask.java:111)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >> > > >         at
> >> > org.apache.catalina.startup.Catalina.start(Catalina.java:684)
> >> > > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >> Method)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >>
> >> > >
> >> > > >         at java.lang.reflect.Method.invoke(Method.java:601)
> >> > > >         at
> >> > > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
> >> > > >         at
> >> > > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
> >> > > > Caused by: org.apache.catalina.LifecycleException: Failed to start
> >> > > > component
> >> > > > [StandardEngine[Catalina].StandardHost[localhost]]
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >>
> >> > >
> >> > > >         at
> >> > > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> >> > > >         at
> java.util.concurrent.FutureTask.run(FutureTask.java:166)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >>
> >> > >
> >> > > >         at java.lang.Thread.run(Thread.java:722)
> >> > > > Caused by: org.apache.catalina.LifecycleException: A child
> >> container
> >> > > failed
> >> > > > during start
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >> > > >         ... 7 more
> >> > > >
> >> > > > okt 18, 2012 8:13:04 EM org.apache.catalina.startup.Catalina start
> >> > > > SEVERE: Catalina.start:
> >> > > > org.apache.catalina.LifecycleException: Failed to start component
> >> > > > [StandardServer[8005]]
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> >> > > >         at
> >> > org.apache.catalina.startup.Catalina.start(Catalina.java:684)
> >> > > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >> Method)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >>
> >> > >
> >> > > >         at java.lang.reflect.Method.invoke(Method.java:601)
> >> > > >         at
> >> > > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
> >> > > >         at
> >> > > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
> >> > > > Caused by: org.apache.catalina.LifecycleException: Failed to start
> >> > > > component
> >> > > > [StandardService[Catalina]]
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >> > > >         ... 7 more
> >> > > > Caused by: org.apache.catalina.LifecycleException: Failed to start
> >> > > > component
> >> > > > [StandardEngine[Catalina]]
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >> > > >         ... 9 more
> >> > > > Caused by: org.apache.catalina.LifecycleException: A child
> >> container
> >> > > failed
> >> > > > during start
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
> >>
> >> > >
> >> > > >         at
> >> > > >
> >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >> > > >         ... 11 more
> >> > > >
> >> > > >
> >> > > >
> >> > > > --
> >> > > > View this message in context:
> >> > > >
> >> > >
> >> >
> >>
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142.html
> >> > > > Sent from the OpenEJB User mailing list archive at Nabble.com.

> >> > > >
> >> > >
> >> > >
> >> > > ------------------------------
> >> > >  If you reply to this email, your message will be added to the
> >> discussion
> >> > > below:
> >> > >
> >> > >
> >> >
> >>
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142p4658143.html
> >> > >  To unsubscribe from Can't get TomEE running, click here<
> >> >
> >> >
> >> > > .
> >> > > NAML<
> >> >
> >>
> http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >>

> >> > >
> >> > >
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > View this message in context:
> >> >
> >>
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142p4658144.html
> >>
> >> > Sent from the OpenEJB User mailing list archive at Nabble.com.
> >> >
> >>
> >>
> >> ------------------------------
> >>  If you reply to this email, your message will be added to the
> >> discussion below:
> >>
> >>
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142p4658145.html

> >>  To unsubscribe from Can't get TomEE running, click here<
>
>
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142p4658147.html

> Sent from the OpenEJB User mailing list archive at Nabble.com.
>



If you reply to this email, your message will be added to the discussion below:
http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142p4658148.html
To unsubscribe from Can't get TomEE running, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

WARNING: WebAppInfo not found -> TomEE Rest 1.5.0 on Ubuntu

Potgieter, Derick D
In reply to this post by Romain Manni-Bucau
Hi Guys,

Getting this exception on tomee, any ideas?
It happens for each application that starts up and any that I deploy?

Oct 18, 2012 10:52:27 PM org.apache.tomee.catalina.OpenEJBContextConfig processAnnotationsUrl
WARNING: WebAppInfo not found. StandardContextInfo{standardContext=StandardEngine[Catalina].StandardHost[localhost].StandardContext[/index.html.unpacked]}

Thanks
Derick
Standard Bank email disclaimer and confidentiality note
Please go to http://www.standardbank.co.za/site/homepage/emaildisclaimer.html to read our email disclaimer and confidentiality note. Kindly email [hidden email] (no content or subject line necessary) if you cannot view that page and we will email our email disclaimer and confidentiality note to you.
Reply | Threaded
Open this post in threaded view
|

Re: WARNING: WebAppInfo not found -> TomEE Rest 1.5.0 on Ubuntu

Romain Manni-Bucau
Hi,

can you share your environment please?


*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*




2012/10/18 Potgieter, Derick D <[hidden email]>

> Hi Guys,
>
> Getting this exception on tomee, any ideas?
> It happens for each application that starts up and any that I deploy?
>
> Oct 18, 2012 10:52:27 PM org.apache.tomee.catalina.OpenEJBContextConfig
> processAnnotationsUrl
> WARNING: WebAppInfo not found.
> StandardContextInfo{standardContext=StandardEngine[Catalina].StandardHost[localhost].StandardContext[/index.html.unpacked]}
>
> Thanks
> Derick
> Standard Bank email disclaimer and confidentiality note
> Please go to
> http://www.standardbank.co.za/site/homepage/emaildisclaimer.html to read
> our email disclaimer and confidentiality note. Kindly email
> [hidden email] (no content or subject line necessary) if
> you cannot view that page and we will email our email disclaimer and
> confidentiality note to you.
>
Reply | Threaded
Open this post in threaded view
|

Re: Can't get TomEE running

Romain Manni-Bucau
In reply to this post by karlkilden
well first myfaces is not needed in your webapp

then to be able to work on it is it possible for you to share a maven
project?

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*




2012/10/18 karlkilden <[hidden email]>

> I missunderstood what standalone was, not what I wanted ;o
>
> I liked is as normal Tomcat.
>
> I'm back to the beginning:
>
> Downloaded: tomee-webprofile-1.5.0
> Unzipped and pointed it out in eclipse.
>
> I added maven depedencies to Myfaces and OpenEJB and removed dependencies
> to mojarra (will worry about that later).
>
> But now I am back to beginning with the same stacktrace
>
> *Invalid and non-convertable constructor parameter type:
> name=securityService, index=1,
> expected=org.apache.openejb.spi.SecurityService,
> actual=org.apache.tomee.catalina.TomcatSecurityService
> *
> I can try setting up my project from scratch pom-wise and add
> dependency-for-dependency If you think that might help narrow it down.
>
> Thanks for the responses so far
>
> cheers
>
>
> 2012/10/18 Romain Manni-Bucau [via OpenEJB] <
> [hidden email]>
>
> > added openejb to classpath?
> >
> > side note: openejb-standalone is here
> >
> >
> https://repository.apache.org/content/groups/public/org/apache/openejb/openejb-standalone/4.5.0/
> > (repo1
> > should get it too)
> >
> > well don't play too much with the classpath, maybe share a list of lib
> and
> > in which folder you put it to let us follow you
> >
> > *Romain Manni-Bucau*
> > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> > *Blog: **http://rmannibucau.wordpress.com/*<
> > http://rmannibucau.wordpress.com/>
> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> > *Github: https://github.com/rmannibucau*
> >
> >
> >
> >
> > 2012/10/18 karlkilden <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=4658148&i=0>>
> >
> >
> > > I added OpenEJB to classpath and tried now. Turns out myfaces didn't
> > work
> > > out :-)
> > >
> > > SEVERE: An error occured while initializing MyFaces: null
> > > java.lang.NullPointerException
> > > at
> > >
> > >
> >
> org.apache.tomee.myfaces.TomEEAnnotationProvider.getAnnotatedClasses(TomEEAnnotationProvider.java:41)
> >
> > > at
> > >
> > >
> >
> org.apache.myfaces.config.annotation.AnnotationConfigurator.createFacesConfig(AnnotationConfigurator.java:90)
> >
> > > at
> > >
> > >
> >
> org.apache.myfaces.config.DefaultFacesConfigurationProvider.getAnnotationsFacesConfig(DefaultFacesConfigurationProvider.java:152)
> >
> > > at
> > >
> > >
> >
> org.apache.myfaces.config.DefaultFacesConfigurationMerger.getFacesConfigData(DefaultFacesConfigurationMerger.java:91)
> >
> > > at
> > >
> > >
> >
> org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:416)
> >
> > > at
> > >
> > >
> >
> org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(AbstractFacesInitializer.java:370)
> >
> > > at
> > >
> > >
> >
> org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(Jsp21FacesInitializer.java:73)
> >
> > > at
> > >
> > >
> >
> org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:143)
> >
> > > at
> > >
> > >
> >
> org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:119)
> >
> > > at
> > >
> > >
> >
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
> >
> > > at
> > >
> > >
> >
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
> >
> > > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > > at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >
> > > at
> > >
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >
> > > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> > > at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> > > at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >
> > > at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >
> > > at java.lang.Thread.run(Thread.java:722)
> > >
> > > I'll try removing it manually
> > >
> > > 2012/10/18 Karl Kildén <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=4658148&i=1>>
> >
> > >
> > > > apache-tomee-1.5.0-webprofile.zip<
> > >
> >
> http://www.apache.org/dyn/closer.cgi/openejb/openejb-4.5.0/apache-tomee-1.5.0-webprofile.zip
> >
> > > >
> > > >
> > > > Downloaded, unzipped and pointed it out as tomcat 7 in eclipse.
> > > >
> > > > Now I didn't actually want that version, I wanted Apache OpenEJB
> 4.5.0
> > > but
> > > > every link to it was dead :O The links I am talking about are these:
> > > >
> > > >
> > > >
> > >
> >
> http://www.apache.org/dyn/closer.cgi/openejb/openejb-4.5.0/openejb-standalone-4.5.0.zip
> > > >
> > > > I don't know if I will get problems trying webprofile since I use
> > Mojarra
> > > > and have those dependecies on the classpath. (Switching to MyFaces is
> > > even
> > > > further down the road if ever).
> > > >
> > > >
> > > > 2012/10/18 Romain Manni-Bucau [via OpenEJB] <
> > > > [hidden email] <http://user/SendEmail.jtp?type=node&node=4658148&i=2
> >>
> >
> > > >
> > > > your exception made me think it but you are right it shouldnt be the
> > case
> > > >>
> > > >> well the installation shouldnt be done correctly, how did you do it?
> > > >>
> > > >> *Romain Manni-Bucau*
> > > >> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> > > >> *Blog: **http://rmannibucau.wordpress.com/*<
> > > >> http://rmannibucau.wordpress.com/>
> > > >> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> > > >> *Github: https://github.com/rmannibucau*
> > > >>
> > > >>
> > > >>
> > > >>
> > > >> 2012/10/18 karlkilden <[hidden email]<
> > > http://user/SendEmail.jtp?type=node&node=4658145&i=0>>
> > > >>
> > > >>
> > > >> > Hello!
> > > >> >
> > > >> > No I didn't. I got the expression I was supposed to not have any
> > > >> > dependencies to the technology included in tomcat\lib of TomEE.
> > > >> >
> > > >> > If  I need to add openEJB myself I don't really understand the
> > benefit
> > > >> of
> > > >> > TomEE?
> > > >> >
> > > >> > Sorry if i'm being stupid : -) feels like im missing something
> > here.
> > > >> >
> > > >> > cheers
> > > >> >
> > > >> > 2012/10/18 Romain Manni-Bucau [via OpenEJB] <
> > > >> > [hidden email] <
> > http://user/SendEmail.jtp?type=node&node=4658145&i=1
> >
> > > >>
> > > >> >
> > > >> > > Hi,
> > > >> > >
> > > >> > > didn't you provide openejb in your webapp?
> > > >> > >
> > > >> > > *Romain Manni-Bucau*
> > > >> > > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> > > >> > > *Blog: **http://rmannibucau.wordpress.com/*<
> > > >> > > http://rmannibucau.wordpress.com/>
> > > >> > > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> > > >> > > *Github: https://github.com/rmannibucau*
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> > > 2012/10/18 karlkilden <[hidden email]<
> > > >> > http://user/SendEmail.jtp?type=node&node=4658143&i=0>>
> > > >> > >
> > > >> > >
> > > >> > > > Hello!
> > > >> > > >
> > > >> > > > I can't get TomEE running. I thought it was related to
> > hibernate
> > > >> first
> > > >> > > so I
> > > >> > > > removed it from classpath but that didn't change anything.
> > > >> > > >
> > > >> > > > I ran the project fine before with Tomcat 7 and weld (removed
> > weld
> > > >> from
> > > >> > > > claspath too).
> > > >> > > >
> > > >> > > > *expected=org.apache.openejb.spi.SecurityService
> > > >> > > > actual=org.apache.tomee.catalina.TomcatSecurityService
> > > >> > > > *
> > > >> > > >
> > > >> > > > Weird imo. I tried to search for it found someone with the
> > problem
> > > >> but
> > > >> > > no
> > > >> > > > answers.
> > > >> > > >
> > > >> > > > Also, Unable to deploy collapsed ear in war? Im not sure
> what's
> > > >> going
> > > >> > > on.
> > > >> > > >
> > > >> > > > I also don't understand why OpenEJB seems to have a depedency
> > to
> > > >> > > > OpenWebBeans-impl rather then JSR-299 api? I was pretty happy
> > with
> > > >> > weld.
> > > >> > > >
> > > >> > > > Well I hope I get this going I appreciate this project and I
> > would
> > > >> love
> > > >> > > to
> > > >> > > > eventually have a full blown apache stack but I (or rather our
> > dev
> > > >> > team)
> > > >> > > > needs steps. We always switch one thing at the time so any
> > errors
> > > >> can
> > > >> > be
> > > >> > > > isolated easier.
> > > >> > > >
> > > >> > > > Cheers
> > > >> > > >
> > > >> > > > SEVERE: Unable to deploy collapsed ear in war
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]
> > > >> > > > org.apache.xbean.recipe.ConstructionException: Invalid and
> > > >> > > non-convertable
> > > >> > > > constructor parameter type: name=securityService, index=1,
> > > >> > > > expected=org.apache.openejb.spi.SecurityService,
> > > >> > > > actual=org.apache.tomee.catalina.TomcatSecurityService
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:586)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:275)
> > > >> > > >         at
> > > >> > > >
> > > >>
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
> > > >> > > >         at
> > > >> > > >
> > > >>
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
> > > >> > > >         at
> > > >> > > >
> > > >>
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.openejb.assembler.classic.Assembler.createContainer(Assembler.java:1505)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.openejb.config.ConfigurationFactory.install(ConfigurationFactory.java:389)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.openejb.config.AutoConfig.createContainer(AutoConfig.java:1059)
> > > >> > > >         at
> > > >> > > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:818)
> > > >> > > >         at
> > > >> > > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:186)
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:363)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:850)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:791)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> > > >> > > >         at
> > > java.util.concurrent.FutureTask.run(FutureTask.java:166)
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >
> > > >>
> > > >> > >
> > > >> > > >         at java.lang.Thread.run(Thread.java:722)
> > > >> > > >
> > > >> > > > okt 18, 2012 8:13:04 EM 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[/voteweb]]
> >
> > > >>
> > > >> > >
> > > >> > > > in state [STARTING_PREP]
> > > >> > > >         atca
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:408)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >>
> > org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:298)
> > > >> > > >         at
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:977)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:956)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:797)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> > > >> > > >         at
> > > java.util.concurrent.FutureTask.run(FutureTask.java:166)
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >
> > > >>
> > > >> > >
> > > >> > > >         at java.lang.Thread.run(Thread.java:722)
> > > >> > > >
> > > >> > > > okt 18, 2012 8:13:04 EM org.apache.catalina.core.ContainerBase
> > > >> > > > startInternal
> > > >> > > > SEVERE: A child container failed during start
> > > >> > > > java.util.concurrent.ExecutionException:
> > > >> > > > org.apache.catalina.LifecycleException: Failed to start
> > component
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]]
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
> > > >> > > >         at
> > > java.util.concurrent.FutureTask.get(FutureTask.java:111)
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
> > > >> > > >         at
> > > >> > > >
> > > >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> > > >> > > >         at
> > > java.util.concurrent.FutureTask.run(FutureTask.java:166)
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >
> > > >>
> > > >> > >
> > > >> > > >         at java.lang.Thread.run(Thread.java:722)
> > > >> > > > Caused by: org.apache.catalina.LifecycleException: Failed to
> > start
> > > >> > > > component
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/voteweb]]
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> > > >> > > >         ... 7 more
> > > >> > > > Caused by: org.apache.tomee.catalina.TomEERuntimeException:
> > > >> > > > org.apache.xbean.recipe.ConstructionException: Invalid and
> > > >> > > non-convertable
> > > >> > > > constructor parameter type: name=securityService, index=1,
> > > >> > > > expected=org.apache.openejb.spi.SecurityService,
> > > >> > > > actual=org.apache.tomee.catalina.TomcatSecurityService
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:800)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:746)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > > >> > > >         ... 7 more
> > > >> > > > Caused by: org.apache.xbean.recipe.ConstructionException:
> > Invalid
> > > >> and
> > > >> > > > non-convertable constructor parameter type:
> > name=securityService,
> > > >> > > index=1,
> > > >> > > > expected=org.apache.openejb.spi.SecurityService,
> > > >> > > > actual=org.apache.tomee.catalina.TomcatSecurityService
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.xbean.recipe.ObjectRecipe.extractConstructorArgs(ObjectRecipe.java:586)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:275)
> > > >> > > >         at
> > > >> > > >
> > > >>
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
> > > >> > > >         at
> > > >> > > >
> > > >>
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
> > > >> > > >         at
> > > >> > > >
> > > >>
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.openejb.assembler.classic.Assembler.createContainer(Assembler.java:1505)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.openejb.config.ConfigurationFactory.install(ConfigurationFactory.java:389)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.openejb.config.AutoConfig.createContainer(AutoConfig.java:1059)
> > > >> > > >         at
> > > >> > > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:818)
> > > >> > > >         at
> > > >> > > org.apache.openejb.config.AutoConfig.deploy(AutoConfig.java:186)
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:363)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:850)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:791)
> >
> > > >>
> > > >> > >
> > > >> > > >         ... 13 more
> > > >> > > >
> > > >> > > > okt 18, 2012 8:13:04 EM org.apache.catalina.core.ContainerBase
> > > >> > > > startInternal
> > > >> > > > SEVERE: A child container failed during start
> > > >> > > > java.util.concurrent.ExecutionException:
> > > >> > > > org.apache.catalina.LifecycleException: Failed to start
> > component
> > > >> > > > [StandardEngine[Catalina].StandardHost[localhost]]
> > > >> > > >         at
> > > >> > > >
> > java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
> > > >> > > >         at
> > > java.util.concurrent.FutureTask.get(FutureTask.java:111)
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > > >> > > >         at
> > > >> > org.apache.catalina.startup.Catalina.start(Catalina.java:684)
> > > >> > > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > >> Method)
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >
> > > >>
> > > >> > >
> > > >> > > >         at java.lang.reflect.Method.invoke(Method.java:601)
> > > >> > > >         at
> > > >> > > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
> > > >> > > >         at
> > > >> > > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
> > > >> > > > Caused by: org.apache.catalina.LifecycleException: Failed to
> > start
> > > >> > > > component
> > > >> > > > [StandardEngine[Catalina].StandardHost[localhost]]
> > > >> > > >         at
> > > >> > > >
> > > >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> > > >> > > >         at
> > > java.util.concurrent.FutureTask.run(FutureTask.java:166)
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> >
> > > >>
> > > >> > >
> > > >> > > >         at java.lang.Thread.run(Thread.java:722)
> > > >> > > > Caused by: org.apache.catalina.LifecycleException: A child
> > > >> container
> > > >> > > failed
> > > >> > > > during start
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
> > > >> > > >         at
> > > >> > > >
> > > >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > > >> > > >         ... 7 more
> > > >> > > >
> > > >> > > > okt 18, 2012 8:13:04 EM org.apache.catalina.startup.Catalina
> > start
> > > >> > > > SEVERE: Catalina.start:
> > > >> > > > org.apache.catalina.LifecycleException: Failed to start
> > component
> > > >> > > > [StandardServer[8005]]
> > > >> > > >         at
> > > >> > > >
> > > >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> > > >> > > >         at
> > > >> > org.apache.catalina.startup.Catalina.start(Catalina.java:684)
> > > >> > > >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > >> Method)
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >
> > > >>
> > > >> > >
> > > >> > > >         at java.lang.reflect.Method.invoke(Method.java:601)
> > > >> > > >         at
> > > >> > > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
> > > >> > > >         at
> > > >> > > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)
> > > >> > > > Caused by: org.apache.catalina.LifecycleException: Failed to
> > start
> > > >> > > > component
> > > >> > > > [StandardService[Catalina]]
> > > >> > > >         at
> > > >> > > >
> > > >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > > >> > > >         ... 7 more
> > > >> > > > Caused by: org.apache.catalina.LifecycleException: Failed to
> > start
> > > >> > > > component
> > > >> > > > [StandardEngine[Catalina]]
> > > >> > > >         at
> > > >> > > >
> > > >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > > >> > > >         ... 9 more
> > > >> > > > Caused by: org.apache.catalina.LifecycleException: A child
> > > >> container
> > > >> > > failed
> > > >> > > > during start
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
> >
> > > >>
> > > >> > >
> > > >> > > >         at
> > > >> > > >
> > > >> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > > >> > > >         ... 11 more
> > > >> > > >
> > > >> > > >
> > > >> > > >
> > > >> > > > --
> > > >> > > > View this message in context:
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142.html
> > > >> > > > Sent from the OpenEJB User mailing list archive at Nabble.com.
> > > >> > > >
> > > >> > >
> > > >> > >
> > > >> > > ------------------------------
> > > >> > >  If you reply to this email, your message will be added to the
> > > >> discussion
> > > >> > > below:
> > > >> > >
> > > >> > >
> > > >> >
> > > >>
> > >
> >
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142p4658143.html
> > > >> > >  To unsubscribe from Can't get TomEE running, click here<
> > > >> >
> > > >> >
> > > >> > > .
> > > >> > > NAML<
> > > >> >
> > > >>
> > >
> >
> http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> > > >>
> > > >> > >
> > > >> > >
> > > >> >
> > > >> >
> > > >> >
> > > >> >
> > > >> > --
> > > >> > View this message in context:
> > > >> >
> > > >>
> > >
> >
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142p4658144.html
> > > >>
> > > >> > Sent from the OpenEJB User mailing list archive at Nabble.com.
> > > >> >
> > > >>
> > > >>
> > > >> ------------------------------
> > > >>  If you reply to this email, your message will be added to the
> > > >> discussion below:
> > > >>
> > > >>
> > >
> >
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142p4658145.html
> >
> > > >>  To unsubscribe from Can't get TomEE running, click here<
> > >
> > >
> > > >> .
> > > >> NAML<
> > >
> >
> http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> > > >
> > > >>
> > > >
> > > >
> > >
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142p4658147.html
> >
> > > Sent from the OpenEJB User mailing list archive at Nabble.com.
> > >
> >
> >
> > ------------------------------
> >  If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142p4658148.html
> >  To unsubscribe from Can't get TomEE running, click here<
> >
> > .
> > NAML<
>
http://openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142p4658149.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

TomEE Rest : Issue with JSON response

Potgieter, Derick D
In reply to this post by Romain Manni-Bucau
Hi Guys,

Want to check if anyone else is experiencing this issue.
I have a rest service that is throwing the below error but only on the 2nd request onwards.

java.lang.NoClassDefFoundError: org/apache/cxf/common/jaxb/NamespaceMapper

The request is for a Single VO.
If I return a List<VO> then it works fine for JSON serialization.

Seems very strange on why the same VO wound not be rendered.

I have even included the cxf-common-utilities-2.5.6.jar lib to make sure this not the case, but this is not helping. First one works, subsequent calls not.

Regards
Derick
Standard Bank email disclaimer and confidentiality note
Please go to http://www.standardbank.co.za/site/homepage/emaildisclaimer.html to read our email disclaimer and confidentiality note. Kindly email [hidden email] (no content or subject line necessary) if you cannot view that page and we will email our email disclaimer and confidentiality note to you.
Reply | Threaded
Open this post in threaded view
|

Re: TomEE Rest : Issue with JSON response

Romain Manni-Bucau
Hi,

can you reproduce the error in a simple ready-to-run maven project?

btw i never saw this error

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*




2012/10/22 Potgieter, Derick D <[hidden email]>

> Hi Guys,
>
> Want to check if anyone else is experiencing this issue.
> I have a rest service that is throwing the below error but only on the 2nd
> request onwards.
>
> java.lang.NoClassDefFoundError: org/apache/cxf/common/jaxb/NamespaceMapper
>
> The request is for a Single VO.
> If I return a List<VO> then it works fine for JSON serialization.
>
> Seems very strange on why the same VO wound not be rendered.
>
> I have even included the cxf-common-utilities-2.5.6.jar lib to make sure
> this not the case, but this is not helping. First one works, subsequent
> calls not.
>
> Regards
> Derick
> Standard Bank email disclaimer and confidentiality note
> Please go to
> http://www.standardbank.co.za/site/homepage/emaildisclaimer.html to read
> our email disclaimer and confidentiality note. Kindly email
> [hidden email] (no content or subject line necessary) if
> you cannot view that page and we will email our email disclaimer and
> confidentiality note to you.
>
Reply | Threaded
Open this post in threaded view
|

RE: TomEE Rest : Issue with JSON response

Potgieter, Derick D
I`ll do a little test and let you know.

This is the stack:
java.lang.NoClassDefFoundError: com/sun/xml/bind/marshaller/NamespacePrefixMapper
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        at org.apache.cxf.jaxrs.provider.AbstractJAXBProvider.setNamespaceMapper(AbstractJAXBProvider.java:134)
        at org.apache.cxf.jaxrs.provider.json.JSONProvider.marshal(JSONProvider.java:525)
        at org.apache.cxf.jaxrs.provider.json.JSONProvider.writeTo(JSONProvider.java:371)
        at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.writeTo(JAXRSOutInterceptor.java:298)
        at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.serializeMessage(JAXRSOutInterceptor.java:258)
        at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.processResponse(JAXRSOutInterceptor.java:146)
        at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.handleMessage(JAXRSOutInterceptor.java:84)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
        at org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:77)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
        at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:211)
        at org.apache.openejb.server.cxf.rs.CxfRsHttpListener.onMessage(CxfRsHttpListener.java:70)
        at org.apache.openejb.server.rest.RsServlet.service(RsServlet.java:53)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at za.co.taxii.filter.SecurityFilter.doFilter(SecurityFilter.java:70)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.marshaller.NamespacePrefixMapper
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        ... 46 more
Oct 22, 2012 9:12:19 AM org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor writeResponseErrorMessage
WARNING: Error serializing the response, please check the server logs, response class : FareVO.

This only happens on header "Accept: application/json", I don't get this on "Accept: application/xml".

This is not something i`m setting at all.

My rest service:
@Path("/fares")
@Stateless
//@RolesAllowed({"tomee"})
public class FareService {

    @POST
    @Consumes({"application/json", "application/xml"})
    @Produces({"application/json", "application/xml"})
    public FareVO requestFare(FareRequest fareRequest) {      
        ....
          FareVO fare = new FareVO();
   ....
        return fare;
    }
}

Regards
Derick

-----Original Message-----
From: Romain Manni-Bucau [mailto:[hidden email]]
Sent: Monday, October 22, 2012 8:40 AM
To: [hidden email]
Subject: Re: TomEE Rest : Issue with JSON response

Hi,

can you reproduce the error in a simple ready-to-run maven project?

btw i never saw this error

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*




2012/10/22 Potgieter, Derick D <[hidden email]>

> Hi Guys,
>
> Want to check if anyone else is experiencing this issue.
> I have a rest service that is throwing the below error but only on the 2nd
> request onwards.
>
> java.lang.NoClassDefFoundError: org/apache/cxf/common/jaxb/NamespaceMapper
>
> The request is for a Single VO.
> If I return a List<VO> then it works fine for JSON serialization.
>
> Seems very strange on why the same VO wound not be rendered.
>
> I have even included the cxf-common-utilities-2.5.6.jar lib to make sure
> this not the case, but this is not helping. First one works, subsequent
> calls not.
>
> Regards
> Derick
> Standard Bank email disclaimer and confidentiality note
> Please go to
> http://www.standardbank.co.za/site/homepage/emaildisclaimer.html to read
> our email disclaimer and confidentiality note. Kindly email
> [hidden email] (no content or subject line necessary) if
> you cannot view that page and we will email our email disclaimer and
> confidentiality note to you.
>
Reply | Threaded
Open this post in threaded view
|

RE: TomEE Rest : Issue with JSON response

Potgieter, Derick D
In reply to this post by Romain Manni-Bucau
To Fix this issue I had to include the "jaxb-impl-2.2.5" lib in my project.
I`m not sure why this is needed from my side as I presumed the TomEE Rest version should provide all needed libs to handle the json components?

Could still be my side :) so i`ll do a separate test and come back.

Regards
Derick

-----Original Message-----
From: Potgieter, Derick D
Sent: Monday, October 22, 2012 9:22 AM
To: [hidden email]
Subject: RE: TomEE Rest : Issue with JSON response

I`ll do a little test and let you know.

This is the stack:
java.lang.NoClassDefFoundError: com/sun/xml/bind/marshaller/NamespacePrefixMapper
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        at org.apache.cxf.jaxrs.provider.AbstractJAXBProvider.setNamespaceMapper(AbstractJAXBProvider.java:134)
        at org.apache.cxf.jaxrs.provider.json.JSONProvider.marshal(JSONProvider.java:525)
        at org.apache.cxf.jaxrs.provider.json.JSONProvider.writeTo(JSONProvider.java:371)
        at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.writeTo(JAXRSOutInterceptor.java:298)
        at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.serializeMessage(JAXRSOutInterceptor.java:258)
        at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.processResponse(JAXRSOutInterceptor.java:146)
        at org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.handleMessage(JAXRSOutInterceptor.java:84)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
        at org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:77)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
        at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:211)
        at org.apache.openejb.server.cxf.rs.CxfRsHttpListener.onMessage(CxfRsHttpListener.java:70)
        at org.apache.openejb.server.rest.RsServlet.service(RsServlet.java:53)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at za.co.taxii.filter.SecurityFilter.doFilter(SecurityFilter.java:70)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
        at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
        at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.marshaller.NamespacePrefixMapper
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        ... 46 more
Oct 22, 2012 9:12:19 AM org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor writeResponseErrorMessage
WARNING: Error serializing the response, please check the server logs, response class : FareVO.

This only happens on header "Accept: application/json", I don't get this on "Accept: application/xml".

This is not something i`m setting at all.

My rest service:
@Path("/fares")
@Stateless
//@RolesAllowed({"tomee"})
public class FareService {

    @POST
    @Consumes({"application/json", "application/xml"})
    @Produces({"application/json", "application/xml"})
    public FareVO requestFare(FareRequest fareRequest) {      
        ....
          FareVO fare = new FareVO();
   ....
        return fare;
    }
}

Regards
Derick

-----Original Message-----
From: Romain Manni-Bucau [mailto:[hidden email]]
Sent: Monday, October 22, 2012 8:40 AM
To: [hidden email]
Subject: Re: TomEE Rest : Issue with JSON response

Hi,

can you reproduce the error in a simple ready-to-run maven project?

btw i never saw this error

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*




2012/10/22 Potgieter, Derick D <[hidden email]>

> Hi Guys,
>
> Want to check if anyone else is experiencing this issue.
> I have a rest service that is throwing the below error but only on the 2nd
> request onwards.
>
> java.lang.NoClassDefFoundError: org/apache/cxf/common/jaxb/NamespaceMapper
>
> The request is for a Single VO.
> If I return a List<VO> then it works fine for JSON serialization.
>
> Seems very strange on why the same VO wound not be rendered.
>
> I have even included the cxf-common-utilities-2.5.6.jar lib to make sure
> this not the case, but this is not helping. First one works, subsequent
> calls not.
>
> Regards
> Derick
> Standard Bank email disclaimer and confidentiality note
> Please go to
> http://www.standardbank.co.za/site/homepage/emaildisclaimer.html to read
> our email disclaimer and confidentiality note. Kindly email
> [hidden email] (no content or subject line necessary) if
> you cannot view that page and we will email our email disclaimer and
> confidentiality note to you.
>
Reply | Threaded
Open this post in threaded view
|

Re: TomEE Rest : Issue with JSON response

Romain Manni-Bucau
it is in endorsed lib

do you run it with a "custom launcher" (maybe eclipse WTP ignore endorsed
lib? i don't remember :s)?

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*




2012/10/22 Potgieter, Derick D <[hidden email]>

> To Fix this issue I had to include the "jaxb-impl-2.2.5" lib in my project.
> I`m not sure why this is needed from my side as I presumed the TomEE Rest
> version should provide all needed libs to handle the json components?
>
> Could still be my side :) so i`ll do a separate test and come back.
>
> Regards
> Derick
>
> -----Original Message-----
> From: Potgieter, Derick D
> Sent: Monday, October 22, 2012 9:22 AM
> To: [hidden email]
> Subject: RE: TomEE Rest : Issue with JSON response
>
> I`ll do a little test and let you know.
>
> This is the stack:
> java.lang.NoClassDefFoundError:
> com/sun/xml/bind/marshaller/NamespacePrefixMapper
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
>         at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
>         at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
>         at
> org.apache.cxf.jaxrs.provider.AbstractJAXBProvider.setNamespaceMapper(AbstractJAXBProvider.java:134)
>         at
> org.apache.cxf.jaxrs.provider.json.JSONProvider.marshal(JSONProvider.java:525)
>         at
> org.apache.cxf.jaxrs.provider.json.JSONProvider.writeTo(JSONProvider.java:371)
>         at
> org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.writeTo(JAXRSOutInterceptor.java:298)
>         at
> org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.serializeMessage(JAXRSOutInterceptor.java:258)
>         at
> org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.processResponse(JAXRSOutInterceptor.java:146)
>         at
> org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor.handleMessage(JAXRSOutInterceptor.java:84)
>         at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
>         at
> org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:77)
>         at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
>         at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
>         at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:211)
>         at
> org.apache.openejb.server.cxf.rs.CxfRsHttpListener.onMessage(CxfRsHttpListener.java:70)
>         at
> org.apache.openejb.server.rest.RsServlet.service(RsServlet.java:53)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>         at
> za.co.taxii.filter.SecurityFilter.doFilter(SecurityFilter.java:70)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>         at
> org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>         at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
>         at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
>         at
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:722)
> Caused by: java.lang.ClassNotFoundException:
> com.sun.xml.bind.marshaller.NamespacePrefixMapper
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
>         ... 46 more
> Oct 22, 2012 9:12:19 AM
> org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor
> writeResponseErrorMessage
> WARNING: Error serializing the response, please check the server logs,
> response class : FareVO.
>
> This only happens on header "Accept: application/json", I don't get this
> on "Accept: application/xml".
>
> This is not something i`m setting at all.
>
> My rest service:
> @Path("/fares")
> @Stateless
> //@RolesAllowed({"tomee"})
> public class FareService {
>
>     @POST
>     @Consumes({"application/json", "application/xml"})
>     @Produces({"application/json", "application/xml"})
>     public FareVO requestFare(FareRequest fareRequest) {
>         ....
>           FareVO fare = new FareVO();
>           ....
>         return fare;
>     }
> }
>
> Regards
> Derick
>
> -----Original Message-----
> From: Romain Manni-Bucau [mailto:[hidden email]]
> Sent: Monday, October 22, 2012 8:40 AM
> To: [hidden email]
> Subject: Re: TomEE Rest : Issue with JSON response
>
> Hi,
>
> can you reproduce the error in a simple ready-to-run maven project?
>
> btw i never saw this error
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<
> http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
>
> 2012/10/22 Potgieter, Derick D <[hidden email]>
>
> > Hi Guys,
> >
> > Want to check if anyone else is experiencing this issue.
> > I have a rest service that is throwing the below error but only on the
> 2nd
> > request onwards.
> >
> > java.lang.NoClassDefFoundError:
> org/apache/cxf/common/jaxb/NamespaceMapper
> >
> > The request is for a Single VO.
> > If I return a List<VO> then it works fine for JSON serialization.
> >
> > Seems very strange on why the same VO wound not be rendered.
> >
> > I have even included the cxf-common-utilities-2.5.6.jar lib to make sure
> > this not the case, but this is not helping. First one works, subsequent
> > calls not.
> >
> > Regards
> > Derick
> > Standard Bank email disclaimer and confidentiality note
> > Please go to
> > http://www.standardbank.co.za/site/homepage/emaildisclaimer.html to read
> > our email disclaimer and confidentiality note. Kindly email
> > [hidden email] (no content or subject line necessary) if
> > you cannot view that page and we will email our email disclaimer and
> > confidentiality note to you.
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: TomEE Rest : Issue with JSON response

Fernando Lozano
In reply to this post by Romain Manni-Bucau
Hi,

Maybe it helps, I got this kind of error when my project included CXF
jars (I hate most IDEs samples and also most sample POMs, they create
jar hell). Removed them from my WAR WEB-INF/lib and all went fine.


[]s, Fernando Lozano

> Hi,
>
> can you reproduce the error in a simple ready-to-run maven project?
>
> btw i never saw this error
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
>
> 2012/10/22 Potgieter, Derick D <[hidden email]>
>
>> Hi Guys,
>>
>> Want to check if anyone else is experiencing this issue.
>> I have a rest service that is throwing the below error but only on the 2nd
>> request onwards.
>>
>> java.lang.NoClassDefFoundError: org/apache/cxf/common/jaxb/NamespaceMapper
>>
>> The request is for a Single VO.
>> If I return a List<VO> then it works fine for JSON serialization.
>>
>> Seems very strange on why the same VO wound not be rendered.
>>
>> I have even included the cxf-common-utilities-2.5.6.jar lib to make sure
>> this not the case, but this is not helping. First one works, subsequent
>> calls not.
>>
>> Regards
>> Derick
>> Standard Bank email disclaimer and confidentiality note
>> Please go to
>> http://www.standardbank.co.za/site/homepage/emaildisclaimer.html to read
>> our email disclaimer and confidentiality note. Kindly email
>> [hidden email] (no content or subject line necessary) if
>> you cannot view that page and we will email our email disclaimer and
>> confidentiality note to you.
>>

Reply | Threaded
Open this post in threaded view
|

Re: Can't get TomEE running

joostvdschoot
In reply to this post by karlkilden
Hello,

Has this problem been solved already?:

"Invalid and non-convertable constructor parameter type: name=securityService, index=1, expected=org.apache.openejb.spi.SecurityService, actual=org.apache.tomee.catalina.TomcatSecurityService"

I experience this problem also, after changing my Eclipse (Juno) 32bits to 64 bits.

Now I have the strange situation that the same apps work perfectly in my old Eclipse (Juno) 32 bits but not in (Juno) 64 bits. (I think/hope  I have installed all the same Eclipse plugins (like Maven M2E) in the new Eclipse 64 bit).

To be precisely: only Eclipse itself runs on 32/64bits (jdk1.7). The apps run ok in both 32/64 bit JDK, as long as I use the Eclipse 32 bit install.

Regards,
Joost
Reply | Threaded
Open this post in threaded view
|

Re: Can't get TomEE running

karlkilden
Hello.

My issue is resolved. I had to copy the listner into server.xml in eclipse and I use a snapshot version. Try to use the latest snapshot you can find. If you still have a problem then go to #openejb and get some help ;)

2012/11/2 joostvdschoot [via OpenEJB] <[hidden email]>
Hello,

Has this problem been solved already?:

"Invalid and non-convertable constructor parameter type: name=securityService, index=1, expected=org.apache.openejb.spi.SecurityService, actual=org.apache.tomee.catalina.TomcatSecurityService"

I experience this problem also, after changing my Eclipse (Juno) 32bits to 64 bits.

Now I have the strange situation that the same apps work perfectly in my old Eclipse (Juno) 32 bits but not in (Juno) 64 bits. (I think/hope  I have installed all the same Eclipse plugins (like Maven M2E) in the new Eclipse 64 bit).

To be precisely: only Eclipse itself runs on 32/64bits (jdk1.7). The apps run ok in both 32/64 bit JDK, as long as I use the Eclipse 32 bit install.

Regards,
Joost



If you reply to this email, your message will be added to the discussion below:
http://openejb.979440.n4.nabble.com/Can-t-get-TomEE-running-tp4658142p4658352.html
To unsubscribe from Can't get TomEE running, click here.
NAML