IntelliJ Java IDE
The moose likes BEA/Weblogic and the fly likes Deploying Servlets + Urgent Help reqd Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply Bookmark "Deploying Servlets + Urgent Help reqd" Watch "Deploying Servlets + Urgent Help reqd" New topic
Author

Deploying Servlets + Urgent Help reqd

dharini ramakrishnan
Greenhorn

Joined: Sep 27, 2001
Posts: 2
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
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
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
 
IntelliJ Java IDE
 
subject: Deploying Servlets + Urgent Help reqd
 
Threads others viewed
How to run jsp page using apache-tomcat-5.5.27 & jdk 1.5.0
how to deploy a .war file?
Servlets with Weblogic
Deploying first JSP in Weblogic
A small problem while running my webapplication
IntelliJ Java IDE