Bugs item #523909, was opened at 2002-02-28 08:26
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=523909&group_id=22866

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Thomas Phan (twhphan)
>Assigned to: Scott M Stark (starksm)
Summary: ClassCastException in jboss beta3+tomcat

Initial Comment:
I've a session EJB's method. It returns a custom class 
that implements Serializable. I'm sure that my class 
is legal in the EJB tier before it's marshalled. The 
ClassCastException is throwed in the Tomcat stub.

Note:
-the error happens only on the side from EJB to web, 
i.e. passing my custom class as a parameter to a EJB 
method is OK
-EJB methods can return a standard Java object (e.g. 
String, Object) with no problem (does this relates to 
the web stub's classpath?)
-I tried to cast my custom class to java.lang.Object, 
and get it from the web tier; it doesn't complain as 
long as I don't cast the Object back in the web tier
-I don't get this problem when I'm using JBoss 3 beta 
with an external Tomcat 4.0.1

The error msg:
java.lang.ClassCastException: esb.interfaces.UserData
at $Proxy30.getUser(Unknown Source)
at esb.web.UserAction.perform(Unknown Source)
at 
org.apache.struts.action.ActionServlet.processActionPer
form(ActionServlet.java:1787)
at org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1586)
at org.apache.struts.action.ActionServlet.doPost
(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service
(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service
(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.interna
lDoFilter(ApplicationFilterChain.java:247)

Also refer to: http://main.jboss.org/thread.jsp?
forum=50&thread=9594

----------------------------------------------------------------------

>Comment By: Scott M Stark (starksm)
Date: 2002-02-28 10:18

Message:
Logged In: YES 
user_id=175228

Attach an ear that demonstrates the problem

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=523909&group_id=22866

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to