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

Servlet deployment iuuse in weblogic 8.1

 
RP Singh
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am deploying a servlet firsttime in weblogic 8.1 server. I have added the mapping information in web.xml.

After I restart the server, the server can not locate the class .

I have the WEB-INF under applications/Giftstore , and classes and lib under WEB-INF. I have put the web.xml under WEB-INF as well.

I am getting "Error 404--Not Found" error when I access the following url

http://localhost:7001/Giftstore/firstservlet


Can not figure out what is going on here. I can get to console and a sample jsp page. But the servlets do not work

Here is the xml code I am adding to the web.xml.

<servlet>
<servlet-name>firstservlet</servlet-name>
<servlet-class>com.landridge.gifts.FirstServlet</servlet-class>
</servlet>

<servlet>
<servlet-name>ServletPractice</servlet-name>
<servlet-class>com.landridge.gifts.ServletPractice</servlet-class>
</servlet>



RP
 
Saket Barve
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your directory structure in general and especially under WEB-INF/classes appropriate? You might also want to put in a simple index.html in your application root and see if that comes up.
 
Santosh Rathi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you also need to set the <servlet-mapping> tag, add this tag and then try again. it should work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic