Tomcat Integration

Hello,

i'm addressing this subject again.
I have a web application which its own context.xml, which is usually deployed into ../Catalinal/host/. This context contains all application settings (jndi). To test it with Idea i created Tomcat environment containing just the needed /conf directory and ../Catalinal/host/app.xml.
Path to Catalina configs refers to this directory where Catalina Home points to the Tomcat Installation.
The problem i have now is, that Idea will create it's own context.xml containing just the docbase and path - so it's pretty useless.
Is there a way to use my own context.xml or that the content of my context.xml is included into the generated one?
The current situation is not satisfactory and i would like to have this issue resolved.

Thanks for any help

Reto Badertscher

-


Tomcat Start Log from within Idea:
-


C:/java/j2sdk1.4.2\bin\java "-Djava.endorsed.dirs=C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\endorsed" "-Dcatalina.base=C:\Documents and Settings\rbad\.IntelliJIdea\system\tomcat_myProfile_f35cf1b" "-Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.0" "-Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 5.0\temp" -Dfile.encoding=windows-1252 -classpath "C:\java\j2sdk1.4.2\lib\tools.jar;C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin\bootstrap.jar;C:\IntelliJ-IDEA-4.0\lib\idea_rt.jar" -Didea.launcher.port=7535 -Didea.launcher.library=C:\IntelliJ-IDEA-4.0\bin\breakgen.dll com.intellij.rt.execution.application.AppMain org.apache.catalina.startup.Bootstrap start
07.04.2004 10:26:23 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
07.04.2004 10:26:23 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1692 ms
07.04.2004 10:26:24 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
07.04.2004 10:26:24 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
07.04.2004 10:26:24 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
myProfile.CacheResetterBD: Can not instantiate CacheResetterBD. Cause=Name loggername is not bound in this Context
07.04.2004 10:26:26 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Error listenerStart
07.04.2004 10:26:26 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Context startup failed due to previous errors
07.04.2004 10:26:26 org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
07.04.2004 10:26:26 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\Documents and Settings\rbad\.IntelliJIdea\system\tomcat_myProfile_f35cf1b\conf\Catalina\localhost\raweb#myProfile.xml
07.04.2004 10:26:26 org.apache.catalina.startup.HostConfig deployDescriptors
SCHWERWIEGEND: Error deploying configuration descriptor raweb#myProfile.xml
java.io.IOException: java.io.FileNotFoundException: C:\Documents and Settings\rbad\.IntelliJIdea\system\tomcat_myProfile_f35cf1b\conf\Catalina\localhost\raweb (The system cannot find the file specified)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:525)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:906)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:527)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
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:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
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:324)
at com.intellij.rt.execution.application.AppMain.main(Unknown Source)
07.04.2004 10:26:27 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
07.04.2004 10:26:27 org.apache.catalina.startup.Catalina start
INFO: Server startup in 3485 ms

Please sign in to leave a comment.