473,804 Members | 4,217 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tomcat - war file not expanded

rsrinivasan
221 New Member
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 2820

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

Similar topics

0
1916
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 through tomcat server while I can easily do this through apache2 server. It 's like PHP wasn't interpretted by tomcat.
0
5934
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 file. Each row has a link to a 'delete' page that removes the row from the XML file itself and then forwards back to the edit page to display the updated table. My problem is that the deleted row is displayed when the edit page reloads. A copy...
0
3689
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 , /webapps/sue) and i have added the folders bob, sue in my server.xml(in the context path). When i am trying to run jsp files from my browser, it works fine. But, the following jsp files reports some exceptions which is quite hard to understand. Here is...
7
6245
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 managed to get Tomcat static html page load from Apache server without specifying 8080 port, like this:
6
12159
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 index.jsp file, Tomcat response with an "HTTP/1.1 302 Moved Temporarily" and a "Location: http://myhost.mydomain.com/index.jsp" ... I was wondering if there is a configuration for tomcat that can stop this behavior, i.e., just run index.jsp?
1
10296
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 to webapps/myApp. To access this I have to use a url like http://mydomain.com/myApp?someparam=1 What I want to do is use this: http://mydomain.com?someparam=1
5
38010
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
5989
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 is of the tomcat's(System.out.println...) - and because there are 3 tomcats there are 3 logs. The log4j writes to one file only. My question is: How can I tell in the log4j log from which server the request came
0
4224
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 2 running on the server used by other application. Once after installation of the product(HP SIP), I tried to restart the Tomcat 5.0.19 process using below methods(errors reported below respectively) 1) services.msc console Could not start...
0
10586
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10323
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7622
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6856
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5658
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3823
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.