9 Replies Latest reply on Apr 24, 2008 5:19 AM by prasanthijboss

    org.jboss.deployment.DeploymentException: url file:/C:/jboss

    carlos.navarro

      Hi all...

      My name is Carlos Navarro and I'm totally new to JBoss (although I've been working several years on the J2EE specification over Weblogic).

      I have the following problem:

      I downloaded the last version of JBoss as a zip file and unpacked it in c:\jboss directory, as it said in the getting started document.

      Then I went to the bin directory and ran the "run.bat" file, and it started to load but suddenly the execution stops with this exception:

      Failed to boot JBoss:
      org.jboss.deployment.DeploymentException: url file:/C:/jboss/server/default/conf/jboss-service.xml could not be opened, does it exist?
      at org.jboss.deployment.DeploymentInfo.(DeploymentInfo.java:211)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:770)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
      er.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
      java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      at org.jboss.Main.boot(Main.java:200)
      at org.jboss.Main$1.run(Main.java:464)
      at java.lang.Thread.run(Thread.java:595)
      21:12:09,625 INFO [Server] Runtime shutdown hook called, forceHalt: true
      21:12:09,625 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
      21:12:09,625 INFO [Server] Shutdown complete
      Shutdown complete
      Halting VM

      I know the jboss-service.xml file is missing, but as the getting started said "you could be running jboss out of the box" I kept browsing the forums and googling about it, but found no solution to it. Some said it was some sort of bug, and that with the java web start installer, this would be fixed. So I decided to download through java web start, and I got the same results. So...are users intended to create their own jboss-service.xml in order to start for the first time JBoss???...I assume jboss-service.xml is the equivalent to config.xml in weblogic.

      Thanx for reading this post, and for your kind answers....

      Carlos Navarro.

        • 1. Re: org.jboss.deployment.DeploymentException: url file:/C:/j
          kaobe

          Hi Carlos,

          which version of JBoss did you download and where from? The jboss-service.xml ist an important part of the JBoss configuration and has to be shipped with the application server. Could it be that this exists and is not accessible for the user starting the server?

          Peter

          • 2. Re: org.jboss.deployment.DeploymentException: url file:/C:/j
            peterj

            Besides the version number, could you also report the size of the zip file and the size of the installation directory? For 4.0.4.GA, the zip file should be 73.8MB, and the installation directory should be 86.1MB (as reported by Explorer).

            Did you run md5sum after downloading the file to verify that it was correct?

            Also, what folders are in the c:/jboss/server/default directory? What files are in c:/jboss/server/default/conf? See http://docs.jboss.org/jbossas/jboss4guide/r5/html/ch01.html for a description of the directories and files that come with JBoss, do any others appear missing?

            • 3. Re: org.jboss.deployment.DeploymentException: url file:/C:/j
              carlos.navarro

               

              "kaobe" wrote:
              Hi Carlos,

              which version of JBoss did you download and where from? The jboss-service.xml ist an important part of the JBoss configuration and has to be shipped with the application server. Could it be that this exists and is not accessible for the user starting the server?

              Peter


              Hi kaobe, thank you for answering this message!

              The version I downloaded is 4.0.4 and comes from www.jboss.com. Actually, first I thought It could be part of the zip file I downloaded and tried the java web start installer, but got the same results. If I go to C:/jboss/server/default/conf, efectively, there is no jboss-service.xml, and therefore I cannot start the default server. Any ideas????

              Thank you very much!!!

              • 4. Re: org.jboss.deployment.DeploymentException: url file:/C:/j
                carlos.navarro

                 

                "PeterJ" wrote:
                Besides the version number, could you also report the size of the zip file and the size of the installation directory? For 4.0.4.GA, the zip file should be 73.8MB, and the installation directory should be 86.1MB (as reported by Explorer).

                Did you run md5sum after downloading the file to verify that it was correct?

                Also, what folders are in the c:/jboss/server/default directory? What files are in c:/jboss/server/default/conf? See http://docs.jboss.org/jbossas/jboss4guide/r5/html/ch01.html for a description of the directories and files that come with JBoss, do any others appear missing?


                Thanks Peter for taking your time in answering.

                Right now I'm at work, and I can't check the size of what you're asking me to report.

                What I can tell you, is that there are no files in this directory C:/jboss/server/default/conf

                Do you suggest I use a lesser version of jboss???

                Hehe...what I can tell, is that my firs approach with JBoss has been all but friendly :'(

                Thank you very much...

                • 5. Re: org.jboss.deployment.DeploymentException: url file:/C:/j
                  peterj

                  How did you unzip the zip file? You did not, by any chance, drag all of the files out of WinZip into the c:\jboss directory?

                  I am also curious as to how you got the directory c:\jboss. The reason I ask is that the zip file contains a base directory name jboss-4.0.4.GA, so I would expect c:\jboss-4.0.4.GA.

                  Using an earlier version of JBoss will not solve the problem. They are all packaged the same and we need to find out why it did not get unpackaged properly on your PC.

                  • 6. Re: org.jboss.deployment.DeploymentException: url file:/C:/j
                    kaobe

                    Hi!

                    It seems there has been an error unzipping the archive, just as Peter (with 'J' :) ) suggested. If you open the zip-file you should see there are several files in conf.

                    Peter

                    • 7. Re: org.jboss.deployment.DeploymentException: url file:/C:/j
                      dhyanesh

                      Even I am the firsttime user of JBoss and I too am facing th esame problem. I had tried doing it in two ways - downloading jboss-4.0.4.GA.zip and jboss-4.0.4.GA-Patch1-installer.jar, both of which are complete versions. I thought the zip might be having some problem so went ahead with .jar but still didnt yeild any results on it. I want to learn JBoss but now have a roadblock to overcome.
                      2)I also giving the specified name to default folder in third time installation, hence the conf didnot get created in default folder instead got created in customfolder without jboss-service.xml. But still the jboss on startup tries to locate the xml in default folder.

                      • 8. Re: org.jboss.deployment.DeploymentException: url file:/C:/j
                        jaikiran

                        When you downloaded the .zip version and extracted it what error did you see when you started jboss? Can you post the exception stacktrace. Also does the %JBOSS_HOME%/server/default/conf folder contain the jboss-service.xml file?

                        • 9. Re: org.jboss.deployment.DeploymentException: url file:/C:/j
                          prasanthijboss

                          hello
                          i installed jboss 4.0.3sp1 using eclipse when i deployed my war into jboss
                          it encounters an error which i cannot rectify Please help me see this
                          my error
                          Failed to boot JBoss:
                          org.jboss.deployment.DeploymentException: Could not initialise deployment: file:/D:/jboss-4.0.3SP1/server/default/conf/jboss-service.xml; - nested throwable: (java.lang.NoClassDefFoundError: EDU/oswego/cs/dl/util/concurrent/ConcurrentReaderHashMap)
                          at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:39)
                          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:785)
                          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
                          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
                          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                          at java.lang.reflect.Method.invoke(Method.java:585)
                          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
                          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
                          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                          at $Proxy5.deploy(Unknown Source)
                          at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
                          at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
                          at org.jboss.Main.boot(Main.java:187)
                          at org.jboss.Main$1.run(Main.java:438)
                          at java.lang.Thread.run(Thread.java:595)
                          Caused by: java.lang.NoClassDefFoundError: EDU/oswego/cs/dl/util/concurrent/ConcurrentReaderHashMap
                          at org.jboss.util.xml.JBossEntityResolver.(JBossEntityResolver.java:43)
                          at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:585)
                          at org.jboss.deployment.SARDeployer.init(SARDeployer.java:164)
                          at org.jboss.deployment.MainDeployer.init(MainDeployer.java:843)
                          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:780)
                          ... 21 more