wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes error while invoking jndi list in jmx - console Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "error while invoking jndi list in jmx - console" Watch "error while invoking jndi list in jmx - console" New topic
Author

error while invoking jndi list in jmx - console

krishna prasad gunasekaran
Ranch Hand

Joined: Jul 25, 2006
Posts: 158
when i tried to invoke list() method in jmx-console, jboss threw the following error



i have configured IBM jre in the jboss class path, but still it throws error. looking at the log, anything related to ant?
[ November 26, 2008: Message edited by: Ulf Dittmer ]

have a great day,
krishna prasad
vanlalhmangaiha khiangte
Ranch Hand

Joined: Sep 11, 2006
Posts: 170
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK


What about your JAVA_HOME ? Is it configure ?
vanlalhmangaiha khiangte
Ranch Hand

Joined: Sep 11, 2006
Posts: 170
Have you configure your JAVA_HOME ?
Through command prompt .. type set
e.g. C:\set

Tell us what JAVA_HOME is configure to ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41621
    
  55
Having just edited the classpath with all those jar files, it looks quite buggy. There are lots of spaces all over the place when there shouldn't be any. I'd also remove the trailing "/" characters after many of the file names.


Ping & DNS - my free Android networking tools app
krishna prasad gunasekaran
Ranch Hand

Joined: Jul 25, 2006
Posts: 158
i have set my JAVA_HOME environment variable to my jdk directory,
C:\Program Files\Java\jdk1.5.0_05
but jboss still throws the same error.

when i tried to check what my java_home is, using System.getProperty("java.home"), it displayed D:\Program Files\IBM-AppClient\java\jre, which is my jboss's installed jre path.

what's the problem? why isn't my JAVA_HOME pointing to my jdk installation directory and pointing to my jboss's installed jre path instead?
[ November 27, 2008: Message edited by: krishna prasad gunasekaran ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41621
    
  55
Did you log out after making that change? It may not take effect until you do that.
krishna prasad gunasekaran
Ranch Hand

Joined: Jul 25, 2006
Posts: 158
yes Ulf, i did restart my system. still java_home is jboss's installed jre path and not the one given in environment variable.
but i got the answer for my principal problem - the jsp compilation problem.
i googled and got it.
i just added tools.jar in my jboss's installed jre's path. that's it. it works.
please clear me with that java_home issue.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

How are you starting JBossAS? Are you using run.bat? Is JAVA_HOME being reset within there? If you are starting it as a service, what tool are you using to do that, and how have you set JAVA_HOME within that tool's configuration settings?


JBoss In Action
krishna prasad gunasekaran
Ranch Hand

Joined: Jul 25, 2006
Posts: 158
i don't start jboss with run.bat. i use eclipse IDE. i have configured my jboss in eclipse. i start jboss from eclipse. i haven't set JAVA_HOME in my eclipse jboss server. i have set it as environment variable.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

Try this. Register a JDK with Eclipse, set the JDK as the default, and try again. Also verify in the Console View that the JBossAS is using the JDK.
 
jQuery in Action, 2nd edition
 
subject: error while invoking jndi list in jmx - console