• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Need Help for Correct Url Mapping for Servlet in web.xml

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help me write correct url in my web.xml file. The following is my web.xml entry for my controller servlet.The following entry works fine when i run my application on my local laptop machine. I just cannot figure out what to write in my url mapping for my contrioller servlet so that my controller servlet can be found on the server once the application is uploaded on the host server on the internet.
My application name = ROOT.war
My hosting directory = http://javafaces.s43.eatj.com.
Please help me write the correct url mapping for my controller servlet.......Thanks

<servlet>
<servlet-name>ShadiManager</servlet-name>
<servlet-class>com.example.model.ServletController</servlet-class>
</servlet>


<servlet-mapping>
<servlet-name>ShadiManager</servlet-name>
<url-pattern>/ShadiManager</url-pattern>
</servlet-mapping>
 
Mohammad Ali
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am attaching the error which comes after i tried to login my application.
The index.jsp page comes fine but when i tried to login in my application using user-id/passowrd the Following Error comes on the server when i try to enter my application using
userid = guest
password = guest.

The Error
=========

HTTP Status 404 - Servlet ShadiManager is not available

--------------------------------------------------------------------------------

type Status report

message Servlet ShadiManager is not available

description The requested resource (Servlet ShadiManager is not available) is not available.


--------------------------------------------------------------------------------

Apache Tomcat/5.5.9
 
Brace yourself while corporate america tries to sell us its things. Some day they will chill and use tiny ads.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!