apologies for getting my reply mixed up with your message...looks
confusing...



Toriacht wrote:
> 
> Hi Sameera,
> 
> Thanks for the reply, i thought that might be it when I read your
> suggestion, but unfortunately not. I am using a downloaded AXIS2.war file
> and I reference it in my Eclipse Web Service Project Settings. 
> 
> I placed the .jar file in
> C:\myworkspace\mywebservice\WebContent\WEB-INF\lib (on web server side) as
> you suggested but it made no difference.
> 
> ( I set up my workspace following the instructions here:
> http://www.builderau.com.au/program/java/soa/Setting-up-a-simple-Web-service-using-Java/0,339024620,339284524,00.htm
> )
> 
> There is a folder C:\myworkspace\mywebservice\WebContent\axis2-web but
> there is no lib folder
> 
> Sameera Jayasoma wrote:
>> 
>> 
>> Is there any other folder I can use to give Axis2 a reference to the jar
>> file as I started placing the .jar in various folders ad-lib and caused
>> myself a whole host of fresh problems that took a while to undo!!
>> 
>> Thanks,
>> Tori
>> 
>> 
>> Hi,
>> 
>> At first glance, it seems like your jar file which contains the Message
>> class, is not visible to the Class Loader of your Web service. Please
>> place
>> your jar file in one of the following places.
>> 
>> If you are using stand-alone Axis2 instance, try placing your jar file in
>> the $AXIS2_HOME/lib/ folder.
>> 
>> If you are embedding Axis2 in a Application server, try placing your jar
>> file WEB-INF/lib folder.
>> 
>> 
>> 
>> 
>> On Tue, Jan 20, 2009 at 5:21 PM, Toriacht <[email protected]>
>> wrote:
>> 
>>>
>>> Hi,
>>>
>>> I am developing a simple webservice. Client / webservice communication
>>> is
>>> fine. When I receive the message at my web service I try and process it.
>>> I
>>> take in a number of parameters, strings etc and construct into a Message
>>> using .class file in a jar on the build path. The jar is in the build
>>> path,
>>> there are no compile errors etc and the function works fine as a POJO/
>>> simple java app.
>>>
>>> However, when I attempt to construct the message either in my web
>>> service
>>> class or by passing it to a new class in the same java resource folder i
>>> get
>>> an axis error telling me no class definition found. I've pasted an
>>> abbreviated version of the error below.
>>>
>>> All help gratefully received....
>>>
>>> Thanks,
>>> Tori
>>>
>>> org.apache.axis2.AxisFault: com/sdk/path/within/jarfile/Message
>>>        at
>>>
>>> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
>>>        at
>>>
>>> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
>>>        at
>>>
>>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
>>> ....
>>> ...
>>> ..
>>> [ERROR] com/path/path/within/jarfile/Message
>>> java.lang.reflect.InvocationTargetException
>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>> ...
>>> ...
>>> ...
>>>
>>> Caused by: java.lang.NoClassDefFoundError:
>>> com/path/path/within/jarfile/Message
>>>        at
>>> com.youpark.server.BuildMessage.constructMessage(BuildMessage.java:22)
>>>        at
>>>
>>> com.youpark.webservice.AccountEventHandlerSoap.MessageReceived(AccountEventHandlerSoap.java:46)
>>>        ... 25 more
>>> --
>>> View this message in context:
>>> http://www.nabble.com/org.apache.axis2.AxisFault%3A--No-class-definition-when-it-is-there-tp21561675p21561675.html
>>> Sent from the Axis - User mailing list archive at Nabble.com.
>>>
>>>
>> 
>> 
>> -- 
>> Sameera Jayasoma
>> Software Engineer
>> WSO2 Inc.
>> Oxygenating the Web Service Platform.
>> http://wso2.org/
>> 
>> blog: http://tech.jayasoma.org
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/org.apache.axis2.AxisFault%3A--No-class-definition-when-it-is-there-tp21561675p21574702.html
Sent from the Axis - User mailing list archive at Nabble.com.

Reply via email to