axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SanjeevGour <sanjeev.g...@gmail.com>
Subject Re: Axis2- Java2Wsdl- ClassnotFoundException
Date Thu, 07 Aug 2008 10:17:45 GMT

Thanks Moez.

That worked.

Sanjeev.


Moez Benmbarka wrote:
> 
> Hi,
> 
> I think you just need to add E:\Axis2c\bin to the CLASSPATH variable or 
> use the fllowing command :
> 
> java2wsdl.bat -cp E:\Axis2c\bin -cn pkg.Test 
> 
> 
> Regards
> Moez BM
> 
> SanjeevGour wrote:
>> Hi,
>>
>> I am trying to generate WSDL using the java2wsdl.bat using the following
>> command-
>> java2wsdl.bat -cn pkg.Test
>>
>> Where my Test class is under the package pkg. I have axis installed in
>> E:\Axis2c. I have put the generated class file in the E:\Axis2c\bin
>> directory under a folder pkg. i.e.- E:\Axis2c\bin\pkg\Test.class. 
>>
>> Now when I run the above command I get the  exception-Exception in thread
>> "main" java.lang.ClassNotFoundException: pkg.Test
>>
>> I execute the command from E:\Axis2c\bin directory.
>>
>> Though my test class doesn't contain any special code, I just wonder why
>> I
>> get the ClassNotFounfException. My Test class does not refer to any other
>> class. It just has a main method with one SOP.
>>
>> I have set the AXIS2_HOME env variable and classpath contains entry for
>> my
>> rt.jar.
>>
>> Can somebody please guide me on this?
>>
>> Thank you,
>> Sanjeev Gour.
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Axis2--Java2Wsdl--ClassnotFoundException-tp18848964p18867541.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message