4 Replies Latest reply on Dec 6, 2011 8:10 AM by evpgud

    module.xml file for org.springframework.spring?

    rjbaty

      Hello,

      I have been using JBossWS-CXF on JBossAS6 for a couple months and decided to try and migrate over to JBossAS7.  There was a dependency on Spring for some of the CXF functions in JBossAS6 and I am looking to add Spring as a module in JBossAS7 as indicated by some of the documentation below:

       

      Using Spring

      The JBossWS-CXF modules have optional dependencies to the org.springframework.spring module. So either create that manually in the application server or use the JBossWS-CXF installation scripts for doing that.

       

      I've been searching around for a JBossWS-CXF 4.x installation script but have not been able to find it yet so I have tried to add the Spring module manually but I am scratching my head a bit as to what is to go into the modules.xml file?  I have the following but I feel like I am guessing a bit at the dependencies.

       

      <module xmlns="urn:jboss:module:1.0" name="org.springframework.spring">
      
          <resources>
              <resource-root path="com.springsource.org.aopalliance-1.0.0.jar"/>
              <resource-root path="org.springframework.aop-3.0.5.RELEASE.jar"/>
              <resource-root path="org.springframework.asm-3.0.5.RELEASE.jar"/>
              <resource-root path="org.springframework.beans-3.0.5.RELEASE.jar"/>
              <resource-root path="org.springframework.context-3.0.5.RELEASE.jar"/>
              <resource-root path="org.springframework.core-3.0.5.RELEASE.jar"/>
              <resource-root path="org.springframework.expression-3.0.5.RELEASE.jar"/>
              <resource-root path="org.springframework.jdbc-3.0.5.RELEASE.jar"/>
              <resource-root path="org.springframework.jms-3.0.5.RELEASE.jar"/>
              <resource-root path="org.springframework.transaction-3.0.5.RELEASE.jar"/>
              <resource-root path="org.springframework.web-3.0.5.RELEASE.jar"/>
          </resources>
          
          <dependencies>
              <module name="javax.api"/>
              <module name="javax.jms.api"/>
              <module name="javax.annotation.api"/>
              <module name="org.apache.commons.logging"/>
          </dependencies>
      </module>
      

       

      Thanks,

      Robert

        • 1. Re: module.xml file for org.springframework.spring?
          asoldano

          Those dependencies are a good start, beeing the one used when running the Spring version of the jbossws-cxf testsuite.

          Currently the JBossWS 4.x documentation does not cover a lot on the Spring stuff because there's a general effort of reducing the usage of Spring in AS7 and in the future EAP 6, so every functionality that's usable without spring, is documented and provided examples of without mentioning spring at all. By the time JBossWS 4 will go final (please note it's currently still at Beta level), we'll make sure the Spring installation topic is properly covered wherever required.

          In any case, you can install Spring by running the jbossws-cxf installation with the -Dspring=true option , the same way as it used to work with previous versions: http://community.jboss.org/wiki/JBossWS-Installation

          • 2. Re: module.xml file for org.springframework.spring?
            rjbaty

            Alessio,

            I kind of figured you guys are moving away from the Spring dependency in JBossWS-CXF as most of the new documentation with the AS7 release details how to do things without Spring (it looks like the @EndpointConfig annotation and handler chain may be back from JBossWS-native).  I will have to check that out but I wanted to keep my AS6-Spring config in place before I tried to move that way.

             

            Is there a JBossWS 4 installation I can download?  I didn't see it on your JBossWS page and I figured it was because it was Beta you hadn't releaed it yet.

             

            Robert

            • 3. Re: module.xml file for org.springframework.spring?
              asoldano

              Yes, the distro build is not uploaded to jboss.org/jbossws yet because it's still in Beta stage.

              You can download the sources http://anonsvn.jboss.org/repos/jbossws/stack/cxf/tags/jbossws-cxf-4.0.0.Beta2/ and build them (http://www.jboss.org/jbossws/build)

              • 4. Re: module.xml file for org.springframework.spring?
                evpgud

                Hello,

                 

                I have another question regarding using  JBossWS-CXF within JBOSS AS 7 in a spring application. I have applied Roberts's module.xml to the server, everything is fine except the excessive memory consumption of the  JBossWS-CXF. Some how every web service call ended up with reflection with this log.

                 

                15:07:03,256 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (http--192.168.155.165-8080-1) Creating Service {http://ejb3.gtw.aaa.bbb.com/}GatewayWebservicesBeanService from WSDL: file:/etc/aaa.d/GatewayWebservicesBean.wsdl

                 

                The consumption of memory shows some rapid peak points and ended up with permgen space failure.

                 

                Is there any other configuration that I am missing.

                 

                best regards