3 Replies Latest reply on Mar 29, 2006 4:53 AM by scutoman2000

    JBoss.Net ClassNotFoundException in JBoss 4.0.2

    natebowler

      I am trying to use JBoss.Net on JBoss 4.0.2. I have removed the wsee client lib and SAR and replaced them with the JBoss.Net client lib and SAR.

      This is an application that used to work with JBoss 3.2.6 and I'm trying to get it working on JBoss 4.0.2.

      JBoss.Net does load. I can go to http://localhost:8080/jboss-net/ and when I run validate, everything comes back as OK.

      However, my WSR will not load. I get the following stack trace on startup:

      ERROR [WSDDDeployment.deployMapping()]: Unable to deploy typemapping: {http://mystuff.test/api}GroupBean
      java.lang.ClassNotFoundException: No ClassLoaders found for: org.apache.axis.encoding.ser.BeanSerializerFactory
      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:475)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:377)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:141)
      at org.jboss.axis.utils.ClassUtils$2.run(ClassUtils.java:216)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.axis.utils.ClassUtils.loadClass(ClassUtils.java:179)
      at org.jboss.axis.utils.ClassUtils.forName(ClassUtils.java:120)
      at org.jboss.axis.deployment.wsdd.WSDDTypeMapping.getSerializer(WSDDTypeMapping.java:256)
      at org.jboss.axis.deployment.wsdd.WSDDDeployment.deployMapping(WSDDDeployment.java:372)
      at org.jboss.axis.deployment.wsdd.WSDDDeployment.getTypeMappingRegistry(WSDDDeployment.java:
      570)
      at org.jboss.net.axis.Deployment.getTypeMappingRegistry(Deployment.java:350)
      at org.jboss.net.axis.Deployment.installTypeMappingWithOptions(Deployment.java:365)
      at org.jboss.net.axis.Deployment.getTypeMappingRegistry(Deployment.java:345)
      at org.jboss.net.axis.Deployment.deployToRegistry(Deployment.java:326)
      at org.jboss.net.axis.server.AxisService.startAxisDeployment(AxisService.java:201)
      at org.jboss.net.axis.server.AxisService.start(AxisService.java:521)
      at org.jboss.net.axis.server.AxisService.start(AxisService.java:492)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:956)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:956)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
      at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterce
      ptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      ....

      I have tried putting the Axis JAR file in many places: in my EAR, in JBOSS_HOME/server/default/lib, etc. And, I have tried using Axis 1.2 vs. Axis 1.1 (what I was originally using). However, the only thing I have been able to effect is I can change this error to a ClassCastException is I put the axis JAR in my EAR.

      Any help is getting my WSR deployed on 4.0.2 would be appreciated.

      Nate

        • 1. Re: JBoss.Net ClassNotFoundException in JBoss 4.0.2

          Hi!
          Have you solved your problem? I am having exactly the same error. I am exposing a SLSB as a web service with jboss.net on JBoss 4.0.2 (patched). I am trying to expose a VO on my web service, and I am getting the error below at deploy time:

          2005-09-07 02:18:25,554 ERROR [org.jboss.axis.deployment.wsdd.WSDDDeployment] Unable to deploy typemapping:
          java.lang.ClassNotFoundException: No ClassLoaders found for: org.apache.axis.encoding.ser.BeanSerializerFactory
          at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198)
          at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:475)
          at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:377)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:141)
          at org.jboss.axis.utils.ClassUtils$2.run(ClassUtils.java:216)
          at java.security.AccessController.doPrivileged(Native Method)
          at org.jboss.axis.utils.ClassUtils.loadClass(ClassUtils.java:179)
          at org.jboss.axis.utils.ClassUtils.forName(ClassUtils.java:120)
          at org.jboss.axis.deployment.wsdd.WSDDTypeMapping.getSerializer(WSDDTypeMapping.java:256)
          at org.jboss.axis.deployment.wsdd.WSDDDeployment.deployMapping(WSDDDeployment.java:372)
          at org.jboss.axis.deployment.wsdd.WSDDDeployment.getTypeMappingRegistry(WSDDDeployment.java:570)
          at org.jboss.net.axis.Deployment.getTypeMappingRegistry(Deployment.java:350)
          at org.jboss.net.axis.Deployment.installTypeMappingWithOptions(Deployment.java:365)
          at org.jboss.net.axis.Deployment.getTypeMappingRegistry(Deployment.java:345)
          at org.jboss.net.axis.Deployment.deployToRegistry(Deployment.java:326)
          at org.jboss.net.axis.server.AxisService.startAxisDeployment(AxisService.java:201)
          at org.jboss.net.axis.server.AxisService.start(AxisService.java:521)
          at org.jboss.net.axis.server.AxisService.start(AxisService.java:492)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:956)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)



          Here is the web-service.xml generated:


          <deployment
          name="ProvisioningService"
          xmlns="http://xml.apache.org/axis/wsdd/"
          targetNamespace="http://127.0.0.1:8080/ProvisioningService"
          xmlns:ProvisioningServicePrefix="http://127.0.0.1:8080/ProvisioningService"
          xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

          #############


















          ################







          If I don't try to export the User VO, everything works fine, ie, I can call a dummy method on my web service.

          Any help would really be appreciated.
          Thanks in advance,
          Victor Batista

          • 2. Re: JBoss.Net ClassNotFoundException in JBoss 4.0.2
            jlee007

            I have same error after working well for a while.
            Does someone have any resolution for above postings?

            Thank you.
            John

            • 3. Re: JBoss.Net ClassNotFoundException in JBoss 4.0.2
              scutoman2000

              I solve this problem,
              You have to modify webservice.xml.

              <typeMapping
              ...... serializer="org.jboss.axis.encoding.ser.BeanSerializerFactory"
              deserializer="org.jboss.axis.encoding.ser.BeanDeserializerFactory"
              encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>


              in the type mapping of value object change org.apache..... in org.jboss

              this is the only thing to do.