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

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(
  4.     at org.apache.catalina.core.StandardContext.resourcesStart(
  5.     at org.apache.catalina.core.StandardContext.start(
  6.     at org.apache.catalina.core.ContainerBase.start(
  7.     at org.apache.catalina.core.StandardHost.start(
  8.     at org.apache.catalina.core.ContainerBase.start(
  9.     at org.apache.catalina.core.StandardEngine.start(
  10.     at org.apache.catalina.core.StandardService.start(
  11.     at org.apache.catalina.core.StandardServer.start(
  12.     at org.apache.catalina.startup.Catalina.start(
  13.     at org.apache.catalina.startup.Catalina.execute(
  14.     at org.apache.catalina.startup.Catalina.process(
  15.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  16.     at sun.reflect.NativeMethodAccessorImpl.invoke(
  17.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(
  18.     at java.lang.reflect.Method.invoke(
  19.     at org.apache.catalina.startup.Bootstrap.main(
  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(
  25.     at org.apache.catalina.core.StandardContext.start(
  26.     at org.apache.catalina.core.ContainerBase.start(
  27.     at org.apache.catalina.core.StandardHost.start(
  28.     at org.apache.catalina.core.ContainerBase.start(
  29.     at org.apache.catalina.core.StandardEngine.start(
  30.     at org.apache.catalina.core.StandardService.start(
  31.     at org.apache.catalina.core.StandardServer.start(
  32.     at org.apache.catalina.startup.Catalina.start(
  33.     at org.apache.catalina.startup.Catalina.execute(
  34.     at org.apache.catalina.startup.Catalina.process(
  35.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  36.     at sun.reflect.NativeMethodAccessorImpl.invoke(
  37.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(
  38.     at java.lang.reflect.Method.invoke(
  39.     at org.apache.catalina.startup.Bootstrap.main(
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.