users@jax-rpc.java.net

Re: Not able to generate _Tie classes with wscompile and wsdeploy

From: Mohan Davuluri <mohan.great_at_gmail.com>
Date: Tue, 12 Dec 2006 10:06:42 -0500

Hi Jitu
Thank You very much for your response. I figured out what the problem was.
The problem was i was not giving the correct path for config.wsdl (wscompile
did not complain about this). The other problem was, during the build
process i believe the wscompile expects to have the directory in place where
the model.gz is going to be placed( again wscompile did not complain about
this). Once i had corrected the above two errors, i was able to generate
Ties and Serializers. Coming JAX-WS. I am exactly not sure what is the
difference between JAX-WS, JAX-RPC and JWSDP. I am currently using JARS from
JWSDP 1.5 and building my code. I am then deploying WAR file in Sun One
Application Server 8.1. Please let me know if i am doing right.

Thanks
-- Mohan


On 12/11/06, Jitendra Kotamraju <Jitendra.Kotamraju_at_sun.com> wrote:
>
> Are you doing J2EE/109 based deployment ? If you are running wsdeploy,
> it should generate all the _Tie, serializer classes
>
> First use wscompile to create the raw war file. Then use wsdeploy to
> create a cooked war from the raw war.
>
> For e.g:
> gen-config.xml
>
> <configuration
> xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
> <wsdl
> location="A.wsdl"
> packageName="com" />
> </configuration>
>
> * wscompile.sh -import -d out -Xprintstacktrace -f:wsi
> -f:documentliteral gen-config.xml
> will generate portable classes.
>
> *wscompile.sh -gen:server -d out -Xprintstacktrace -f:wsi
> -f:documentliteral gen-config.xml
> will generate all classes.
>
> Is there any reason why you are not using JAX-WS ?
>
> Jitu
>
> Mohan Davuluri wrote:
>
> > All
> > Does any one know the solution for my problem. I am not sure if this
> > forum is still active. Please let me know if any one knows why i am
> > not able to generate _Tie and Serializer classes when i use wscompile.
> > Please read the below email for more on my question
> >
> >
> > On 12/7/06, *Mohan Davuluri* <mohan.great_at_gmail.com
> > <mailto:mohan.great_at_gmail.com>> wrote:
> >
> > Hi All
> > Following is the build script that i am using. I am not seeing the
> > wscompile or the wsdeploy generate the _Tie classes. I am not sure
> > at which point are the Tie classes and Serializers are going to be
> > generated. I am using the nodatabinding option for
> > document/literal type
> >
> > <target name="generate-server-from-wsdl" depends="compile-server"
> > description="Runs wscompile to generate the client stub
> > classes">
> > <echo message="Running wscompile...."/>
> > <exec executable="${wscompile}">
> > <arg line="-gen:server"/>
> > <arg line="-f:documentliteral"/>
> > <arg line="-f:nodatabinding"/>
> > <arg line="-mapping ${mapping.file}" />
> > <!-- arg line="-model
> > ${buildhome}/${appname}/model.gz"/ -->
> > <arg line="-f:wsi"/>
> > <arg line="-d ${buildhome}/web/WEB-INF/classes"/>
> > <arg line="-classpath
> ${buildhome}/web/WEB-INF/classes"/>
> > <arg line="${config.wsdl}"/>
> > <arg line="-keep"/>
> > </exec>
> > </target>
> >
> >
> > <target name="process-war" depends="init,create-war"
> > description="Runs wsdeploy to generate the ties and create
> > a deployable WAR file">
> > <echo message="Running wsdeploy...."/>
> > <wsdeploy
> > keep="true"
> > inWarFile="${dist.dir}/${appname}-raw.war"
> > outWarFile="${dist.dir}/${appname}.war"
> > verbose="true" source="1.1">
> > <classpath refid="compile.classpath"/>
> > </wsdeploy>
> >
> > Please let me know if am missing something
> >
> > -- M
> >
> >
>
> ---------------------------------------------------------------------
> 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
>
>