• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Issue while deploying web service jwstutorial example CLI171

Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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|javax.enterprise.system.tools.deployment|_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(WsUtil.java:2256)
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)
Ranch Hand
Posts: 2198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What are you trying to deploy?
That is, what does your code, deployment descriptors etc etc look like?
Best wishes!
anshul bhatt
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 Hello.java, 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 "http://download.oracle.com/docs/cd/E17802_01/webservices/webservices/docs/2.0/tutorial/doc/AboutJWSDP4.html"

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

Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Anshul,

Are you able to resolve the problem. I am also facing the same problem. Please let me know the solution.
anshul bhatt
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Goyal,

I was not able to resolve it if you have then please tell me the solution.
I'm doing laundry! Look how clean this tiny ad is:
a bit of art, as a gift, the permaculture playing cards
    Bookmark Topic Watch Topic
  • New Topic