// Enclosing the whole process in a single `try' block is not an ideal way // to do exception handling, but I don't want to clutter the program up // with catch blocks try { // Get a naming context InitialContext jndiContext = new InitialContext(pr); // ********************PROBLEM on this statement.....
it is giving error as,
Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/logging/Log ger at org.jnp.interfaces.NamingContext.<clinit>(NamingContext.java:102) 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 InterestClient.main(InterestClient.java:42)
can any one help me out.
LazyCoder
Greenhorn
Joined: Jul 08, 2004
Posts: 11
posted
0
I think the problem is something with necessary jar files. Checkout whethere u have included all the jar files???
There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.