You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by tom chen <to...@yahoo.com> on 2005/01/10 05:08:56 UTC
help on running AdminClient
Hello All,
I am trying to setup axis in tomcat 5.5.4 with java 5.0.
I got an Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/client/AdminClient.
I do not know what is wrong. Please help!
Thank you very much!
--tom
===========================
D:\axis-1_2RC1\samples\stock>java -cp d:\jakarta-tomcat-5.5.4\webapps\axis.jar;d:\jakarta-tom
cat-5.5.4\webapps\commons-discovery.jar;d:\jakarta-tomcat-5.5.4\webapps\commons-logging.jar;d
:\jakarta-tomcat-5.5.4\webapps\jaxrpc.jar;d:\jakarta-tomcat-5.5.4\webapps\saaj.jar;d:\jakarta
-tomcat-5.5.4\webapps\log4j-1.2.8.jar;d:\jakarta-tomcat-5.5.4\webapps\xml-apis.jar;d:\jakarta
-tomcat-5.5.4\webapps\xercesImpl.jar org.apache.axis.client.AdminClient -lhttp://localhost:80
80/axis/services/AdminService deploy.wsdd
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/client/AdminClient
===========================
---------------------------------
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
Re: Is lower case first letters oblicatory always in wsdl?
Posted by Anne Thomas Manes <at...@gmail.com>.
It shouldn't matter.
What errors are you getting?
On Mon, 10 Jan 2005 11:17:44 +0200, Ilkka Heinonen
<il...@vtt.fi> wrote:
> Hello All,
>
> Thank You, Anne, from your reply for last question.
> http://www.newsarch.com/archive/mailinglist/axis/user/msg08622.html
>
> Using WSDL2Java, seems that elements, attributes and e.g. complexType has to
> have lower case first character. If I run WSDL2Java with capital first
> letters in names, I will get an error. When I manually change all names to
> start with lower case, I will get working SOAP service(?). Is this true?
>
> e.g.
>
> Originally names were Companies, CompanyData, SearchString, .
>
> .
> <s:complexType name="companies">
> <s:sequence>
> <s:element minOccurs="0" maxOccurs="unbounded" form="unqualified"
> name="companyData" type="s1:companiesCompanyData"/>
> </s:sequence>
> <s:attribute name="searchString" type="s:string"/>
> <s:attribute name="catalogueID" type="s:string"/>
> <s:attribute name="catalogueURI" type="s:anyURI"/>
> </s:complexType>
> .
>
> I get from another organization Microsoft SOAP Toolkit compatible WSDL that
> has every element, attributes and complexTypes names that starts with upper
> case character. What I can do?
>
> - we have to change all names to start with lower case name?
> - is there a way to put WSDL2Java work with uppercase first letter in names?
>
> Best regards
> -Ilkka-
>
> ilkka.heinonen@vtt.fi
> +358 20 722 4995
>
>
>
Is lower case first letters oblicatory always in wsdl?
Posted by Ilkka Heinonen <il...@vtt.fi>.
Hello All,
Thank You, Anne, from your reply for last question.
http://www.newsarch.com/archive/mailinglist/axis/user/msg08622.html
Using WSDL2Java, seems that elements, attributes and e.g. complexType has to
have lower case first character. If I run WSDL2Java with capital first
letters in names, I will get an error. When I manually change all names to
start with lower case, I will get working SOAP service(?). Is this true?
e.g.
Originally names were Companies, CompanyData, SearchString, .
.
<s:complexType name="companies">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" form="unqualified"
name="companyData" type="s1:companiesCompanyData"/>
</s:sequence>
<s:attribute name="searchString" type="s:string"/>
<s:attribute name="catalogueID" type="s:string"/>
<s:attribute name="catalogueURI" type="s:anyURI"/>
</s:complexType>
.
I get from another organization Microsoft SOAP Toolkit compatible WSDL that
has every element, attributes and complexTypes names that starts with upper
case character. What I can do?
- we have to change all names to start with lower case name?
- is there a way to put WSDL2Java work with uppercase first letter in names?
Best regards
-Ilkka-
ilkka.heinonen@vtt.fi
+358 20 722 4995
Re: Please!!! help me on this exception
Posted by Robert Gombotz <a9...@unet.univie.ac.at>.
is axis.jar in your classpath?
rob
----- Original Message -----
From: tom chen
To: axis-user@ws.apache.org
Sent: Tuesday, January 11, 2005 6:16 PM
Subject: Please!!! help me on this exception
Hello All,
I am trying to setup axis in tomcat 5.5.4 with java 5.0.
I got an Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/client/AdminClient.
I do not know what is wrong. Please help me!
Thank you very much!
--tom
===========================
D:\axis-1_2RC1\samples\stock>java -cp d:\jakarta-tomcat-5.5.4\webapps\axis.jar;d:\jakarta-tom
cat-5.5.4\webapps\commons-discovery.jar;d:\jakarta-tomcat-5.5.4\webapps\commons-logging.jar;d
:\jakarta-tomcat-5.5.4\webapps\jaxrpc.jar;d:\jakarta-tomcat-5.5.4\webapps\saaj.jar;d:\jakarta
-tomcat-5.5.4\webapps\log4j-1.2.8.jar;d:\jakarta-tomcat-5.5.4\webapps\xml-apis.jar;d:\jakarta
-tomcat-5.5.4\webapps\xercesImpl.jar org.apache.axis.client.AdminClient -lhttp://localhost:80
80/axis/services/AdminService deploy.wsdd
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/client/AdminClient
===========================
------------------------------------------------------------------------------
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
Re: Please!!! help me on this exception
Posted by James Ludlow <ja...@yahoo.com>.
tom chen wrote:
> D:\axis-1_2RC1\samples\stock>java -cp
> d:\jakarta-tomcat-5.5.4\webapps\axis.jar;d:\jakarta-tom
> cat-5.5.4\webapps\commons-discovery.jar;d:\jakarta-tomcat-5.5.4\webapps\commons-logging.jar;d
> :\jakarta-tomcat-5.5.4\webapps\jaxrpc.jar;d:\jakarta-tomcat-5.5.4\webapps\saaj.jar;d:\jakarta
> -tomcat-5.5.4\webapps\log4j-1.2.8.jar;d:\jakarta-tomcat-5.5.4\webapps\xml-apis.jar;d:\jakarta
> -tomcat-5.5.4\webapps\xercesImpl.jar org.apache.axis.client.AdminClient
> -lhttp://localhost:80
Do you really have your JAR files in your Tomcat webapps directory?
This just looks wrong. "d:\jakarta-tomcat-5.5.4\webapps\axis.jar"
Should probably be something like this instead:
d:\jakarta-tomcat-5.5.4\webapps\APP_NAME\WEB-INF\lib\axis.jar
Same problem with most of your classpath there as well.
-- James
Please!!! help me on this exception
Posted by tom chen <to...@yahoo.com>.
Hello All,
I am trying to setup axis in tomcat 5.5.4 with java 5.0.
I got an Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/client/AdminClient.
I do not know what is wrong. Please help me!
Thank you very much!
--tom
===========================
D:\axis-1_2RC1\samples\stock>java -cp d:\jakarta-tomcat-5.5.4\webapps\axis.jar;d:\jakarta-tom
cat-5.5.4\webapps\commons-discovery.jar;d:\jakarta-tomcat-5.5.4\webapps\commons-logging.jar;d
:\jakarta-tomcat-5.5.4\webapps\jaxrpc.jar;d:\jakarta-tomcat-5.5.4\webapps\saaj.jar;d:\jakarta
-tomcat-5.5.4\webapps\log4j-1.2.8.jar;d:\jakarta-tomcat-5.5.4\webapps\xml-apis.jar;d:\jakarta
-tomcat-5.5.4\webapps\xercesImpl.jar org.apache.axis.client.AdminClient -lhttp://localhost:80
80/axis/services/AdminService deploy.wsdd
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/client/AdminClient
===========================
---------------------------------
Do you Yahoo!?
The all-new My Yahoo! � Get yours free!