tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Louis MONTEIRO <jeano...@gmail.com>
Subject Re: TomEE and catalina_base / catalina_home variables
Date Tue, 16 Oct 2012 13:46:59 GMT
No need to set OPENEJB_(HOME|BASE).
When running in TomEE openejb automatically get the same values as catalina.

Jean-Louis

2012/10/16 diuis <diuis@yahoo.it>

> Hi,
> I have to deploy multiple instances of TomEE on the same server; with
> Tomcat
> it's simple: I set the two environment variables CATALINA_HOME and
> CATALINA_BASE.
> I tried to set the same variables, in additions to the OPENEJB_HOME and
> OPENEJB_BASE variables, in TomEE 1.5, but my webapp (JSF,CDI,EJB) doesn't
> work.
> This is the log:
>
> 16-Oct-2012 15:07:02.935 INFO [localhost-startStop-1]
> org.apache.catalina.startup.HostConfig.deployWAR Deploying web application
> archive
>
> /opt/develop/workspace/bravofly-eclipse/bravofly-scheduler-2.0-tomee/webapps/bravofly-scheduler-2.0-SNAPSHOT.war
> 16-Oct-2012 15:07:02.935 INFO [localhost-startStop-1]
> org.apache.tomee.catalina.TomcatWebAppBuilder.init
> -------------------------
> TomcatWebAppBuilder.init /bravofly-scheduler-2.0-SNAPSHOT
> 16-Oct-2012 15:07:02.937 INFO [localhost-startStop-1]
> org.apache.openejb.util.JarExtractor.extract Extracting jar:
>
> /opt/develop/workspace/bravofly-eclipse/bravofly-scheduler-2.0-tomee/webapps/bravofly-scheduler-2.0-SNAPSHOT.war
> 16-Oct-2012 15:07:03.040 INFO [localhost-startStop-1]
> org.apache.openejb.util.JarExtractor.extract Extracted path:
>
> /opt/develop/workspace/bravofly-eclipse/bravofly-scheduler-2.0-tomee/webapps/bravofly-scheduler-2.0-SNAPSHOT
> 16-Oct-2012 15:07:03.157 SEVERE [localhost-startStop-1]
> org.apache.catalina.core.ContainerBase.addChildInternal
> ContainerBase.addChild: start:
>  org.apache.catalina.LifecycleException: Failed to start component
>
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/bravofly-scheduler-2.0-SNAPSHOT]]
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>         at
>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:968)
>         at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1646)
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         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: java.lang.NullPointerException
>         at java.io.File.<init>(File.java:251)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:1598)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:874)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:831)
>         at
>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:121)
>         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)
>         ... 11 more
>
> 16-Oct-2012 15:07:03.159 SEVERE [localhost-startStop-1]
> org.apache.catalina.startup.HostConfig.deployWAR Error deploying web
> application archive
>
> /opt/develop/workspace/bravofly-eclipse/bravofly-scheduler-2.0-tomee/webapps/bravofly-scheduler-2.0-SNAPSHOT.war
>  java.lang.IllegalStateException: ContainerBase.addChild: start:
> org.apache.catalina.LifecycleException: Failed to start component
>
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/bravofly-scheduler-2.0-SNAPSHOT]]
>         at
>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:968)
>         at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1646)
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         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)
>
> Any suggestions?
>
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/TomEE-and-catalina-base-catalina-home-variables-tp4658062.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message