Hi,

The problem: "Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/axis2/transport/SimpleAxis2Server" on Win2K is due to the fact that 
the environment variables could not contain the total length of all the 
libraries names with their full path name; I mean, this is a restriction on 
Win2K.

To solve the problem I did the following:
1. Copy the G:\98Apps\axis2-1.3\lib directory to g:\x (it is the shortest name 
I could build).
2. Edit the axis2server.bat file adding the following line after for ... loop 
instruction:

set 
AXIS2_CLASS_PATH=G:\x\activation-1.1.jar;G:\x\annogen-0.1.0.jar;G:\x\axiom-api-1.2.5.jar;G:\x\axiom-dom-1.2.5.ja
r;G:\x\axiom-impl-1.2.5.jar;G:\x\axis2-adb-1.3.jar;G:\x\axis2-adb-codegen-1.3.jar;G:\x\axis2-ant-plugin-1.3.jar;
G:\x\axis2-clustering-1.3.jar;G:\x\axis2-codegen-1.3.jar;G:\x\axis2-fastinfoset-1.3.jar;G:\x\axis2-java2wsdl-1.3
jar;G:\x\axis2-jaxbri-1.3.jar;G:\x\axis2-jaxws-1.3.jar;G:\x\axis2-jaxws-api-1.3.jar;G:\x\axis2-jibx-1.3.jar;G:\
x\axis2-json-1.3.jar;G:\x\axis2-jws-api-1.3.jar;G:\x\axis2-kernel-1.3.jar;G:\x\axis2-metadata-1.3.jar;G:\x\axis2
-mtompolicy-1.3.jar;G:\x\axis2-saaj-1.3.jar;G:\x\axis2-saaj-api-1.3.jar;G:\x\axis2-spring-1.3.jar;G:\x\axis2-xml
beans-1.3.jar;G:\x\backport-util-concurrent-2.2.jar;G:\x\commons-codec-1.3.jar;G:\x\commons-fileupload-1.1.1.jar
;G:\x\commons-httpclient-3.0.1.jar;G:\x\commons-io-1.2.jar;G:\x\commons-logging-1.1.jar;G:\x\geronimo-annotation
_1.0_spec-1.1.jar;G:\x\geronimo-jms_1.1_spec-1.1.jar;G:\x\httpcore-4.0-alpha5.jar;G:\x\httpcore-nio-4.0-alpha5.j
ar;G:\x\httpcore-niossl-4.0-alpha5.jar;G:\x\jalopy-1.5rc3.jar;G:\x\jaxb-api-2.0.jar;G:\x\jaxb-impl-2.0.5.jar;G:\
x\jaxb-xjc-2.0.5.jar;G:\x\jaxen-1.1.1.jar;G:\x\jettison-1.0-RC1.jar;G:\x\jibx-bind-1.1.5.jar;G:\x\jibx-run-1.1.5
jar;G:\x\juli-6.0.10.jar;G:\x\log4j-1.2.14.jar;G:\x\mail-1.4.jar;G:\x\mex-impl-1.3.jar;G:\x\neethi-2.0.2.jar;G:
\x\soapmonitor-1.3.jar;G:\x\stax-api-1.0.1.jar;G:\x\tribes-6.0.10.jar;G:\x\woden-1.0-incubating-M7b.jar;G:\x\wsd
l4j-1.6.2.jar;G:\x\wstx-asl-3.2.1.jar;G:\x\xalan-2.7.0.jar;G:\x\xbean-2.20.jar;G:\x\xercesImpl-2.8.1.jar;G:\x\x
ml-apis-1.3.03.jar;G:\x\XmlSchema-1.3.2.jar

(be carefully, it has to be a single line on the .bat file).  You can use any 
file editory to edit it.

3.  Run it. This is the output I get:

G:\98Apps\axis2-1.3\bin>axis2server.bat
Using JAVA_HOME    C:\ARCHIV~1\Java\jdk1.6.0_01
Using AXIS2_HOME   G:\98Apps\axis2-1.3
log4j:WARN No appenders could be found for logger (org.apache.axis2.transport.ht
tp.SimpleHTTPServer).
log4j:WARN Please initialize the log4j system properly.
[SimpleAxisServer] Using the Axis2 RepositoryG:\98Apps\axis2-1.3\repository
[SimpleAxisServer] Using the Axis2 Configuration FileG:\98Apps\axis2-1.3\conf\ax
is2.xml
[SimpleAxisServer] Started

I hope this way it could work for you too.

Regards.

Reply via email to