tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Druzhiinin Mihail ...@rcbd.org>
Subject Servlet url mapping work incorrect when many servlets have one code
Date Mon, 29 Sep 2008 11:11:45 GMT
Dear users,

We have 2 servlets with one code and different init parameters mapped to
different url. On high load requests to first servlet handled by second servlet. I different
servlets by init params. It apparent when second servlet was called.
What I do illegal?

web.xml:

<?xml version="1.0" encoding="UTF-8" ?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

   

    <security-role>
        <role-name>ybs</role-name>
    </security-role>

    <servlet>
    	<description>Main servlet</description>
    	<display-name>YellowBoxServlet</display-name>
    	<servlet-name>YellowBoxServlet</servlet-name>
    	<servlet-class>rcbd.nbilling.yb.YellowBoxServlet</servlet-class>
        <init-param>
            <description>Идентификатор оператора, от которого
будет осуществляться прием платежей</description>
            <param-name>operator_id</param-name>
            <param-value>9000</param-value>
        </init-param>
        <run-as>
            <role-name>ybs</role-name>
        </run-as>
    </servlet>
    
    
   
    <servlet>
    	<description>4Play servlet</description>
    	<display-name>YellowBoxServlet_PS</display-name>
    	<servlet-name>YellowBoxServlet_PS</servlet-name>
    	<servlet-class>rcbd.nbilling.yb.YellowBoxServlet</servlet-class>
        <init-param>
            <description>Идентификатор оператора, от которого
будет осуществляться прием платежей</description>
            <param-name>operator_id</param-name>
            <param-value>9001</param-value>
        </init-param>
        <run-as>
            <role-name>ybs</role-name>
        </run-as>
    </servlet>
        
    <servlet-mapping>
    	<servlet-name>YellowBoxServlet</servlet-name>
    	<url-pattern>/ybs</url-pattern>
    </servlet-mapping>
    
    <servlet-mapping>
    	<servlet-name>YellowBoxServlet_PS</servlet-name>
    	<url-pattern>/ps</url-pattern>
    </servlet-mapping>
</web-app>



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message