|
Apache CXF example source code file (README.txt)
The Apache CXF README.txt source codeBasic Setup for Building and Running the Demos ============================================== As described in the installation notes, extract the Apache CXF binary distribution archive into an installation directory under the root drive. This creates the sub-directory cxf, which includes all of the product directories. To build and run the demos, you must install the J2SE Development Kit (JDK) 5.0 If you want to use ant to build and run the demos, you must install the Apache ant 1.6 build utility. To build and run the demos provided in the Apache CXF binary distribution using either ant or wsdl2java, javac and java, you need to set the environment so that the file cxf-manifest.jar is on the CLASSPATH and to insure that the JDK, ant and CXF_HOME/bin directories are on the PATH. In each of the demos, source code files for the client and server mainlines and the Service Endpoint Interface class are included in the src directory. The build process will write generated code into a new directory, build/src, and then place compiled code into the directory build/classes. You may find it convenient to use a script to set the required environment variables. For UNIX: CXF_HOME=/<installation_directory> JAVA_HOME=/<jdk_installation_directory> ANT_HOME=/<ant_installation_directory>/apache-ant-1.6.5 export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$CXF_HOME/bin:$PATH export CLASSPATH=.:$CXF_HOME/lib/cxf-manifest.jar:./build/classes For Windows: set CXF_HOME=C:\<installation_directory> set JAVA_HOME=C:\<jdk_installation_directory> set ANT_HOME=C:\<ant_installation_directory>\apache-ant-1.6.5 set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%CXF_HOME%\bin;%PATH% set CLASSPATH=.;%CXF_HOME%\lib\cxf-manifest.jar;.\build\classes Save a copy of this script in CXF_HOME/samples. Run the script prior to building and running the demos. Building the Demos in a Servlet Container ===================================================================== Since Apache CXF requires JDK/JRE 5.0, you must use a servlet container that is compatible with this JDK/JRE. A suitable servlet container is Tomcat 5.5 or above. Be certain to start the servlet container under an environment in which the JAVA_HOME environment variable points to the JDK/JRE 5.0 installation and the JAVA_HOME bin directory is included in the system PATH. Preparing deploy to APACHE TOMCAT * set CATALINA_HOME environment to your TOMCAT home directory Build the WAR: Now we have two flavors WAR, one is Full WAR that included all the jars in the $WAR/WEB-INF/lib folder, the other is minimum WAR, which did not include any jars in the WAR. 1)run "ant war" to build a Full WAR. 2)run "ant war -Dwithout.libs=true" to build a minimum WAR. Deploy the application (Full WAR) into APACHE TOMCAT with the command: ant deploy-tomcat Undeploy the application from the APACHE TOMCAT with the command: ant undeploy-tomcat Other Apache CXF examples (source code examples)Here is a short list of links related to this Apache CXF README.txt source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.