Need Help Building Servlet-Mapping in web.xml


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Need Help Building Servlet-Mapping in web.xml

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

    Need Help Building Servlet-Mapping in web.xml

    Need Help Building Servlet-Mapping in web.xml. 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
    Dec 2005
    Posts
    48
    I think your configuration is right,
    You should ask the webmaster if the server support servlet invoke?

Similar Threads

  1. Replies: 1
    Last Post: 01-10-2006, 08:54 AM
  2. SQL Help and Servlet help
    By trixma in forum Java
    Replies: 4
    Last Post: 09-09-2005, 08:12 AM
  3. Servlet Help
    By trixma in forum Java
    Replies: 4
    Last Post: 09-04-2005, 11:10 PM
  4. typical problem, pls help
    By SATISH in forum Java
    Replies: 1
    Last Post: 09-29-2000, 09:33 AM
  5. Replies: 0
    Last Post: 04-04-2000, 04:28 PM

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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center