-
1. Re: Getting ClassCastException when returning Object from se
hstech Sep 11, 2001 9:28 PM (in response to [buckman])Hi buckman,
Your going to have to post some code.
Does the return class implement Serializable, or at least extend a class that does?
Cheers,
Aaron. -
2. Re: Getting ClassCastException when returning Object from se
oli306 Mar 6, 2002 5:36 AM (in response to [buckman])hi,
did you finally find out what was the problem ?
I have exactly the same issue.
thanks. -
3. Re: Getting ClassCastException when returning Object from se
oli306 Mar 6, 2002 7:39 AM (in response to [buckman])actually, by calling the session ejb from my servlet, I retrieve an object of type OBJECT instead of type 'myclass'.
But if I call methods on this object, I get the right result.
If I ask for class name, It says 'myclass' !!!
But when It comes to casting: class cast exception.
very strange. It's really a 'myclass' object but I cannot cast it to 'myclass'.
any idea on this topic ? -
4. Re: Getting ClassCastException when returning Object from se
bebe1234 Mar 12, 2002 8:14 AM (in response to [buckman])Hi!
I've faced the very same problem. Have you find any solution? At the moment I think that it is an issue of classloaders. But is it a bug or a feature??
Has anyone solved this ClassCastException issue? I'm going with JBoss 2.4.3.
Cheers, Pekka -
5. Re: Getting ClassCastException when returning Object from se
oli306 Mar 12, 2002 10:08 AM (in response to [buckman])I found a half-solution.
If I run tomcat and jboss on the same machine, just add the deployed jar file to the classpath.
But for 2 different machines, that's not a solution.
And, it's not very pretty.
I know a bug has been reported: search for 'A BUG about ClassCastException in jboss-3.0.0beta_tomcat-4.0.2.tgz ' in this forum. -
6. Re: Getting ClassCastException when returning Object from se
malhar Mar 13, 2002 6:23 AM (in response to [buckman])Could you please tell me how do i set the classpath to the jar which i suppose to deploy?
There would be 2 jar files for catalina and jboss so what would be the correct way of setting up these classpath to the sepearte containers (catalina and jboss) ?