Kaizar Laxmidhar
Kaizar Laxmidhar

Reputation: 869

Running two Jboss instances of different versions simultaneously

My application is scaled across two jboss versions Jboss 4 and Jboss 7. Jboss 4 intance is running through eclipse. When I try to run Jboss 7 throught [JBOSS_HOME]/bin/standalone.bat it doesn't start and shows the below error.

Calling "C:\jboss-as-7.1.1.Final\bin\standalone.conf.bat" WARNING JBOSS_HOME may be pointing to a different installation - unpredictable results may occur. Could not locate "C:\jboss\jboss-eap-4.3\jboss-as\jboss-modules.jar". Please check that you are in the bin directory when running this script. Press any key to continue . . .

What am I missing here?

Upvotes: 0

Views: 2181

Answers (3)

Kaizar Laxmidhar
Kaizar Laxmidhar

Reputation: 869

Problem is resolved by configuring Jboss 7 via jboss developer studio plugin in eclipse. web ports of both Jboss 4 and Jboss 7 should be different as shown in the below screenshot.

http://postimg.org/image/a6782xcoj/

Upvotes: 0

Joshua Wilson
Joshua Wilson

Reputation: 2526

If you are trying to test running your code in JBoss 4 and JBoss 7 and having them talk to simulate the server environment then you may want to set up VMs locally. That would be closer to what you will have when they are deployed.

Upvotes: 0

TeeJ
TeeJ

Reputation: 208

standalone.bat tries to check if JBOSS_HOME variable is set and if not it tries to set it.

if "x%JBOSS_HOME%" == "x" (
set "JBOSS_HOME=%RESOLVED_JBOSS_HOME%"
) 

Jboss 7 requires jboss-modules.jar which is located under jboss directory. In your case it appears that JBoss 4 is already setting JBOSS_HOME to "C:\jboss\jboss-eap-4.3\jboss-as\". This is causin the problem.

Upvotes: 1

Related Questions