File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss and the fly likes Help Regarding Accessing EJB from a java Client Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "Help Regarding Accessing EJB from a java Client" Watch "Help Regarding Accessing EJB from a java Client" New topic
Author

Help Regarding Accessing EJB from a java Client

Jay Sinha
Greenhorn

Joined: Jun 03, 2004
Posts: 2
HI Everyone,
1. The Problem I am facing is that whenever i try running an ejb deployed on my weblogic server,, from a simple java Client ,, i get an Exception called as ClassCastException, After searching rigourously on net found some words like,, different Class loader concept and etc etc. Can someone please elaborate on that.
2. Also if anyone has an idea about how to create ejb-client.jar in Weblogic server.. Please revert as soon as possible.

Thanks in Advance

Jay Sinha


Regards
Jay Sinha
Scott Duncan
Ranch Hand

Joined: Nov 01, 2002
Posts: 363
The Problem I am facing is that whenever i try running an ejb deployed on my weblogic server,, from a simple java Client ,, i get an Exception called as ClassCastException, After searching rigourously on net found some words like,, different Class loader concept and etc etc. Can someone please elaborate on that.


Can you give a bit more info like a code snippet. Are you casting to the Home interface for the lookup? If so, what is the object returning? Set it to an Object and then see what the value of Object.class.getName().


No more rhymes! I mean it!<br /> <br />Does anybody want a peanut?
 
 
subject: Help Regarding Accessing EJB from a java Client
 
Threads others viewed
EJB
Application Server vs JUnit Performance Issue
Accessing Entity Beans by JSP client in Weblogic 6.1
EJB3 client application container
EJB Client
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com