Hi,
I followed the discussion with a lot of interest, since I had (still have)
the same (similar problems) installing Axis2 1.3 with JMS transport on JBoss
4.0.3SP1.
I made the following observation. If within
../deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml the attribute
UseJBossWebLoader is set to "false" the webservice will not be registered
automatically during deployment at the specified JMS-Queue. If the attribute
is set to "true" the webservice will be registered automatically. You can
see that by checking the "ReceiversCount" value in the corresponding MBean
and by a log message in server.log:
[org.apache.axis2.transport.jms.JMSConnectionFactory] Mapping JNDI name :
queue/StockQuoteService and JMS Destination name : StockQuoteService against
service : StockQuoteService
Please note that this is working without applying any patch, or patch of
patch (listener.start();).
I am wondering how that can be!
Unfortunately running the deployment with UseJBossWebLoader=true causes the
Axis2 validation check to fail, because of different versions of the same
library coming from JBoss and Axis2. The error is
ERROR (http-0.0.0.0-8080-2)
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/axis2].[jsp]]
Servlet.service() for servlet jsp threw exception
java.lang.NoSuchMethodError:
org.apache.commons.httpclient.HttpConnectionManager.getParams()Lorg/apache/commons/httpclient/params/HttpConnectionManagerParams;
at
org.apache.axis2.transport.http.AbstractHTTPSender.initializeTimeouts(AbstractHTTPSender.java:441)
at
org.apache.axis2.transport.http.AbstractHTTPSender.getHttpClient(AbstractHTTPSender.java:496)
at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:158)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327)
at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
at
org.apache.jsp.axis2_002dweb.HappyAxis_jsp.invokeTheService(org.apache.jsp.axis2_002dweb.HappyAxis_jsp:338)
at
org.apache.jsp.axis2_002dweb.HappyAxis_jsp._jspService(org.apache.jsp.axis2_002dweb.HappyAxis_jsp:494)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
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:407)
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)
If UseJBossWebLoader=false the validation check returns OKAY, but the
webservice will not be connected to the JMS-Queue, and there are no errors
shown in the log.
Any help on how to configure JBoss and Axis2 the right way would be
appreciated.
KleinM
--
View this message in context:
http://www.nabble.com/SOAP-with-JMS-and-JBoss-tp16350791p16895130.html
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]