dev@glassfish.java.net

Re: SOAP 1.2 Web Service failed to deploy on Glassfish V2 b58g with Netbeans 6.0

From: Bhakti Mehta <Bhakti.Mehta_at_Sun.COM>
Date: Wed, 16 Jan 2008 13:46:45 -0800

Liu,
The default binding supported by JAXWS is SOAP1.1 over Http. For SOAP
1.2 cases you can run wsgen with -extension and wsdl:Xsoap1.2 first on
your webservice and bundle the generated artifacts and wsdls in a war
and deploy and it will work.

Regards,
Bhakti

Liu Tao wrote:
>
> Hi all:
>
> I’m using netbeans to develop a Web Service with SOAP 1.2 binding
> type. I just used annotation on my sample Web Service.
>
> After builded it, I deployed on Glassfish, but it failed.
>
> The error message as follows:
>
> ---------------------------------------------------------------------------------------------------------
>
> init:
>
> deps-module-jar:
>
> deps-ear-jar:
>
> deps-jar:
>
> library-inclusion-in-archive:
>
> library-inclusion-in-manifest:
>
> compile:
>
> compile-jsps:
>
> In-place deployment at C:\Documents and Settings\LiuTao\My
> Documents\NetBeansProjects\WSS_Tube_IDPW\build\web
>
> Start registering the project's server resources
>
> Finished registering server resources
>
> moduleID=WSS_Tube_IDPW
>
> deployment started : 0%
>
> Deploying application in domain failed; WSGEN FAILED
>
> Deployment error:
>
> The module has not been deployed.
>
> See the server log for details.
>
> at
> org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:163)
>
> at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104)
>
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>
> at sun.reflect.GeneratedMethodAccessor383.invoke(Unknown Source)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:597)
>
> at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
>
> at org.apache.tools.ant.Task.perform(Task.java:348)
>
> at org.apache.tools.ant.Target.execute(Target.java:357)
>
> at org.apache.tools.ant.Target.performTasks(Target.java:385)
>
> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
>
> at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
>
> at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>
> at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
>
> at
> org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
>
> at
> org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
>
> at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
>
> Caused by: The module has not been deployed.
>
> at
> org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:157)
>
> ... 16 more
>
> ---------------------------------------------------------------------------------------------------------
>
> Here is my server.log:
>
> ---------------------------------------------------------------------------------------------------------
>
> [#|2008-01-16T15:51:20.078+0800|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=23;_ThreadName=Thread-33;|
>
> Usage: WSGEN [options] <SEI>
>
> where [options] include:
>
> -classpath <path> specify where to find input class files
>
> -cp <path> same as -classpath <path>
>
> -d <directory> specify where to place generated output files
>
> -extension allow vendor extensions - functionality not specified
>
> by the specification. Use of extensions may
>
> result in applications that are not portable or
>
> may not interoperate with other implementations
>
> -help display help
>
> -keep keep generated files
>
> -r <directory> resource destination directory, specify where to
>
> place resouce files such as WSDLs
>
> -s <directory> specify where to place generated source files
>
> -verbose output messages about what the compiler is doing
>
> -version print version information
>
> -wsdl[:protocol] generate a WSDL file. The protocol is optional.
>
> Valid protocols are soap1.1 and Xsoap1.2, the default
>
> is soap1.1. Xsoap1.2 is not standard and can only be
>
> used in conjunction with the -extension option
>
> -servicename <name> specify the Service name to use in the generated WSDL
>
> Used in conjunction with the -wsdl option.
>
> -portname <name> specify the Port name to use in the generated WSDL
>
> Used in conjunction with the -wsdl option.|#]
>
> [#|2008-01-16T15:51:20.078+0800|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=23;_ThreadName=Thread-33;|
>
> Examples:
>
> wsgen -cp . example.Stock
>
> wsgen -cp . example.Stock -wsdl -servicename {http://mynamespace}MyService
>
> |#]
>
> [#|2008-01-16T15:51:20.296+0800|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=23;_ThreadName=Thread-33;_RequestID=9dd32d58-1af9-4365-9ad8-ae33edc01a67;|Exception
> occured in J2EEC Phase
>
> com.sun.enterprise.deployment.backend.IASDeploymentException: WSGEN FAILED
>
> at com.sun.enterprise.webservice.WsUtil.genWSInfo(WsUtil.java:2247)
>
> at
> com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:424)
>
> at
> com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:157)
>
> at
> com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:179)
>
> at
> com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:191)
>
> at
> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
>
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
>
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:279)
>
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:788)
>
> at
> com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
>
> at
> com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:223)
>
> |#]
>
> Then I deployed the war by hand, using asadmin deploy, but failed too.
> I think I should customize wsgen use the “-extention” option,
>
> But I don’t know how to add it in the deploy phase.Could anybody give
> me a help?
>
> Many thanks,
>
> Liu Tao
>