• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

Please help me about deploy jboss

Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I deployed my project using Jboss3.0.4 ,I copied my file.jar into folder C:\Jboss3.0.4\server\default\deploy .After that I compile my Client.java with command:

C:\exJboss\workplace>javac -classpath c:\jboss3.0.4\client\jboss-j2ee.jar;c:\jboss3.0.4\client\jboss-client.jar;. Client.java
But I can not run my Client.class with command :
C:\exJboss\workplace>java -classpath c:\jboss3.0.4\client\jboss-j2ee.jar;c:\jboss3.0.4\client\jnp-client.jar;c:\jboss3.0.4\client\jboss-client.jar;. Client "golden retriever"
I have Error :
Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/logging/Logger
at org.jnp.interfaces.NamingContext.<clinit>(NamingContext.java:92)
at org.jnp.interfaces.NamingContextFactory.getInitialContext(NamingContextFactory.java:42)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at Client.main(Client.java:25)
Please help me, thanks
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Include this file jbossall-client.jar and jnet.jar or also check setting in jndi.properties file which must be match to your Context properties in your class.
I had this problem but it was solved with the classpath setting.
God is a comedian playing for an audience that is afraid to laugh - Voltair. tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
    Bookmark Topic Watch Topic
  • New Topic