File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WebSphere EJB Lookup Problems ????

 
vjy chin
Ranch Hand
Posts: 279
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 142
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3329
8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, vjy !

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

regards,
MZ
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic