mohan dodderi wrote:Hi Rahman
i am using single jar file which comprises WeatherBean.and using the same jar file in ejb and servlet. also ejb is running in remote location. that means running in diff system.and Wheather bean has SerialUID. any other clues.
regards
Mohana dodderi
Funny you mention this; came across this post in a Google search. I'm having the same issue. Stateless bean called via a delegate that retrieves the EJB local interface. When returning an object that wraps a File to the calling servlet get the classcastexception and I am 100% certain it is not a JBoss class loading issue.
When I don't wrap the File and just pass the File object back it works. I don't see how wrapping the File makes any difference. The wrapper implements serializable....
Obviously my situation is a bit more complicated but I believe we are experiencing the same problem underneath the layers.
Of course it's typical any time I search for issues via Google I come across boards where the question has never been answered from years ago!