Franck,
RPC/encoded is not a supported style/use mode with JAX-WS 2.0. JAX-WS
2.0 is fully compliant with the
WS-I Basic Profile 1.1 which mandates literal mode. The supported
style/use modes are: rpc/literal and document/literal.
rpc/encoded is only supported with JAX-RPC 1.1.
-Art
Franck de Bruijn wrote:
> 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\CvbWebServices\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:70)
>
> 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.doWebServiceDeployment(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(EJBCompiler.java:413)
>
> at
> com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:226)
>
> at
> com.sun.enterprise.deployment.backend.ModuleDeployer.runEJBC(ModuleDeployer.java:1133)
>
> at
> com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:179)
>
> at
> com.sun.enterprise.deployment.backend.ModuleDeployer.redeploy(ModuleDeployer.java:722)
>
> at
> com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:188)
>
> at
> com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:169)
>
> at
> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
>
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:848)
>
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:260)
>
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:716)
>
> at
> com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:165)
>
> at
> com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:194)
>
>
>
--
Regards,
______
/_____/\
/_____\\ \
/_____\ \\ / Arthur D. Frechette
/_____/ \/ / / Sun Microsystems Computer Company
/_____/ / \//\ 1 Network Drive
\_____\//\ / / Burlington, MA 01803-0902
\_____/ / /\ /
\_____/ \\ \ Email: arthur.frechette_at_Sun.COM
\_____\ \\ Phone (781) 442-0466 Fax (781) 442-1610
\_____\/ Web site...http://www.sun.com