This content has been marked as final.
Show 5 replies
-
1. Re: Strange java.lang.ClassCastException: org.jboss.axis.Mes
jwiesmann Jul 20, 2006 4:17 AM (in response to jwiesmann)It works, if i do it like that:
String systemPropMsgFactory = System.getProperty ("javax.xml.soap.MessageFactory"); System.setProperty("javax.xml.soap.MessageFactory", "org.apache.axis.soap.MessageFactoryImpl"); MessageFactory mf = MessageFactory.newInstance(); System.setProperty("javax.xml.soap.MessageFactory", systemPropMsgFactory); System.out.println("create msg: " + mf.getClass().getName()); SOAPMessage msg = mf.createMessage(); System.out.println("create msg: " + msg.getClass().getName());
But i still do not get what exactly i am doing here.... :-/ -
2. Re: Strange java.lang.ClassCastException: org.jboss.axis.Mes
seeteshaparna Jul 28, 2008 6:34 AM (in response to jwiesmann)Stub stub = (Stub) (new MyHelloService_Impl().getHelloIFPort());
stub._setProperty
(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY, "http://localhost:8080/seetws/HelloSeet");
HelloIF hello = (HelloIF) stub;
// hello.populateData("ssss");
hello.fetchData();
The exception occurs after hello.fetchData() method is executed.
Any Inputs?
Rgds,
Seetesh Hindlekar -
3. Re: Strange java.lang.ClassCastException: org.jboss.axis.Mes
mjcolbert Aug 22, 2008 11:37 AM (in response to jwiesmann)Does anybody have a complete solution for this problems. I am getting it as well with the CLassCastException.
It works fine as a standalone client but under EJB with JBoss ith fails to execute completely.
I am using jboss 4.0.3
I am sure it is the same problem as this. -
4. Re: Strange java.lang.ClassCastException: org.jboss.axis.Mes
asoldano Aug 25, 2008 10:53 AM (in response to jwiesmann)"mjcolbert" wrote:
Does anybody have a complete solution for this problems. I am getting it as well with the CLassCastException.
It works fine as a standalone client but under EJB with JBoss ith fails to execute completely.
I am using jboss 4.0.3
I am sure it is the same problem as this.
I suggest you to switch to a recent jboss installation; then check the classpath and ensure you're only using libraries coming from your jboss installation. This will be enough to get rid of this class cast exceptions. -
5. Re: Strange java.lang.ClassCastException: org.jboss.axis.Mes
ashwinbijani Sep 2, 2008 5:20 PM (in response to jwiesmann)Did you get the solution to this?