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 Keith Bohnenberger <kb...@mcdonaldbradley.com> on 2003/12/09 16:56:12 UTC
1.2 alpha and built in castor serialization
The 1.2 alpha release does not seem to have the
org.apache.axis.encoding.ser.castor.* classes in it.
Am I missing something or is that intentional?
I downloaded the 1.2 alpha release from
http://www.apache.org/dist/ws/axis/1_2alpha
Thanks
keith
-----Original Message-----
From: Hainer Neil [mailto:hainer_neil@bah.com]
Sent: Monday, December 08, 2003 4:48 PM
To: axis-user@ws.apache.org
Subject: WSDL2Java Question
Hi,
If I have generated a WSDL file from the source file myjava.class and
Java2WSDL utility, then use that as input to WSDL2Java:
1. Are these the correct files to deploy under my webserver?
MyJava.class |
MyjavaSoapBindingImpl.class | ------ All generated from
WSDL2Java
MyjavaSoapBindingSkeleton.class |
2. I noticed that the source MyjavaSoapBindingImpl.java contains my
public method - but only the basic structure, not the details of the
method.
Is this the way it works? Am I supposed to cut and paste in the
actual code that comprises the method?
3. Is there any reason to deploy my original class myjava.
TIA,
Neil
RE: 1.2 alpha and castor serialization
Posted by Davanum Srinivas <di...@yahoo.com>.
Can someone open a bug report in bugzilla? (http://ws.apache.org/axis/bugs.html)
Thanks,
dims
--- Craig Duncan <cr...@invisioninc.com> wrote:
> Did you make the change to the CastorSerializer class as noted in this link:
>
> http://www.mail-archive.com/castor-dev@exolab.org/msg15150.html
>
> I had issues until I made this change.
>
> Craig
>
>
> -----Original Message-----
> From: Keith Bohnenberger [mailto:kbohnenberger@mcdonaldbradley.com]
> Sent: Tuesday, December 09, 2003 3:53 PM
> To: axis-user@ws.apache.org
> Subject: RE: 1.2 alpha and castor serialization
>
> I am trying to get a modified version of the stock example to work with
> built in castor serialization.
>
> I am using the alpha1.2 release from
> http://www.apache.org/dist/ws/axis/1_2alpha
> However, since it did not include the ...encoding.ser.castor.* classes I
> built a new axis.jar from the CVS repository. I then replaced the
> axis.jar file from the 1_2alpha download with the new axis.jar file.
>
> Given this configuration I can get the server side built and deployed
> however when I run my client I get the following error on the client
> side. I do have the TradePriceRequestDescriptor class that castor
> generated in my classpath so I am not sure what it is talking about.
>
> remoteException: org.xml.sax.SAXException: Unable to marshall between
> XML and Castor Objects :unable to find FieldDescriptor for
> 'TradePriceRequest' in ClassDescriptor of TradePriceRequest
>
> AxisFault
> faultCode:
> {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> faultSubcode:
> faultString: org.xml.sax.SAXException: Unable to marshall between XML
> and Castor Objects :unable to find FieldDescriptor for
> 'TradePriceRequest' in ClassDescriptor of TradePriceRequest
> faultActor:
> faultNode:
> faultDetail:
> {http://xml.apache.org/axis/}stackTrace:AxisFault
> faultCode:
> {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> faultSubcode:
> faultString: org.xml.sax.SAXException: Unable to marshall between XML
> and Castor Objects :unable to find FieldDescriptor for
> 'TradePriceRequest' in ClassDescriptor of TradePriceRequest
> faultActor:
> faultNode:
> faultDetail:
>
> org.xml.sax.SAXException: Unable to marshall between XML and Castor
> Objects :unable to find FieldDescriptor for 'TradePriceRequest' in
> ClassDescriptor of TradePriceRequest
> at
> org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.ja
> va:262)
> at
> org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.jav
> a:169)
> at
> org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseriali
> zationContextImpl.java:1092)
> at
> org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
> at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
> patcher.dispatch(Unknown Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
> wn Source)
> at org.apache.xerces.parsers.DTDConfiguration.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(SAXParser.java:345)
> at
> org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializatio
> nContextImpl.java:257)
> at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:582)
> at org.apache.axis.Message.getSOAPEnvelope(Message.java:447)
> at
> org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java
> :687)
> at
> org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:134)
> at
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
> ava:71)
> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:157)
> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:122)
> at org.apache.axis.client.AxisClient.invoke(AxisClient.java:183)
> at org.apache.axis.client.Call.invokeEngine(Call.java:2682)
> at org.apache.axis.client.Call.invoke(Call.java:2665)
> at org.apache.axis.client.Call.invoke(Call.java:2355)
> at org.apache.axis.client.Call.invoke(Call.java:2278)
> at org.apache.axis.client.Call.invoke(Call.java:1772)
> at
> com.mbi.axis.test.server.J2WStockServiceSoapBindingStub.getLastTradePric
> e(J2WStockServiceSoapBindingStub.java:151)
> at
> com.mbi.axis.test.server.StaticClient.main(StaticClient.java:30)
>
>
=====
Davanum Srinivas - http://webservices.apache.org/~dims/
RE: 1.2 alpha and castor serialization
Posted by Craig Duncan <cr...@invisioninc.com>.
Castor 0952
Axis 1.1 - I downloaded the zip file containing the source and then built it
with ant.
Unfortunately most of the things I have done have been complex. I started
down the path of castor + axis because of the following link:
http://www-106.ibm.com/developerworks/library/ws-castor/
The article above does not mention having to make the change to the
CastorSerializer but the example they use is fairly simple.
Craig
-----Original Message-----
From: Keith Bohnenberger [mailto:kbohnenberger@mcdonaldbradley.com]
Sent: Wednesday, December 10, 2003 12:03 PM
To: axis-user@ws.apache.org
Subject: RE: 1.2 alpha and castor serialization
Craig,
What version of Castor are you using?
What version of Axis are you using?
Can you send a simple example that works with built in castor
serialization?
Keith
-----Original Message-----
From: Craig Duncan [mailto:craig.duncan@invisioninc.com]
Sent: Wednesday, December 10, 2003 9:25 AM
To: axis-user@ws.apache.org
Subject: RE: 1.2 alpha and castor serialization
Did you make the change to the CastorSerializer class as noted in this
link:
http://www.mail-archive.com/castor-dev@exolab.org/msg15150.html
I had issues until I made this change.
Craig
-----Original Message-----
From: Keith Bohnenberger [mailto:kbohnenberger@mcdonaldbradley.com]
Sent: Tuesday, December 09, 2003 3:53 PM
To: axis-user@ws.apache.org
Subject: RE: 1.2 alpha and castor serialization
I am trying to get a modified version of the stock example to work with
built in castor serialization.
I am using the alpha1.2 release from
http://www.apache.org/dist/ws/axis/1_2alpha
However, since it did not include the ...encoding.ser.castor.* classes I
built a new axis.jar from the CVS repository. I then replaced the
axis.jar file from the 1_2alpha download with the new axis.jar file.
Given this configuration I can get the server side built and deployed
however when I run my client I get the following error on the client
side. I do have the TradePriceRequestDescriptor class that castor
generated in my classpath so I am not sure what it is talking about.
remoteException: org.xml.sax.SAXException: Unable to marshall between
XML and Castor Objects :unable to find FieldDescriptor for
'TradePriceRequest' in ClassDescriptor of TradePriceRequest
AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Unable to marshall between XML
and Castor Objects :unable to find FieldDescriptor for
'TradePriceRequest' in ClassDescriptor of TradePriceRequest
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Unable to marshall between XML
and Castor Objects :unable to find FieldDescriptor for
'TradePriceRequest' in ClassDescriptor of TradePriceRequest
faultActor:
faultNode:
faultDetail:
org.xml.sax.SAXException: Unable to marshall between XML and Castor
Objects :unable to find FieldDescriptor for 'TradePriceRequest' in
ClassDescriptor of TradePriceRequest
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.ja
va:262)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.jav
a:169)
at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseriali
zationContextImpl.java:1092)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.DTDConfiguration.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(SAXParser.java:345)
at
org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializatio
nContextImpl.java:257)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:582)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:447)
at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java
:687)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:134)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:157)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:122)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:183)
at org.apache.axis.client.Call.invokeEngine(Call.java:2682)
at org.apache.axis.client.Call.invoke(Call.java:2665)
at org.apache.axis.client.Call.invoke(Call.java:2355)
at org.apache.axis.client.Call.invoke(Call.java:2278)
at org.apache.axis.client.Call.invoke(Call.java:1772)
at
com.mbi.axis.test.server.J2WStockServiceSoapBindingStub.getLastTradePric
e(J2WStockServiceSoapBindingStub.java:151)
at
com.mbi.axis.test.server.StaticClient.main(StaticClient.java:30)
RE: 1.2 alpha and castor serialization
Posted by Keith Bohnenberger <kb...@mcdonaldbradley.com>.
Craig,
What version of Castor are you using?
What version of Axis are you using?
Can you send a simple example that works with built in castor
serialization?
Keith
-----Original Message-----
From: Craig Duncan [mailto:craig.duncan@invisioninc.com]
Sent: Wednesday, December 10, 2003 9:25 AM
To: axis-user@ws.apache.org
Subject: RE: 1.2 alpha and castor serialization
Did you make the change to the CastorSerializer class as noted in this
link:
http://www.mail-archive.com/castor-dev@exolab.org/msg15150.html
I had issues until I made this change.
Craig
-----Original Message-----
From: Keith Bohnenberger [mailto:kbohnenberger@mcdonaldbradley.com]
Sent: Tuesday, December 09, 2003 3:53 PM
To: axis-user@ws.apache.org
Subject: RE: 1.2 alpha and castor serialization
I am trying to get a modified version of the stock example to work with
built in castor serialization.
I am using the alpha1.2 release from
http://www.apache.org/dist/ws/axis/1_2alpha
However, since it did not include the ...encoding.ser.castor.* classes I
built a new axis.jar from the CVS repository. I then replaced the
axis.jar file from the 1_2alpha download with the new axis.jar file.
Given this configuration I can get the server side built and deployed
however when I run my client I get the following error on the client
side. I do have the TradePriceRequestDescriptor class that castor
generated in my classpath so I am not sure what it is talking about.
remoteException: org.xml.sax.SAXException: Unable to marshall between
XML and Castor Objects :unable to find FieldDescriptor for
'TradePriceRequest' in ClassDescriptor of TradePriceRequest
AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Unable to marshall between XML
and Castor Objects :unable to find FieldDescriptor for
'TradePriceRequest' in ClassDescriptor of TradePriceRequest
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Unable to marshall between XML
and Castor Objects :unable to find FieldDescriptor for
'TradePriceRequest' in ClassDescriptor of TradePriceRequest
faultActor:
faultNode:
faultDetail:
org.xml.sax.SAXException: Unable to marshall between XML and Castor
Objects :unable to find FieldDescriptor for 'TradePriceRequest' in
ClassDescriptor of TradePriceRequest
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.ja
va:262)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.jav
a:169)
at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseriali
zationContextImpl.java:1092)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.DTDConfiguration.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(SAXParser.java:345)
at
org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializatio
nContextImpl.java:257)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:582)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:447)
at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java
:687)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:134)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:157)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:122)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:183)
at org.apache.axis.client.Call.invokeEngine(Call.java:2682)
at org.apache.axis.client.Call.invoke(Call.java:2665)
at org.apache.axis.client.Call.invoke(Call.java:2355)
at org.apache.axis.client.Call.invoke(Call.java:2278)
at org.apache.axis.client.Call.invoke(Call.java:1772)
at
com.mbi.axis.test.server.J2WStockServiceSoapBindingStub.getLastTradePric
e(J2WStockServiceSoapBindingStub.java:151)
at
com.mbi.axis.test.server.StaticClient.main(StaticClient.java:30)
RE: 1.2 alpha and castor serialization
Posted by Craig Duncan <cr...@invisioninc.com>.
Bug 25440 posted.
RE: 1.2 alpha and castor serialization
Posted by Keith Bohnenberger <kb...@mcdonaldbradley.com>.
Craig,
I started over with my sample web service. Meaning that I re-ran the
castor classes, re-ran wsdl2java and re-did all of the by-hand changes.
I rebuilt the axis.jar file from CVS with the changes mentioned in the
link you sent and it finally worked.
Thanks for the help.
Are you going to create a bug report for Dims?
I'm not sure I understand the purpose behind the changes well enough to
type it up myself.
Keith
-----Original Message-----
From: Craig Duncan [mailto:craig.duncan@invisioninc.com]
Sent: Wednesday, December 10, 2003 9:25 AM
To: axis-user@ws.apache.org
Subject: RE: 1.2 alpha and castor serialization
Did you make the change to the CastorSerializer class as noted in this
link:
http://www.mail-archive.com/castor-dev@exolab.org/msg15150.html
I had issues until I made this change.
Craig
-----Original Message-----
From: Keith Bohnenberger [mailto:kbohnenberger@mcdonaldbradley.com]
Sent: Tuesday, December 09, 2003 3:53 PM
To: axis-user@ws.apache.org
Subject: RE: 1.2 alpha and castor serialization
I am trying to get a modified version of the stock example to work with
built in castor serialization.
I am using the alpha1.2 release from
http://www.apache.org/dist/ws/axis/1_2alpha
However, since it did not include the ...encoding.ser.castor.* classes I
built a new axis.jar from the CVS repository. I then replaced the
axis.jar file from the 1_2alpha download with the new axis.jar file.
Given this configuration I can get the server side built and deployed
however when I run my client I get the following error on the client
side. I do have the TradePriceRequestDescriptor class that castor
generated in my classpath so I am not sure what it is talking about.
remoteException: org.xml.sax.SAXException: Unable to marshall between
XML and Castor Objects :unable to find FieldDescriptor for
'TradePriceRequest' in ClassDescriptor of TradePriceRequest
AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Unable to marshall between XML
and Castor Objects :unable to find FieldDescriptor for
'TradePriceRequest' in ClassDescriptor of TradePriceRequest
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Unable to marshall between XML
and Castor Objects :unable to find FieldDescriptor for
'TradePriceRequest' in ClassDescriptor of TradePriceRequest
faultActor:
faultNode:
faultDetail:
org.xml.sax.SAXException: Unable to marshall between XML and Castor
Objects :unable to find FieldDescriptor for 'TradePriceRequest' in
ClassDescriptor of TradePriceRequest
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.ja
va:262)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.jav
a:169)
at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseriali
zationContextImpl.java:1092)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.DTDConfiguration.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(SAXParser.java:345)
at
org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializatio
nContextImpl.java:257)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:582)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:447)
at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java
:687)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:134)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:157)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:122)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:183)
at org.apache.axis.client.Call.invokeEngine(Call.java:2682)
at org.apache.axis.client.Call.invoke(Call.java:2665)
at org.apache.axis.client.Call.invoke(Call.java:2355)
at org.apache.axis.client.Call.invoke(Call.java:2278)
at org.apache.axis.client.Call.invoke(Call.java:1772)
at
com.mbi.axis.test.server.J2WStockServiceSoapBindingStub.getLastTradePric
e(J2WStockServiceSoapBindingStub.java:151)
at
com.mbi.axis.test.server.StaticClient.main(StaticClient.java:30)
RE: 1.2 alpha and castor serialization
Posted by Craig Duncan <cr...@invisioninc.com>.
Did you make the change to the CastorSerializer class as noted in this link:
http://www.mail-archive.com/castor-dev@exolab.org/msg15150.html
I had issues until I made this change.
Craig
-----Original Message-----
From: Keith Bohnenberger [mailto:kbohnenberger@mcdonaldbradley.com]
Sent: Tuesday, December 09, 2003 3:53 PM
To: axis-user@ws.apache.org
Subject: RE: 1.2 alpha and castor serialization
I am trying to get a modified version of the stock example to work with
built in castor serialization.
I am using the alpha1.2 release from
http://www.apache.org/dist/ws/axis/1_2alpha
However, since it did not include the ...encoding.ser.castor.* classes I
built a new axis.jar from the CVS repository. I then replaced the
axis.jar file from the 1_2alpha download with the new axis.jar file.
Given this configuration I can get the server side built and deployed
however when I run my client I get the following error on the client
side. I do have the TradePriceRequestDescriptor class that castor
generated in my classpath so I am not sure what it is talking about.
remoteException: org.xml.sax.SAXException: Unable to marshall between
XML and Castor Objects :unable to find FieldDescriptor for
'TradePriceRequest' in ClassDescriptor of TradePriceRequest
AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Unable to marshall between XML
and Castor Objects :unable to find FieldDescriptor for
'TradePriceRequest' in ClassDescriptor of TradePriceRequest
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Unable to marshall between XML
and Castor Objects :unable to find FieldDescriptor for
'TradePriceRequest' in ClassDescriptor of TradePriceRequest
faultActor:
faultNode:
faultDetail:
org.xml.sax.SAXException: Unable to marshall between XML and Castor
Objects :unable to find FieldDescriptor for 'TradePriceRequest' in
ClassDescriptor of TradePriceRequest
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.ja
va:262)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.jav
a:169)
at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseriali
zationContextImpl.java:1092)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.DTDConfiguration.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(SAXParser.java:345)
at
org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializatio
nContextImpl.java:257)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:582)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:447)
at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java
:687)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:134)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:157)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:122)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:183)
at org.apache.axis.client.Call.invokeEngine(Call.java:2682)
at org.apache.axis.client.Call.invoke(Call.java:2665)
at org.apache.axis.client.Call.invoke(Call.java:2355)
at org.apache.axis.client.Call.invoke(Call.java:2278)
at org.apache.axis.client.Call.invoke(Call.java:1772)
at
com.mbi.axis.test.server.J2WStockServiceSoapBindingStub.getLastTradePric
e(J2WStockServiceSoapBindingStub.java:151)
at
com.mbi.axis.test.server.StaticClient.main(StaticClient.java:30)
RE: 1.2 alpha and castor serialization
Posted by Keith Bohnenberger <kb...@mcdonaldbradley.com>.
I am trying to get a modified version of the stock example to work with
built in castor serialization.
I am using the alpha1.2 release from
http://www.apache.org/dist/ws/axis/1_2alpha
However, since it did not include the ...encoding.ser.castor.* classes I
built a new axis.jar from the CVS repository. I then replaced the
axis.jar file from the 1_2alpha download with the new axis.jar file.
Given this configuration I can get the server side built and deployed
however when I run my client I get the following error on the client
side. I do have the TradePriceRequestDescriptor class that castor
generated in my classpath so I am not sure what it is talking about.
remoteException: org.xml.sax.SAXException: Unable to marshall between
XML and Castor Objects :unable to find FieldDescriptor for
'TradePriceRequest' in ClassDescriptor of TradePriceRequest
AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Unable to marshall between XML
and Castor Objects :unable to find FieldDescriptor for
'TradePriceRequest' in ClassDescriptor of TradePriceRequest
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Unable to marshall between XML
and Castor Objects :unable to find FieldDescriptor for
'TradePriceRequest' in ClassDescriptor of TradePriceRequest
faultActor:
faultNode:
faultDetail:
org.xml.sax.SAXException: Unable to marshall between XML and Castor
Objects :unable to find FieldDescriptor for 'TradePriceRequest' in
ClassDescriptor of TradePriceRequest
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.ja
va:262)
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.jav
a:169)
at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseriali
zationContextImpl.java:1092)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.DTDConfiguration.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(SAXParser.java:345)
at
org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializatio
nContextImpl.java:257)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:582)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:447)
at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java
:687)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:134)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:157)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:122)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:183)
at org.apache.axis.client.Call.invokeEngine(Call.java:2682)
at org.apache.axis.client.Call.invoke(Call.java:2665)
at org.apache.axis.client.Call.invoke(Call.java:2355)
at org.apache.axis.client.Call.invoke(Call.java:2278)
at org.apache.axis.client.Call.invoke(Call.java:1772)
at
com.mbi.axis.test.server.J2WStockServiceSoapBindingStub.getLastTradePric
e(J2WStockServiceSoapBindingStub.java:151)
at
com.mbi.axis.test.server.StaticClient.main(StaticClient.java:30)