Search |
||
Update to Developing Webservices using Glassfish AS 9.1 and JDK 6Posted by bhaktimehta on January 24, 2007 at 12:10 PM PST
In the previous blog
we tried running glassfish-samples using Glassfish
v2 using
JDK 6. The latest Glassfish v2 installs webservices-api.jar in $AS_HOME/lib/endorsed. and hence we do not need to put javaee.jar there. So here is the updated blog. Steps to run the sample with JDK 6 Install JDK 6 from http://download.java.net/jdk6/binaries/ Install GlassFish
v2 You can install the latest nightly or the latest promoted v2
build from
https://glassfish.dev.java.net/public/downloadsindex.html For those users who have already installed GlassFish and wish to change the JDK version. That's equally simple. The JDK path is stored in one location :
Download the glassfish-samples from the following site https://glassfish-samples.dev.java.net/
javaee.home="location of Glassfish"
/usr/glassfish-samples/javaee5/webservices %java -version
java version "1.6.0-rc"
Java(TM) SE Runtime Environment (build 1.6.0-rc-b104)
Java HotSpot(TM) Client VM (build 1.6.0-rc-b104, mixed mode, sharing)
Start Appserver /usr/glassfish/bin %$AS_HOME/bin/asadmin* start-domain domain1 Run the Sample
/usr/glassfish-samples/javaee5/webservices/hello-jaxws %ant Buildfile: build.xml
<sysproperty key="java.endorsed.dirs" value="${javaee.home}/lib/endorsed"/>
Also for ant tasks like wsimport,xjc :
The solution is to copy $AS_HOME/lib/endorsed/webservices-api.jar
to $JAVA_HOME/jre/lib/endorsed. Neither jvmargs nor sysproperty will work in this case »
Related Topics >>
Web Services and XML Comments
Comments are listed in date ascending order (oldest first)
|
||
|
|