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 Marco Mistroni <mm...@waersystems.com> on 2004/09/15 16:37:38 UTC
axis error when invoking webservices
Hello all,
I have written a webservice that uses Castor serializer,and when
I am
Invoking my webservice (via a client), on the clientside I got the
following exception
C:\Sw\axis-1_2beta>java -cp
%CLASSPATH%;castor-0.9.5.3.jar;xml-apis-1.0.b2.jar;C
ommons-1.0.jar;BudgetWS-1.0.jar;Backend-1.0.jar;xerces-2.4.0.jar;.
com.worldcorp .services.budget.BudgetSOAPClient > out.txt Exception in
thread "main" AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.reflect.InvocationTargetException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.reflect.InvocationTargetException
faultActor:
faultNode:
faultDetail:
java.lang.reflect.InvocationTargetException
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder
.java:223)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.
java:130)
at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseri
alizationContextImpl.java:1053)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source
)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow
n Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at
org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializa
tionContextImpl.java:218)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:568)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:427)
at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.j
ava:701)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:93)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:144)
at org.apache.axis.client.Call.invokeEngine(Call.java:2688)
at org.apache.axis.client.Call.invoke(Call.java:2671)
at org.apache.axis.client.Call.invoke(Call.java:2357)
at org.apache.axis.client.Call.invoke(Call.java:2280)
at org.apache.axis.client.Call.invoke(Call.java:1741)
at
com.worldcorp.services.budget.BudgetSOAPBindingStub.insert(BudgetSOAP
BindingStub.java:190)
at
com.worldcorp.services.budget.BudgetSOAPClient.main(BudgetSOAPClient.
java:15)
java.lang.reflect.InvocationTargetException
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder
.java:223)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.
java:130)
at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseri
alizationContextImpl.java:1053)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source
)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow
n Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at
org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializa
tionContextImpl.java:218)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:568)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:427)
at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.j
ava:701)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:93)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:144)
at org.apache.axis.client.Call.invokeEngine(Call.java:2688)
at org.apache.axis.client.Call.invoke(Call.java:2671)
at org.apache.axis.client.Call.invoke(Call.java:2357)
at org.apache.axis.client.Call.invoke(Call.java:2280)
at org.apache.axis.client.Call.invoke(Call.java:1741)
at
com.worldcorp.services.budget.BudgetSOAPBindingStub.insert(BudgetSOAP
BindingStub.java:190)
at
com.worldcorp.services.budget.BudgetSOAPClient.main(BudgetSOAPClient.
java:15)
has anyone any idea on what can cause this problem?
Thanx in advance and regards
marco
RE: WS-Security
Posted by Greg Michalopoulos <gm...@d2hawkeye.com>.
Jim - I think you had the right idea...Thanks.
-----Original Message-----
From: Jim Murphy [mailto:jmurphy@mindreef.com]
Sent: Wednesday, September 15, 2004 2:56 PM
To: axis-user@ws.apache.org
Subject: Re: WS-Security
Is it in the servlet container's class path or the webapp classpath? I
believe it must be reachable by the webapp classloader - which does not
delegate to a "higher level" class loader.
Jim Murphy
Mindreef, Inc.
Greg Michalopoulos wrote:
> Could be a real dumb question but...
> Using apache wss4j, and trying to use a custom password callback class.
> Thing is, if I don't add the custom password callback class to the
> wss4j jar file, I get a java.lang.NoClassDefFound exception - even if
> the custom class is in the class path of the servlet container (J2EE app
server). Any clues?
>
> Its annoying because I have extended an existing class in my app that
> calls on many other classes that I don't want to have to add to the
> jar. Plus deploying to clients would mean they would need the custom
> wss4j jar instead of the publically available one.
>
> Thanks,
> Greg
>
>
>
Re: WS-Security
Posted by Jim Murphy <jm...@mindreef.com>.
Is it in the servlet container's class path or the webapp classpath? I
believe it must be reachable by the webapp classloader - which does not
delegate to a "higher level" class loader.
Jim Murphy
Mindreef, Inc.
Greg Michalopoulos wrote:
> Could be a real dumb question but...
> Using apache wss4j, and trying to use a custom password callback class.
> Thing is, if I don't add the custom password callback class to the wss4j jar
> file, I get a java.lang.NoClassDefFound exception - even if the custom class
> is in the class path of the servlet container (J2EE app server). Any clues?
>
> Its annoying because I have extended an existing class in my app that calls
> on many other classes that I don't want to have to add to the jar. Plus
> deploying to clients would mean they would need the custom wss4j jar instead
> of the publically available one.
>
> Thanks,
> Greg
>
>
>
WS-Security
Posted by Greg Michalopoulos <gm...@d2hawkeye.com>.
Could be a real dumb question but...
Using apache wss4j, and trying to use a custom password callback class.
Thing is, if I don't add the custom password callback class to the wss4j jar
file, I get a java.lang.NoClassDefFound exception - even if the custom class
is in the class path of the servlet container (J2EE app server). Any clues?
Its annoying because I have extended an existing class in my app that calls
on many other classes that I don't want to have to add to the jar. Plus
deploying to clients would mean they would need the custom wss4j jar instead
of the publically available one.
Thanks,
Greg
RE: Axis, Castor and BeanSerializerFactory
Posted by Marco Mistroni <mm...@waersystems.com>.
Hello,
I fyou use castor, those beanSerializerfactories shouldn't be
anywherein ur WSDD... because you are replacing them with castor
factories..
Regards
marco
-----Original Message-----
From: Robert Bateman [mailto:bobbateman@sequoiallc.com]
Sent: 15 September 2004 16:38
To: axis-user@ws.apache.org
Subject: Axis, Castor and BeanSerializerFactory
The Web Service I'm attempting to build will use Caster to handle a
document
thru Axis. I've read the wonderful documentation about Castor and Axis
and
"think" I have messed something up.
In the doc over at IBM.com, it indicates that I have to replace the
serializers in order to have Castor serializers used instead of the Axis
ones. So I made the coresponding changes in my wsdd file. But my wsdd
file
also specifies BeanSerializerFactory and BeanDeserializerFactory. Are
these
factories to be left alone? I don't see castor equivalents.
Thanks!
Bob
Axis, Castor and BeanSerializerFactory
Posted by Robert Bateman <bo...@sequoiallc.com>.
The Web Service I'm attempting to build will use Caster to handle a document
thru Axis. I've read the wonderful documentation about Castor and Axis and
"think" I have messed something up.
In the doc over at IBM.com, it indicates that I have to replace the
serializers in order to have Castor serializers used instead of the Axis
ones. So I made the coresponding changes in my wsdd file. But my wsdd file
also specifies BeanSerializerFactory and BeanDeserializerFactory. Are these
factories to be left alone? I don't see castor equivalents.
Thanks!
Bob
ant task for admin client?
Posted by Paul Tomsic <pt...@yahoo.com>.
is there an ant task for
org.apache.axis.client.AdminClient?
I can't seem to find any other than than <axis-admin
task but none of the attributes seem to define client.