Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problems deploying a war file on 4.0.1 advanced edition

 
Jeff Gaer
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jeff Gaer
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THANKS!!! Thats was it, I very much appreciate it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic