Hi,
i am trying the same example but i am getting incomplete deployment.
The service is registered, but the wsdl is empty.
Somebody to have idea what is the problem?
| 15:41:47,421 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
|
| --- Packages waiting for a deployer ---
| org.jboss.deployment.DeploymentInfo@7f08c218 {
url=file:/C:/jboss/jboss-portal-2.6.2.GA/server/default/deploy/jboss-portal.sar/portal-wsrp.sar/portal-wsrp.jse
}
| deployer: null
| status: Starting
| state: INIT_WAITING_DEPLOYER
| watch:
file:/C:/jboss/jboss-portal-2.6.2.GA/server/default/deploy/jboss-portal.sar/portal-wsrp.sar/portal-wsrp.jse
| altDD: null
| lastDeployed: 1214570470468
| lastModified: 1214570426218
| mbeans:
|
| --- Incompletely deployed packages ---
| org.jboss.deployment.DeploymentInfo@49deb077 {
url=file:/C:/jboss/jboss-portal-2.6.2.GA/server/default/deploy/sum.war }
| deployer: MBeanProxyExt[jboss.web:service=WebServer]
| status: Deployment FAILED reason: String index out of range: -1
| state: FAILED
| watch: file:/C:/jboss/jboss-portal-2.6.2.GA/server/default/deploy/sum.war
| altDD: null
| lastDeployed: 1214570496406
| lastModified: 1214570496390
| mbeans:
|
jboss.web:j2eeType=Servlet,name=Sum,WebModule=//localhost/sum,J2EEApplication=none,J2EEServer=none
(state not available)
|
jboss.web:j2eeType=Servlet,name=jsp,WebModule=//localhost/sum,J2EEApplication=none,J2EEServer=none
(state not available)
|
jboss.web:j2eeType=Servlet,name=default,WebModule=//localhost/sum,J2EEApplication=none,J2EEServer=none
(state not available)
|
|
|
|
|
|
|
|
| /*
| * Sum.java
| * created by borislav
| * created on 27.06.2008
| */
|
| import javax.jws.WebMethod;
| import javax.jws.WebService;
| import javax.jws.soap.SOAPBinding;
|
|
|
| @WebService
| @SOAPBinding(style = SOAPBinding.Style.RPC)
| public class Sum {
|
| @WebMethod
| public int sumAB(int a, int b){
| return a+b;
| }
|
| }
|
|
|
|
|
| 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>
| <servlet-name>Sum</servlet-name>
| <servlet-class>Sum</servlet-class>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Sum</servlet-name>
| <url-pattern>/*</url-pattern>
| </servlet-mapping>
|
| </web-app>
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161499#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...