[jboss-user] [JBossWS] - Re: Where do I have to *.jws web service files in JBoss ?

thoste do-not-reply at jboss.com
Mon Apr 28 16:05:21 EDT 2008


"richard.opalka at jboss.com" wrote : Please, read our documentation first.
  | If still confused download source distribution and try to find the example that fits your needs.
  | If still confused post to user forum ;)

Yes, I read the documentation and I thought this is the user forum.

Ok, lets explain the problem in more detail:

I tried out the deployment as you suggested. When I put the *.jws and web.xml (see both below)
into the deployment directory I got the error shown at the bottom.

So what wrong?


MyWebServiceClass.jws:

@WebService( name="Sum", targetNamespace = "http://sumtest.ws.ptest/", serviceName = "aaa" ) 
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE, style = SOAPBinding.Style.DOCUMENT) 


public class MyWebServiceClass { 

   @WebMethod 
   public double myWebServiceMethod( String job, double x ) { 
     if ("square".equalsIgnoreCase(job) ) 
        return x * x; 
     if ("root".equalsIgnoreCase(job) ) 
        return Math.sqrt( x ); 
     return 0.; } 
} 



web.xml:
<?xml version="1.0" encoding="UTF-8"?>

<web-app version="2.5"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

   
    <servlet-name>MyWebServiceClass</servlet-name>
    <servlet-class>MyWebServiceClass</servlet-class>
  
  
  <servlet-mapping>
    <servlet-name>MyWebServiceClass</servlet-name>
    <url-pattern>/*</url-pattern>
  </servlet-mapping>
    
</web-app>



Result in JBoss:

14:34:25,640 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo at e95e7022 { url=file:/D:/java/JBoss/v4.2.2/server/default/deploy/MyWebServiceClass.jws }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/java/JBoss/v4.2.2/server/default/deploy/MyWebServiceClass.jws
  altDD: null
  lastDeployed: 1209385176890
  lastModified: 1209385176890
  mbeans:

org.jboss.deployment.DeploymentInfo at dc36ff7c { url=file:/D:/java/JBoss/v4.2.2/server/default/deploy/web.xml }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/java/JBoss/v4.2.2/server/default/deploy/web.xml
  altDD: null
  lastDeployed: 1209385865421
  lastModified: 1209385865421
  mbeans:

--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo at e95e7022 { url=file:/D:/java/JBoss/v4.2.2/server/default/deploy/MyWebServiceClass.jws }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/java/JBoss/v4.2.2/server/default/deploy/MyWebServiceClass.jws
  altDD: null
  lastDeployed: 1209385176890
  lastModified: 1209385176890
  mbeans:

org.jboss.deployment.DeploymentInfo at dc36ff7c { url=file:/D:/java/JBoss/v4.2.2/server/default/deploy/web.xml }
  deployer: null
  status: null
  state: INIT_WAITING_DEPLOYER
  watch: file:/D:/java/JBoss/v4.2.2/server/default/deploy/web.xml
  altDD: null
  lastDeployed: 1209385865421
  lastModified: 1209385865421
  mbeans:




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

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



More information about the jboss-user mailing list