Please accept apologies in advance if this is a basic/trivial question.
I've looked at the docs and FAQs but am still confused.
I'm running JBoss2.0 with Tomcat3.1.1 in Standalone mode and
I'm getting a ClassCastException calling one of my EJB's Remote methods.
The method returns several of the bean's properties in a wrapper class.
This class is Serializable. The other methods of the EJB, which return
Strings or
primitives all work okay. (I have also tried putting the wrapper class
in to an ArrayList and then casting in the Tomcat client. The remote
method
returns the Collection to the client, but once I try to cast its contents
it still
fails).
I have my EJB (plus the wrapper class) in a JAR in the JBoss deploy
directory. I
also have the full class tree in the <context>WEB-INF/classes directory
in Tomcat.
Here's a snippet of the stack trace
java.lang.ClassCastException:
uk.co.agora.excellence.behaviour.team.model.XLBTeam
at $Proxy14.getTeamDetails(Unknown Source)
at
uk.co.agora.excellence.behaviour.team.web.XLBTeamWebImpl.performUpdate(XLBTeamWebImpl.java:118)
at
uk.co.agora.control.web.ModelManager.notifyListeners(ModelManager.java:59)
at
uk.co.agora.excellence.behaviour.control.web.XLBEventHandler.handleEvent(XLBEventHandler.java:53)
at
uk.co.agora.control.web.EventHandler.processEvent(EventHandler.java:30)
at
uk.co.agora.control.web.EventHandler.processEvent(EventHandler.java:32)
at
uk.co.agora.control.web.RequestProcessor.processRequest(RequestProcessor.java:81)
at
uk.co.agora.control.web.MainServlet.doGet(MainServlet.java:118)
at
uk.co.agora.control.web.MainServlet.doPost(MainServlet.java:82)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Unknown Source)
If anyone can cast any light on this I'd be very grateful.
Thanks,
Syed
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]