How to overcome classCastException?

Discussions

Web tier: servlets, JSP, Web frameworks: How to overcome classCastException?

  1. How to overcome classCastException? (1 messages)

    Hi,

      From JSP i am calling a bean, to call that bean
      i need to import a package which has the necessary interfaces. When i use this page, the packages are imported and a second copy is created in the jsp engine's working dir. This in turn gives me a classcast exception. Can anyone help me to solve this problem ?
  2. What server are you using?
    if you´re using weblogic you must put the beans into the serverclasses, better in a jar file. That makes the Weblogic load the beans for any application that needed.