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 Chinmoy Chakraborty <cc...@gmail.com> on 2009/12/01 07:33:15 UTC

Re: Help! A problem occured when running test Axis-1.4

It seems to me that your CLASSPATH is not set properly...please follow the
'readme' inside stock directory...you also can try your own class and try
JWS mechanism other than the sample ones...then custom wsdd approach.



On Mon, Nov 30, 2009 at 7:16 PM, Liu Bin <ko...@gmail.com> wrote:

> The UMLSKS(http://umlsks.nlm.nih.gov/) of NLM(National Library of
> Medicine, U.S.) is providing a web service based on Axis 1.4.
> Thus, I must make use of Apache Axis 1.4, though it might be old.
>
> The sample is called "stock".
>
> Directory for Tomcat: "C:\Program Files\Apache Software Foundation\Tomcat
> 6.0"
> Directory for Axis: "C:\Program Files Green\axis-1_4\"
> DIrectory for Sample: "C:\Program Files Green\axis-1_4\samples\stock"
> (There are also six .class files in the folder "C:\Program Files\Apache
> Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\classes\samples\stock")
>
> I did not do anything to the sample except writing and running a command
> file in the folder "C:\Program Files Green\axis-1_4\samples\stock".
> The command is mentioned in the previous mail:java -cp %AXISCLASSPATH%
> org.apache.axis.client.
> AdminClient -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd
>
> The wsdd file is just in the folder called deploy.wsdd
>
> And my problem is the ClassNotFoundException of "Files", which is mentioned
> in the previous email.
> I have listed the packages that have been put both in the two library paths
> in the previous email.
>
>
> Would you please give me some advice about solving this problem?
>
> Sincerely yours,
> Liu
>
>
> 2009/11/30 Chinmoy Chakraborty <cc...@gmail.com>
>
> where and how did you deploy your sample in tomcat? where is your wsdd
>> file? You may find this link useful [1].
>>
>> [1].
>> http://ws.apache.org/axis/java/user-guide.html#InstallingAxisAndUsingThisGuide
>>
>>
>> <http://ws.apache.org/axis/java/user-guide.html#InstallingAxisAndUsingThisGuide>Here
>> I want to make one point. I guess you are using Axis 1.4 which is old. I
>> guess you should try Axis2. Current released version is 1.5.1 [2].
>>
>> [2]. http://ws.apache.org/axis2/
>>
>>
>> <http://ws.apache.org/axis2/>Chinmoy
>>
>>
>>
>>
>>
>> On Mon, Nov 30, 2009 at 2:29 PM, Liu Bin <ko...@gmail.com> wrote:
>>
>>> Dear my friends,
>>>
>>> My testing is the step mentioned in the page below.
>>> http://ws.apache.org/axis/java/install.html#RunTheAdminClient
>>> or Apache_Axis_1.4_Webservice_
>>> Install.pdf -> Chap 1.10.3
>>>
>>> My platform is Windows XP SP3, with Apache Tomcat 6.0 in port 8080.
>>> Directory for Tomcat: "C:\Program Files\Apache Software Foundation\Tomcat
>>> 6.0"
>>> Directory for AXIS: "C:\Program Files Green\axis-1_4\"
>>>
>>> Under directory "C:\Program Files Green\axis-1_4\samples\stock"
>>> Command: java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient
>>> -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd
>>> Return information:
>>> Exception in thread "main" java.lang.NoClassDefFoundError: Files
>>> Caused by: java.lang.ClassNotFoundException: Files
>>>         at java.net.URLClassLoader$1.run(Unknown Source)
>>>         at java.security.AccessController.doPrivileged(Native Method)
>>>         at java.net.URLClassLoader.findClass(Unknown Source)
>>>         at java.lang.ClassLoader.loadClass(Unknown Source)
>>>         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>>>         at java.lang.ClassLoader.loadClass(Unknown Source)
>>>         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>>> Could not find the main class: Files.  Program will exit.
>>>
>>> My Envirionment Variables:
>>> AXIS_HOME = C:\Program Files Green\axis-1_4
>>> AXIS_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;
>>>     %AXIS_LIB%\activation.jar;%AXIS_LIB%\dom.jar
>>>
>>> Package List under both "C:\Program Files Green\axis-1_4\lib" and
>>> "C:\Program Files\Apache Software Foundation\Tomcat
>>> 6.0\webapps\axis\WEB-INF\lib"
>>> activation.jar
>>> axis.jar
>>> axis-ant.jar
>>> commons-discovery.jar
>>> commons-logging.jar
>>> dom.jar
>>> jaxrpc.jar
>>> log4j-1.2.8.jar
>>> log4j.properties
>>> mail.jar
>>> saaj.jar
>>> tools.jar
>>> wsdl4j-1.5.1.jar
>>> xercesImpl.jar
>>> xml-apis.jar
>>> xmlsec.jar
>>>
>>>
>>> Would anyone please share me your idea about what might be wrong in my
>>> installation, thanks :)
>>>
>>>
>>> Yours,
>>> Liu
>>>
>>>
>>> --
>>>
>>> LIU Bin
>>> Shanghai Jiao Tong University
>>>
>>
>>
>
>
> --
>
> LIU Bin
> Shanghai Jiao Tong University
>