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 "Michele Mazzucco (JIRA)" <ji...@apache.org> on 2006/11/06 13:42:38 UTC

[jira] Commented: (AXIS2-1604) many service instances are created when application scope service implements the ServiceLifeCycle interface

    [ http://issues.apache.org/jira/browse/AXIS2-1604?page=comments#action_12447427 ] 
            
Michele Mazzucco commented on AXIS2-1604:
-----------------------------------------

Deepal, in order to reproduce the problem the business service must implement the ServiceLifeCycle interface:

Nov 6, 2006 12:40:05 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
Nov 6, 2006 12:40:06 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Nov 6, 2006 12:40:07 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8443
Nov 6, 2006 12:40:07 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2231 ms
Nov 6, 2006 12:40:07 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 6, 2006 12:40:07 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Nov 6, 2006 12:40:07 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Nov 6, 2006 12:40:09 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive axis2.war
Nov 6, 2006 12:40:09 PM org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : addressing-1.1
Nov 6, 2006 12:40:09 PM org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying module : soapmonitor-1.1
************ I am inside the constuctor *************
######################### I am inside the service startUp ################
Nov 6, 2006 12:40:10 PM org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying Web service  Jira.aar
Nov 6, 2006 12:40:10 PM org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying Web service  version.aar
************ I am inside the constuctor *************
$$$$$$$$$$$ In side the init method $$$$$$$$$$$$
Nov 6, 2006 12:40:10 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive cewolfexample-1.0.war
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
Nov 6, 2006 12:40:11 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive chartdir_java.war
Nov 6, 2006 12:40:11 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive jfreechart-sample.war
Nov 6, 2006 12:40:11 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Nov 6, 2006 12:40:12 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8443
Nov 6, 2006 12:40:12 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Nov 6, 2006 12:40:12 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/57  config=null
Nov 6, 2006 12:40:12 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Nov 6, 2006 12:40:12 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5597 ms

> many service instances are created when application scope service implements the ServiceLifeCycle interface
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-1604
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1604
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>         Environment: java 1.5, axis2 1.1 branch 30/10/06
>            Reporter: Michele Mazzucco
>         Assigned To: Deepal Jayasinghe
>            Priority: Blocker
>         Attachments: 1604.zip, services.xml
>
>
> The service runs in application scope and implements the ServiceLifeCycle interface, but it does not work as expected. As shown by the tomcat output below,
> different service instances are created (4), while only one should be available, 2 at deployment time and then each time the web service is invoked!
> Nov 3, 2006 6:29:24 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
> INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
> Nov 3, 2006 6:29:24 PM org.apache.coyote.http11.Http11BaseProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Nov 3, 2006 6:29:24 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 2311 ms
> Nov 3, 2006 6:29:24 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Nov 3, 2006 6:29:24 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.15
> Nov 3, 2006 6:29:24 PM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Nov 3, 2006 6:29:26 PM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive axis2.war
> 2006-11-03 18:29:28,617 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying module : addressing-1.1
> 2006-11-03 18:29:28,643 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying module : managerInterceptor
> 2006-11-03 18:29:28,658 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying module : soapmonitor-1.1
> 2006-11-03 18:29:29,075 INFO  ncl.qosp.controller.RoutingService - Startup time is: Fri Nov 03 18:29:29 GMT 2006
> 2006-11-03 18:29:29,075 INFO  ncl.qosp.controller.RoutingService - -- Constructor
> 2006-11-03 18:29:29,169 INFO  ncl.qosp.controller.scheduler.weighted.queue.QueueSizeScheduler - Scheduler component started
> 2006-11-03 18:29:29,169 INFO  ncl.qosp.controller.RoutingService - Scheduler registered to the mbean server
> 2006-11-03 18:29:30,921 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying Web service  RoutingService.aar
> 2006-11-03 18:29:30,956 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying Web service  version.aar
> 2006-11-03 18:29:30,974 INFO  ncl.qosp.controller.RoutingService - -- Constructor
> Nov 3, 2006 6:29:32 PM org.apache.coyote.http11.Http11BaseProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Nov 3, 2006 6:29:32 PM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Nov 3, 2006 6:29:32 PM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/63  config=null
> Nov 3, 2006 6:29:32 PM org.apache.catalina.storeconfig.StoreLoader load
> INFO: Find registry server-registry.xml at classpath resource
> Nov 3, 2006 6:29:32 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 8440 ms
> 2006-11-03 18:34:51,090 INFO  ncl.qosp.controller.RoutingService - -- Constructor
> 2006-11-03 18:41:00,315 INFO  ncl.qosp.controller.RoutingService - -- Constructor 

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org