473,386 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Tomcat - war file not expanded

rsrinivasan
221 100+
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
0 2768

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

Similar topics

0
by: moretti | last post by:
Hello I try to see my PHP files through tomcat. Tomcat 5.0.25 (from binaries) PHP 4.3.3 (from RPMs) Linux Suse 9.0 A message asks me to download my PHP file; I cannot open it in my browser...
0
by: Steve Adams | last post by:
Hi, I have a JSP application on Tomcat that performs XSL transformations on an XML file using the xtags-1.0 taglib. Basically, I have an 'edit' page that displays a table of entities from my XML...
0
by: Jagdeesh | last post by:
Hai Colleagues, I am using Tomcat 4.1.24 and JDK 1.4.0_03 in my winXP machine. I've transferred a set of folders(containing jsp files) into tomcat's webapps directory(to /webapps/bob ,...
7
by: Alexandr Molochnikov | last post by:
Hello, I've spent a few days trying to get Apache and Tomcat work together via JK module. First I followed the following HOWTO link: http://www.johnturner.com/howto/winxp-howto.html and...
6
by: DaiIchi | last post by:
I'm using Tomcat in standalone mode. When a URL without a filename is entered into the browser (ie. "http://myhost.mydomain.com"), and the default path does NOT have an index.html, but rather an...
1
by: SPG | last post by:
Hi, I am relatively new to TOMCAT, and am trying to deploy a web app using it. I have a domain name that I want to use to access my web app directly. By default, I deploy my WAR, and it deploys...
5
by: D E | last post by:
When using my web application manager (http://localhost:8080/admin) I forgot my password. Is there an XML file i can look at to remember/obtain (possibly even set). Thanks
1
by: Adi | last post by:
Hi, I have a web application (using J2EE) which runs on 3 tomcats (4.0) for Load Balancing. I have recently started to use the Log4j in this application. Currently the logs for this application...
0
by: Arun21084 | last post by:
Hi, Recently I installed an application HP SIP(Service Information Portal) on a Windows 2000 server.The application comes along with an installation of Tomcat 5.0.19. Already there was an Apache...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.