Author: gmazza
Date: Sun Nov 6 07:34:41 2011
New Revision: 1198187
URL: http://svn.apache.org/viewvc?rev=1198187&view=rev
Log:
Instructions added for WAR deployment.
Modified:
cxf/branches/2.4.x-fixes/distribution/src/main/release/samples/java_first_jaxws/README.txt
Modified:
cxf/branches/2.4.x-fixes/distribution/src/main/release/samples/java_first_jaxws/README.txt
URL:
http://svn.apache.org/viewvc/cxf/branches/2.4.x-fixes/distribution/src/main/release/samples/java_first_jaxws/README.txt?rev=1198187&r1=1198186&r2=1198187&view=diff
==============================================================================
---
cxf/branches/2.4.x-fixes/distribution/src/main/release/samples/java_first_jaxws/README.txt
(original)
+++
cxf/branches/2.4.x-fixes/distribution/src/main/release/samples/java_first_jaxws/README.txt
Sun Nov 6 07:34:41 2011
@@ -10,8 +10,8 @@ located), the pom.xml file is used to bu
Using either UNIX or Windows:
- mvn install (builds the demo)
- mvn -Pserver (from one command line window)
+ mvn clean install (builds the demo and creates a WAR file for optional
Tomcat deployment)
+ mvn -Pserver (from one command line window -- only if using a non-WAR
standalone service)
mvn -Pclient (from a second command line window)
@@ -19,3 +19,23 @@ To remove the code generated from the WS
files, run "mvn clean".
+Alternative: WAR deployment of service in a servlet container (e.g. Tomcat)
+---------------------------------------------------------------------------
+
+1.) Update the endpointAddress value in the client.Client class to the
WAR-hosted
+value. The endpointAddress value will be installation-specific, but could be
+"http://localhost:8080/java_first_jaxws-{CXF Version}/services/hello_world"
+for a default local installation of Tomcat. Replace {CXF Version} with the
+CXF version declared in the parent POM -- for example, "2.5.1",
"2.5.1-SNAPSHOT",
+etc.
+
+2.) Manually copy the generated WAR file to the Tomcat webapps folder, or, if
you
+have Maven and Tomcat set up to use the Tomcat Maven Plugin
+(http://mojo.codehaus.org/tomcat-maven-plugin/) you can use the mvn
tomcat:redeploy
+command instead. Important: if you're using this command and deploying on
Tomcat 6
+instead of Tomcat 7, update the tomcat-maven-plugin configuration in the
pom.xml,
+switching to the the Tomcat 6-specific "url" element.
+
+Prior to running the client (mvn -Pclient) good to confirm the generated WSDL
+can be seen from a web browser at:
+http://{server}:{port}/java_first_jaxws-{CXF Version}/services/hello_world?wsdl