2 Replies Latest reply on Nov 7, 2004 8:01 AM by Alon Agmon

    4.0.0 deployment failed on 4.0.1 with runtimeException

    Alon Agmon Newbie

      document /lit (ejb-endpoint) deployment - mapping simple custom type
      deployed successfully on 4.0.0 suddenly failes in 4.0.1
      with runtimeException

      12:51:29,730 ERROR [ServiceDeployer] Cannot startup webservice for: echoCustomer.jar
      org.jboss.deployment.DeploymentException: Cannot deploy webservice; - nested throwable: (javax.management.RuntimeMBeanException)
       at org.jboss.webservice.ServiceDeployer.deployWebservices(ServiceDeployer.java:342)
       at org.jboss.webservice.ServiceDeployerEJB.deployWebservices(ServiceDeployerEJB.java:100)
       at org.jboss.webservice.ServiceDeployer.startWebservice(ServiceDeployer.java:203)
       at org.jboss.webservice.ServiceDeployer.handleNotification(ServiceDeployer.java:113)
       at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
      
      .........
      
      Caused by: javax.management.RuntimeMBeanException
       at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:165)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:152)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
       at org.jboss.webservice.ServiceDeployer.deployWebservices(ServiceDeployer.java:333)
       ... 33 more
      
      ...........
      
      Caused by: java.lang.ClassCastException: javax.xml.namespace.QName
       at java.util.Arrays.mergeSort(Arrays.java:1156)
       at java.util.Arrays.sort(Arrays.java:1080)
       at org.jboss.webservice.deployment.WSDDGenerator.appendTypeMappings(WSDDGenerator.java:115)
       at org.jboss.webservice.AxisService.generateDeploymentWSDD(AxisService.java:420)
       at org.jboss.webservice.AxisService.deployService(AxisService.java:243)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
       ... 38 more


        • 1. Re: 4.0.0 deployment failed on 4.0.1 with runtimeException
          Thomas Diesler Master

          This exception would occur when QName is not Comparable. What deliverable are you using? Where is QName being loaded from?

          • 2. Re: 4.0.0 deployment failed on 4.0.1 with runtimeException
            Alon Agmon Newbie

            simple custom type cutomer - contain 2 strings :

            <typeMapping
             qname='ns1:Customer' xmlns:ns1='http://com.alon.beans/ws4ee'
             type='java:com.alon.beans.Customer'
             serializer='org.apache.axis.encoding.ser.BeanSerializerFactory'
             deserializer='org.apache.axis.encoding.ser.BeanDeserializerFactory'
             encodingStyle=''
             />



            from the wsdl :

            <schema targetNamespace="http://com.alon.beans" xmlns="http://www.w3.org/2001/XMLSchema">
             <complexType name="Customer">
             <sequence>
             <element name="last" nillable="true" type="xsd:string"/>
             <element name="name" nillable="true" type="xsd:string"/>
             </sequence>
             </complexType>
             </schema>
             <schema targetNamespace="http://com.alon.beans/ws4ee" xmlns="http://www.w3.org/2001/XMLSchema">
             <element name="in0" type="tns1:Customer"/>
             <element name="echoCustomerReturn" type="tns1:Customer"/>
             </schema>



            from the jax mapping :

            <package-mapping>
             <package-type>com.alon.beans</package-type>
             <namespaceURI>http://com.alon.beans/ws4ee</namespaceURI>
             </package-mapping>
            
             <java-xml-type-mapping>
             <java-type>com.alon.beans.Customer</java-type>
             <root-type-qname>impl:in0</root-type-qname>
             <qname-scope>element</qname-scope>
             </java-xml-type-mapping>
             <java-xml-type-mapping>
             <java-type>com.alon.beans.Customer</java-type>
             <root-type-qname>impl:echoCustomerReturn</root-type-qname>
             <qname-scope>element</qname-scope>
             </java-xml-type-mapping>