기존에 썼던 글을 apache에 있는 영문글을영문글을 읽으면서 설치하느라...
고생이 심했다 ^^;;
결국 안되서;;; 다시 해본다 ㅠㅠ
이이 글은 http://ws.apache.org/axis/java/install.html 여기를 바탕으로
이번에는 그냥 다른 설명없이 설치설치 방법과 오류시 해결 방법 위주로 글을 쓰겠다..
필요한 부분은 copy andand paste로 해결
1. Apache Tomcat 4.1이상 필요(Full version설치 권장)
이런것까지는 설명 안 해도 되겠죠....
2.2. JDK 1.4이상 버전 설치 및 환경설정
설치 후 JAVA 환경환경 설정 -> 링크 참조
JAVA 환경 설정
3.3. AXIS 다운로드 및 압축 해제
http://ftp.kaist.ac.kr/pub/Apache/ws/axis/1_4/ 에서 axis-bin-1_4.zip 받아서 압축해제
참고로 나는 C:\DD4.1.7\Installation\axis-1_4 에 압축을 풀었다.
(이따가 환경 설정할 때 axis를 압축해제 한 곳의 위치가 중요하다.)
4. xml-xerces 다운 로드
In the Axis directory, you will find a WEB-INF sub-directory. This directory contains some basic configuration information, but can also be used to contain the dependencies and web services you wish to deploy.
Axis needs to be able to find an XML parser. If your application server or Java runtime does not make one visible to web applications, you need to download and add it. Java 1.4 includes the Crimson parser, so you can omit this stage, though the Axis team prefer Xerces.
To add an XML parser, acquire the JAXP 1.1 XML compliant parser of your choice. We recommend Xerces jars from the xml-xerces distribution, though others mostly work. Unless your JRE or app server has its own specific requirements, you can add the parser's libraries to axis/WEB-INF/lib. The examples in this guide use Xerces. This guide adds xml-apis.jar and xercesImpl.jar to the AXISCLASSPATH so that Axis can find the parser (see below).
If you get ClassNotFound errors relating to Xerces or DOM then you do not have an XML parser installed, or your CLASSPATH (or AXISCLASSPATH) variables are not correctly configured.
http://xml.apache.org/dist/xerces-j/에서 Xerces-J-bin.2.9.1.zip 받아서 압축해제 후
( 참고로 나는 C:\DD4.1.7\Installation\xerces-2_9_1 에에 압축을 풀었다. )
C:\DD4.1.7\Installation\xerces-2_9_1 디렉토리 안에 있는 xercesImpl.jar 파일과 xml-apis.jar 파일을 copy해서 C:\DD4.1.7\Installation\axis-1_4\webapps\axis\WEB-INF\lib와 CC :\DD4.1.7\Installation\axis-1_4\lib 디렉토리에 복사한다.
C:\DD4.1.7\Installation\axis-1_4\lib디렉토리에 2개의 파일을 복사해주는 이유는 5번에서 AXIS 환경변수를 설정하는데 위에 2개의 파일이 C:\DD4.1.7\Installation\axis-1_4\lib 디렉토리에 있어야 하는 듯하다... 후덜덜;;
5. AXIS 환경설정
Classpath setup
In order for these examples to work, java must be able to find axis.jar, commons-discovery.jar, commons-logging.jar, jaxrpc.jar, saaj.jar, log4j-1.2.8.jar (or whatever is appropriate for your chosen logging implementation), and the XML parser jar file or files (e.g., xerces.jar). These examples do this by adding these files to AXISCLASSPATH and then specifying the AXISCLASSPATH when you run them. Also for these examples, we have copied the xml-apis.jar and xercesImpl.jar files into the AXIS_LIB directory. An alternative would be to add your XML parser's jar file directly to the AXISCLASSPATH variable or to add all these files to your CLASSPATH variable.
On Windows, this can be done via the following. For this document we assume that you have installed Axis in C:\axis. To store this information permanently in WinNT/2000/XP you will need to right click on "My Computer" and select "Properties". Click the "Advanced" tab and create the new environmental variables. It is often better to use WordPad to create the variable string and then paste it into the appropriate text field.
<PRE class=code>set AXIS_HOME=c:\axisset AXIS_LIB=%AXIS_HOME%\libset AXISCLASSPATH=%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</PRE>Unix users have to do something similar. Below we have installed AXIS into /usr/axis and are using the bash shell. See your shell's documentation for differences. To make variables permeate you will need to add them to your shell's startup (dot) files. Again, see your shell's documentation.
<PRE class=code>set AXIS_HOME=/usr/axisset AXIS_LIB=$AXIS_HOME/libset AXISCLASSPATH=$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.jarexport AXIS_HOME; export AXIS_LIB; export AXISCLASSPATH</PRE>To use Axis client code, you can select AXISCLASSPATH when invoking Java by entering
<PRE class=code>java -cp %AXISCLASSPATH% ...</PRE>or
<PRE class=code>java -cp "$AXISCLASSPATH" ...</PRE>depending on the platform. You may omit the quotes if your CLASSPATH doesn't have spaces in it.
Also, it is probably a good time to add the AXISCLASSPATH variable to your CLASSPATH variable. This will enable you to not include the AXISCLASSPATH variable when launching the examples in this guide. This document assumes that you have NOT done this.
환경 설정 방법은 위에 JAVA환경 설정(2번 과정)에서과정)에서 해 봤으므로 다른 설명은 안 하겠다.
AXIS_HOME = C:\DD4.1.7\Installation\axis-1_4
AXIS_LIBAXIS_LIB = %AXIS_HOME%\lib
AXISCLASSPATH = =%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
Note:Note: 위 설정에 있는 commons-discovery.jar은 3번에서 다운 받은 commons-discovery랑 이름이 다를것이다.. 무슨 이야기 인지 알겠죠?? ㅎ
6. AXIS를 Tomcat과 연동하기
연동하는 것은 그냥 어렵지 않다.
C:\DD4.1.7\Installation\axis-1_4\webapps\axis 를
C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps에 복사해주면 된다.
즉 axis-1_4디렉토리 안에 webapps안에 있는 axis디렉토리를 Tomcat 5.5디렉토리 안에 있는 webapps에 복사해서 넣어주면 된다.
Result: C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\axis
설치에 관한 모든 설정은 다 ...끝났다... 기타 필요한 것들은 따로 알아서 설치하도록 한다..
7. AXIS 테스트 해보기
tomcat을 실행한 후 http://localhost:8080/axis/index.jsp 을 해보자.
Note - 가끔 apache와 tomcat을 같은 것으로 아시는 분이 있는데( 참고로, 나도 그랬음 ^^;; )
다음 링크를 통해서 다시 한번 공부해 보자!! 공부해서 남 주니?? ^^
Apache와 Tomcat
일단 다음과다음과 같은 그림이 나오면 잘 된거 같다만.... 확인해 볼게 있다...
Validation - 설치 설정이 잘 되어 있는지 검사하는 것 같다.
Administer Axis와 SOAPMonitor은 따로 활성화를 해 주어야 한다.
'Validation'을 클릭해보자...
다음과 같은 그림이 보이면;;; 대략 난감하다;;;
이게 잘못 설치 된건지 아닌지 아직은 잘 모르겠는데;; 뭔가 안된거 같다;;
다음 글을 읽어보자...
Validate Axis with happyaxis
Follow the link Validate the local installation's configuration
This will bring you to happyaxis.jsp a test page that verifies that needed and optional libraries are present. The URL for this will be something like http://localhost:8080/axis/happyaxis.jsp
If any of the needed libraries are missing, Axis will not work.
You must not proceed until all needed libraries can be found, and this validation page is happy.
Optional components are optional; install them as your need arises. If you see nothing but an internal server error and an exception trace, then you probably have multiple XML parsers on the CLASSPATH (or AXISCLASSPATH), and this is causing version confusion. Eliminate the extra parsers, restart the app server and try again.
이런 젠장;; 제대로 안되었다는 이야기 같다;;
하핫;; 생각해보니까 나는 AXIS 환경 변수 설정을 안 했다;;;
뭐니;;; 이래서 뭐 알려주겠다고;;;
환경변수를 설정해줘도 안된다;;;
뭐가 필요한거지;;
일단 패스 하자...
나중에 해결해봅시다 ^^)b
이번에는 'Call'을 클릭해보자.
만약에 'tool.jar'파일이 필요하다고 하면은 해결 방법으로는 2가지가 있다.
1. C:\Program Files\Java\jdk1.5.0_13\lib 에 있는 tools.jar 파일을 C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib 에 복사해 둔다.
2. Tomcat configure에서 Java 탭으로 가서 Java Virtual Machine를 바꾸어주자.
기본적으로 Tomcat은 jre에 있는 jvm.dll을 이용하기 때문에 tools.jar이 필요한다.
C:\Program Files\Java\jdk1.5.0_13\jre\bin\client\jvm.dllFiles\Java\jdk1.5.0_13\jre\bin\client\jvm.dll
뭐 기본적인 설치는 다 끝난것 같다..
[출처] Apache AXIS 설치 (JSP+WEB) |작성자 까망이