I am trying to deploy servlets in weblogi 6.0. I followed the instructions: 1. Create war file with jsp, servlets and the 2 deployment descriptors. 2. Clicked on WebApplications and the otion Install New Web Application. Gave it a name and pointed to path to my war file. 3. This created an Application with the name i specified under the Applications. 4. I tried calling the servlet using http://localhost:7001/<url for my servlet> 5. I get a 404 error. Any help is greatly appreciated. I also tried the approach given in the quickstart...dumped my folder structure under the default mydomain/applications folder; modified the web.xml file and called the servlet. Same error.
Steve Chernyak
Ranch Hand
Joined: Oct 19, 2000
Posts: 113
posted
0
I am guessing it can't find your web.xml . If it did it wouldn't place it under Applications. Make sure your web.xml file is in the WEB-INF directory (make sure it is in upper case). also open your war file and check the path for the web.xml the WEB-INF directory might be nested inside another directory. Ex. webapp\WEB-INF [This message has been edited by Steve Chernyak (edited September 27, 2001).]
Christopher Parsons
Greenhorn
Joined: Sep 20, 2001
Posts: 4
posted
0
Don't forget that you not only have to provide a servlet name in web.xml....but also a servlet mapping. This has gotten some people I know before. Chris