DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Location
    New York
    Posts
    9

    Please Help Building servlet-Mapping in web.xml file

    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>

    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

  2. #2
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    255
    Your code would indicate something but I would have to resort to guess-work meanwhile. What is the action you have set to the login page?
    Happiness is good health and a bad memory.

Similar Threads

  1. tomcat web.xml file help please.
    By David in forum Java
    Replies: 0
    Last Post: 07-28-2003, 12:59 PM
  2. NullPointerException when reading text file
    By Andrew McLellan in forum Java
    Replies: 3
    Last Post: 05-09-2001, 05:34 PM
  3. Replies: 2
    Last Post: 03-07-2001, 08:25 PM
  4. file name==class name. why?
    By siva in forum Java
    Replies: 2
    Last Post: 01-03-2001, 10:40 AM
  5. Replies: 0
    Last Post: 08-22-2000, 10:54 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links