1 Reply Latest reply on Jul 22, 2005 1:34 PM by Thomas Diesler

    ServiceDeployer ERROR: ClassCastException

    Adam Meghji Newbie

      Hi,

      I'm running through the Document style service endpoint tutorial http://wiki.jboss.org/wiki/Wiki.jsp?page=WSDOCServiceStepByStep, and I'm running into an issue deploying the whole thing.

      Any advice would be greatly appreciated.

      Here is the whole error:

      16:00:25,081 ERROR [ServiceDeployer] Cannot startup webservice for: thirdappEJB.jar
      java.lang.ClassCastException
       at org.jboss.webservice.ServiceDeployer$ServiceLocationResolver.getServiceLocation(ServiceDeployer.java:561)
       at org.jboss.webservice.metadata.WebserviceDescriptionMetaData.replaceAddressLocations(WebserviceDescriptionMetaData.java:304)
       at org.jboss.webservice.metadata.WebserviceDescriptionMetaData.updateServiceAddress(WebserviceDescriptionMetaData.java:253)
       at org.jboss.webservice.ServiceDeployer.startWebservice(ServiceDeployer.java:211)
       at org.jboss.webservice.ServiceDeployer.handleNotification(ServiceDeployer.java:112)
       at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
       at $Proxy25.handleNotification(Unknown Source)
       at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:112)
       at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:95)
       at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerSupport.java:238)
       at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:206)
       at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:620)
       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)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
       at sun.reflect.GeneratedMethodAccessor49.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(ModelMBeanOperationInterceptor.java:127)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
       at $Proxy8.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:325)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:501)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)
      16:00:25,113 INFO [EJBDeployer] Undeploying: file:/usr/local/jboss/server/helloworld/tmp/deploy/tmp37855thirdapp.ear-contents/thirdappEJB.jar
      16:00:25,151 WARN [ServiceDeployer] Cannot undeploy webservice: java.lang.IllegalStateException: Cannot find port component info for: thirdapp.ear/thirdappEJB.jar#CarrierService


      In case it helps, here is the stuff from META-INF/web.xml:
       <servlet>
       <servlet-name>CarrierWebService</servlet-name>
       <servlet-class>arm.carrier.interfaces.CarrierWebServiceWrappedImpl</servlet-class>
       </servlet>
      
       <servlet-mapping>
       <servlet-name>CarrierWebService</servlet-name>
       <url-pattern>/CarrierWebService</url-pattern>
       </servlet-mapping>


      Here is the stuff from META-INF/webservices.xml:
      <webservice-description>
       <webservice-description-name>CarrierService</webservice-description-name>
      
       <wsdl-file>META-INF/wsdl/CarrierService.wsdl</wsdl-file>
       <jaxrpc-mapping-file>META-INF/mapping.xml</jaxrpc-mapping-file>
      
       <port-component>
       <port-component-name>CarrierService</port-component-name>
       <wsdl-port>CarrierWebServicePort</wsdl-port>
       <service-endpoint-interface>arm.carrier.interfaces.CarrierWebServiceWrapped</service-endpoint-interface>
       <service-impl-bean>
       <servlet-link>CarrierWebService</servlet-link>
       </service-impl-bean>
       </port-component>
       </webservice-description>


      Thanks.
      A