Servlet accessing EJB through "business delegate" problem
Joined: Nov 06, 2002
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
Joined: Jan 06, 2001
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.