Hi, i have installed JBoss 3.2.3, when i run the batch run in bin directory i am getting the following error. Before running JBoss do i need to set any classpath or what, Error Message is : =============================================================================== . JBoss Bootstrap Environment . JBOSS_HOME: D:\jboss-3.2.3\bin\\.. . JAVA: C:\j2sdk1.4.2\bin\java . JAVA_OPTS: -Dprogram.name=run.bat . CLASSPATH: ;C:\j2sdk1.4.2\lib\tools.jar;D:\jboss-3.2.3\bin\\run.jar . =============================================================================== . java.lang.NoClassDefFoundError: com/sun/jmx/mbeanserver/GetPropertyAction at org.jboss.mx.util.ObjectNameFactory.create(ObjectNameFactory.java:34) at org.jboss.system.server.ServerImpl.<clinit>(ServerImpl.java:65) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct orAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC onstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:308) at java.lang.Class.newInstance(Class.java:261) at org.jboss.system.server.ServerLoader.createServer(ServerLoader.java:2 54) at org.jboss.system.server.ServerLoader.load(ServerLoader.java:233) at org.jboss.Main.boot(Main.java:142) at org.jboss.Main$1.run(Main.java:395) at java.lang.Thread.run(Thread.java:534) Press any key to continue . . . Thanks in advance, Bharat.
You should not need to set any environment variables before running. If you have any set, you might want to unset them. Somehow you are getting Sun's JMX instead of the JBoss one. And that's something that might happen if you had some old CLASSPATH values around. I would expect to see tools.jar AFTER run.jar. But, you are running on Windows, so I can't really help with the specifics...
Joined: Jul 16, 2003
Hi norman, Thanks for the reply. I have reinstalled the j2sdk1.4.2_03. Now it works fine, i think my java was corrupted or there is some problem. because while i was running with j2sdk1.4.2\bin\java i am getting this error but when i run j2sdk1.4.2_03\bin\java it is o.k Thanks, Bharat.
Joined: Jul 21, 2003
I'm curious if all the "JBoss bootstrap variables" look the same when you start up after re-installing. I don't really know what was wrong, (I'm not familiar with Java deployment issues on Windows) but I'm glad it is working!
Originally posted by norman richards: You should not need to set any environment variables before running. If you have any set, you might want to unset them. Somehow you are getting Sun's JMX instead of the JBoss one. And that's something that might happen if you had some old CLASSPATH values around. I would expect to see tools.jar AFTER run.jar. But, you are running on Windows, so I can't really help with the specifics...
That's funny. Since I originally didn't have JAVA_HOME=c:\j2sdkeeX.X, I received a warning message when first starting the server. However, after I set that variable, I no longer saw the message.
Always try to find out the correct reason for any problem, Installing a new JDK worked for you but this can not be a permanent solution. Norman was right that you were getting Sun's implementation of JMX instead of JBoss'. You might have j2ee.jar in your classpath before JBoss classpath.