I have a WAR file which is built by JBuilder6. This WAR file deploys
fine under Tomcat4 on Windows2000 when I copy it to the webapps
directory and restart Tomcat. However, when I do the same on a Debian
Linux system running Tomcat4, I get the following in the log files:
2002-09-19 10:15:12 StandardHost[localhost]: Installing web
application at context path /Phantom from URL
jar:file:/var/lib/tomcat4/webapps/Phantom.war!/
2002-09-19 10:15:12 WebappLoader[/Phantom]: Deploying class
repositories to work directory /usr/share/tomcat4/work/localhost/Phantom
2002-09-19 10:15:12 StandardManager[/Phantom]: Seeding random
number generator class java.security.SecureRandom
2002-09-19 10:15:12 StandardManager[/Phantom]: Seeding of random
number generator has been completed
2002-09-19 10:15:12 ContextConfig[/Phantom]: Missing application
web.xml, using defaults only
2002-09-19 10:15:12 StandardWrapper[/Phantom:default]: Loading
container servlet default
2002-09-19 10:15:12 default: init
2002-09-19 10:15:12 StandardWrapper[/Phantom:invoker]: Loading
container servlet invoker
2002-09-19 10:15:12 invoker: init
2002-09-19 10:15:12 jsp: init
2002-09-19 10:15:12 Internal Error: File /WEB-INF/web.xml not
found
A similar error occurs when I try to deploy the webapp using the
manager. Although the install command claims success and the webapp is
listed as running, accessing the servlet results in a 404. I am able to
access files stored in the root of the WAR file, however, but none of
the subdirectories. The WAR file is not expanded in the webapps
directory.
The WAR file has read/execute priviledges set to 'all' and is located in
a publicly-accessible directory when I try to deploy with the manager.
Performing an `unzip -l Phantom.war | grep web.xml` provides the
following:
698 09-19-02 10:39 WEB-INF/web.xml
So the web.xml is there.
The contents of the file read like so:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC
'-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
'http://java.sun.com/j2ee/dtds/web-app_2_3.dtd'>
<web-app>
<display-name>Phantom</display-name>
<listener>
<listener-class>
com.phantom.session.PhantomHttpSessionListener
</listener-class>
</listener>
<servlet>
<servlet-name>Phantom</servlet-name>
<servlet-class>com.phantom.servlet.PhantomServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Phantom</servlet-name>
<url-pattern>/servlet</url-pattern>
</servlet-mapping>
</web-app>
If anyone has any suggestions, I would be happy to receive them.
thanks,
ian.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>