You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ax...@ws.apache.org on 2004/08/24 09:45:20 UTC

[jira] Created: (AXIS-1527) Using multiple AxisServlet in webapp share the same AxisEngine

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1527

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1527
    Summary: Using multiple AxisServlet in webapp share the same AxisEngine
       Type: Wish

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             Basic Architecture

   Assignee: 
   Reporter: Guillaume Sauthier

    Created: Tue, 24 Aug 2004 12:44 AM
    Updated: Tue, 24 Aug 2004 12:44 AM
Environment: Linux Debian

Description:
I'm using AxisServlet multiple time in my webapp with different configuration for each servlet.

Here is my web.xml :
<?xml version="1.0" encoding="UTF-8"?>
<web-app 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">
 <display-name>WebApp Dispatching SOAP Requests to SSBs</display-name>
   <servlet-name>My Web Services</servlet-name>
   <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
   <init-param>
     <param-name>axis.serverConfigFile</param-name>
     <param-value>server-config-0.wsdd</param-value>
   </init-param>
 </servlet>
 <servlet-mapping>
   <servlet-name>My Web Services</servlet-name>
   <url-pattern>/My Web Services/*</url-pattern>
 </servlet-mapping>
 <servlet>
   <servlet-name>OtherWebServices</servlet-name>
   <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
   <init-param>
     <param-name>axis.serverConfigFile</param-name>
     <param-value>server-config-1.wsdd</param-value>
   </init-param>
 </servlet>
 <servlet-mapping>
   <servlet-name>OtherWebServices</servlet-name>
   <url-pattern>/OtherWebServices/*</url-pattern>
 </servlet-mapping>
</web-app>

I have developed my own EngineConfigurationFactory to load the specified config file.
But when I try this, I discover that the AxisEngine was loaded only once and was shared between my AxisServlet instances.
That happens because when we store the Engine, we store it inside the ServletContext (that is shared between servlets) under a name that is not unique among the servlets : ATTR_AXIS_ENGINE = "AxisEngine"

is this possible to prefix this name with the servlet name to uniquely identify the Engine ?

Regards
Guillaume


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1527) Using multiple AxisServlet in webapp share the same AxisEngine

Posted by "Guillaume Sauthier (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1527?page=comments#action_56444 ]
     
Guillaume Sauthier commented on AXIS-1527:
------------------------------------------

can you reopen this issue ?
I have a working patch to add.

> Using multiple AxisServlet in webapp share the same AxisEngine
> --------------------------------------------------------------
>
>          Key: AXIS-1527
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1527
>      Project: Axis
>         Type: Wish
>   Components: Basic Architecture
>  Environment: Linux Debian
>     Reporter: Guillaume Sauthier
>  Attachments: axis-multiple-engine.txt, axis-multiple-engine2.txt
>
> I'm using AxisServlet multiple time in my webapp with different configuration for each servlet.
> Here is my web.xml :
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app 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">
>  <display-name>WebApp Dispatching SOAP Requests to SSBs</display-name>
>    <servlet-name>My Web Services</servlet-name>
>    <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
>    <init-param>
>      <param-name>axis.serverConfigFile</param-name>
>      <param-value>server-config-0.wsdd</param-value>
>    </init-param>
>  </servlet>
>  <servlet-mapping>
>    <servlet-name>My Web Services</servlet-name>
>    <url-pattern>/My Web Services/*</url-pattern>
>  </servlet-mapping>
>  <servlet>
>    <servlet-name>OtherWebServices</servlet-name>
>    <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
>    <init-param>
>      <param-name>axis.serverConfigFile</param-name>
>      <param-value>server-config-1.wsdd</param-value>
>    </init-param>
>  </servlet>
>  <servlet-mapping>
>    <servlet-name>OtherWebServices</servlet-name>
>    <url-pattern>/OtherWebServices/*</url-pattern>
>  </servlet-mapping>
> </web-app>
> I have developed my own EngineConfigurationFactory to load the specified config file.
> But when I try this, I discover that the AxisEngine was loaded only once and was shared between my AxisServlet instances.
> That happens because when we store the Engine, we store it inside the ServletContext (that is shared between servlets) under a name that is not unique among the servlets : ATTR_AXIS_ENGINE = "AxisEngine"
> is this possible to prefix this name with the servlet name to uniquely identify the Engine ?
> Regards
> Guillaume

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Reopened: (AXIS-1527) Using multiple AxisServlet in webapp share the same AxisEngine

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1527?page=history ]
     
Davanum Srinivas reopened AXIS-1527:
------------------------------------

     Assign To: Davanum Srinivas

reopening...

> Using multiple AxisServlet in webapp share the same AxisEngine
> --------------------------------------------------------------
>
>          Key: AXIS-1527
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1527
>      Project: Axis
>         Type: Wish
>   Components: Basic Architecture
>  Environment: Linux Debian
>     Reporter: Guillaume Sauthier
>     Assignee: Davanum Srinivas
>  Attachments: axis-multiple-engine.txt, axis-multiple-engine2.txt
>
> I'm using AxisServlet multiple time in my webapp with different configuration for each servlet.
> Here is my web.xml :
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app 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">
>  <display-name>WebApp Dispatching SOAP Requests to SSBs</display-name>
>    <servlet-name>My Web Services</servlet-name>
>    <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
>    <init-param>
>      <param-name>axis.serverConfigFile</param-name>
>      <param-value>server-config-0.wsdd</param-value>
>    </init-param>
>  </servlet>
>  <servlet-mapping>
>    <servlet-name>My Web Services</servlet-name>
>    <url-pattern>/My Web Services/*</url-pattern>
>  </servlet-mapping>
>  <servlet>
>    <servlet-name>OtherWebServices</servlet-name>
>    <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
>    <init-param>
>      <param-name>axis.serverConfigFile</param-name>
>      <param-value>server-config-1.wsdd</param-value>
>    </init-param>
>  </servlet>
>  <servlet-mapping>
>    <servlet-name>OtherWebServices</servlet-name>
>    <url-pattern>/OtherWebServices/*</url-pattern>
>  </servlet-mapping>
> </web-app>
> I have developed my own EngineConfigurationFactory to load the specified config file.
> But when I try this, I discover that the AxisEngine was loaded only once and was shared between my AxisServlet instances.
> That happens because when we store the Engine, we store it inside the ServletContext (that is shared between servlets) under a name that is not unique among the servlets : ATTR_AXIS_ENGINE = "AxisEngine"
> is this possible to prefix this name with the servlet name to uniquely identify the Engine ?
> Regards
> Guillaume

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1527) Using multiple AxisServlet in webapp share the same AxisEngine

Posted by ax...@ws.apache.org.
The following issue has been updated:

    Updater: Guillaume Sauthier (mailto:guillaume.sauthier@objectweb.org)
       Date: Tue, 24 Aug 2004 12:46 AM
    Comment:
Patch AxisServletBase :
add the servletName as parameter in storeEngine and retrieveEngine methods to guarant the uniqueness of the AxisEngine
    Changes:
             Attachment changed to axis-multiple-engine.txt
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/AXIS-1527?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1527

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1527
    Summary: Using multiple AxisServlet in webapp share the same AxisEngine
       Type: Wish

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             Basic Architecture

   Assignee: 
   Reporter: Guillaume Sauthier

    Created: Tue, 24 Aug 2004 12:44 AM
    Updated: Tue, 24 Aug 2004 12:46 AM
Environment: Linux Debian

Description:
I'm using AxisServlet multiple time in my webapp with different configuration for each servlet.

Here is my web.xml :
<?xml version="1.0" encoding="UTF-8"?>
<web-app 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">
 <display-name>WebApp Dispatching SOAP Requests to SSBs</display-name>
   <servlet-name>My Web Services</servlet-name>
   <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
   <init-param>
     <param-name>axis.serverConfigFile</param-name>
     <param-value>server-config-0.wsdd</param-value>
   </init-param>
 </servlet>
 <servlet-mapping>
   <servlet-name>My Web Services</servlet-name>
   <url-pattern>/My Web Services/*</url-pattern>
 </servlet-mapping>
 <servlet>
   <servlet-name>OtherWebServices</servlet-name>
   <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
   <init-param>
     <param-name>axis.serverConfigFile</param-name>
     <param-value>server-config-1.wsdd</param-value>
   </init-param>
 </servlet>
 <servlet-mapping>
   <servlet-name>OtherWebServices</servlet-name>
   <url-pattern>/OtherWebServices/*</url-pattern>
 </servlet-mapping>
</web-app>

I have developed my own EngineConfigurationFactory to load the specified config file.
But when I try this, I discover that the AxisEngine was loaded only once and was shared between my AxisServlet instances.
That happens because when we store the Engine, we store it inside the ServletContext (that is shared between servlets) under a name that is not unique among the servlets : ATTR_AXIS_ENGINE = "AxisEngine"

is this possible to prefix this name with the servlet name to uniquely identify the Engine ?

Regards
Guillaume


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1527) Using multiple AxisServlet in webapp share the same AxisEngine

Posted by "Guillaume Sauthier (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1527?page=comments#action_56329 ]
     
Guillaume Sauthier commented on AXIS-1527:
------------------------------------------

You can close or apply patches of this issue ...
We have created a JAxisServlet in JOnAS that use multiple AxisEngine.
Works without problems :)

> Using multiple AxisServlet in webapp share the same AxisEngine
> --------------------------------------------------------------
>
>          Key: AXIS-1527
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1527
>      Project: Axis
>         Type: Wish
>   Components: Basic Architecture
>  Environment: Linux Debian
>     Reporter: Guillaume Sauthier
>  Attachments: axis-multiple-engine.txt, axis-multiple-engine2.txt
>
> I'm using AxisServlet multiple time in my webapp with different configuration for each servlet.
> Here is my web.xml :
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app 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">
>  <display-name>WebApp Dispatching SOAP Requests to SSBs</display-name>
>    <servlet-name>My Web Services</servlet-name>
>    <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
>    <init-param>
>      <param-name>axis.serverConfigFile</param-name>
>      <param-value>server-config-0.wsdd</param-value>
>    </init-param>
>  </servlet>
>  <servlet-mapping>
>    <servlet-name>My Web Services</servlet-name>
>    <url-pattern>/My Web Services/*</url-pattern>
>  </servlet-mapping>
>  <servlet>
>    <servlet-name>OtherWebServices</servlet-name>
>    <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
>    <init-param>
>      <param-name>axis.serverConfigFile</param-name>
>      <param-value>server-config-1.wsdd</param-value>
>    </init-param>
>  </servlet>
>  <servlet-mapping>
>    <servlet-name>OtherWebServices</servlet-name>
>    <url-pattern>/OtherWebServices/*</url-pattern>
>  </servlet-mapping>
> </web-app>
> I have developed my own EngineConfigurationFactory to load the specified config file.
> But when I try this, I discover that the AxisEngine was loaded only once and was shared between my AxisServlet instances.
> That happens because when we store the Engine, we store it inside the ServletContext (that is shared between servlets) under a name that is not unique among the servlets : ATTR_AXIS_ENGINE = "AxisEngine"
> is this possible to prefix this name with the servlet name to uniquely identify the Engine ?
> Regards
> Guillaume

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1527) Using multiple AxisServlet in webapp share the same AxisEngine

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Tom Jordahl
    Created: Mon, 30 Aug 2004 8:14 AM
       Body:
We need to be careful we don't break existing applications that depend on the Axis engine being named "AxisEngine".  Perhaps putting the first engine under 2 names, the orginal and the servlet qualified one.  Then placing new ones (if "AxisEngine" exists) only under a qualified name?

---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1527?page=comments#action_37919

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1527

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1527
    Summary: Using multiple AxisServlet in webapp share the same AxisEngine
       Type: Wish

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             Basic Architecture

   Assignee: 
   Reporter: Guillaume Sauthier

    Created: Tue, 24 Aug 2004 12:44 AM
    Updated: Mon, 30 Aug 2004 8:14 AM
Environment: Linux Debian

Description:
I'm using AxisServlet multiple time in my webapp with different configuration for each servlet.

Here is my web.xml :
<?xml version="1.0" encoding="UTF-8"?>
<web-app 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">
 <display-name>WebApp Dispatching SOAP Requests to SSBs</display-name>
   <servlet-name>My Web Services</servlet-name>
   <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
   <init-param>
     <param-name>axis.serverConfigFile</param-name>
     <param-value>server-config-0.wsdd</param-value>
   </init-param>
 </servlet>
 <servlet-mapping>
   <servlet-name>My Web Services</servlet-name>
   <url-pattern>/My Web Services/*</url-pattern>
 </servlet-mapping>
 <servlet>
   <servlet-name>OtherWebServices</servlet-name>
   <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
   <init-param>
     <param-name>axis.serverConfigFile</param-name>
     <param-value>server-config-1.wsdd</param-value>
   </init-param>
 </servlet>
 <servlet-mapping>
   <servlet-name>OtherWebServices</servlet-name>
   <url-pattern>/OtherWebServices/*</url-pattern>
 </servlet-mapping>
</web-app>

I have developed my own EngineConfigurationFactory to load the specified config file.
But when I try this, I discover that the AxisEngine was loaded only once and was shared between my AxisServlet instances.
That happens because when we store the Engine, we store it inside the ServletContext (that is shared between servlets) under a name that is not unique among the servlets : ATTR_AXIS_ENGINE = "AxisEngine"

is this possible to prefix this name with the servlet name to uniquely identify the Engine ?

Regards
Guillaume


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS-1527) Using multiple AxisServlet in webapp share the same AxisEngine

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1527?page=history ]
     
Davanum Srinivas resolved AXIS-1527:
------------------------------------

    Resolution: Fixed

Looks like this patch has already been applied.

thanks,
dims

> Using multiple AxisServlet in webapp share the same AxisEngine
> --------------------------------------------------------------
>
>          Key: AXIS-1527
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1527
>      Project: Axis
>         Type: Wish
>   Components: Basic Architecture
>  Environment: Linux Debian
>     Reporter: Guillaume Sauthier
>     Assignee: Davanum Srinivas
>  Attachments: axis-multiple-engine.txt, axis-multiple-engine2.txt, axis-servletbase-patch.txt
>
> I'm using AxisServlet multiple time in my webapp with different configuration for each servlet.
> Here is my web.xml :
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app 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">
>  <display-name>WebApp Dispatching SOAP Requests to SSBs</display-name>
>    <servlet-name>My Web Services</servlet-name>
>    <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
>    <init-param>
>      <param-name>axis.serverConfigFile</param-name>
>      <param-value>server-config-0.wsdd</param-value>
>    </init-param>
>  </servlet>
>  <servlet-mapping>
>    <servlet-name>My Web Services</servlet-name>
>    <url-pattern>/My Web Services/*</url-pattern>
>  </servlet-mapping>
>  <servlet>
>    <servlet-name>OtherWebServices</servlet-name>
>    <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
>    <init-param>
>      <param-name>axis.serverConfigFile</param-name>
>      <param-value>server-config-1.wsdd</param-value>
>    </init-param>
>  </servlet>
>  <servlet-mapping>
>    <servlet-name>OtherWebServices</servlet-name>
>    <url-pattern>/OtherWebServices/*</url-pattern>
>  </servlet-mapping>
> </web-app>
> I have developed my own EngineConfigurationFactory to load the specified config file.
> But when I try this, I discover that the AxisEngine was loaded only once and was shared between my AxisServlet instances.
> That happens because when we store the Engine, we store it inside the ServletContext (that is shared between servlets) under a name that is not unique among the servlets : ATTR_AXIS_ENGINE = "AxisEngine"
> is this possible to prefix this name with the servlet name to uniquely identify the Engine ?
> Regards
> Guillaume

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1527) Using multiple AxisServlet in webapp share the same AxisEngine

Posted by "Guillaume Sauthier (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1527?page=comments#action_56462 ]
     
Guillaume Sauthier commented on AXIS-1527:
------------------------------------------

pass ant all-tests (from beginning too wsdl.jaxrpchandler)

> Using multiple AxisServlet in webapp share the same AxisEngine
> --------------------------------------------------------------
>
>          Key: AXIS-1527
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1527
>      Project: Axis
>         Type: Wish
>   Components: Basic Architecture
>  Environment: Linux Debian
>     Reporter: Guillaume Sauthier
>     Assignee: Davanum Srinivas
>  Attachments: axis-multiple-engine.txt, axis-multiple-engine2.txt, axis-servletbase-patch.txt
>
> I'm using AxisServlet multiple time in my webapp with different configuration for each servlet.
> Here is my web.xml :
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app 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">
>  <display-name>WebApp Dispatching SOAP Requests to SSBs</display-name>
>    <servlet-name>My Web Services</servlet-name>
>    <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
>    <init-param>
>      <param-name>axis.serverConfigFile</param-name>
>      <param-value>server-config-0.wsdd</param-value>
>    </init-param>
>  </servlet>
>  <servlet-mapping>
>    <servlet-name>My Web Services</servlet-name>
>    <url-pattern>/My Web Services/*</url-pattern>
>  </servlet-mapping>
>  <servlet>
>    <servlet-name>OtherWebServices</servlet-name>
>    <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
>    <init-param>
>      <param-name>axis.serverConfigFile</param-name>
>      <param-value>server-config-1.wsdd</param-value>
>    </init-param>
>  </servlet>
>  <servlet-mapping>
>    <servlet-name>OtherWebServices</servlet-name>
>    <url-pattern>/OtherWebServices/*</url-pattern>
>  </servlet-mapping>
> </web-app>
> I have developed my own EngineConfigurationFactory to load the specified config file.
> But when I try this, I discover that the AxisEngine was loaded only once and was shared between my AxisServlet instances.
> That happens because when we store the Engine, we store it inside the ServletContext (that is shared between servlets) under a name that is not unique among the servlets : ATTR_AXIS_ENGINE = "AxisEngine"
> is this possible to prefix this name with the servlet name to uniquely identify the Engine ?
> Regards
> Guillaume

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1527) Using multiple AxisServlet in webapp share the same AxisEngine

Posted by "Guillaume Sauthier (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1527?page=history ]

Guillaume Sauthier updated AXIS-1527:
-------------------------------------

    Attachment: axis-servletbase-patch.txt

> Using multiple AxisServlet in webapp share the same AxisEngine
> --------------------------------------------------------------
>
>          Key: AXIS-1527
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1527
>      Project: Axis
>         Type: Wish
>   Components: Basic Architecture
>  Environment: Linux Debian
>     Reporter: Guillaume Sauthier
>     Assignee: Davanum Srinivas
>  Attachments: axis-multiple-engine.txt, axis-multiple-engine2.txt, axis-servletbase-patch.txt
>
> I'm using AxisServlet multiple time in my webapp with different configuration for each servlet.
> Here is my web.xml :
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app 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">
>  <display-name>WebApp Dispatching SOAP Requests to SSBs</display-name>
>    <servlet-name>My Web Services</servlet-name>
>    <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
>    <init-param>
>      <param-name>axis.serverConfigFile</param-name>
>      <param-value>server-config-0.wsdd</param-value>
>    </init-param>
>  </servlet>
>  <servlet-mapping>
>    <servlet-name>My Web Services</servlet-name>
>    <url-pattern>/My Web Services/*</url-pattern>
>  </servlet-mapping>
>  <servlet>
>    <servlet-name>OtherWebServices</servlet-name>
>    <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
>    <init-param>
>      <param-name>axis.serverConfigFile</param-name>
>      <param-value>server-config-1.wsdd</param-value>
>    </init-param>
>  </servlet>
>  <servlet-mapping>
>    <servlet-name>OtherWebServices</servlet-name>
>    <url-pattern>/OtherWebServices/*</url-pattern>
>  </servlet-mapping>
> </web-app>
> I have developed my own EngineConfigurationFactory to load the specified config file.
> But when I try this, I discover that the AxisEngine was loaded only once and was shared between my AxisServlet instances.
> That happens because when we store the Engine, we store it inside the ServletContext (that is shared between servlets) under a name that is not unique among the servlets : ATTR_AXIS_ENGINE = "AxisEngine"
> is this possible to prefix this name with the servlet name to uniquely identify the Engine ?
> Regards
> Guillaume

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Closed: (AXIS-1527) Using multiple AxisServlet in webapp share the same AxisEngine

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1527?page=history ]
     
Davanum Srinivas closed AXIS-1527:
----------------------------------


Applied Fix. Please cross check.

> Using multiple AxisServlet in webapp share the same AxisEngine
> --------------------------------------------------------------
>
>          Key: AXIS-1527
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1527
>      Project: Axis
>         Type: Wish
>   Components: Basic Architecture
>  Environment: Linux Debian
>     Reporter: Guillaume Sauthier
>  Attachments: axis-multiple-engine.txt, axis-multiple-engine2.txt
>
> I'm using AxisServlet multiple time in my webapp with different configuration for each servlet.
> Here is my web.xml :
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app 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">
>  <display-name>WebApp Dispatching SOAP Requests to SSBs</display-name>
>    <servlet-name>My Web Services</servlet-name>
>    <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
>    <init-param>
>      <param-name>axis.serverConfigFile</param-name>
>      <param-value>server-config-0.wsdd</param-value>
>    </init-param>
>  </servlet>
>  <servlet-mapping>
>    <servlet-name>My Web Services</servlet-name>
>    <url-pattern>/My Web Services/*</url-pattern>
>  </servlet-mapping>
>  <servlet>
>    <servlet-name>OtherWebServices</servlet-name>
>    <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
>    <init-param>
>      <param-name>axis.serverConfigFile</param-name>
>      <param-value>server-config-1.wsdd</param-value>
>    </init-param>
>  </servlet>
>  <servlet-mapping>
>    <servlet-name>OtherWebServices</servlet-name>
>    <url-pattern>/OtherWebServices/*</url-pattern>
>  </servlet-mapping>
> </web-app>
> I have developed my own EngineConfigurationFactory to load the specified config file.
> But when I try this, I discover that the AxisEngine was loaded only once and was shared between my AxisServlet instances.
> That happens because when we store the Engine, we store it inside the ServletContext (that is shared between servlets) under a name that is not unique among the servlets : ATTR_AXIS_ENGINE = "AxisEngine"
> is this possible to prefix this name with the servlet name to uniquely identify the Engine ?
> Regards
> Guillaume

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1527) Using multiple AxisServlet in webapp share the same AxisEngine

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Guillaume Sauthier
    Created: Mon, 30 Aug 2004 8:49 AM
       Body:
Sounds good.
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1527?page=comments#action_37921

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1527

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1527
    Summary: Using multiple AxisServlet in webapp share the same AxisEngine
       Type: Wish

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             Basic Architecture

   Assignee: 
   Reporter: Guillaume Sauthier

    Created: Tue, 24 Aug 2004 12:44 AM
    Updated: Mon, 30 Aug 2004 8:49 AM
Environment: Linux Debian

Description:
I'm using AxisServlet multiple time in my webapp with different configuration for each servlet.

Here is my web.xml :
<?xml version="1.0" encoding="UTF-8"?>
<web-app 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">
 <display-name>WebApp Dispatching SOAP Requests to SSBs</display-name>
   <servlet-name>My Web Services</servlet-name>
   <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
   <init-param>
     <param-name>axis.serverConfigFile</param-name>
     <param-value>server-config-0.wsdd</param-value>
   </init-param>
 </servlet>
 <servlet-mapping>
   <servlet-name>My Web Services</servlet-name>
   <url-pattern>/My Web Services/*</url-pattern>
 </servlet-mapping>
 <servlet>
   <servlet-name>OtherWebServices</servlet-name>
   <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
   <init-param>
     <param-name>axis.serverConfigFile</param-name>
     <param-value>server-config-1.wsdd</param-value>
   </init-param>
 </servlet>
 <servlet-mapping>
   <servlet-name>OtherWebServices</servlet-name>
   <url-pattern>/OtherWebServices/*</url-pattern>
 </servlet-mapping>
</web-app>

I have developed my own EngineConfigurationFactory to load the specified config file.
But when I try this, I discover that the AxisEngine was loaded only once and was shared between my AxisServlet instances.
That happens because when we store the Engine, we store it inside the ServletContext (that is shared between servlets) under a name that is not unique among the servlets : ATTR_AXIS_ENGINE = "AxisEngine"

is this possible to prefix this name with the servlet name to uniquely identify the Engine ?

Regards
Guillaume


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS-1527) Using multiple AxisServlet in webapp share the same AxisEngine

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1527?page=history ]
     
Davanum Srinivas resolved AXIS-1527:
------------------------------------

    Resolution: Fixed

Applied Fix. Please cross check.

thanks,
dims

> Using multiple AxisServlet in webapp share the same AxisEngine
> --------------------------------------------------------------
>
>          Key: AXIS-1527
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1527
>      Project: Axis
>         Type: Wish
>   Components: Basic Architecture
>  Environment: Linux Debian
>     Reporter: Guillaume Sauthier
>  Attachments: axis-multiple-engine.txt, axis-multiple-engine2.txt
>
> I'm using AxisServlet multiple time in my webapp with different configuration for each servlet.
> Here is my web.xml :
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app 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">
>  <display-name>WebApp Dispatching SOAP Requests to SSBs</display-name>
>    <servlet-name>My Web Services</servlet-name>
>    <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
>    <init-param>
>      <param-name>axis.serverConfigFile</param-name>
>      <param-value>server-config-0.wsdd</param-value>
>    </init-param>
>  </servlet>
>  <servlet-mapping>
>    <servlet-name>My Web Services</servlet-name>
>    <url-pattern>/My Web Services/*</url-pattern>
>  </servlet-mapping>
>  <servlet>
>    <servlet-name>OtherWebServices</servlet-name>
>    <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
>    <init-param>
>      <param-name>axis.serverConfigFile</param-name>
>      <param-value>server-config-1.wsdd</param-value>
>    </init-param>
>  </servlet>
>  <servlet-mapping>
>    <servlet-name>OtherWebServices</servlet-name>
>    <url-pattern>/OtherWebServices/*</url-pattern>
>  </servlet-mapping>
> </web-app>
> I have developed my own EngineConfigurationFactory to load the specified config file.
> But when I try this, I discover that the AxisEngine was loaded only once and was shared between my AxisServlet instances.
> That happens because when we store the Engine, we store it inside the ServletContext (that is shared between servlets) under a name that is not unique among the servlets : ATTR_AXIS_ENGINE = "AxisEngine"
> is this possible to prefix this name with the servlet name to uniquely identify the Engine ?
> Regards
> Guillaume

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1527) Using multiple AxisServlet in webapp share the same AxisEngine

Posted by "Guillaume Sauthier (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1527?page=comments#action_56522 ]
     
Guillaume Sauthier commented on AXIS-1527:
------------------------------------------

pass ant clean all-tests

> Using multiple AxisServlet in webapp share the same AxisEngine
> --------------------------------------------------------------
>
>          Key: AXIS-1527
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1527
>      Project: Axis
>         Type: Wish
>   Components: Basic Architecture
>  Environment: Linux Debian
>     Reporter: Guillaume Sauthier
>     Assignee: Davanum Srinivas
>  Attachments: axis-multiple-engine.txt, axis-multiple-engine2.txt, axis-servletbase-patch.txt
>
> I'm using AxisServlet multiple time in my webapp with different configuration for each servlet.
> Here is my web.xml :
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app 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">
>  <display-name>WebApp Dispatching SOAP Requests to SSBs</display-name>
>    <servlet-name>My Web Services</servlet-name>
>    <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
>    <init-param>
>      <param-name>axis.serverConfigFile</param-name>
>      <param-value>server-config-0.wsdd</param-value>
>    </init-param>
>  </servlet>
>  <servlet-mapping>
>    <servlet-name>My Web Services</servlet-name>
>    <url-pattern>/My Web Services/*</url-pattern>
>  </servlet-mapping>
>  <servlet>
>    <servlet-name>OtherWebServices</servlet-name>
>    <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
>    <init-param>
>      <param-name>axis.serverConfigFile</param-name>
>      <param-value>server-config-1.wsdd</param-value>
>    </init-param>
>  </servlet>
>  <servlet-mapping>
>    <servlet-name>OtherWebServices</servlet-name>
>    <url-pattern>/OtherWebServices/*</url-pattern>
>  </servlet-mapping>
> </web-app>
> I have developed my own EngineConfigurationFactory to load the specified config file.
> But when I try this, I discover that the AxisEngine was loaded only once and was shared between my AxisServlet instances.
> That happens because when we store the Engine, we store it inside the ServletContext (that is shared between servlets) under a name that is not unique among the servlets : ATTR_AXIS_ENGINE = "AxisEngine"
> is this possible to prefix this name with the servlet name to uniquely identify the Engine ?
> Regards
> Guillaume

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1527) Using multiple AxisServlet in webapp share the same AxisEngine

Posted by ax...@ws.apache.org.
The following issue has been updated:

    Updater: Guillaume Sauthier (mailto:guillaume.sauthier@objectweb.org)
       Date: Tue, 31 Aug 2004 4:52 AM
    Comment:
register a default AxisEngine in ServletContext
    Changes:
             Attachment changed to axis-multiple-engine2.txt
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/AXIS-1527?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1527

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1527
    Summary: Using multiple AxisServlet in webapp share the same AxisEngine
       Type: Wish

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             Basic Architecture

   Assignee: 
   Reporter: Guillaume Sauthier

    Created: Tue, 24 Aug 2004 12:44 AM
    Updated: Tue, 31 Aug 2004 4:52 AM
Environment: Linux Debian

Description:
I'm using AxisServlet multiple time in my webapp with different configuration for each servlet.

Here is my web.xml :
<?xml version="1.0" encoding="UTF-8"?>
<web-app 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">
 <display-name>WebApp Dispatching SOAP Requests to SSBs</display-name>
   <servlet-name>My Web Services</servlet-name>
   <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
   <init-param>
     <param-name>axis.serverConfigFile</param-name>
     <param-value>server-config-0.wsdd</param-value>
   </init-param>
 </servlet>
 <servlet-mapping>
   <servlet-name>My Web Services</servlet-name>
   <url-pattern>/My Web Services/*</url-pattern>
 </servlet-mapping>
 <servlet>
   <servlet-name>OtherWebServices</servlet-name>
   <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
   <init-param>
     <param-name>axis.serverConfigFile</param-name>
     <param-value>server-config-1.wsdd</param-value>
   </init-param>
 </servlet>
 <servlet-mapping>
   <servlet-name>OtherWebServices</servlet-name>
   <url-pattern>/OtherWebServices/*</url-pattern>
 </servlet-mapping>
</web-app>

I have developed my own EngineConfigurationFactory to load the specified config file.
But when I try this, I discover that the AxisEngine was loaded only once and was shared between my AxisServlet instances.
That happens because when we store the Engine, we store it inside the ServletContext (that is shared between servlets) under a name that is not unique among the servlets : ATTR_AXIS_ENGINE = "AxisEngine"

is this possible to prefix this name with the servlet name to uniquely identify the Engine ?

Regards
Guillaume


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1527) Using multiple AxisServlet in webapp share the same AxisEngine

Posted by ax...@ws.apache.org.
The following comment has been added to this issue:

     Author: Guillaume Sauthier
    Created: Fri, 3 Sep 2004 9:03 AM
       Body:
Pass clean all-test
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1527?page=comments#action_52805

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1527

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1527
    Summary: Using multiple AxisServlet in webapp share the same AxisEngine
       Type: Wish

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             Basic Architecture

   Assignee: 
   Reporter: Guillaume Sauthier

    Created: Tue, 24 Aug 2004 12:44 AM
    Updated: Fri, 3 Sep 2004 9:03 AM
Environment: Linux Debian

Description:
I'm using AxisServlet multiple time in my webapp with different configuration for each servlet.

Here is my web.xml :
<?xml version="1.0" encoding="UTF-8"?>
<web-app 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">
 <display-name>WebApp Dispatching SOAP Requests to SSBs</display-name>
   <servlet-name>My Web Services</servlet-name>
   <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
   <init-param>
     <param-name>axis.serverConfigFile</param-name>
     <param-value>server-config-0.wsdd</param-value>
   </init-param>
 </servlet>
 <servlet-mapping>
   <servlet-name>My Web Services</servlet-name>
   <url-pattern>/My Web Services/*</url-pattern>
 </servlet-mapping>
 <servlet>
   <servlet-name>OtherWebServices</servlet-name>
   <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
   <init-param>
     <param-name>axis.serverConfigFile</param-name>
     <param-value>server-config-1.wsdd</param-value>
   </init-param>
 </servlet>
 <servlet-mapping>
   <servlet-name>OtherWebServices</servlet-name>
   <url-pattern>/OtherWebServices/*</url-pattern>
 </servlet-mapping>
</web-app>

I have developed my own EngineConfigurationFactory to load the specified config file.
But when I try this, I discover that the AxisEngine was loaded only once and was shared between my AxisServlet instances.
That happens because when we store the Engine, we store it inside the ServletContext (that is shared between servlets) under a name that is not unique among the servlets : ATTR_AXIS_ENGINE = "AxisEngine"

is this possible to prefix this name with the servlet name to uniquely identify the Engine ?

Regards
Guillaume


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira