AXIS2-1604 crated.

Michele

Thilina Gunarathne wrote:
> Please log a JIRA.... IMHO this needs to be fixed before 1.1...
> 
> ~Thilina
> 
> On 11/4/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> Some more details. 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
>>
>> Michele
>>
>> On 3 Nov 2006, at 15:36, Michele Mazzucco wrote:
>>
>> > Hi again,
>> >
>> > some more details. If I move that part of code from the startUp to the
>> > stateful-service constructor I get the exception reported below and
>> > where line 145 is:
>> >
>> >
>> > LocateRegistry.createRegistry(10099);
>> >
>> >
>> >
>> > Does that mean that more instances are created??
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > java.rmi.server.ExportException: internal error: ObjID already in use
>> >       at sun.rmi.transport.ObjectTable.putTarget(ObjectTable.java:169)
>> >       at sun.rmi.transport.Transport.exportObject(Transport.java:75)
>> >       at sun.rmi.transport.tcp.TCPTransport.exportObject
>> > (TCPTransport.java:196)
>> >       at
>> sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:
>> > 382)
>> >       at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:116)
>> >       at sun.rmi.server.UnicastServerRef.exportObject
>> > (UnicastServerRef.java:180)
>> >       at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:92)
>> >       at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:78)
>> >       at java.rmi.registry.LocateRegistry.createRegistry
>> > (LocateRegistry.java:186)
>> >       at my.service.SampleService.initJmx(SampleService.java:145)
>> >       at my.service.SampleService.<init>(SampleService.java:55)
>> >       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> > Method)
>> >       at
>> > sun.reflect.NativeConstructorAccessorImpl.newInstance
>> > (NativeConstructorAccessorImpl.java:39)
>> >       at
>> > sun.reflect.DelegatingConstructorAccessorImpl.newInstance
>> > (DelegatingConstructorAccessorImpl.java:27)
>> >       at
>> java.lang.reflect.Constructor.newInstance(Constructor.java:494)
>> >       at java.lang.Class.newInstance0(Class.java:350)
>> >       at java.lang.Class.newInstance(Class.java:303)
>> >       at
>> > org.apache.axis2.engine.DependencyManager.initService
>> > (DependencyManager.java:97)
>> >       at
>> > org.apache.axis2.context.ConfigurationContextFactory.initApplicationSc
>> > opeServices(ConfigurationContextFactory.java:87)
>> >       at
>> > org.apache.axis2.context.ConfigurationContextFactory.createConfigurati
>> > onContext(ConfigurationContextFactory.java:74)
>> >       at
>> > org.apache.axis2.transport.http.AxisServlet.initConfigContext
>> > (AxisServlet.java:373)
>> >       at org.apache.axis2.transport.http.AxisServlet.init
>> > (AxisServlet.java:317)
>> >       at
>> > org.apache.catalina.core.StandardWrapper.loadServlet
>> > (StandardWrapper.java:1105)
>> >       at org.apache.catalina.core.StandardWrapper.load
>> > (StandardWrapper.java:932)
>> >       at
>> > org.apache.catalina.core.StandardContext.loadOnStartup
>> > (StandardContext.java:3917)
>> >       at
>> > org.apache.catalina.core.StandardContext.start(StandardContext.java:
>> > 4201)
>> >       at
>> > org.apache.catalina.core.ContainerBase.addChildInternal
>> > (ContainerBase.java:759)
>> >       at org.apache.catalina.core.ContainerBase.addChild
>> > (ContainerBase.java:739)
>> >       at org.apache.catalina.core.StandardHost.addChild
>> > (StandardHost.java:524)
>> >       at org.apache.catalina.startup.HostConfig.deployWAR
>> > (HostConfig.java:809)
>> >       at org.apache.catalina.startup.HostConfig.deployWARs
>> > (HostConfig.java:698)
>> >       at org.apache.catalina.startup.HostConfig.deployApps
>> > (HostConfig.java:472)
>> >       at
>> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
>> >       at
>> > org.apache.catalina.startup.HostConfig.lifecycleEvent
>> > (HostConfig.java:310)
>> >       at
>> > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
>> > (LifecycleSupport.java:119)
>> >       at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
>> > 1021)
>> >       at
>> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>> >       at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
>> > 1013)
>> >       at org.apache.catalina.core.StandardEngine.start
>> > (StandardEngine.java:442)
>> >       at org.apache.catalina.core.StandardService.start
>> > (StandardService.java:450)
>> >       at org.apache.catalina.core.StandardServer.start
>> > (StandardServer.java:709)
>> >       at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>> >       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >       at
>> > sun.reflect.NativeMethodAccessorImpl.invoke
>> > (NativeMethodAccessorImpl.java:39)
>> >       at
>> > sun.reflect.DelegatingMethodAccessorImpl.invoke
>> > (DelegatingMethodAccessorImpl.java:25)
>> >       at java.lang.reflect.Method.invoke(Method.java:585)
>> >       at
>> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
>> >       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
>> >
>> >
>> >
>> >
>> > Michele
>> >
>> > Michele Mazzucco wrote:
>> >> Hi all,
>> >>
>> >> I'm facing a very strange problem. If I initialize some instance
>> >> fields
>> >> in the startUp method, they are null (!) when I try to use them
>> >> elsewhere. How is it possible?
>> >>
>> >>
>> >> Thanks in advance,
>> >> Michele
>> >>
>> >>
>> >> p.s. The startUp method is called as expected
>> >>
>> >>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to