11 Replies Latest reply on Jul 15, 2011 4:01 AM by samuele

    JBAS 5.1.0.GA - trying to deploy old JBoss.NET web-service.x

    Simon Temple Newbie

      If I drop the web-service.xml in a .wsr or try deploying directly using the MainDeployer nothing seems to be happening.

      I'm trying to provide support for both old JBoss.NET and JBoss.WS stacks - we have a lot of old Axis based code and don't want to rework it all right now...

      I'm beginning to think this is an impossible challenge.

      Does anyone have any thoughts on this?



      web-service.xml

      deployment
      name="JMX.net"
      targetNameSpace="http://net.jboss.org/jmx"
      xmlns="http://xml.apache.org/axis/wsdd/"
      xmlns:jmx="http://net.jboss.org/jmx"
      xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

      An example JMX-based Web Service

      <!-- this service hits a connector web service that re-exposes the complete MBeanServer API -->










        • 1. Re: JBAS 5.1.0.GA - trying to deploy old JBoss.NET web-service.x
          Antoniu Nicula Newbie

          Hello.

          I know it's a bit late for you but maybe someone will try to do the "migration" (from jboss 3.2.3/jboss-net with axis 1.4 to jboss 5.1/jboss-net axis 1.4) add will find this post interesting.

          The general ideea is to make a deployer (see the jboss microcontainer documentation for more details)

          that will "collect" the web-service.xml from the wsr and deploy them using the existing AxisService class from the jboss-net.sar.

           

          • Make jboss 5.1 know how to deploy wsr archives. For this you have to make a deployer project. (You need the jboss-deployers project to compile the code.) I've attached the Axis*classes for this

           

            • add the deployer to the jboss 5.1 server :
              • make the axis-deployer directory in the jboss/server/xxx/deployers
              • build the deployer project and add the jar to the jboss/server/xxx/deployers/axis-deployer directory
              • add META-INF directory in the jboss/server/xxx/deployers/axis-deployer
            • add the <value>.wsr</value> to the jboss5.1/server/xxx/conf/bootstrap/deployers.xml for the JARStructure bean.
            • create the axis-deployer-jboss-beans.xml file in the jboss/server/xxx/deployers/axis-deployer/META-INF  with the folowing content:

           

          <?xml version="1.0" encoding="UTF-8"?>
          <deployment xmlns="urn:jboss:bean-deployer:2.0">
          
             <bean name="AxisParserDeployer" class="com.j2ee.jboss.deployers.AxisParsingDeployer"/>
             <bean name="AxisRealDeployer" class="com.j2ee.jboss.deployers.AxisRealDeployer"/>
          
          </deployment>
          
          

           

          • Download the jboss 3.2.3 source and make a couple of changes so that the AxisService can be used with the deployer described above.

           

            • add the "mock" org.jboss.logging.log4j.Log4jLoggerPlugin class in the common project (this is used in the log4j of the jboss 5.1)

                         this is used only to "compile" the code

           

                           

                    public class Log4jLoggerPlugin {
                       public Category getCategory() {
                          return null;
                       }
                    }
          
          

           

           

            • in the AxisService class:
              • change the import org.jboss.logging.Log4jLoggerPlugin; with the org.jboss.logging.log4j.Log4jLoggerPlugin
              • refactor public void start(DeploymentInfo sdi) throws DeploymentException to be

                                   public void start(Document doc, ClassLoader cl) throws DeploymentException

                              and add a deploy method , this is used by the deployer to deploy the web-service.xml


               public void deploy(URL webServiceURL, ClassLoader cl) throws DeploymentException {
                    try {
                         Document doc = XMLUtils.newDocument(webServiceURL.openStream());
                         start(doc, cl);
                    } catch (Exception ex) {
                         log.error(ex);
                         throw new DeploymentException(ex);
                    }
               }
          

           

          • Copy the jboss-net.sar from jboss3.2.3/server/all/deploy to jboss5.1/server/xxx/deploy overriding the jboss-net.jar with the built one

           

          That's it

          I know this is not the best/clean solution - but it's a starting point.

          NTony

          • 2. Re: JBAS 5.1.0.GA - trying to deploy old JBoss.NET web-service.x
            samuele Newbie

            I need some information.

            I try to follow you instructions, but i have some problem:

            If I left the original web.xml in jboss-net.sar\jboss-net.war\WEB-INF I obtain the follow error:

            2011-03-03 17:48:30,031 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Parse: name=vfsfile:/C:/Programmi/jboss-5.1.0.GA/server/default/deploy/jboss-net.sar/ state=Not Installed mode=Manual requiredState=Parse

            org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/C:/Programmi/jboss-5.1.0.GA/server/default/deploy/jboss-net.sar/jboss-net.war/

            at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

            at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:362)

            at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:322)

            at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:294)

            at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:234)

            at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

            at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)

            at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

            at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

            at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)

            at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

            at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

            at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

            at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)

            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

            at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)

            at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)

            at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

            at org.jboss.Main.boot(Main.java:221)

            at org.jboss.Main$1.run(Main.java:556)

            at java.lang.Thread.run(Thread.java:619)

            Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Connection timed out: connect

            at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)

            at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)

            at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:189)

            at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:166)

            at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:137)

            at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:121)

            at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)

            at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:188)

            at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:348)

            ... 34 more

            Caused by: java.net.ConnectException: Connection timed out: connect

            at java.net.PlainSocketImpl.socketConnect(Native Method)

            at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)

            at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)

            at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)

            at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)

            at java.net.Socket.connect(Socket.java:525)

            at java.net.Socket.connect(Socket.java:475)

            at sun.net.NetworkClient.doConnect(NetworkClient.java:163)

            at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)

            at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)

            at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)

            at sun.net.www.http.HttpClient.New(HttpClient.java:306)

            at sun.net.www.http.HttpClient.New(HttpClient.java:323)

            at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:860)

            at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)

            at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:726)

            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049)

            at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)

            at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)

            at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)

            at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)

            at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)

            at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

            at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

            at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

            at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

            at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)

            ... 42 more

            If I change the web.xml like the attach I obtain instead the next error:

             

            2011-03-03 17:27:55,125 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Real: name=vfsfile:/C:/Programmi/jboss-5.1.0.GA/server/default/deploy/jboss-net.sar/ state=PreReal mode=Manual requiredState=Real

            org.jboss.deployers.spi.DeploymentException: Error during deploy: vfsfile:/C:/Programmi/jboss-5.1.0.GA/server/default/deploy/jboss-net.sar/jmx-net.wsr/

            at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

            at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:177)

            at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)

            at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

            at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

            at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)

            at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

            at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

            at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

            at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)

            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

            at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)

            at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)

            at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

            at org.jboss.Main.boot(Main.java:221)

            at org.jboss.Main$1.run(Main.java:556)

            at java.lang.Thread.run(Thread.java:619)

            Caused by: java.lang.RuntimeException: Cannot deploy axis service. Cause: jboss.net:service=Axis is not registered.

            at com.j2ee.jboss.deployers.AxisRealDeployer.deploy(AxisRealDeployer.java:63)

            at com.j2ee.jboss.deployers.AxisRealDeployer.deploy(AxisRealDeployer.java:23)

            at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

            at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

            at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

            ... 30 more

             

             

            I've attached the deployer and the entire jboss-net.sar (with jboss-net.jar modified) that i realized.

            What I'm wrong?

             

            Thanks a lot.

            • 4. Re: JBAS 5.1.0.GA - trying to deploy old JBoss.NET web-service.x
              samuele Newbie

              I try it but continue to get the error:

              Caused by: java.lang.RuntimeException: Cannot deploy axis service. Cause: jboss.net:service=Axis is not registered.

               

              It seems that no axis service is registered. So I try to download Axis 1.4 from http://ws.apache.org/axis/java/releases.html

              At startup it seems all OK. But when I deploy my web service I obtain the error:

               

              2011-03-04 10:35:09,531 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Real: name=vfszip:/C:/Programmi/jboss-5.1.0.GA/server/default/deploy/wstestweb.wsr/ state=PreReal mode=Manual requiredState=Real
              org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/C:/Programmi/jboss-5.1.0.GA/server/default/deploy/wstestweb.wsr/
              at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:177)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:362)
              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
              at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:619)
              Caused by: java.lang.RuntimeException: Cannot deploy axis service. Cause: jboss.net:service=Axis is not registered.
              at com.j2ee.jboss.deployers.AxisRealDeployer.deploy(AxisRealDeployer.java:63)
              at com.j2ee.jboss.deployers.AxisRealDeployer.deploy(AxisRealDeployer.java:23)
              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
              ... 24 more
              2011-03-04 10:35:09,546 WARN  [org.jboss.system.server.profileservice.hotdeploy.HDScanner] (HDScanner) Failed to process changes
              org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

              *** DEPLOYMENTS IN ERROR: Name -> Error

              vfszip:/C:/Programmi/jboss-5.1.0.GA/server/default/deploy/wstestweb.wsr/ -> org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/C:/Programmi/jboss-5.1.0.GA/server/default/deploy/wstestweb.wsr/


              DEPLOYMENTS IN ERROR:
                Deployment "vfszip:/C:/Programmi/jboss-5.1.0.GA/server/default/deploy/wstestweb.wsr/" is in error due to the following reason(s): java.lang.RuntimeException: Cannot deploy axis service. Cause: jboss.net:service=Axis is not registered.

              at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
              at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
              at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
              at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:619)

               

               

               

              My jboss-net.sar contain axis.jar etc. I notice that was wrong version so I download the 1.4 but still have problem.

              I'm definitely doing something wrong! Could you give me your jboss-net.sar or tell me how to run correctly the service?

               

               

               

               

               

              Thanks for your help

              • 5. Re: JBAS 5.1.0.GA - trying to deploy old JBoss.NET web-service.x
                Antoniu Nicula Newbie

                I've attached my jboss-net.sar (with axis 1.4)

                 

                Our structures is looks like:

                aaaaa.ear

                  - bbbb.wsr

                      - META-INF

                         - web-service.xml

                  - cccc.sar

                 

                Check on the log maybe there is an error why the AxisService is not installed

                 

                NTony

                • 6. Re: JBAS 5.1.0.GA - trying to deploy old JBoss.NET web-service.x
                  samuele Newbie

                  With your .sar after change web.xml I obtain:

                  java.lang.ClassCastException: org.jboss.logging.log4j.Log4jLoggerPlugin cannot be cast to org.jboss.logging.Log4jLoggerPlugin

                   

                  So I replace jboss-net.jar with one created by me following your previous instructions.

                  Now the server start without error. When I deploy my wsr I obtain the error:

                   

                  Deployment "vfszip:/C:/Programmi/jboss-5.1.0.GA/server/default/deploy/wstestweb.wsr/" is in error due to the following reason(s): java.lang.RuntimeException: Cannot deploy axis service. Cause: null

                   

                   

                  If I put my wsr into an ear file my web services don't deploy.

                  If I go to http://localhost:8080/jboss-net/servlet/AxisServlet I don't see any services..

                   

                   

                  I put the entire log.

                   

                  I try to understand the error. I modified AxisRealDeployer class to see what is generating problem.

                  In "deploy" method .. the call:

                  server.invoke(asixServiceObj, "deploy", params, signature);

                   

                  Generate the error: javax.management.ReflectionException

                   

                  Maybe I missed the deployer..

                   

                   

                  Thanks a lot for your help!

                  • 7. Re: JBAS 5.1.0.GA - trying to deploy old JBoss.NET web-service.x
                    Antoniu Nicula Newbie

                    1. Check to see if you have the AxisService in jmx console.

                    2. Does you AxisServie class has the deploy method? (and you deployed the newlly created jboss-net?)

                    3. I removed the JBoss Web Services

                    • 8. Re: JBAS 5.1.0.GA - trying to deploy old JBoss.NET web-service.x
                      samuele Newbie

                      In order:

                      1. AxisService in jmx console is present.

                      2. I put the deploy method in AxisServie class. (I've deployed the newlly jboss-net)

                      3. I've removed the JBoss WS, but the error is still present.

                       

                      If I can ask to you.. could you give me yours modified axis-deployer.jar and jboss-net.jar?

                       

                      I renew my thanks for the support that you give me

                      • 9. Re: JBAS 5.1.0.GA - trying to deploy old JBoss.NET web-service.x
                        Hari Sundharesan Newbie

                        Hi,

                                    Have you had any luck with getting it to work ? I am caught at the same point with the service deployment failing due to

                         

                        Caused by: java.lang.RuntimeException: Cannot deploy axis service. Cause: null

                                at com.j2ee.jboss.deployers.AxisRealDeployer.deploy(AxisRealDeployer.java:63)

                         

                         

                        Thanks

                        • 10. Re: JBAS 5.1.0.GA - trying to deploy old JBoss.NET web-service.x
                          Hari Sundharesan Newbie

                          I have been able to deploy it successfully in jboss 5.1.0. I have my wsr s deployed and working like a charm. the steps are the same, but I used the jboss-net from jboss 3.2.8. Also I made some changes to the axis-deployer to pass the document directly rather than the URL.

                           

                          I have attached the requried artifacts.

                           

                          unzip jboss-net.zip in the deploy dir and the axis-deployer.zip in the deployers/ dir and you can check the url:port/jboss-net !

                          • 11. Re: JBAS 5.1.0.GA - trying to deploy old JBoss.NET web-service.x
                            samuele Newbie

                            I abandoned it for lack of time.
                            But then I tried your solution and I must say it works great

                            Good job and great intuition!
                            Thank you very much!