You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Kedar, Shahar" <Sh...@softwareag.com> on 2006/09/26 17:42:11 UTC
[Axis2] different servlet mapping for axis2
Hi,
I'm using both Axis1 and Axis2 servlets under the sane Tomcat 5.5
server. I specified in the web.xml file of my web application the
following servlet mappings:
<servlet>
<servlet-name>Axis2Servlet</servlet-name>
<display-name>Apache-Axis Servlet</display-name>
<servlet-class>
org.apache.axis2.transport.http.AxisServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>Axis2AdminServlet</servlet-name>
<display-name>Apache-Axis AxisAdmin Servlet
(REST)</display-name>
<servlet-class>
org.apache.axis2.transport.http.AxisAdminServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>AxisServlet</servlet-name>
<servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class
>
</servlet>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Axis2Servlet</servlet-name>
<url-pattern>/axis2-services/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Axis2AdminServlet</servlet-name>
<url-pattern>/axis2-admin/*</url-pattern>
</servlet-mapping>
This works great when I specify a specific service url in the browser as
follows:
For Axis1: http://<tomcat_server_ip:tomcat_server_port>/<my web
application name>/services/<my_service_name>?wsdl
For Axis2: http://<tomcat_server_ip:tomcat_server_port>/<my web
application name>/axis2-services/<my_service_name>?wsdl
However, when I start list my services through the Axis2 admin
application (http://<tomcat_server_ip:tomcat_server_port>/>/<my web
application name>//axis2-admin/listService) I get the service URL for
Axis1 and not Axis2. It is as if the axis2 admin does not consult the
servlet mappings and simply assumes that the Axis2 servlet will be
mapped to the default /services/* mapping.
Is this a bug? Do I need to configure anything in addition to the
servlet mappings?
Thanks,
Shahar Kedar