JBOSS 5AS does not start with Custom Configuartion path
krabhishek Jan 23, 2009 3:49 PMHi,
I want to start Jboss application server with a configuration folder which is not inside the $JBOSS_HOME/server/<config_name> directory. So when I run
kumar@gloss:~/Desktop/JBOSS/bin/jboss$ ./bin/run.sh -b gloss -c /home/kumar/Desktop/JBOSS/bin/test
The server fails to start. I have done nothing with the configuration but I have just copied the default configuration from $JBOSS_HOME/server/ and renamed it to test. Here is the stack trace:
kumar@gloss:~/Desktop/JBOSS/bin/jboss$ ./bin/run.sh -b gloss -c /home/kumar/Desktop/JBOSS/bin/test ========================================================================= JBoss Bootstrap Environment JBOSS_HOME: /home/kumar/Desktop/JBOSS/bin/jboss JAVA: java JAVA_OPTS: -Dprogram.name=run.sh -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true CLASSPATH: /home/kumar/Desktop/JBOSS/bin/jboss/bin/run.jar ========================================================================= 02:11:31,302 INFO [ServerImpl] Starting JBoss (Microcontainer)... 02:11:31,304 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812041714) 02:11:31,305 INFO [ServerImpl] Bootstrap URL: null 02:11:31,305 INFO [ServerImpl] Home Dir: /home/kumar/Desktop/JBOSS/bin/jboss 02:11:31,305 INFO [ServerImpl] Home URL: file:/home/kumar/Desktop/JBOSS/bin/jboss/ 02:11:31,305 INFO [ServerImpl] Library URL: file:/home/kumar/Desktop/JBOSS/bin/jboss/lib/ 02:11:31,306 INFO [ServerImpl] Patch URL: null 02:11:31,306 INFO [ServerImpl] Common Base URL: file:/home/kumar/Desktop/JBOSS/bin/jboss/common/ 02:11:31,307 INFO [ServerImpl] Common Library URL: file:/home/kumar/Desktop/JBOSS/bin/jboss/common/lib/ 02:11:31,307 INFO [ServerImpl] Server Name: /home/kumar/Desktop/JBOSS/bin/test 02:11:31,307 INFO [ServerImpl] Server Base Dir: /home/kumar/Desktop/JBOSS/bin/jboss/server 02:11:31,307 INFO [ServerImpl] Server Base URL: file:/home/kumar/Desktop/JBOSS/bin/jboss/server/ 02:11:31,307 INFO [ServerImpl] Server Config URL: file:/home/kumar/Desktop/JBOSS/bin/test/conf/ 02:11:31,308 INFO [ServerImpl] Server Home Dir: /home/kumar/Desktop/JBOSS/bin/jboss/server/home/kumar/Desktop/JBOSS/bin/test 02:11:31,308 INFO [ServerImpl] Server Home URL: file:/home/kumar/Desktop/JBOSS/bin/test/ 02:11:31,308 INFO [ServerImpl] Server Data Dir: /home/kumar/Desktop/JBOSS/bin/jboss/server/home/kumar/Desktop/JBOSS/bin/test/data 02:11:31,308 INFO [ServerImpl] Server Library URL: file:/home/kumar/Desktop/JBOSS/bin/test/lib/ 02:11:31,308 INFO [ServerImpl] Server Log Dir: /home/kumar/Desktop/JBOSS/bin/jboss/server/home/kumar/Desktop/JBOSS/bin/test/log 02:11:31,309 INFO [ServerImpl] Server Native Dir: /home/kumar/Desktop/JBOSS/bin/jboss/server/home/kumar/Desktop/JBOSS/bin/test/tmp/native 02:11:31,309 INFO [ServerImpl] Server Temp Dir: /home/kumar/Desktop/JBOSS/bin/jboss/server/home/kumar/Desktop/JBOSS/bin/test/tmp 02:11:31,309 INFO [ServerImpl] Server Temp Deploy Dir: /home/kumar/Desktop/JBOSS/bin/jboss/server/home/kumar/Desktop/JBOSS/bin/test/tmp/deploy 02:11:31,918 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/home/kumar/Desktop/JBOSS/bin/test/conf/bootstrap.xml 02:11:32,492 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.IterableTimedVFSCache] 02:11:32,501 INFO [VFSCacheFactory] Using VFSCache [IterableTimedVFSCache{lifetime=1800, resolution=60}] 02:11:32,784 INFO [CopyMechanism] VFS temp dir: /home/kumar/Desktop/JBOSS/bin/jboss/server/home/kumar/Desktop/JBOSS/bin/test/tmp 02:11:32,805 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled. 02:11:33,925 INFO [ServerInfo] Java version: 1.6.0,Sun Microsystems Inc. 02:11:33,925 INFO [ServerInfo] Java VM: OpenJDK Client VM 1.6.0-b09,Sun Microsystems Inc. 02:11:33,925 INFO [ServerInfo] OS-System: Linux 2.6.24-19-generic,i386 02:11:33,963 INFO [JMXKernel] Legacy JMX core initialized 02:11:35,774 ERROR [AbstractKernelController] Error installing to Start: name=ProfileService state=Create org.jboss.profileservice.spi.NoSuchProfileException: Failed to obtain deployment repository for: org.jboss.profileservice.spi.ProfileKey@7184c583[domain=default,server=default,name=/home/kumar/Desktop/JBOSS/bin/test] at org.jboss.system.server.profileservice.repository.ProfileServiceImpl.getProfile(ProfileServiceImpl.java:166) at org.jboss.system.server.profileservice.repository.ProfileServiceImpl.start(ProfileServiceImpl.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59) at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150) at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241) at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47) at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109) at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70) at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221) at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598) at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062) at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774) at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540) at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:331) at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:309) at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130) at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:76) at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:91) at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:161) at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:144) at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:394) at org.jboss.Main.boot(Main.java:209) at org.jboss.Main$1.run(Main.java:547) at java.lang.Thread.run(Thread.java:636) Caused by: java.io.FileNotFoundException: Profile contains no deployers dir: /home/kumar/Desktop/JBOSS/bin/jboss/server/home/kumar/Desktop/JBOSS/bin/test/deployers at org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository.load(SerializableDeploymentRepository.java:797) at org.jboss.system.server.profileservice.repository.FileProfileRepository.getProfileDeploymentRepository(FileProfileRepository.java:135) at org.jboss.system.server.profileservice.repository.ProfileServiceImpl.getProfile(ProfileServiceImpl.java:158) ... 36 more Failed to boot JBoss: java.lang.IllegalStateException: Incompletely deployed: *** DEPLOYMENTS IN ERROR: Name -> Error ProfileService -> org.jboss.profileservice.spi.NoSuchProfileException: Failed to obtain deployment repository for: org.jboss.profileservice.spi.ProfileKey@7184c583[domain=default,server=default,name=/home/kumar/Desktop/JBOSS/bin/test] *** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State} ProfileServiceBootstrap -> ProfileService{Installed:**ERROR**} at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:290) at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174) at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:148) at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:394) at org.jboss.Main.boot(Main.java:209) at org.jboss.Main$1.run(Main.java:547) at java.lang.Thread.run(Thread.java:636) 02:11:36,396 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true 02:11:36,401 INFO [ServerImpl] Shutdown complete Shutdown complete Halting VM
Please let me know where I am going wrong.
Thanks in advance.
Regards,
Abhishek