Bugs item #848106, was opened at 2003-11-24 08:55
Message generated for change (Settings changed) made by cgjung
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=848106&group_id=22866
Category: JBossSOAP
Group: v3.2
>Status: Closed
Resolution: Works For Me
Priority: 5
Submitted By: Stephane Nicoll (stephane_nicoll)
Assigned to: Dr. Christoph Georg Jung (cgjung)
Summary: ClassCastException on SOAP calls upon redeployment
Initial Comment:
OS: Redhat linux 9
Java: SUN VM 1.4.1_02
The bug is reproductible with both JBoss 3.2.2 and
3.2.3RC1
We have an application, packaged as an EAR and
containing mainly:
- an EJB module JAR containing SessionBeans, Entity
Beans and MDB
- an WSR module JARr containing a web service
declaration
- Some librairies
The WSR module defines a web service that use a
SessionBean to process incoming SOAP calls
Eveything runs fine but when we hot-redeploy the EAR,
we have a ClassCastException and the web service does
not work anymore (we need to restart JBoss to fix this).
My guesses is that this is an Axis bug but I already
opened a bug @t apache without any feedback. We
discussed this issue in the JBoss-user mailing list see the
thread:
JBossNET hot deployment problem (ClassCastException)
This shows the classes / interfaces are OK after un
hotdeploy (see the thread for test output suggested by
Adrian)
What we have after the hot-redeploy at server side is
the following:
2003-11-24 08:40:57,873 INFO
[org.apache.axis.utils.bytecode.ParamNameExtractor]
AXIS error:java.io.IOException: Unable to load bytecode
for
class "com.kiala.kserver.driver.nodesynch.NodeSyncherLo
cal"
AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}
Server.userException
faultSubcode:
faultString: java.lang.ClassCastException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:
java.lang.ClassCastException
at
com.sun.corba.se.internal.javax.rmi.PortableRemoteObjec
t.narrow(PortableRemoteObject.java:293)
at javax.rmi.PortableRemoteObject.narrow
(PortableRemoteObject.java:134)
at
org.apache.axis.providers.java.EJBProvider.createRemote
EJB(EJBProvider.java:168)
at
org.apache.axis.providers.java.EJBProvider.makeNewServi
ceObject(EJBProvider.java:147)
at
org.apache.axis.providers.java.JavaProvider.getNewServi
ceObject(JavaProvider.java:261)
at
org.apache.axis.providers.java.JavaProvider.getServiceOb
ject(JavaProvider.java:138)
at
org.apache.axis.providers.java.JavaProvider.invoke
(JavaProvider.java:313)
at
org.apache.axis.strategies.InvocationStrategy.visit
(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting
(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke
(SimpleChain.java:120)
at
org.apache.axis.handlers.soap.SOAPService.invoke
(SOAPService.java:481)
at org.apache.axis.server.AxisServer.invoke
(AxisServer.java:323)
at
org.apache.axis.transport.http.AxisServlet.doPost
(AxisServlet.java:854)
at javax.servlet.http.HttpServlet.service
(HttpServlet.java:760)
at
org.apache.axis.transport.http.AxisServletBase.service
(AxisServletBase.java:339)
Should you need further info, let me know.
Regards,
Stephane Nicoll
----------------------------------------------------------------------
Comment By: Stephane Nicoll (stephane_nicoll)
Date: 2003-12-01 09:47
Message:
Logged In: YES
user_id=448198
Thanks a lot, this is working as expected.
Sorry for the noise (not-a-bug)
Regards,
Stephane
----------------------------------------------------------------------
Comment By: Dr. Christoph Georg Jung (cgjung)
Date: 2003-11-24 14:45
Message:
Logged In: YES
user_id=175199
Our EJBprovider is derived from the axis one and ovverides
only the necessary bits with regard to container integration.
We did not override the urn shortcuts for handlerclasses
(would be an idea, maybe I will take this as a feature
request ;-), so you would have to use
<parameter name="handlerClass"
value="org.jboss.net.axis.server.EJBProvider"/>
in your wsdd service declaration
But the wsdl should of course be the same, if it isn�t please
let me know or file a bug!
CGJ
----------------------------------------------------------------------
Comment By: Stephane Nicoll (stephane_nicoll)
Date: 2003-11-24 14:15
Message:
Logged In: YES
user_id=448198
I suspect this could be the problem :/
We didn't changed anything because our WSDL should not
change at all. We have a C++ client running on a palm and
the SOAP library is lacking of features. So if we change the
WSDL a bit (names are changing) the client could not
connect anymore.
I hope chaning the provider will note change the generation
of the WSDL
Changing to provider java:/EJB is enough?
Regards,
Stephane
----------------------------------------------------------------------
Comment By: Dr. Christoph Georg Jung (cgjung)
Date: 2003-11-24 14:06
Message:
Logged In: YES
user_id=175199
You should use the org.jboss.net.axis.server.EJBProvider
instead of the axis one (this is what i suspect from your
trace) as our provider is especially designed to cope with the
classloading environment of jboss (and does not employ all
the complicated jndi/narrow stuff which is faster).
CGJ
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=848106&group_id=22866
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development