• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

wsdeploy

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
You spoke about the instructions. Can i get from you what is the instruction to be followed.

Thanks
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
reply
    Bookmark Topic Watch Topic
  • New Topic