Does it really say "java -lhttp://...";? Does it not say
"java <pkg+classname> -lhttp://...";?
(with the classname being AdminClient)

Clas Peterson wrote:
Hello!

I have just installed Axis 1.3 and I am trying to run
the example in the Axis install documentation;
sample/stock.

I am in the
/jakarta-tomcat-4.1.31/webapps/axis/samples/stock
directory and when I type as it is written in the
documentation :
java
-lhttp://localhost:8080/axis/services/AdminService
deploy.wsdd

I get the message: Unrecognized option:
-lhttp://localhost:8080/axis/services/AdminService Could not create the Java virtual machine.

When I instead add the -jar option as in:
java -jar
-lhttp://localhost:8080/axis/services/AdminService
deploy.wsdd
I get the message: Invalid or corrupt jarfile
deploy.wsdd

I have set the the JAVA_HOME. CLASSPATH, AXIS_HOME and
AXIS_LIB variables as follows:

AXIS_HOME /jakarta-tomcat-4.1.31/webapps/axis

AXIS_LIB /jakarta-tomcat-4.1.31/webapps/axis/lib

AXIS_CLASSPATH
/jakarta-tomcat-4.1.31/webapps/axis/lib/axis.jar:/jakarta-tomcat-4.1.31/webapps/axis/lib/commons-discovery-0.2.jar:/jakarta-tomcat-4.1.31/webapps/axis/lib/commons-logging-1.0.4.jar:/jakarta-tomcat-4.1.31/common/lib/jaxrpc.jar:/jakarta-tomcat-4.1.31/common/lib/saaj.jar:/jakarta-tomcat-4.1.31/webapps/axis/lib/log4j-1.2.8.jar:/jakarta-tomcat-4.1.31/common/endorsed/xercesImpl.jar:/jakarta-tomcat-4.1.31/common/endorsed/xmlParserAPIs.jar:/jakarta-tomcat-4.1.31/webapps/axis/lib/axis-ant.jar:/jakarta-tomcat-4.1.31/webapps/axis/lib/axis-schema.jar:/jakarta-tomcat-4.1.31/webapps/axis/lib/wsdl4j-1.5.1.jar

JAVA_HOME
/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home

I am running this on Mac OS X 10.3.7
Axis version: 1.3
Tomcat version: 4.1.31
Java SDK version: 1.4.2
Anyone who has a clue what is causing this? I have
tried the other examples in the samples folder as
well, with the same error messages as res

Reply via email to