• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Servlet deployment iuuse in weblogic 8.1

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you also need to set the <servlet-mapping> tag, add this tag and then try again. it should work.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic