Your going to have to post some code.
Does the return class implement Serializable, or at least extend a class that does?
did you finally find out what was the problem ?
I have exactly the same issue.
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 ?
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.
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.
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) ?