[Users] Class not found exception with custom soap BC
vjao
petals-components at ebmwebsourcing.com
Wed Mar 16 10:28:32 CET 2011
Hi,
For my needs, I did my custom implementation of the soap binding component, 99% based on the 3.1.2 petals one.
When a pojo service unit is proxied (-> su-consume) via my own soap bc, I get a ClassNotFoundException:org.apache.xerces.dom. DeferredDocumentImpl.
Heres the complete stack trace :
Code:
java.io.IOException: class java.lang.ClassNotFoundException:org.apache.xerces.dom.DeferredDocumentImpl
at org.ow2.petals.jbi.messaging.exchange.MessageExchangeImpl.readObjectDelegate(MessageExchangeImpl.java:599)
at org.ow2.petals.jbi.messaging.exchange.MessageExchangeImpl.readObject(MessageExchangeImpl.java:632)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at org.objectweb.joram.shared.messages.Message.getObject(Message.java:284)
at org.objectweb.joram.client.jms.ObjectMessage.getObject(ObjectMessage.java:88)
at org.ow2.petals.transport.platform.joram.ObjectSerializer.jms2jbi(ObjectSerializer.java:94)
at org.ow2.petals.transport.platform.joram.AsyncExchangeMessageListener.onMessage(AsyncExchangeMessageListener.java:144)
at org.objectweb.joram.client.jms.MessageConsumerListener.activateListener(MessageConsumerListener.java:442)
at org.objectweb.joram.client.jms.MessageConsumerListener.onMessage(MessageConsumerListener.java:478)
at org.objectweb.joram.client.jms.Session.onMessage(Session.java:1806)
at org.objectweb.joram.client.jms.Session.onMessages(Session.java:1776)
at org.objectweb.joram.client.jms.Session.access$400(Session.java:63)
at org.objectweb.joram.client.jms.Session$SessionDaemon.run(Session.java:2122)
at java.lang.Thread.run(Thread.java:619)
>From what I understand, the bc sends the jbi message to the pojo su. The message exchange is done using jms and the error occurs when Joram tries to read the content of the jms message using a ObjectInputStream but fails because it cannot find the class.
My custom soap binding component is enterly based on the 3.1.2 petals one. I just modified one or two classes but nothing to do with the « incoming » package.
So far, the only solution I found is to add « xercesImpl-2.8.1.jar » to the petals classpath by modifying the server.jars manifest file. It works, but I dont like this solution, I think you agree with me on this.
Does anyone has any idea what I did wrong ? Or has anyone already encountered this problem ?
Thanks in advance for your help,
Vincent
-------------------- m2f --------------------
Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=645#645
-------------------- m2f --------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20110316/2582d586/attachment.htm>
More information about the Users
mailing list