Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tomcat / axis - Webservice starten

3 views
Skip to first unread message

Oliver Wilkening

unread,
Nov 16, 2005, 10:36:13 AM11/16/05
to
Hallo NG,

ich verzweifel hier langsam... Versuche mich gerade an Webservices mit
SOAP. Einfache Webservices sind kein Problem aber so bald ein Deployment
Descriptor ins Spiel kommt, ist es aus.

Den Tomcat starte ich wie folgt:

set AXIS_HOME=D:\tomcat\webapps\axis
set AXIS_LIB=%AXIS_HOME%\lib
set 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

set JAVA_HOME=C:\Programme\Java\jdk1.5.0
set TOMCAT_HOME=D:\tomcat
set CATALINA_HOME=D:\tomcat
D:\tomcat\bin\startup.bat


Den Webservice versuche ich mit
java org.apache.axis.client.AdminClient deploy.wsdd

zu aktivieren. Folgende Fehlermeldung erscheint:

Exception in thread "main" java.lang.NoClassDefFoundError:
org.apache.commons.logging.LogFactory
at org.apache.axis.components.logger.LogFactory.class$(LogFactory.java:45)
at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)
at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33)
at org.apache.axis.client.AdminClient.<clinit>(AdminClient.java:48)

WARUM??? axis.jar ist doch über den AXISCLASSPATH soweit bekannt? Auch
ein Aufruf mit java -cp %AXISCLASSPATH% bringt nichts...

Gehalten habe ich mich soweit an die Anleitung auf
http://www.torsten-horn.de/techdocs/java-soap-axis.htm

Was habe ich übersehen/vergessen?


Danke, Oliver

Mario

unread,
Nov 16, 2005, 12:03:32 PM11/16/05
to
Oliver Wilkening wrote:

> WARUM??? axis.jar ist doch über den AXISCLASSPATH soweit bekannt? Auch
> ein Aufruf mit java -cp %AXISCLASSPATH% bringt nichts...

Der Exception nach wird commons-logging.jar nicht im Classpath gefunden.



> Gehalten habe ich mich soweit an die Anleitung auf
> http://www.torsten-horn.de/techdocs/java-soap-axis.htm
>
> Was habe ich übersehen/vergessen?

Das Kapitel mit folgender Überschrift:

> Web Service erstellen mit WSDD (Web Service Deployment Descriptor)

Und darunter diesen Punkt:

> 4. ...
> set CLASSPATH=.;lib/activation.jar;lib/axis.jar;lib/axis-ant.jar;
> lib/commons-discovery.jar;lib/commons-logging.jar;lib/jaxrpc.jar;
> lib/log4j.jar;lib/mail.jar;lib/saaj.jar;lib/wsdl4j.jar

Oliver Wilkening

unread,
Nov 16, 2005, 12:27:11 PM11/16/05
to

> Der Exception nach wird commons-logging.jar nicht im Classpath gefunden.
>

Hallo Mario,

ICH HABS! Danke. In AXIS_LIB befand sich "commons-logging-1.0.4.jar".
Einfach erstmal als Kopie in "commons-logging.jar" umbenannt und es läuft.

Danke!

0 new messages