Problems with JBoss 4.0.3 and session management (SimpleSess
luis-a-castro Feb 2, 2006 5:32 AMHi,
I`m porting an application from jboss 3.2.2 to 4.0.3SP1 and facing some complications related with the SimpleSessionHandler definition. I`have changed the imoprts to the repackage made with axis in jboss-ws4ee (org.jboss.axis*).
I`m defining the handler in webservices.xml inside the port-component:
<handler> <handler-name>SimpleSessionHandler</handler-name> <handler-class>org.jboss.axis.handlers.SimpleSessionHandler</handler-class> </handler>
When I make the first access with the browser to see if the service is well deployed it`s giving an error because he can`t initialize the handler chain:
2006-02-01 18:12:33,801 [ServiceException] [http-0.0.0.0-3080-2]ERROR - Cannot initialize webservice javax.xml.rpc.JAXRPCException: Cannot initialize handler chain at org.jboss.webservice.handler.HandlerChainBaseImpl.addHandlersToChain(HandlerChainBaseImpl.java:99) at org.jboss.webservice.handler.HandlerChainBaseImpl.<init>(HandlerChainBaseImpl.java:71) at org.jboss.webservice.handler.ServerHandlerChain.<init>(ServerHandlerChain.java:34) at org.jboss.webservice.server.InvokerProvider.initHandlerChain(InvokerProvider.java:143) at org.jboss.webservice.server.InvokerProvider.initServiceDesc(InvokerProvider.java:98) at org.jboss.webservice.server.InvokerProviderEJB.initServiceDesc(InvokerProviderEJB.java:52) at org.jboss.axis.handlers.soap.SOAPService.getInitializedServiceDesc(SOAPService.java:388) at org.jboss.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDService.java:560) at org.jboss.axis.deployment.wsdd.WSDDDeployment.getDeployedServices(WSDDDeployment.java:617) at org.jboss.axis.configuration.FileProvider.getDeployedServices(FileProvider.java:356) at org.jboss.webservice.server.AbstractServlet.reportAvailableServices(AbstractServlet.java:94) at org.jboss.webservice.server.ServiceEndpointServlet.doGet(ServiceEndpointServlet.java:69) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at org.jboss.axis.transport.http.AxisServletBase.service(AxisServletBase.java:370) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) 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.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) 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:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.ClassCastException: org.jboss.axis.handlers.SimpleSessionHandler at org.jboss.webservice.handler.HandlerChainBaseImpl.addHandlersToChain(HandlerChainBaseImpl.java:88) ... 34 more
In fact I have read the documentation and it`s said that "A JAX-RPC handler is required to implement the javax.xml.rpc.handler.Handler interface". However none of the classes that compose SimpleSessionHandler implements this interface. Is this a bug or I`m missing something?