Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Websphere and the fly likes problems deploying a war file on 4.0.1 advanced edition Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "problems deploying a war file on 4.0.1 advanced edition" Watch "problems deploying a war file on 4.0.1 advanced edition" New topic
Author

problems deploying a war file on 4.0.1 advanced edition

Jeff Gaer
Ranch Hand

Joined: Jun 04, 2001
Posts: 99
I’m having trouble deploying a war file on websphere 4.01 advanced edition. I get no errors during deployment and the web modules status is running The modules context root is /qt, the welcome file is index.html. But http://localhost/qt, http://localhost/qt/ and http://localhost/qt/index.html all yield 404 errors. I was able to deploy on tomcat, and all the examples are working fine on websphere. I tried both using the AAT to build the web.xml and building it with an editor. I’ve compared it to the web.xml files in the sample code and I can’t find what it is that I am doing wrong. The admin console does show the status as running and does show the contextRoot as /qt. Viewing the deployment descriptor from the Admin console verifies that the welcome file is index.html. I know its probably simple but I just can’t find the problem. I’ve attached the application.xml from qt.ear and web.xml files from qt.war. I would be very grateful to anyone who can me find my mistake.
Application.xml
<CODE>
Application.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
<application id="Application_ID">
<display-name>qt_war</display-name>
<module id="WebModule_1">
<web>
<web-uri>qt.war</web-uri>
<context-root>/qt</context-root>
</web>
</module>

</application>

web.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app id="WebApp_ID">
<display-name>q test</display-name>
<servlet id="Servlet_1">
<servlet-name>queryservlet</servlet-name>
<servlet-class>tester.QueryServlet</servlet-class>
</servlet>
<servlet-mapping id="ServletMapping_1">
<servlet-name>queryservlet</servlet-name>
<url-pattern>/qt/qtest</url-pattern>
</servlet-mapping>
<welcome-file-list id="WelcomeFileList_1">
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
[ April 24, 2002: Message edited by: Jeff Gaer ]

Sun Certified Java Programmer Java 2<P>Jeff Gaer
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
If http://localhost:9080/qt works from your browser then your problem is you haven't regenerated the plugin configuration file. If this is true, then open a command prompt, type "GenPluginCfg" and restart the HTTP Server from the Windows control panel.
If on the other hand, the above URL doesn't work then you've got another problem for us to work out...
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Jeff Gaer
Ranch Hand

Joined: Jun 04, 2001
Posts: 99
THANKS!!! Thats was it, I very much appreciate it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problems deploying a war file on 4.0.1 advanced edition