aspose file tools*
The moose likes JBoss/WildFly and the fly likes Trouble getting off the ground with JBoss 5.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Trouble getting off the ground with JBoss 5.1" Watch "Trouble getting off the ground with JBoss 5.1" New topic
Author

Trouble getting off the ground with JBoss 5.1

Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436
Hi,

I'm just downloaded and installed JBoss 5.1.0.GA for Mac 10.5.6. "java -version" resolves to 1.5.0_16. When I start my server, I'm getting this error in my stdout file ...



Anyone know what this means and how to resolve it? Thanks, - Dave
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9327
    
109

JBoss AS comes in two variants - one compiled with JDK-1.5 and other with JDK-6. You probably downloaded the JDK-6 version and are using against 1.5. This won't work. You will either have to download the JBoss for JDK-1.5 variant or upgrade the JDK to 1.6.


[My Blog] [JavaRanch Journal]
Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436
When you say "using against 1.5", what do you mean? How do I use against 1.6, which I have installed? - Dave
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9327
    
109

Dave Alvarado wrote:When you say "using against 1.5", what do you mean?

I mean you are running it using JDK 1.5, as you mentioned:


"java -version" resolves to 1.5.0_16


Dave Alvarado wrote:
How do I use against 1.6, which I have installed? - Dave


You will have to set JAVA_HOME to point it to the location where you have installed JDK 1.6. For example, if you have installed it at /home/me/jdk-1.6 then set it as:


Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436
Ok, let me throw you a real curve ball. I have another application server (Resin) installed on my machine that currently relies on Java 1.5, so I want to keep JAVA_HOME where it is. Can I define "JAVA_HOME" in the jboss run.sh script, or is there a more stable way to define Java as 1.6 for the JBoss instance only?

- Dave
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9327
    
109

Dave Alvarado wrote:Can I define "JAVA_HOME" in the jboss run.sh script,


Yes, you can do that. Infact in some of my local instances, i keep doing that or keep passing the correct JAVA_HOME through the command prompt while launching the server.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trouble getting off the ground with JBoss 5.1
 
Similar Threads
Error with Struts 2 and Tiles 2
Error creating bean with name 'datasource': Invocation of init method failed; comp not bound
Problem in starting JBOSS Server
Error starting up my jboss
Class Loading Configuration