[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: running EJB pplication in jboss giving NoClassDefFoundEr

Shiveeta do-not-reply at jboss.com
Fri Apr 25 05:20:52 EDT 2008


ok will chk that out.
However whil running the ant command i got a message indicating that the classpath is being picked  :- <Using base Classpath>

 . 
  | D:\shivi_wrk_ejb\documentation-example\examples\build>ant intro-interest-client
  | Buildfile: build.xml
  | 
  | validate:
  | 
  | fail_if_not_valid:
  | 
  | init:
  |      [echo] Using JBoss directory=D:\downloads\JBoss\jboss-4.2.2.GA\jboss-4.2.2.
  | GA
  |      [echo] Using base classpath=D:\downloads\JBoss\jboss-4.2.2.GA\jboss-4.2.2.G
  | A\client\jboss-j2ee.jar;D:\downloads\JBoss\jboss-4.2.2.GA\jboss-4.2.2.GA\client\
  | jaas.jar;D:\downloads\JBoss\jboss-4.2.2.GA\jboss-4.2.2.GA\client\jbosssx-client.
  | jar;D:\downloads\JBoss\jboss-4.2.2.GA\jboss-4.2.2.GA\client\jboss-client.jar;D:\
  | downloads\JBoss\jboss-4.2.2.GA\jboss-4.2.2.GA\client\jnp-client.jar;D:\downloads
  | \JBoss\jboss-4.2.2.GA\tomcat\lib\servlet.jar
  |      [echo] Using Source directory=D:\shivi_wrk_ejb\documentation-example\exampl
  | es
  |      [echo] Using Build directory=D:\shivi_wrk_ejb\documentation-example\example
  | s/build-examples
  | 
  | intro-interest-client:
  | 
  | compile:
  | 
  | interest-client:
  |      [java] Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss
  | /logging/Logger
  |      [java]     at org.jnp.interfaces.NamingContext.<clinit>(NamingContext.java:
  | 160)
  |      [java]     at org.jnp.interfaces.NamingContextFactory.getInitialContext(Nam
  | ingContextFactory.java:56)
  |      [java]     at javax.naming.spi.NamingManager.getInitialContext(NamingManage
  | r.java:667)
  |      [java]     at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.
  | java:247)
  |      [java]     at javax.naming.InitialContext.init(InitialContext.java:223)
  |      [java]     at javax.naming.InitialContext.<init>(InitialContext.java:175)
  |      [java]     at org.jboss.docs.interest.InterestClient.main(InterestClient.ja
  | va:27)
  |      [java] Java Result: 1
  | 
  | BUILD SUCCESSFUL
  | Total time: 1 second

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146750#4146750

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146750



More information about the jboss-user mailing list