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 Su AiHua <di...@yahoo.com.cn> on 2007/05/10 11:08:40 UTC

[Axis2] soap/jms issue(deploy axis2 on JBoss4.0.5)

Hi:
   
  I found the doc about how to deploy axis2 on websphere and weblogic.
  But I have not found any doc about deploy axis2 on JBoss.
   
  So I just download axis2.war and put it in JBOSS_HOME/server/default/deploy directory.
   
  And since I want to use soap/jms, I change the axis2.xml like:
  <transportReceiver name="jms" class="org.apache.axis2.transport.jms.JMSListener">
          <parameter name="myQueue">
             <parameter name="java.naming.factory.initial">org.jnp.interfaces.NamingContextFactory</parameter>
             <parameter name="java.naming.provider.url">jnp://localhost:1099</parameter>
             <parameter name="transport.jms.ConnectionFactoryJNDIName">QueueConnectionFactory</parameter>
          </parameter>
   
          <parameter name="default">
             <parameter name="java.naming.factory.initial">org.jnp.interfaces.NamingContextFactory</parameter>
             <parameter name="java.naming.provider.url">jnp://localhost:1099</parameter>
             <parameter name="transport.jms.ConnectionFactoryJNDIName">QueueConnectionFactory</parameter>
          </parameter>
  </transportReceiver>
   
  But when start JBoss, it will throw exception like:
  10:43:28,745 INFO  [TomcatDeployer] deploy, ctxPath=/axis, warUrl=.../deploy/axi
  s.war/
  10:43:32,338 INFO  [ModuleDeployer] Deploying module: addressing-1.2
  10:43:32,354 INFO  [ModuleDeployer] Deploying module: soapmonitor-1.2
  10:43:32,775 INFO  [ServiceDeployer] Deploying Web service: version.aar
  10:43:32,963 INFO  [JMSConnectionFactory] Mapping JNDI name : Version and JMS Destination name : Version against service : Version
  10:43:32,963 INFO  [JMSListener] JMS Transport Receiver (Listener) initialized...
  10:43:33,228 ERROR [JMSListener] Error starting connection factory : default
  javax.jms.IllegalStateException: This method is not applicable inside the applic
  ation server. See the J2EE spec, e.g. J2EE1.4 Section 6.6
          at org.jboss.resource.adapter.jms.JmsSession.checkStrict(JmsSession.java:542)
          at org.jboss.resource.adapter.jms.JmsMessageConsumer.setMessageListener(JmsMessageConsumer.java:136)
          at org.apache.axis2.transport.jms.JMSConnectionFactory.listenOnDestination(JMSConnectionFactory.java:356)
          at org.apache.axis2.transport.jms.JMSConnectionFactory.listen(JMSConnectionFactory.java:318)
          at org.apache.axis2.transport.jms.JMSListener.start(JMSListener.java:300)
          at org.apache.axis2.engine.ListenerManager.start(ListenerManager.java:128)
          at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:417)
          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:3951)
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)
          at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
   
  The JBoss version is 4.0.5 and axis version is 2.1.2.
   
  Do I miss any specific configuration?  Thanks!
   
  -Diasy


  HAVE A GOOD DAY!!!



 		
---------------------------------
 雅虎免费邮箱-3.5G容量,20M附件