my dog learned polymorphism*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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

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.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "">
<application id="Application_ID">
<module id="WebModule_1">


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "">
<web-app id="WebApp_ID">
<display-name>q test</display-name>
<servlet id="Servlet_1">
<servlet-mapping id="ServletMapping_1">
<welcome-file-list id="WelcomeFileList_1">
[ April 24, 2002: Message edited by: Jeff Gaer ]

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

Joined: Aug 10, 2001
Posts: 3892
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 Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at 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:
subject: problems deploying a war file on 4.0.1 advanced edition
Similar Threads
Problem accessing a servlet in weblogic
servlet deployment error in web.xml on WSAD 4.x
Loading sequence of the different modules in an EAR....?
Problem in WAS 40 Deployment
war on servlets 4