Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Web Services and the fly likes wsdeploy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "wsdeploy" Watch "wsdeploy" New topic
Author

wsdeploy

Mohan Basavarajappa
Greenhorn

Joined: Dec 21, 2005
Posts: 14
Hello ,
I am building a webservice for deployment on Tomcat. I made use of JWSDP 1.5 version. When i made use of wsdeploy.bat for generating war file that could be deployed on Tomcat , i am getting this Exception. Should i run first wscompile and then wsdeploy.
Please help me out.
The error message is

C:\Sun\jwsdp-1.5\jaxrpc\samples\StringService>%JWSDP_HOME%\jaxrpc\bin\wsdeploy.bat -verbose -o dist/
myWStest.war build\myWEB-INF.war
info: created temporary directory: C:\DOCUME~1\NODE6\LOCALS~1\Temp\jaxrpc-deploy-1c092c
info: removed temporary directory: C:\DOCUME~1\NODE6\LOCALS~1\Temp\jaxrpc-deploy-1c092c
error: java.io.FileNotFoundException: C:\DOCUME~1\NODE6\LOCALS~1\Temp\jaxrpc-deploy-1c092c\WEB-INF\j
axrpc-ri.xml (The system cannot find the path specified)
java.io.FileNotFoundException: C:\DOCUME~1\NODE6\LOCALS~1\Temp\jaxrpc-deploy-1c092c\WEB-INF\jaxrpc-r
i.xml (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at com.sun.xml.rpc.tools.wsdeploy.DeployTool.run(DeployTool.java:251)
at com.sun.xml.rpc.util.ToolBase.run(ToolBase.java:43)
at com.sun.xml.rpc.tools.wsdeploy.Main.main(Main.java:22)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
You didn't mention it but are actually running the special version, "Tomcat 5.0 for Java WSDP"?
Java Web Services Developer Pack: Tomcat Download
Did you follow the instructions exactly?
It seems that of the Web containers listed, the "Tomcat 5.0 for Java WSDP" version is the most difficult to get working.
Java Web Services Developer Pack: Web Container Downloads
[ February 23, 2006: Message edited by: Peer Reynders ]
Mohan Basavarajappa
Greenhorn

Joined: Dec 21, 2005
Posts: 14
Hello,
Thanks for the reply. I could not understand clearly the thing you liked to express in your reply. i was running the wsdeploy.bat file and it is not related with tomcat, right. The WAR file what we get after running the wsdeploy is deployed on Tomcat.
The Tomcat what you have mentioned is suggested for JWSDP.
Is it possible to solve this issue and get the WAR file, for deployment on tomcat. It wolud be great if i can do this.
Please give me the suggestion
Mohan Basavarajappa
Greenhorn

Joined: Dec 21, 2005
Posts: 14
Hi
You spoke about the instructions. Can i get from you what is the instruction to be followed.

Thanks
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Originally posted by Mohan Basavarajappa:
The Tomcat what you have mentioned is suggested for JWSDP.

You cannot use JWSDP 1.5 with Tomcat - not the Tomcat that you can get from http://tomcat.apache.org/

Sun has created a special version of Tomcat which they call "Tomcat 5.0 for JWSDP"? You can download the modified version only from Sun (not Apache).
http://java.sun.com/webservices/containers/tomcat_for_JWSDP_1_5.html

Originally posted by Mohan Basavarajappa:
Can i get from you what is the instruction to be followed.


Some instructions for "Tomcat 5.0 for Java WSDP" can be found in:
Integrating the Java WSDP Component Technologies with a Web Container
Getting Started with JavaTM Web Services Developer Pack 1.5 on the Tomcat 5.0 for Java WSDP Container

You can use Apache Axis if you want deploy a Web service on a regular version of Tomcat (provided you install Axis first, of course).

Anyway, wsdeploy is complaining about the fact that it can't find the jaxrpc-ri.xml file in the WEB-INF directory of your input WAR. The jaxrpc-ri.xml is JWSDPs version of the webservices.xml. The jaxrpc-ri.xml must be deployed together with the web.xml file. The jaxrpc-ri.xml contains web service deployment information that cannot be put in the web.xml file.

For examples of the jaxrpc-ri.xml files see:
Java(TM) API for XML-based RPC (JAX-RPC) Tools
Using JAX-RPC to Expose a Java Object as a Web Service
 
Consider Paul's rocket mass heater.
 
subject: wsdeploy
 
Similar Threads
webservice using JAX-RPC
Webservice for Tomcat with JWSDP
JAX RPC
JAX-RPC
Error in LookUP in JBOSS 5.0.0.Beta4 EJB3.0