• 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

Deploying Servlets + Urgent Help reqd

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).]
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic