This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Issue while deploying web service jwstutorial example CLI171 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Issue while deploying web service jwstutorial example CLI171" Watch "Issue while deploying web service jwstutorial example CLI171" New topic

Issue while deploying web service jwstutorial example CLI171

anshul bhatt

Joined: Sep 04, 2008
Posts: 8
I am new to webservices am trying to deploy using asant deploy command, the error am getting is

c:\jwstutorial20\examples\jaxws\helloservice\build.xml:29: The following error occurred while executing this line:
c:\jwstutorial20\examples\common\targets.xml:125: An exception occurred while running the command. THE exception message is CLI171: Command deploy failed: Deploying application in domain failed; WSGEN FAILED.

please help if someone knows how to resolve this


A. B.

This what Glassfish server log says:


wsgen -cp . example.Stock
wsgen -cp . example.Stock -wsdl -servicename {http://mynamespace}MyService

[#|2011-01-23T13:10:13.812+0530|SEVERE|sun-appserver9.1||_ThreadID=29;_ThreadName=Thread-1868;_RequestID=99f77165-b2bc-4140-a812-5923bb15a56c;|Exception occured in J2EEC Phase
com.sun.enterprise.deployment.backend.IASDeploymentException: WSGEN FAILED
at com.sun.enterprise.webservice.WsUtil.genWSInfo(
at com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(
at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(
at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(
at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
What are you trying to deploy?
That is, what does your code, deployment descriptors etc etc look like?
Best wishes!

My free books and tutorials:
anshul bhatt

Joined: Sep 04, 2008
Posts: 8
Hi Ivan,

I am trying to code as per the javaee5 tutorial, i am following the tutorial as follows

Coding the Service Endpoint
Implementation Class
In this example, the implementation class, Hello, is annotated as a web service
endpoint using the @WebService annotation. Hello declares a single method
named sayHello, annotated with the @WebMethod annotation. @WebMethod
exposes the annotated method to web service clients. sayHello returns a greeting
to the client, using the name passed to sayHello to compose the greeting.
The implementation class also must define a default, public, no-argument constructor.
package helloservice.endpoint;
import javax.jws.WebService;
public class Hello {
private String message = new String("Hello, ");
public void Hello() {}
public String sayHello(String name) {
return message + name + ".";
Building the Service
To build HelloService, in a terminal window go to the
<INSTALL>/javaeetutorial5/examples/jaxws/helloservice/ directory and
type the following:
asant build
The build task command executes these asant subtasks:
• compile-service

The compile-service Task
This asant task compiles, writing the class files to the build subdirectory.
It then calls the wsgen tool to generate JAX-WS portable artifacts used
by the web service. The equivalent command-line command is as follows:
wsgen -d build -s build -classpath build
The -d flag specifies the output location of generated class files. The -s flag
specifies the output location of generated source files. The -classpath flag
specifies the location of the input files, in this case the endpoint implmentation
class, helloservice.endpoint.Hello.
Packaging and Deploying the Service
You package and deploy the service using asant.
Upon deployment, the Application Server and the JAX-WS runtime generate any
additional artifacts required for web service invocation, including the WSDL
Packaging and Deploying the Service with
To package and deploy the helloservice example, follow these steps:
1. In a terminal window, go to
2. Run asant create-war.
3. Make sure the Application Server is started.
4. Set your admin username and password in
5. Run asant deploy.
You can view the WSDL file of the deployed service by requesting the URL
http://localhost:8080/helloservice/hello?wsdl in a web browser. Now
you are ready to create a client that accesses this service.

It gives me error @ 5th command, i will be glad if you can tell me cause of it.

I am following the following tutorial ""

first example from Building Web Services
with JAX-WS chapter.

vargoyal goyal

Joined: Nov 05, 2009
Posts: 3
Hi Anshul,

Are you able to resolve the problem. I am also facing the same problem. Please let me know the solution.
anshul bhatt

Joined: Sep 04, 2008
Posts: 8
Hi Goyal,

I was not able to resolve it if you have then please tell me the solution.
jQuery in Action, 2nd edition
subject: Issue while deploying web service jwstutorial example CLI171
Similar Threads
Cannot able to start the Admin Web console of Glassfish v3.1
Help Deploying a CMP Bean
jax-rpc exception while deploying WEB SERVICE CLIENT in Sun One 8.1 App'ln Server
EAR deplyment error in glassfish
wsdl file WEB-INF/wsdl/wscoor.wsdl does not exist