aspose file tools*
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
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
Author

Issue while deploying web service jwstutorial example CLI171

anshul bhatt
Greenhorn

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

BUILD FAILED
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

Thanks

A. B.

This what Glassfish server log says:


[#|2011-01-23T13:10:13.609+0530|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=29;_ThreadName=Thread-1868;|

Examples:
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)
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
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: http://www.slideshare.net/krizsan
anshul bhatt
Greenhorn

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;
@WebService()
public class Hello {
private String message = new String("Hello, ");
public void Hello() {}
@WebMethod()
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
helloservice.endpoint.Hello
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
file.
Packaging and Deploying the Service with
asant
To package and deploy the helloservice example, follow these steps:
1. In a terminal window, go to
<INSTALL>/javaeetutorial5/examples/jaxws/helloservice/.
2. Run asant create-war.
3. Make sure the Application Server is started.
4. Set your admin username and password in
<INSTALL>/javaeetutorial5/examples/common/build.properties.
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.


vargoyal goyal
Greenhorn

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
Greenhorn

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

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