File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAX RPC

 
Craig Williams
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Can anybody help me in the problem .I just tried to execute wsdeploy.bat on a war file(temp.war) which contains web.xml,jaxrpc-ri.xml in the folder under war directory and (Interface,Implementation class file under WEB-INF/classes/PackageName).
Syntax of the command is wsdeploy -o apps.war temp.war -verbose
result is

info: created temporary directory: C:\DOCUME~1\viswanra\LOCALS~1\Temp\jaxrpc-deploy-e3e221

info: removed temporary directory: C:\DOCUME~1\viswanra\LOCALS~1\Temp\jaxrpc-deploy-e3e221

error: java.io.FileNotFoundException: C:\DOCUME~1\viswanra\LOCALS~1\Temp\jaxrpc-deploy-e3e221\WEB-INF\jaxrpc-ri.xml (The system cannot find the file specified)
java.io.FileNotFoundException: C:\DOCUME~1\viswanra\LOCALS~1\Temp\jaxrpc-deploy-e3e221\WEB-INF\jaxrpc-ri.xml (The system cannot find the file 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:211)
at com.sun.xml.rpc.util.ToolBase.run(ToolBase.java:40)
at com.sun.xml.rpc.tools.wsdeploy.Main.main(Main.java:24)


Content of the jaxrpc-ri.xml is

<webServices
xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/dd"
version="1.0"
targetNamespaceBase="http://SuccessWebservices.org/wsdl"
typeNamespaceBase="http://SuccessWebservices.org/types"
urlPatternBase="/ws">

<endpoint
name="SuccessService"
displayName="Success Service"
description="A simple web service"
interface="Success.SuccessIfc"
implementation="Success.SuccessImpl"/>

<endpointMapping
endpointName="SuccessService"
urlPattern="/success"/>
</webServices>


I even do not know whether value given in targetNamespaceBase and typeNamespaceBase is correct or not.how shud i verify it whether it is correct or not.Plz guide me in this regard






Plz help me on this issue.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello "Craig"-

You may have missed that we have a policy on screen names here on JavaRanch. Since yours does not conform to it, please adjust it here. Thanks fro your prompt attention to this matter.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As regards your question, it doesn't matter what jaxrpc-ri.xml contains, because it is not even found. Make sure that in your script file you have specified its path correctly. Take a look at the wsdeploy script to make sure that your directory structure agrees with what the script expects.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic