1 Reply Latest reply on Jan 7, 2005 8:20 PM by Wiley Snyder

    another servlet Error 404 question

    Wiley Snyder Newbie

      Hello, I'm sure this question has been asked alot but here goes ... I can't seem to find the answer.

      When I go here http://www.mysite.xyz:8080/shoppingCart/Cart

      Everything is great.

      When I go here http://www.mysite.xyz/shoppingCart/Cart

      404 Error not found

      The thing is http://www.mysite.xyz/shoppingCart/
      comes up great it is just not seeing my servlet defined in my web.xml ...

      This is my jboss-web.xml for shoppingCart ...

      <?xml version="1.0" encoding="UTF-8"?>
      <jboss-web>
      <context>/com-html-jsp/shoppingCart/*</context>
      <!-- I've also tried /com-html-jsp/shoppingCart</context> -->
      <virtual-host>www.mysite.xyz</virtual-host>
      </jboss-web>
      


      I have shoppingCart.war in the deploy directory everythings setup and shoppingCart application comes up fine like I said ...

      This is my WEB-INF/web.xml inside shoppingCart ...
      <?xml version="1.0" encoding="ISO-8859-1"?>
      
      <!DOCTYPE web-app
       PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
       "http://java.sun.com/dtd/web-app_2_3.dtd">
      
      <web-app>
      
       <servlet>
       <servlet-name>Cart</servlet-name>
       <servlet-class>STOREBEANS.Cart</servlet-class>
       </servlet>
      
       <servlet-mapping>
       <servlet-name>Cart</servlet-name>
       <url-pattern>/Cart</url-pattern>
       </servlet-mapping>
      
      </web-app>
      


      I can't seem to find out what I'm doing wrong here. Please help ...

      thanks in advance.