"briana" wrote : 
  | <?xml version="1.0"?>
  | <!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>
  | <display-name>HR</display-name>
  | HR Misc Apps
  | 
  | <servlet-mapping>
  | <servlet-name>TestingServlet</servlet-name>
  | <url-pattern>/test</url-pattern>
  | </servlet-mapping>
  | </web-app>
  | 

Is this the full text of your web.xml file?  If so, you need to declare the servlet 
before you declare it's mapping.  Like this:


  | <?xml version="1.0"?>
  | <!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>TestServlet</servlet-name>
  |       <display-name>Test Servlet</display-name>
  |       <description><![CDATA[None Available]]></description>
  |      <servlet-class>org.yourpackage.web.TestServlet</servlet-class>
  |    </servlet>
  | 
  |    <servlet-mapping>
  |       <servlet-name>TestServlet</servlet-name>
  |       <url-pattern>test</url-pattern>
  |    </servlet-mapping>
  | </web-app>
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844009#3844009

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844009


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to