How to configure JAVA procedures Web Services runtime environment
JAVA configuration procedures Web Services runtime environment
1. Configuration Java runtime environment:
A. http://java.sun.com/j2se/1.5.0/download.jsp to download JDK1.5.0
And ht tp: / / jakarta.apache.org / download Tomcat5.5, installation of the first installation of JDK1.5,
Tomcat5.5 to install, I install directory: C: \ Program Files \ Java \ (Below:
Jdk1.5.0 and jre1.5.0 two directory), and C: \ Tomcat5.5 \
B. download SQL Jdbc Driver (JDBC Driver), and install:
Download Address: http://download.microsoft.com/download/SQLSVR2000/jdbc
Installation directory is: C: \ Program Files \ Microsoft SQL Server 2000 Driver for JDBC \ under
C. start Tomcat services (available in the Windows "service" in activated), OK, the environment configuration successful.
Visit: http://localhost:8088/, if we can see that the "cat-page" means that success is installed in 8088
The port settings, default is 8080.
D. But if the database program to be implemented, to C: \ Program Files \ Microsoft SQL Server 2000
Driver for JDBC \ lib \ of the three. Jar paper copies C: \ Program Files \ Java \ jdk1.5.0 \ lib directory;
E. configuration environment variable: Add or modify increase:
CLASSPATH =
C: \ Program Files \ Java \ jre1.5.0 \ lib \ rt.jar;
C: \ Program Files \ Java \ jdk1.5.0 \ lib \ dt.jar;
C: \ Program Files \ Java \ jdk1.5.0 \ lib \ tools.jar;
C: \ Program Files \ Microsoft SQL Server 2000 Driver for JDBC \ lib \ mssqlserver.jar;
C: \ Program Files \ Microsoft SQL Server 2000 Driver for JDBC \ lib \ msbase.jar;
C: \ Program Files \ Microsoft SQL Server 2000 Driver for JDBC \ lib \ msutil.jar;
Add: CATLINA_HOME:
CATLINA_HOME = C: \ Tomcat5.5
F. Note: In addition If the server needs Tomcat management capabilities, then download the Tomcat,
We should all. Zip down under the package of documents (. Tar.gz document is in the use of Linux or Unix documents,
Therefore, under no); down under, according to the relative directory inside of all the documents into the bag, the corresponding text Tomcat
A folder, this visit http://localhost:8088/ de facto left Tomcat Administration
Go to http://localhost:8088/admin/ on to the management of the Tomcat.
2. Released Web Services:
A. reference: http://dev.csdn.net/develop/article/32/article/32/32356.shtm;
B. to http://ws.apache.org/axis/index.html to download Axis1.2 RC2 Release
Or other, the download-1_2RC2-axis and axis-bin.zip 1_2RC2-src.zip down under these two packages,
And the contents inside the merger;
C. above will be the merger of Axis download package, which will be the "webapps" directory "axis" to copy the whole directory Tomcat
Installation directory under the "webapps" directory, (then webapps directory, in addition to other documents and folders to copy
Tomcat \ Axis directory, this step may not);
D. Tomcat will be the axis of the directory WEB-INF \ lib in the copy of all the documents to the Tomcat
Common \ lib directory. (After all lib to the axis of adding jar file, a copy to be
Tomcat's common \ lib directory).
E. check your C: \ Tomcat 5.5 \ webapps \ axis \ WEB-INF \ lib directory whether:
Activation.jar this document, if not to:
Http://java.sun.com/products/javabeans/glasgow/jaf.htm
Download JAF 1.0.2 package, and to extract from inside this document;
C: \ Tomcat 5.5 \ webapps \ axis \ WEB-INF \ lib directory and the C: \ Tomcat 5.5 \ Common \ lib directory;
F. add or modify environment variables:
AXIS_HOME:
% TOMCAT_HOME% \ webapps \ axis (TOMCAT directory)
AXIS_LIB:
% AXIS_HOME% \ lib
AXISCLASSPATH increase:
% AXIS_LIB% \ axis.jar;
% AXIS_LIB% \ commons-discovery.jar;
% AXIS_LIB% \ commons-logging.jar;
% AXIS_LIB% \ jaxrpc.jar;
% AXIS_LIB% \ saaj.jar;
% AXIS_LIB% \ log4j-1.2.8.jar;
% AXIS_LIB% \ xml-apis.jar;
% AXIS_LIB% \ xercesImpl.jar
% AXIS_LIB% \ activation.jar
(The above that in the paper version, not the same may not be the same, so long as the C: \ Tomcat 5.5 \ webapps \ axis \ lib directory of all documents in the environment variables can be added)
Laws CLASSPATH, in the end, add:
% AXIS_LIB% \ axis.jar;
% AXIS_LIB% \ commons-discovery.jar;
% AXIS_LIB% \ commons-logging.jar;
% AXIS_LIB% \ jaxrpc.jar;
% AXIS_LIB% \ saaj.jar;
% AXIS_LIB% \ log4j-1.2.8.jar;
% AXIS_LIB% \ xml-apis.jar;
% AXIS_LIB% \ xercesImpl.jar
% AXIS_LIB% \ activation.jar
Laws PATH variable, in the absence of tail increase:
C: \ Program Files \ Java \ jdk1.5.0 \ bin;
C: \ Program Files \ Java \ jdk1.5.0 \ lib
(The above that in the paper version, not the same may not be the same, as long as it
C: \ Tomcat 5.5 \ webapps \ axis \ lib directory of all documents in the environment variables can be added)
Note: The above:% TOMCAT_HOME%: C: \ Tomcat 5.5 \
% AXIS_HOME%: C: \ Tomcat 5.5 \ webapps \ axis \ WEB-INF \
% AXIS_LIB%: C: \ Tomcat 5.5 \ webapps \ axis \ WEB-INF \ lib
———————————————
3 Note: more work done, Tomcat + Axis Web Services deployment of the job is finished,
The success can be tested using a Java JB9.0 new documents, as a HelloWorld.java
(Note: The document must be Java is not a package file, the first of the "package"); running after the passage of copies
C: \ Tomcat 5.5 \ webapps \ axis directory and renamed into HelloWorld.jws, open IE, running:
Http://localhost:8088 \ Axis \ HelloWorld.jws? Wsdl,
If success can be seen on the WSDL document.
4. Running http://localhost:8088 \ Axis \ HelloWorld.jws? Wsdl,
Below but encountered several situations have been resolved, as follows:
A. if the "no jwsClasses \ HelloWorld.class documents" and then you discovered
C: \ Tomcat 5.5 \ webapps \ axis \ WEB-INF \ jwsClasses generated,
HelloWorld directory, there are HelloWorld.class document that this mistake is just said,
File is not offering document, the first of the "package";
B. If the error that was not found in the CLASSPATH tools.jar is in the CLASSPATH, failed to add
C: \ Program Files \ Java \ jdk1.5.0 \ lib \ tools.jar;
C. If we can not generate Wsdl document, or they may not find activation.jar documents and environment variables, does not set
% AXIS_LIB% \ activation.jar;
Tags: java environment variables, Java procedures, java runtime, java web, java web start, Runtime






