users@jax-rpc.java.net

Re: how to write a simple service

From: Arun Gupta <Arun.Gupta_at_Sun.COM>
Date: Tue, 14 Sep 2004 09:21:06 -0700

Hi Amit,

See inline reply.

amit anand wrote:

> Sir,
> In your 2nd article on "understanding your jax-rpc SI environment "i have successfully executed the first two steps ...The wscompile tool generates the required wsdl file..
> Sir the problem is i have the following files in
> C:\jwsdp-1.4\jaxrpc\samples\add
> AddIF.java
> AddIF.class
> AddImpl.java
> AddImpl.class
> config.xml
> jaxrpc-ri.xml
> and AddService.wsdl in
> C:\jwsdp-1.4\jaxrpc\samples\add\build\classes
> now i packed the interface,implentation classes,model file and the jaxrpc-ri.xml(deployment descriptor) and named that add-raw.war file..
> I did this using Winzip...

You need to use jar command to create the raw war file.

> may be this was the prob...So can u please tell how to build the raw war file...shouls i have to use jar command???
> pls specify the complete command
> In my case upon generating a war using winzip when i runs
> wsdeploy -o add.war add-raw.war
> following is the error
> error:java.io.FileNotFoundException:C:\DOCUME~1\AMITAN~1\LOCALS~1\Temp\jaxrpc-deploy-ab018b\WEB-INF\jaxrpc-ri.xml(The system cannot find the path specified)....
> i don'know where this path is coming from:
On windows, wsdeploy uses %TEMP% variable to create a temporary
directory for generating the raw war file. In a default windows
installation, %TEMP% is "C:\Documents and Settings\<User Name>\Local
Settings\Temp" where <User Name> is the name of the user and
jaxrpc-deploy-ab018b is a randomly generated directory name by wsdeploy.

> My jaxrpc-ri.xml is in this folder:
> C:\jwsdp-1.4\jaxrpc\samples\add
> I think may be my add-raw.war file shouls have 2 contain something else also or there is some problem in classpath
The error message seems to convey that jaxrpc-ri.xml is not available in
the WEB-INF directory in your raw war file. Does your raw war file match
the structure as shown in step 3 of scenario 1 ?

Regards,
-Arun

> so pls help
> waiting for an early response from your side
> Thanking You
> regards
> -Amit
>
>
>
>

-- 
got Web Services ?
Download Java Web Services Developer Pack from
http://java.sun.com/webservices
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net