This is what I have in my conf/web.xml regarding what you said.
<servlet>
  <servlet-name>invoker</servlet-name> 
 
<servlet-class>org.apache.catalina.servlets.InvokerServlet</servlet-clas
s> 
- <init-param>
  <param-name>debug</param-name> 
  <param-value>0</param-value> 
  </init-param>
  <load-on-startup>2</load-on-startup> 
  </servlet>

And this is what I see in the web.xml of the webapps/examples/web-inf
...
<!-- Define filter mappings for the defined filters -->
    <filter-mapping>
        <filter-name>Servlet Mapped Filter</filter-name>
        <servlet-name>invoker</servlet-name>
    </filter-mapping>
    <filter-mapping>
        <filter-name>Path Mapped Filter</filter-name>
        <url-pattern>/servlet/*</url-pattern>
    </filter-mapping>

Even if I cant figure out this concept and make it work with the
"Servlet"  mapping. It should still work if I use

http://localhost:8080/ch03/com.wrox.jsp.myapp.MyServlet with the file
structure of..

webapps/ch03/WEB-INF/classes/com/wrox/jsp/myapp/MyServlet.class

The servlets in the examples dir work great except my app that I'm
trying to create????

Thanks for your help.


You have to make sure, that the invoker servlet is mapped to /server
like
-------------
    <servlet-mapping>
        <servlet-name>invoker</servlet-name>
        <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>
-------------
This section is commented out in the conf/web.xml.

So you either need to add this line to your server web.xml or your
application.


Wouldn't it be a good idea to activate this mapping by default
in further tomcat distributions ?



Ciao

Jens Skripczynski
-- 
E-Mail: skripi(at)myrealbox(dot)com

Technology is a constand battle between manufacturers producing bigger
and
more idiot-proof systems and nature producing bigger and better idiots.
                                -- Slashdot signature


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to