Re: WebServices Soap Error (InvocationTargetException)
Re: WebServices Soap Error (InvocationTargetException)
- Subject: Re: WebServices Soap Error (InvocationTargetException)
- From: Brendon Allen <email@hidden>
- Date: Fri, 12 Mar 2004 15:41:16 +1100
Ends up a few things were going on here the main one was that i had
axis 1.1 and not 1.0 which caused the error. The second problem was
that safari does not display xml like explorer so I i would see is a
blank page when hitting the wsdl url. But after i did view source i
figured out it was working. Now the problem is I can connect to the
wsdl page and get a listing of it operations using WOWebServicesClient
they are all there but when I try and call one (one that has no params)
by name I get the stack trace below. It obviously can see the function
and the service why can't it find it at invoke time?
thanks to everyone for their help getting my previous problem
straightened out.
the line i call is
URL url;
url = new
URL("http://optimusprime.local:5555/cgi-bin/WebObjects/LTSupport2.woa/
ws/Test?wsdl");
WOWebServiceClient service_client = new WOWebServiceClient(url);
Object result = service_client.invoke(new String("Test"), new
String("brendon"), null);
When I do print lines I get these for the values in the service client
Service ("Test")
Methods {brendon =
<class com.webobjects.webservices.client.WOClientOperation
(name=brendon
endpoint=http://OptimusPrime.local:5555/cgi-bin/WebObjects/
LTSupport2.woa/ws/Test
style=RPC
parameters=()
returnTypes=(<
class
com.webobjects.webservices.client.WOClientParameter(name=brendonReturn
parameter mode=OUT
type={http://www.w3.org/2001/XMLSchema}string )>) )>; }
So it was able to find the method brendon as I never tell it that
anywhere but when I run it on the invoke
[2004-03-12 15:40:07 EST] <WorkerThread0>
<com.webobjects.appserver._private.WOComponentRequestHandler>:
Exception occurred while handling request:
com.webobjects.foundation.NSForwardException
[java.lang.NoClassDefFoundError] javax/servlet/ServletContext
er.newFactory(EngineConfigurationFactoryFinder.java:204)
at org.apache.axis.client.Service.<init>(Service.java:111)
at
org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java:
239)
at
com.webobjects.webservices.client.WOWebService.axisService(WOWebService.
java:185)
at
com.webobjects.webservices.client.WOWebService.createCallForOperation(WO
WebService.java:235)
at
com.webobjects.webservices.client.WOWebServiceClient.invoke(WOWebService
Client.java:482)
at Main.doString(Main.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAcces
sor.java:54)
at
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(
NSKeyValueCoding.java:1160)
at
com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueFo
rKey(NSKeyValueCoding.java:1268)
at
com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1539)
at
com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValu
eCoding.java:498)
at
com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementatio
n.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
at
com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:
1600)
at
com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent
(WOKeyValueAssociation.java:46)
at
com.webobjects.appserver._private.WOHyperlink.invokeAction(WOHyperlink.j
ava:76)
at
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WO
DynamicGroup.java:101)
at
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicG
roup.java:110)
at
com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:945)
at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1166)
at
com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java:
1377)
thanks again
Brendon
On Mar 12, 2004, at 4:50 AM, Chuck Hill wrote:
> This:
>>>>> [2004-03-11 14:32:08 EST] <WorkerThread4>
>>>>> java.lang.reflect.InvocationTargetException
>>>>> at
>>>>> com.webobjects.appserver._private.WOActionRequestHandler._handleReq
>>>>> uest(WOActionRequestHandler.java:250)
>
> makes me wonder if some other needed class is not getting loaded.
> I've no idea which one...
>
> Chuck
>
>
> On Mar 10, 2004, at 8:28 PM, Brendon Allen wrote:
>
>> Yeah after I sent the last email was looking through frameworks and
>> saw that one. Doah!
>>
>> But as it ends up I was a little confused on what the
>> WebServicesAssistant does. Appears that is really only meant to be
>> used with a DirecttoWebServices App (which the generation framework
>> is included in). Which mine is not (just regular WO app). So guess
>> it makes sense why it did not include that framework. But still
>> cannot get the first problem figured out. Thought it might be a
>> problem with the wsdd file but it looks like the one in the examples
>> (which also fail).
>>
>> thanks for your help sorry for being a little... dense ;-)
>>
>> cheers
>>
>> Brendon
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.