tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kurt Kavanaugh" <kkavana...@teletrol.com>
Subject url-pattern not working with AxisServlet
Date Mon, 05 May 2008 17:11:07 GMT
 

Not seeing the AxisServlet being invoked for /services/* url-pattern...

 

Web.xml

 

************************************************************************
***

  <servlet>

    <servlet-name>AxisServlet</servlet-name> 

    <display-name>Apache-Axis Servlet</display-name>

 
<servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-clas
s> 

        <init-param>

        </init-param>

    <load-on-startup>1</load-on-startup>

  </servlet>

 

    <servlet-mapping>

        <servlet-name>AxisServlet</servlet-name>

        <url-pattern>/servlet/AxisServlet</url-pattern>

    </servlet-mapping>

 

    <servlet-mapping>

        <servlet-name>AxisServlet</servlet-name>

        <url-pattern>*.jws</url-pattern>

    </servlet-mapping>

 

    <servlet-mapping>

        <servlet-name>AxisServlet</servlet-name>

        <url-pattern>/services/*</url-pattern>

    </servlet-mapping>

 

    <mime-mapping>

        <extension>inc</extension>

        <mime-type>text/plain</mime-type>

    </mime-mapping>

 

  <servlet>

    <servlet-name>action</servlet-name>

 
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>

    <init-param>

    </init-param>

    <load-on-startup>2</load-on-startup>

  </servlet>

 

  <servlet-mapping>

    <servlet-name>action</servlet-name>

    <url-pattern>*.do</url-pattern>

  </servlet-mapping>

 

 

******************************* EOF
**************************************

 

Apache access INFO

 

127.0.0.1 - - [05/May/2008:12:05:30 -0400] "GET /services/TestService
HTTP/1.1" 404 306

 

Note there is no corresponding entry in the TOMCAT access log.

 

Interestingly, we are also using struts, which has a
<url-pattern>*.do</url-pattern> this produces some odd results...

 

If I execute the following URL

 

http://localhost//test/foo.do?SERIALNUMBER=XXX&STATUS=2

 

the appropriate struts action gets called... however If I do this....

 

http://localhost//services/foo.do <http://localhost/services/foo.do> 

 

I end up in my AxisServlet break point. Which is where I want to be, but
not using the *.do

 

Any ideas or help is much appreciated.

 

 

Kurt

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message