[jboss-user] [JBossWS] - EJB service endpoint deployment error

B.Portenseigne do-not-reply at jboss.com
Thu Aug 3 11:29:19 EDT 2006


Hi,

I want deploy a simple 'HelloWorld' style EJB service endPoint on Jboss 4.0.3.
i follow this tutorial
http://wiki.jboss.org/wiki/Wiki.jsp?page=WS4EEServerEJB

But i have this error:


  | java.lang.ClassCastException: org.jboss.metadata.ApplicationMetaData
  | 	at org.jboss.webservice.ServiceDeployer$ServiceLocationResolver.getServiceLocation(ServiceDeployer.java:558)
  | 	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:207)
  | 	at org.jboss.webservice.ServiceDeployer.handleNotification(ServiceDeployer.java:110)
  | 	at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | 	at java.lang.reflect.Method.invoke(Unknown Source)
  | 	at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
  | 	at $Proxy27.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:325)
  | 	at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:293)
  | 	at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:642)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | 	at java.lang.reflect.Method.invoke(Unknown Source)
  | 	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:118)
  | 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  | 	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
  | 	at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
  | 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  | 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  | 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | 	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  | 	at $Proxy24.start(Unknown Source)
  | 	at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
  | 	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
  | 	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
  | 	at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | 	at java.lang.reflect.Method.invoke(Unknown Source)
  | 	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:118)
  | 	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:245)
  | 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | 	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  | 	at $Proxy9.deploy(Unknown Source)
  | 	at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
  | 	at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:489)
  | 	at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
  | 	at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
  | 	at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)
  | 

Here is my ejb-jar.xml

  | <display-name>EjbTest</display-name>
  | 	
  | <enterprise-beans>
  |     <session>
  |       <ejb-name>EjbTestBean</ejb-name>
  |       <service-endpoint>fr.kob.test.EjbTest</service-endpoint>
  |       <ejb-class>fr.kob.test.EjbTestBean</ejb-class>   
  |       <session-type>Stateless</session-type>
  |       <transaction-type>Container</transaction-type>
  |     </session>
  |   </enterprise-beans>
  | 

and my webservice.xml


  | <display-name>EjbTest Services</display-name>
  | 	<webservice-description>
  | 		<webservice-description-name>EjbTest Services</webservice-description-name>
  | 		<wsdl-file>META-INF/wsdl/EjbTest_Services.wsdl</wsdl-file>
  | 		<jaxrpc-mapping-file>META-INF/EjbTestMapping.xml</jaxrpc-mapping-file>
  | 		<port-component>
  | 			<port-component-name>EjbTestPC</port-component-name>
  | 			<wsdl-port>EjbTestPort</wsdl-port>
  | 			<service-endpoint-interface>fr.kob.test.EjbTest</service-endpoint-interface>
  | 			<service-impl-bean>
  | 				<servlet-link>EjbTestBean</servlet-link>
  | 			</service-impl-bean>
  | 		</port-component>
  | 	</webservice-description>
  | 

Has anybody an idea ?
Thanks

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962892#3962892

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962892



More information about the jboss-user mailing list