• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need explanation

 
Mallika Kumar
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm using weblogic 5.10 app server.Recently ,while testing out two components in the application, I came across the ClassCastExcetion. Both the components use two similar beans in their jsp pages,but the package structure for the beans is different. If I executed component1, it would run, but if I wanted to execute component 2, I would get this error. Similarly,if I tested out component2 first, it would run, but running component1 after this would result in the same exception.
The scope of both the beans was application. Next, when I changed the scope of both the beans to session, both executed perfectly. I read about the heirarchy of classloaders in weblogic, but I could not understand what actually was happening here. Could someone please explain to me what was happening here ?
Thanks a lot.
 
Rahul Mahindrakar
Ranch Hand
Posts: 1869
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mallika Kumar,
We have a forum dedicated to Weblogic on the Products category. You will get an appropriate reply in the fourm over there.

------------------
Regds.
Mahindrakar
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!