dev@glassfish.java.net

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

From: Liu Tao <liutao_at_nec-as.nec.com.cn>
Date: Thu, 17 Jan 2008 15:46:56 +0800

Hi Bhakti:
    Do I need to write web service deploy descriptor by hand? I've generated
the artifacts already, and just have the web.xml and sun-web.xml dd. But I
failed to deploy it, too.

Regards,
Liu

-----Original Message-----
From: Bhakti.Mehta_at_Sun.COM [mailto:Bhakti.Mehta_at_Sun.COM]
Sent: Thursday, January 17, 2008 5:47 AM
To: dev_at_glassfish.dev.java.net
Subject: Re: SOAP 1.2 Web Service failed to deploy on Glassfish V2 b58g with
Netbeans 6.0

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(Deploy
ment.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.j
ava: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(Deploy
ment.java:157)
>
> ... 16 more
>
>
----------------------------------------------------------------------------
-----------------------------
>
> Here is my server.log:
>
>
----------------------------------------------------------------------------
-----------------------------
>
>
[#|2008-01-16T15:51:20.078+0800|INFO|sun-appserver9.1|javax.enterprise.syste
m.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.syste
m.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.sys
tem.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(ModuleD
eployer.java:424)
>
> at
>
com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDepl
oyer.java:157)
>
> at
>
com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleD
eployer.java:179)
>
> at
>
com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:19
1)
>
> at
>
com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(Deploymen
tPhase.java:108)
>
> at
>
com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDe
ploymentService.java:919)
>
> at
>
com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymen
tService.java:279)
>
> at
>
com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymen
tService.java:788)
>
> at
>
com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:1
87)
>
> 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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: dev-help_at_glassfish.dev.java.net