File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Running JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Running JBoss" Watch "Running JBoss" New topic
Author

Running JBoss

bharat kumar
Greenhorn

Joined: Jul 16, 2003
Posts: 11
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.
norman richards
Author
Ranch Hand

Joined: Jul 21, 2003
Posts: 367
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...
bharat kumar
Greenhorn

Joined: Jul 16, 2003
Posts: 11
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.
norman richards
Author
Ranch Hand

Joined: Jul 21, 2003
Posts: 367
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!
Ron Hamilton
Greenhorn

Joined: Sep 10, 2002
Posts: 16
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.
Abhai Chaudhary
Greenhorn

Joined: Jun 21, 2004
Posts: 1
Bharat,

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.

Cheers
-Abhai
Mary Choi
Greenhorn

Joined: Jan 13, 2005
Posts: 3
Bharat,
Abhai was right. I've came across the same error... moving the j2ee.jar to the end of the classpath worked.
Mary
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Running JBoss