This sample is tested to work. First of all you need to set AS_HOME env
variable to your Glassfish v2 installation or if you are using tomcat
you would set CATALINA_HOME, see[1].
ant clean server ---> will deploy on $AS_HOME
ant clean server -Dtomcat=true will deploy on tomcat using $CATALINA_HOME
Anyway, I just ran the sample with the latest wspace and see no problem.
-vivek.
[1]
https://jax-ws.dev.java.net/nonav/2.1.2m1/docs/samples.html
Robert Wierschke wrote:
> Hi,
>
> I tried the stateful sample of jax-ws.
>
> The sample doesn't compile because the Book class does not have a
> default constructor. Besides this apt produces some warnings. The ant
> tries to copy the generated war into the autodeploy directory of
> glassfish but puts it in the current directory under ${ env.AS_HOME}/..
>
> I added a default constructor and copied the war myself. The client
> works fine, but the service in the war are not visible in the
> glassfish admin console. Hence accessing the WSDL is a bit tricky and
> I cannot configure SOAP logging for the web services which would be
> very interesting in this case. Fortunately the client prints out the
> endpoint reference. Is this a bug in glassfish?
>
> regards
> robert