• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem running Budi Kurniawan's sample EJB  RSS feed

 
rahul bivalkar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am trying to run the EJBs on the following website:
http://www.fawcette.com/javapro/2003_01/online/j2ee_bkurniawan_01_09_03/default_pf.aspx

Everything works fine until i try to test the EJB using the Client application

I am running JBoss4.0.1 and JDK 1.4.2

I get the following errors.

C:\workplace>java -classpath C:\jboss\jboss-4.0.1sp1\client\jboss-client.jar;C:\
jboss\jboss-4.0.1sp1\client\jnp-client.jar;. Client "golden retriever"
Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/logging/Log
ger
at org.jnp.interfaces.NamingContext.<clinit>(NamingContext.java:104)
at org.jnp.interfaces.NamingContextFactory.getInitialContext(NamingConte
xtFactory.java:41)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
62)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243
)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
at Client.main(Client.java:25)

-----------------------------------------------------------

I do not know what is going on. All help is appreciated

thanks in advance
rahul
 
Damanjit Kaur
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thats a classpath problem. you need to specify commons-logging.jar file too in classpath.
 
rahul bivalkar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
thanks for the invaluable tip. Actually I got it to work even without putting that. I just ran in on JBoss 2.4.4 and it worked out. But your solution is probably elegant because it solves it in JBoss 4.0.1.

Now I need help on running the Tassie Online Bookstore. If anybody already has a set of instructions on how to go about it, that would be great. I am studying the book ( Budi Kurniawan's J2EE book )right now and trying to set it up.

All help appreciated

thanks so much
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!