Hi,
In my catalina.sh I add :
JAVA_OPTS="-Dappserver.base=/local/continuum/apache-tomcat-6.0.14 -
Djava.awt.headless=true -Xmx512m -Xms512m -server "

--
Olivier

2007/9/14, Graham Leggett <[EMAIL PROTECTED]>:
>
> Hi all,
>
> When attempting to deploy the trunk version of continuum-webapp to
> apache-tomcat v6.0.14, the startup bombs like below.
>
> It seems that the file WEB-INF/classes/META-INF/plexus/application.xml
> contains the lines:
>
>               <property>
>                 <name>file</name>
>                 <value>${appserver.base}/logs/continuum.log</value>
>               </property>
>
> It looks like appserver.base is not set when continuum is run from tomcat.
>
> log4j:ERROR setFile(null,true) call failed.
> java.io.FileNotFoundException: /logs/continuum.log (No such file or
> directory)
>         at java.io.FileOutputStream.openAppend(Native Method)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
>         at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
>         at
> org.apache.log4j.FileAppender.activateOptions(FileAppender.java:151)
>         at
> org.apache.log4j.DailyRollingFileAppender.activateOptions(
> DailyRollingFileAppender.java:206)
>         at
> org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
>         at
> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java
> :123)
>         at
> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java
> :87)
>         at
> org.apache.log4j.PropertyConfigurator.parseAppender(
> PropertyConfigurator.java:645)
>         at
> org.apache.log4j.PropertyConfigurator.parseCategory(
> PropertyConfigurator.java:603)
>         at
> org.apache.log4j.PropertyConfigurator.configureRootCategory(
> PropertyConfigurator.java:500)
>         at
> org.apache.log4j.PropertyConfigurator.doConfigure(
> PropertyConfigurator.java:406)
>         at
> org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java
> :340)
>         at
> org.codehaus.plexus.logging.log4j.Log4JLoggerManager.start(
> Log4JLoggerManager.java:299)
>         at
> org.codehaus.plexus.personality.plexus.lifecycle.phase.StartPhase.execute(
> StartPhase.java:33)
>         at
> org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(
> AbstractLifecycleHandler.java:128)
>         at
>
> org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle
> (AbstractComponentManager.java:142)
>         at
>
> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance
> (AbstractComponentManager.java:132)
>         at
>
> org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent
> (ClassicSingletonComponentManager.java:90)
>         at
> org.codehaus.plexus.DefaultComponentLookupManager.lookup(
> DefaultComponentLookupManager.java:147)
>         at
> org.codehaus.plexus.DefaultComponentLookupManager.lookupMap(
> DefaultComponentLookupManager.java:199)
>         at
> org.codehaus.plexus.DefaultPlexusContainer.lookupMap(
> DefaultPlexusContainer.java:309)
>         at
> org.codehaus.plexus.DefaultPlexusContainer.lookupMap(
> DefaultPlexusContainer.java:303)
>         at
>
> org.codehaus.plexus.container.initialization.InitializeLoggerManagerPhase.initializeCoreComponent
> (InitializeLoggerManagerPhase.java:47)
>         at
>
> org.codehaus.plexus.container.initialization.AbstractCoreComponentInitializationPhase.execute
> (AbstractCoreComponentInitializationPhase.java:37)
>         at
> org.codehaus.plexus.DefaultPlexusContainer.initializePhases(
> DefaultPlexusContainer.java:886)
>         at
> org.codehaus.plexus.DefaultPlexusContainer.initialize(
> DefaultPlexusContainer.java:834)
>         at
> org.codehaus.plexus.DefaultPlexusContainer.construct(
> DefaultPlexusContainer.java:811)
>         at
> org.codehaus.plexus.DefaultPlexusContainer.<init>(
> DefaultPlexusContainer.java:222)
>         at
> org.codehaus.plexus.DefaultPlexusContainer.<init>(
> DefaultPlexusContainer.java:260)
>         at
> org.codehaus.plexus.xwork.PlexusLifecycleListener.contextInitialized(
> PlexusLifecycleListener.java:76)
>         at
> org.apache.catalina.core.StandardContext.listenerStart(
> StandardContext.java:3830)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java
> :791)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
>         at
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java
> :626)
>         at
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
> :553)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
>         at org.apache.catalina.startup.HostConfig.start(HostConfig.java
> :1138)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
> LifecycleSupport.java:117)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>         at org.apache.catalina.core.StandardHost.start(StandardHost.java
> :719)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> :39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> log4j:ERROR Either File or DatePattern options are not set for appender
> [rolling].
> 2007-09-14 18:08:27,194 [main] INFO  PlexusContainer                -
> Loading on start [role,roleHint]:
> [org.apache.maven.continuum.Continuum,default]
> Sep 14, 2007 6:08:27 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> Sep 14, 2007 6:08:27 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/continuum] startup failed due to previous errors
>
> Regards,
> Graham
> --
>
>
>


-- 
Olivier

Reply via email to