axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josef Stadelmann (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-1990) myService5.init(sc) and myService5.destroy(sc) not called on a http://alpha1:8080/manager/html/start?path=/axis2 -> start /stop-click in scope=application
Date Wed, 17 Jan 2007 07:30:27 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-1990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Josef Stadelmann updated AXIS2-1990:
------------------------------------

    Description: 
Hi Team,

I am running myService5 in application scope! axis2-1.1

when stop is called from http://alpha1:8080/manager/html/start?path=/axis2

myService5.destroy()     is called too late and an exception is raised



2007-01-17 08:01:54,518 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying module
: addressing-1.1
2007-01-17 08:01:54,518 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying module
: logging
2007-01-17 08:01:54,549 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying module
: soapmonitor-1.1
2007-01-17 08:01:54,908 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying Web
service  Library.aar
2007-01-17 08:01:54,940 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying Web
service  MyService.aar
2007-01-17 08:01:54,971 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying Web
service  MyService1.aar
2007-01-17 08:01:55,705 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying Web
service  MyService4.aar
2007-01-17 08:01:56,143 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying Web
service  MyService5.aar
2007-01-17 08:01:56,174 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying Web
service  MyServiceWithModule.aar
2007-01-17 08:01:56,190 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying Web
service  version.aar
2007-01-17 08:01:56,205 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying Web
service  WsaMappingService.aar
2007-01-17 08:01:56,221 INFO  userguide.example5.MyService - MyService5.init() called ********************************

So far the stdout_20070117.log of tomcat running on my PC

BUG: calling myService5.destroy(sc) in scope=application is called too late up on receiving
the stop signal from the tomcat manager
The exception logged is

2007-01-17 08:07:32,808 INFO  org.apache.axis2.engine.DependencyManager - Exception trying
to call destroy
java.lang.reflect.InvocationTargetException
	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.axis2.engine.DependencyManager.destroyServiceObject(DependencyManager.java:127)
	at org.apache.axis2.context.ConfigurationContext.cleanupServiceContexts(ConfigurationContext.java:356)
	at org.apache.axis2.context.ConfigurationContext.cleanupContexts(ConfigurationContext.java:370)
	at org.apache.axis2.engine.ListenerManager.stop(ListenerManager.java:177)
	at org.apache.axis2.transport.http.AxisServlet.destroy(AxisServlet.java:114)
	at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1326)
	at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1654)
	at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4345)
	at org.apache.catalina.manager.ManagerServlet.stop(ManagerServlet.java:1226)
	at org.apache.catalina.manager.HTMLManagerServlet.stop(HTMLManagerServlet.java:545)
	at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:106)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:174)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
	at userguide.example5.MyService.destroy(MyService.java:98)
	... 35 more
2007-01-17 08:07:32,823 INFO  org.apache.axis2.context.ConfigurationContext - null; nested
exception is: 
	java.lang.reflect.InvocationTargetException

Now clicking start in at http://localhost:8080/manager/html/stop?path=/axis2 the following
happens, which seams to
be working correct. on the PC, but start() failed yesterday flat on a OpenVMS platform. (maybe
a resource problem) 

2007-01-17 08:17:03,229 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying module
: addressing-1.1
2007-01-17 08:17:03,244 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying module
: logging
2007-01-17 08:17:03,260 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying module
: soapmonitor-1.1
2007-01-17 08:17:03,557 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying Web
service  Library.aar
2007-01-17 08:17:03,588 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying Web
service  MyService.aar
2007-01-17 08:17:03,619 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying Web
service  MyService1.aar
2007-01-17 08:17:04,057 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying Web
service  MyService4.aar
2007-01-17 08:17:04,494 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying Web
service  MyService5.aar
2007-01-17 08:17:04,510 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying Web
service  MyServiceWithModule.aar
2007-01-17 08:17:04,525 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying Web
service  version.aar
2007-01-17 08:17:04,541 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying Web
service  WsaMappingService.aar
2007-01-17 08:17:04,557 INFO  userguide.example5.MyService - MyService5.init() called ****************************

Josef.Stadelmann
@winterthur.ch




Josef.Stadelmann
@winterthur.ch


  was:
Hi Team,

I am running myService5 in application scope! axis2-1.1

Can somone from the axis development team explain what shall happen 
when one goes to http://alpha1:8080/manager/html/start?path=/axis2
looks-out for axis2, (just one of a web applications) clicks stop to it, 
waits until stop is confirmed in the message window, clicks start and 
waits long enougth until confirmation is given in the message window?


a) what shall be seen in the tomact stdout_20070116.log of stop  ?

b) what shall be seen in the tomcat stdout_20070116.log on start ?

c) what do you suggest to turn on, to configure to see what happens? 
(there are so many loggs)


NORMAL:
myService5.init() is called when the application is deployed in
scope="application" at tomcat start. 
I have a log statement in myService5.init(), so init() was called
and this was logged to stdout_20070116.log (well done)


BUT NOTHING was logged in stdout_20070116.log on a stop click in tomcat?

I would expect that myService5.destroy() gets called, just as a way
to safely close down all open user sessions and log em off from legacy
systems, as well as keeping users informed about the break in service.




AND:
I did it while a client was repeadtedly comunicating with a service, 
clicking stop and the client got informed about that by an exception
with the soap message indicating that the service is not available.

Well done?!?!?


after the second start from the tomcat gui, I was able to launch the 
client and continue!

BUT NOTHING was logged in the tomcat stdout_20070116.log on (re)start ?


I would expect that myservice5.init() is called again and logged.



then I stop again, wait for confirmation, start again, wait for confirmation
and the only service which did make it after a long time was the Library 
service from the axis2 examples

all other previously deployed service where no longer available.

Only after a tomcat restart all services where available again.


What is the intention of the tomcat managment interface, tomcat
beeing one of a servlet engine? 

Does axis2 support/intercept certain events from the tomcat managment gui?

How robust is axis2 in concert with tomcat managemenet interactions?


Are there any documents to read about that in deep?



Josef.Stadelmann
@winterthur.ch



> myService5.init(sc) and myService5.destroy(sc) not called on a http://alpha1:8080/manager/html/start?path=/axis2
-> start /stop-click  in scope=application
> -----------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-1990
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1990
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: samples, build,site
>    Affects Versions: 1.1
>         Environment: Any tomcat platform and version and axis2-1.1.x in scope=application
>            Reporter: Josef Stadelmann
>
> Hi Team,
> I am running myService5 in application scope! axis2-1.1
> when stop is called from http://alpha1:8080/manager/html/start?path=/axis2
> myService5.destroy()     is called too late and an exception is raised
> 2007-01-17 08:01:54,518 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying
module : addressing-1.1
> 2007-01-17 08:01:54,518 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying
module : logging
> 2007-01-17 08:01:54,549 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying
module : soapmonitor-1.1
> 2007-01-17 08:01:54,908 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying
Web service  Library.aar
> 2007-01-17 08:01:54,940 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying
Web service  MyService.aar
> 2007-01-17 08:01:54,971 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying
Web service  MyService1.aar
> 2007-01-17 08:01:55,705 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying
Web service  MyService4.aar
> 2007-01-17 08:01:56,143 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying
Web service  MyService5.aar
> 2007-01-17 08:01:56,174 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying
Web service  MyServiceWithModule.aar
> 2007-01-17 08:01:56,190 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying
Web service  version.aar
> 2007-01-17 08:01:56,205 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying
Web service  WsaMappingService.aar
> 2007-01-17 08:01:56,221 INFO  userguide.example5.MyService - MyService5.init() called
********************************
> So far the stdout_20070117.log of tomcat running on my PC
> BUG: calling myService5.destroy(sc) in scope=application is called too late up on receiving
the stop signal from the tomcat manager
> The exception logged is
> 2007-01-17 08:07:32,808 INFO  org.apache.axis2.engine.DependencyManager - Exception trying
to call destroy
> java.lang.reflect.InvocationTargetException
> 	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.axis2.engine.DependencyManager.destroyServiceObject(DependencyManager.java:127)
> 	at org.apache.axis2.context.ConfigurationContext.cleanupServiceContexts(ConfigurationContext.java:356)
> 	at org.apache.axis2.context.ConfigurationContext.cleanupContexts(ConfigurationContext.java:370)
> 	at org.apache.axis2.engine.ListenerManager.stop(ListenerManager.java:177)
> 	at org.apache.axis2.transport.http.AxisServlet.destroy(AxisServlet.java:114)
> 	at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1326)
> 	at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1654)
> 	at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4345)
> 	at org.apache.catalina.manager.ManagerServlet.stop(ManagerServlet.java:1226)
> 	at org.apache.catalina.manager.HTMLManagerServlet.stop(HTMLManagerServlet.java:545)
> 	at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:106)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 	at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:174)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> 	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> 	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> 	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> 	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> 	at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> 	at userguide.example5.MyService.destroy(MyService.java:98)
> 	... 35 more
> 2007-01-17 08:07:32,823 INFO  org.apache.axis2.context.ConfigurationContext - null; nested
exception is: 
> 	java.lang.reflect.InvocationTargetException
> Now clicking start in at http://localhost:8080/manager/html/stop?path=/axis2 the following
happens, which seams to
> be working correct. on the PC, but start() failed yesterday flat on a OpenVMS platform.
(maybe a resource problem) 
> 2007-01-17 08:17:03,229 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying
module : addressing-1.1
> 2007-01-17 08:17:03,244 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying
module : logging
> 2007-01-17 08:17:03,260 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying
module : soapmonitor-1.1
> 2007-01-17 08:17:03,557 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying
Web service  Library.aar
> 2007-01-17 08:17:03,588 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying
Web service  MyService.aar
> 2007-01-17 08:17:03,619 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying
Web service  MyService1.aar
> 2007-01-17 08:17:04,057 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying
Web service  MyService4.aar
> 2007-01-17 08:17:04,494 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying
Web service  MyService5.aar
> 2007-01-17 08:17:04,510 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying
Web service  MyServiceWithModule.aar
> 2007-01-17 08:17:04,525 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying
Web service  version.aar
> 2007-01-17 08:17:04,541 INFO  org.apache.axis2.deployment.DeploymentEngine - Deploying
Web service  WsaMappingService.aar
> 2007-01-17 08:17:04,557 INFO  userguide.example5.MyService - MyService5.init() called
****************************
> Josef.Stadelmann
> @winterthur.ch
> Josef.Stadelmann
> @winterthur.ch

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://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


Mime
View raw message