users@glassfish.java.net

Webservice with rpc/encoded does not deploy

From: Franck de Bruijn <franck.de.bruijn_at_zonnet.nl>
Date: Sun, 5 Mar 2006 22:28:55 +0100

Hi,

 

I am failing to deploy an RPC/encoded webservice into GlassFish build 39. If
I deploy the same webservice with RPC/literal or document/literal everything
works like a charm. Am I doing something wrong? Any help is appreciated. I
have included the webservice and the exception below.

 

Thanks,

Franck

 

 

Webservice:

 

import java.util.Calendar;

import java.util.Date;

 

import javax.jws.WebMethod;

import javax.jws.WebService;

import javax.jws.soap.SOAPBinding;

 

@WebService(serviceName = "CustomerWebService")

@SOAPBinding(style = SOAPBinding.Style.RPC, use = SOAPBinding.Use.ENCODED)

public class CustomerWebService {

      @WebMethod

      public KlantVo[] findAllCustomers() { ... implementation omitted for
brevity ... }

}

 

 

Exception:

 

com.sun.enterprise.deployment.backend.IASDeploymentException: Error while
running ejbc -- Fatal Error from EJB Compiler --
C:\dev\jee5\glassfish\domains\domain1\generated\xml\j2ee-modules\CvbWebServi
ces\WEB-INF\wsdl\CustomerWebService.wsdl (The system cannot find the file
specified)

            at java.io.FileInputStream.open(Native Method)

            at java.io.FileInputStream.<init>(FileInputStream.java:106)

            at java.io.FileInputStream.<init>(FileInputStream.java:66)

            at
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:7
0)

            at
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection
.java:161)

            at java.net.URL.openStream(URL.java:1007)

            at
com.sun.enterprise.webservice.WsUtil.generateFinalWsdl(WsUtil.java:619)

            at
com.sun.enterprise.webservice.WsUtil.generateFinalWsdl(WsUtil.java:565)

            at
com.sun.enterprise.deployment.backend.WebServiceDeployer.doWebServiceDeploym
ent(WebServiceDeployer.java:148)

            at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:855)

            at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:580)

            at
com.sun.enterprise.deployment.backend.EJBCompiler.preDeployModule(EJBCompile
r.java:413)

            at
com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:2
26)

            at
com.sun.enterprise.deployment.backend.ModuleDeployer.runEJBC(ModuleDeployer.
java:1133)

            at
com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDepl
oyer.java:179)

            at
com.sun.enterprise.deployment.backend.ModuleDeployer.redeploy(ModuleDeployer
.java:722)

            at
com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleD
eployer.java:188)

            at
com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:16
9)

            at
com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(Deploymen
tPhase.java:95)

            at
com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDe
ploymentService.java:848)

            at
com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymen
tService.java:260)

            at
com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymen
tService.java:716)

            at
com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:1
65)

            at
com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:194)