Discussion Locked

ClassCastException

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have been working on JSPs javabeans and EJBs One of the common errors received is ClassCastException when a JSP is trying to communicate with a javabean. To solve this problem I have to shut down my weblogic server and start it up again and this consumes a lot of time as I have about 70
ejbs deployed.

I would appreciate it if you could let me know under what circumstances does this error occur.

3 replies

by sravankumars

can u plz tell at what point u r getting this error..
for example if u r using the same object names of different beans ..u will get this error...
i my self solved this problem by renaming the objects of the classes..
try this..so u need not downthe server..

by nvjain73

Yes this is the right answer.
In fact I was using the same Java Bean across multiple JSP's with the same object name which caused the problem.
All the JSPs need to have unique names for the same class.

This discussion is closed to new replies.