wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Servlet accessing EJB through Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Servlet accessing EJB through "business delegate" problem" Watch "Servlet accessing EJB through "business delegate" problem" New topic
Author

Servlet accessing EJB through "business delegate" problem

Buk Lau
Greenhorn

Joined: Nov 06, 2002
Posts: 4
Hi,
I used JBuilder X to create my EJBs and a session facade to access my entity beans and a "business delegate" in front of the session facade so that my client code doesn't have to worry about the EJB details. I am using JBoss 3.2.3 to host the EJBs. Everything compiles fine, but at runtime, I had a "java.lang.NoClassDefFoundError: org/jnp/interfaces/NamingContextFactory" error. I then added jnp-client.jar to my classpath and now I'm getting "java.lang.NoClassDefFoundError: org/jboss/logging/Logger" error. I wanted my client code to not have to worry about the Application Server related details. What am I doing wrong?
Thanks in advance -
Buk
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
Hi,
wich server are u using to hold your web app, or maybe it's not a web app(don't think so). If it's a web application all you have to do is to set to the classpath of your web server(problably tomcat/catalina) to recognize the jboss client api. Another option(problably better) is to download the jboss version that cames already budled with tomcat cause this should work fine without any necessity of aditional configuration.
regards.
 
Consider Paul's rocket mass heater.
 
subject: Servlet accessing EJB through "business delegate" problem
 
Similar Threads
Do we need to show BD & Service Locator in Sequence Diagrams?
stateful session bean - please answer
Business Delegate/Session Facade Question
I passed the partII by 87%
using session facade vs business delegate