By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,315 Members | 2,150 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,315 IT Pros & Developers. It's quick & easy.

Tomcat - war file not expanded

rsrinivasan
100+
P: 221
Hi all,

I already posted the same question in this forum. But i did not get any solution for this.

I am using tomcat4.1.
This is my tomcat context configuration in server.xml file.

Expand|Select|Wrap|Line Numbers
  1. <Context path="/tri" docBase="tri" debug="0" reloadable="true" crossContext="true" swallowOutput="false">
  2.           <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_examples_log." suffix=".txt" timestamp="true"/>
  3.           <Ejb   name="ejb/EmplRecord" type="Entity" home="com.wombat.empl.EmployeeRecordHome" remote="com.wombat.empl.EmployeeRecord"/>
I have "tri.war" file in tomcat base/webapps folder. But when i restart my tomcat server, the war file did not expand. Instead it throws the exception in my log file.

Here is the Exception in log file.

Expand|Select|Wrap|Line Numbers
  1. 2008-02-26 18:50:07 StandardContext[/tri]: Resources start failed:
  2. java.lang.IllegalArgumentException: Document base D:\jakarta-tomcat-4.1.27\webapps\tri does not exist or is not a readable directory
  3.     at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:193)
  4.     at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3343)
  5.     at org.apache.catalina.core.StandardContext.start(StandardContext.java:3473)
  6.     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  7.     at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
  8.     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  9.     at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
  10.     at org.apache.catalina.core.StandardService.start(StandardService.java:497)
  11.     at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
  12.     at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
  13.     at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
  14.     at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
  15.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  16.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  17.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  18.     at java.lang.reflect.Method.invoke(Method.java:324)
  19.     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
  20.  
  21. 2008-02-26 18:50:07 StandardContext[/tri]: Context startup failed due to previous errors
  22. 2008-02-26 18:50:07 StandardContext[/tri]: Exception during cleanup after start failed
  23. LifecycleException:  Container StandardContext[/tri] has not been started
  24.     at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3644)
  25.     at org.apache.catalina.core.StandardContext.start(StandardContext.java:3622)
  26.     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  27.     at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
  28.     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  29.     at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
  30.     at org.apache.catalina.core.StandardService.start(StandardService.java:497)
  31.     at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
  32.     at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
  33.     at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
  34.     at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
  35.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  36.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  37.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  38.     at java.lang.reflect.Method.invoke(Method.java:324)
  39.     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
If any one knows, what it is reply me..

Thanks in advance,
Feb 27 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.