aspose file tools*
The moose likes Websphere and the fly likes WebSphere EJB Lookup Problems ???? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "WebSphere EJB Lookup Problems ????" Watch "WebSphere EJB Lookup Problems ????" New topic
Author

WebSphere EJB Lookup Problems ????

vjy chin
Ranch Hand

Joined: Feb 17, 2005
Posts: 279
Hi all,

I am very new to Websphere, so please answer my questions in easy words. Thanks for that.

I have Websphere 6.0.0.1 version. I am also using DB2 as my database. I used websphere application studio 5.1.1 as teh developer tool.

I need to do the following

1. Jsp to connect to Servlet - works fine
2. Servlet to LoginCmdHdlr.java - works fine
3. LoginCmdHdlr.java to CbApptierCtrlBean.java via CbApptierCtrlHome.java (using WebTierEjbHomeFactory.java class and one property file) - works fine
4. From CbApptierCtrlBean.java to LoginHelper.java - works fine
5. From LoginHelper.java, I need to look up CsMembersMasterHome.java class using AppTierEjbHomeFactory.java class and get the look up correct, so that Iw ill be able to access the bean to get the values from the database - This is where I am having problems

I am attaching all the relevent files

web.xml
-------

<web-app id="WebApp">
<display-name>TrialWeb</display-name>
<servlet>
<servlet-name>WebCtrlServlet</servlet-name>
<display-name>WebCtrlServlet</display-name>
<servlet-class> com.xxx.yyy.webtier.WebCtrlServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>WebCtrlServlet</servlet-name>
<url-pattern>/WebCtrlServlet</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>

LoginHelper.java




AppTierEjbHomeFactory.java



CsMembersMasterHome.java



CsMembersMasterBean.java



ejb-jar.xml


ibm-ejb-jar-bnd.xmi




The error Message I am getting is (INSIDE SystemOut.log File):::




The error Message I am getting is (INSIDE SystemErr.log File):::






Sorry, I made this post too long, but I just wanted to make sure you had enough information. I also apologize if I am not being specific, since I started with this Websphere only last week and I need to configure this immediately.

P.S - I tried to change the web.xml, ejb-jar.xml and the .xmi files, but i was not able to preserve the format. Please let me know how I should be able to do it. Thanks



Thanks for your help.
[ September 13, 2005: Message edited by: vjy chin ]
Lin Feng
Ranch Hand

Joined: Dec 11, 2002
Posts: 142
Please check your data source configuration. Your exception log shows the data source JNDI name is binded with an EJB other than a connection factory.

Your code is fine. The exception was thrown when it executed the findByUsrenameAndPassword method
Thanks

Lin
Mikalai Zaikin
Ranch Hand

Joined: Jun 04, 2002
Posts: 3233
    
    7
Hey, vjy !

Did you manage to solve the problem ? I have exactly the same ...

regards,
MZ


Free SCDJWS 5.0 Study Guide - SCDJWS 5.0 Quiz (How to get SCDJWS 5.0 Quiz)
Java Platform, Enterprise Edition 6 Web Services Developer Certified Expert Exam Study Guide and Quiz
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WebSphere EJB Lookup Problems ????