jboss7.x - Running Jboss 7 using different config folder under standalone-servers -


i'm used jboss 5 deployment schemes use command deploy:

d:\jboss5\bin\run.bat -c zzz 

which deploy whatever in jboss5\server\zzz folder

i have structure on jboss7:

d:\jboss7\ +standalone-servers ++zzz +++modules 

when try run jboss7 this:

d:\jboss7\bin\standalone-servers.bat -c zzz 

it complains following:

org.jboss.modules.modulenotfoundexception: module org.jboss.as.standalone:main not found in local module loader @7559ec47 (roots: d:\jboss7\standalone-servers\modules) @ org.jboss.modules.localmoduleloader.findmodule(localmoduleloader.java:126) @ org.jboss.modules.moduleloader.loadmodulelocal(moduleloader.java:275) @ org.jboss.modules.moduleloader.preloadmodule(moduleloader.java:222) @ org.jboss.modules.localmoduleloader.preloadmodule(localmoduleloader.java:94) @ org.jboss.modules.moduleloader.loadmodule(moduleloader.java:204) @ org.jboss.modules.main.main(main.java:262)

how tell jboss7 right configuration resides in folder zzz?

appreciate answers

by default base directory standalone jboss eap 6 / jboss 7 instance ${jboss_home}/standalone

you can override supplying -djboss.server.base.dir=zzz

you need create zzz/configuration , zzz/deployment directories, , place standalone.xml file in zzz/configuration, start jboss using option.

standalone.bat -djboss.server.base.dir=path_to_zzz 

if jboss configuration file not called standalone.xml need add

-dtarget.appserver.configfile=my_standalone_config.xml 

the jboss instance base directory not need within ${jboss_home} subdirectory tree. in fact better keep somewhere separate allows update / reinstall jboss binaries without overwriting configuration files.

the modules folder should remain within ${jboss_home}

so if ${jboss_home} c:\jboss7 like

c:\jboss7 +bin +modules +standalone <- not used! ... etc  c:\standalone-servers +zzz ++configuration +++standalone.xml ++deployments 

Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -