Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet accessing EJB through "business delegate" problem

 
Buk Lau
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic