ClasscastException : Solution to your problem...
Posted By:
SANDEEP_THOOL
Posted On:
Sunday, December 16, 2001 11:55 PM
Actually what is happening here is that
the CLIENT code is not able to find
the HOME class. So, effectively speaking
there is no class to NARROW. And that
is why the ClassCastException. This is a JDK / JNDI problem, not Weblogic's...
Solution
--------
When you 'run' your CLIENT code, instead
of simply using.....
C:>java AccountClient
Try using the following command.....
C:>java -cp AccountClientApp.jar AccountClient
Where AccountClientApp.jar is the name
of the Client JAR file which was
returned while deploying your EJB.
What is being done here is that the
Application Client Proxy Jar file is
being provided in the CLASSPATH while
running the client application.
Let me know, if the above works....