7 Replies Latest reply on Jan 24, 2009 2:11 PM by Peter Johnson

    JBOSS 5AS does not start with Custom Configuartion path

    Kumar Abhishek Newbie

      Hi,

      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

        • 1. Re: JBOSS 5AS does not start with Custom Configuartion path
          Peter Johnson Master

          The value for -c should be the simple configuration name under jboss_home/server. For example, notice this part of the output:

          Server Home Dir: /home/kumar/Desktop/JBOSS/bin/jboss/server/home/kumar/Desktop/JBOSS/bin/test

          Not what you expected, right?

          My suggestion: copy jboss_home/server/default as jboss_home/server/test, and then use '-c test'.

          If you still insist on running from outside of jboss_home/server, then still do what I suggested, go into the jmx-console and look at the SystemProperties mbean. Note all of the system properties that relate to the location of the server configuration. Then set every one of them on the command line (-Dsys.prop=/the/path).

          • 2. Re: JBOSS 5AS does not start with Custom Configuartion path
            Kumar Abhishek Newbie

            Hi Peter,

            I would like to do something for JBOSS 5AS as described in this wiki

            http://shrubbery.mynetgear.net/wiki/Shared_JBoss_Installation_Directory

            Can you please help me out.

            TIA,

            Abhishek

            • 3. Re: JBOSS 5AS does not start with Custom Configuartion path
              Kumar Abhishek Newbie

              ok so I tried to find out the SystemProperties, and in order to do what I want, I need to change the ServerBaseDir attribute. But the JMX Console shows that the attribute ServerBaseDir in jboss.system has on Read (R) access.

              Now how can I fix this? Any leads?

              • 4. Re: JBOSS 5AS does not start with Custom Configuartion path
                Peter Johnson Master

                I looked at that link - they basically told you to do the same thing I told you. Only the boiled it down to the exact system properties you need to change. Though you might have to play with it - always check the 'xxx Dir' and 'xxx URL' values printed out at the start of the console log.

                The system properties cannot be changed in the jmx-console. I never said to change them there.

                • 5. Re: JBOSS 5AS does not start with Custom Configuartion path
                  Kumar Abhishek Newbie

                  I did not use JMX-console to edit any properties. This is what I tried.

                  kumar@gloss:~/Desktop/JBOSS/bin/jboss$ ./bin/run.sh -b gloss -Djboss.system.ServerBaseDir=/home/kumar/Desktop/JBOSS/bin -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
                  
                  =========================================================================
                  
                  04:24:31,240 INFO [ServerImpl] Starting JBoss (Microcontainer)...
                  04:24:31,241 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812041714)
                  04:24:31,241 INFO [ServerImpl] Bootstrap URL: null
                  04:24:31,241 INFO [ServerImpl] Home Dir: /home/kumar/Desktop/JBOSS/bin/jboss
                  04:24:31,241 INFO [ServerImpl] Home URL: file:/home/kumar/Desktop/JBOSS/bin/jboss/
                  04:24:31,241 INFO [ServerImpl] Library URL: file:/home/kumar/Desktop/JBOSS/bin/jboss/lib/
                  04:24:31,242 INFO [ServerImpl] Patch URL: null
                  04:24:31,242 INFO [ServerImpl] Common Base URL: file:/home/kumar/Desktop/JBOSS/bin/jboss/common/
                  04:24:31,242 INFO [ServerImpl] Common Library URL: file:/home/kumar/Desktop/JBOSS/bin/jboss/common/lib/
                  04:24:31,243 INFO [ServerImpl] Server Name: /home/kumar/Desktop/JBOSS/bin/test
                  04:24:31,243 INFO [ServerImpl] Server Base Dir: /home/kumar/Desktop/JBOSS/bin/jboss/server
                  04:24:31,243 INFO [ServerImpl] Server Base URL: file:/home/kumar/Desktop/JBOSS/bin/jboss/server/
                  04:24:31,243 INFO [ServerImpl] Server Config URL: file:/home/kumar/Desktop/JBOSS/bin/test/conf/
                  04:24:31,243 INFO [ServerImpl] Server Home Dir: /home/kumar/Desktop/JBOSS/bin/jboss/server/home/kumar/Desktop/JBOSS/bin/test
                  04:24:31,243 INFO [ServerImpl] Server Home URL: file:/home/kumar/Desktop/JBOSS/bin/test/
                  04:24:31,243 INFO [ServerImpl] Server Data Dir: /home/kumar/Desktop/JBOSS/bin/jboss/server/home/kumar/Desktop/JBOSS/bin/test/data
                  04:24:31,243 INFO [ServerImpl] Server Library URL: file:/home/kumar/Desktop/JBOSS/bin/test/lib/
                  04:24:31,243 INFO [ServerImpl] Server Log Dir: /home/kumar/Desktop/JBOSS/bin/jboss/server/home/kumar/Desktop/JBOSS/bin/test/log
                  04:24:31,244 INFO [ServerImpl] Server Native Dir: /home/kumar/Desktop/JBOSS/bin/jboss/server/home/kumar/Desktop/JBOSS/bin/test/tmp/native
                  04:24:31,244 INFO [ServerImpl] Server Temp Dir: /home/kumar/Desktop/JBOSS/bin/jboss/server/home/kumar/Desktop/JBOSS/bin/test/tmp
                  04:24:31,244 INFO [ServerImpl] Server Temp Deploy Dir: /home/kumar/Desktop/JBOSS/bin/jboss/server/home/kumar/Desktop/JBOSS/bin/test/tmp/deploy
                  04:24:31,814 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/home/kumar/Desktop/JBOSS/bin/test/conf/bootstrap.xml
                  04:24:32,264 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.IterableTimedVFSCache]
                  04:24:32,272 INFO [VFSCacheFactory] Using VFSCache [IterableTimedVFSCache{lifetime=1800, resolution=60}]
                  04:24:32,552 INFO [CopyMechanism] VFS temp dir: /home/kumar/Desktop/JBOSS/bin/jboss/server/home/kumar/Desktop/JBOSS/bin/test/tmp
                  04:24:32,553 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
                  04:24:33,411 INFO [ServerInfo] Java version: 1.6.0,Sun Microsystems Inc.
                  04:24:33,411 INFO [ServerInfo] Java VM: OpenJDK Client VM 1.6.0-b09,Sun Microsystems Inc.
                  04:24:33,411 INFO [ServerInfo] OS-System: Linux 2.6.24-19-generic,i386
                  04:24:33,448 INFO [JMXKernel] Legacy JMX core initialized
                  04:24:34,966 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)
                  04:24:35,596 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
                  04:24:35,600 INFO [ServerImpl] Shutdown complete
                  Shutdown complete
                  Halting VM
                  


                  As you can see the ServerBaseDir value did not change. Am I missing someting here??

                  • 6. Re: JBOSS 5AS does not start with Custom Configuartion path
                    jaikiran pai Master

                    From what i understand, i think you are looking for this:

                    ./run.sh -b gloss -Djboss.server.base.dir=/home/kumar/Desktop/JBOSS/bin


                    or this

                    ./run.sh -b gloss -Djboss.server.base.dir=/home/kumar/Desktop/JBOSS/bin -c test


                    By the way, though unrelated to your current problem, looks like you haven't set the JAVA_HOME correctly:

                    JBOSS_HOME: /home/kumar/Desktop/JBOSS/bin/jboss

                    JAVA: java


                    • 7. Re: JBOSS 5AS does not start with Custom Configuartion path
                      Peter Johnson Master

                      Also, there is both a server home dir and server home url setting - you must set both of them! (The link you referenced gives the system property name.)

                      Finally, please, please, please, please move your server home dir out of /home/kumar/Desktop/JBOSS/bin/, at least until we fix this issue. For example, use /opt/myservers, or something like that (make sure you chown on that directory). The current location looks too much like where JBOSS_HOME is located and that is making it difficult to easily differentiate between correct and incorrect locations.

                      (The link you mentioned has a perfect example, I still don't know why you are not following that example.)