Hi,
I'm trying to get a SimpleWebservice to work. I'm still a newbie at this, so pleace 
forgive me for asking stupid questions.

I've started from a SessionBean (a simple calculator) and I get the following error 
when deploying:

  | 03:44:57,984 ERROR [ServiceDeployer] Cannot startup webservice for: SimpleEJBs.jar
  | java.lang.NullPointerException
  |         at 
org.jboss.webservice.ServiceDeployer$ServiceLocationResolver.getServiceLocation(ServiceDe
  | ployer.java:500)
  |         at 
org.jboss.webservice.metadata.WebserviceDescriptionMetaData.replaceAddressLocations(Webse
  | rviceDescriptionMetaData.java:280)
  |         at 
org.jboss.webservice.metadata.WebserviceDescriptionMetaData.updateServiceAddress(Webservi
  | ceDescriptionMetaData.java:229)
  |         at 
org.jboss.webservice.ServiceDeployer.startWebservice(ServiceDeployer.java:181)
  |         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:324)
  |         at 
org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java
  | :138)
  |         at $Proxy20.handleNotification(Unknown Source)
  |         at 
javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcaste
  | rSupport.java:104)
  |         at 
javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterS
  | upport.java:87)
  |         at 
org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:178)
  |         at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:620)
  |         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:935)
  |         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:927)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
  |         at sun.reflect.GeneratedMethodAccessor30.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:119)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  |         at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterce
  | ptor.java:131)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  |         at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
  |         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
  |         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  |         at $Proxy8.deploy(Unknown Source)
  |         at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
  |         at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
  |         at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeplo
  | ymentScanner.java:204)
  |         at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploym
  | entScanner.java:215)
  |         at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeployme
  | ntScanner.java:194)
  | 



My ejb-jar.xml file looks like this:

  | <?xml version="1.0" encoding="UTF-8"?>
  | 
  | <ejb-jar version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee";
  |                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  |                        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
  |                                            
http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd";>>
  |   <enterprise-beans>
  |       <session>
  |           <display-name>Calculator</display-name>
  |           <ejb-name>CalculatorEJB</ejb-name>
  |           <ejb-class>simple.test.CalculatorBean</ejb-class>
  |           <service-endpoint>simple.test.Calculator</service-endpoint>
  |           <session-type>Stateless</session-type>
  |           <transaction-type>Container</transaction-type>
  |       </session>
  |   </enterprise-beans>
  | </ejb-jar>
  | 


This is my webservices.xml file:


  | <webservices xmlns="http://java.sun.com/xml/ns/j2ee";
  |     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  |     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
  |         
http://www-124.ibm.com/developerworks/opensource/jsr109/xsd/j2ee_web_services_1_1.xsd"; 
version="1.1">
  |     <webservice-description>
  |         
<webservice-description-name>CalculatorService</webservice-description-name>
  |         <wsdl-file>META-INF/wsdl/calculator.wsdl</wsdl-file>
  |         <jaxrpc-mapping-file>META-INF/mapping.xml</jaxrpc-mapping-file>
  |         <port-component>
  |             <port-component-name>Calculator</port-component-name>
  |             <wsdl-port>Calculator</wsdl-port>
  |             
<service-endpoint-interface>simple.test.Calculator</service-endpoint-interface>
  |             <service-impl-bean>
  |                 <ejb-link>CalculatorBean</ejb-link>
  |             </service-impl-bean>
  |          </port-component>
  |     </webservice-description>
  |  </webservices>
  | 


Mapping.xml is as follows:

  | <java-wsdl-mapping xmlns="http://java.sun.com/xml/ns/j2ee";
  |     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  |     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
  |                         
http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd";
  |     version="1.1">
  |     <package-mapping>
  |         <package-type>simple.test</package-type>
  |         <namespaceURI>urn:simple.test.CalculatorService</namespaceURI>
  |     </package-mapping>
  | </java-wsdl-mapping>
  | 





Can somebody see why this error occors upon deployment?

I wish there was a website that explains all the deployment descriptors step by step, 
cause most tutorials just list out these xml-files without explaining them. Any links 
you would like share? ;-)

THANKS ALOT !!!
I really hope, i'll get it right someday


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

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


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to