11 Replies Latest reply on Feb 22, 2008 9:04 AM by jaikiran

    Error when deploying

    b7518

      Hi,

      I'm new in JAVA. Can anyone help to solve below errors? Thanks.

      12:35:12,795 INFO [Server] Starting JBoss (MX MicroKernel)...
      12:35:12,795 INFO [Server] Release ID: JBoss [Zion] 4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)
      12:35:12,795 INFO [Server] Home Dir: C:\jboss4
      12:35:12,795 INFO [Server] Home URL: file:/C:/jboss4/
      12:35:12,795 INFO [Server] Patch URL: null
      12:35:12,795 INFO [Server] Server Name: default
      12:35:12,795 INFO [Server] Server Home Dir: C:\jboss4\server\default
      12:35:12,795 INFO [Server] Server Home URL: file:/C:/jboss4/server/default/
      12:35:12,795 INFO [Server] Server Temp Dir: C:\jboss4\server\default\tmp
      12:35:12,795 INFO [Server] Root Deployment Filename: jboss-service.xml
      12:35:13,014 INFO [ServerInfo] Java version: 1.4.1_02,Sun Microsystems Inc.
      12:35:13,014 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.4.1_02-b06,Sun Microsystems Inc.
      12:35:13,014 INFO [ServerInfo] OS-System: Windows XP 5.2,x86
      12:35:13,326 INFO [Server] Core system initialized
      12:35:13,342 ERROR [MainDeployer] Could not make local copy for file:/C:/jboss4/server/default/conf/jboss-service.xml
      java.io.IOException: The system cannot find the path specified
      at java.io.WinNTFileSystem.createFileExclusively(Native Method)
      at java.io.File.checkAndCreate(File.java:1313)
      at java.io.File.createTempFile(File.java:1401)
      at org.jboss.deployment.MainDeployer.makeLocalCopy(MainDeployer.java:1149)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:822)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:780)
      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:324)
      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:536)
      12:35:13,357 ERROR [MainDeployer] Could not initialise deployment: file:/C:/jboss4/server/default/conf/jboss-service.xml
      org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml
      at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:580)
      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)
      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:324)
      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:536)


      Thanks,
      Buddy

        • 1. Re: Error when deploying
          jaikiran

          Did you do any changes to the JBoss installation? Also are you sure that the JBoss version that you downloaded was clean and was not corrupt?

          • 2. Re: Error when deploying
            jaikiran

            Are you starting the server from the console or from an IDE like Eclipse?

            • 3. Re: Error when deploying
              b7518

              Hi,

              As per my collegues, JBOSS server is running and i need to shutdown then start script. But i encounter this error when using "shutdown - S"

              Exception in thread "main" javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099. Root exception is javax.naming.ComunnicationException: Failed to connect to server localhost:1099. Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099. Root exception is java.net.ConnectException: Connection refused: connect
              at java.net.PlainSocketImpl.socketConnect<Native Method>..............

              When using the run.bat, I get this error


              12:35:12,795 INFO [Server] Starting JBoss (MX MicroKernel)...
              12:35:12,795 INFO [Server] Release ID: JBoss [Zion] 4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)
              12:35:12,795 INFO [Server] Home Dir: C:\jboss4
              12:35:12,795 INFO [Server] Home URL: file:/C:/jboss4/
              12:35:12,795 INFO [Server] Patch URL: null
              12:35:12,795 INFO [Server] Server Name: default
              12:35:12,795 INFO [Server] Server Home Dir: C:\jboss4\server\default
              12:35:12,795 INFO [Server] Server Home URL: file:/C:/jboss4/server/default/
              12:35:12,795 INFO [Server] Server Temp Dir: C:\jboss4\server\default\tmp
              12:35:12,795 INFO [Server] Root Deployment Filename: jboss-service.xml
              12:35:13,014 INFO [ServerInfo] Java version: 1.4.1_02,Sun Microsystems Inc.
              12:35:13,014 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.4.1_02-b06,Sun Microsystems Inc.
              12:35:13,014 INFO [ServerInfo] OS-System: Windows XP 5.2,x86
              12:35:13,326 INFO [Server] Core system initialized
              12:35:13,342 ERROR [MainDeployer] Could not make local copy for file:/C:/jboss4/server/default/conf/jboss-service.xml
              java.io.IOException: The system cannot find the path specified
              at java.io.WinNTFileSystem.createFileExclusively(Native Method)
              at java.io.File.checkAndCreate(File.java:1313)
              at java.io.File.createTempFile(File.java:1401)
              at org.jboss.deployment.MainDeployer.makeLocalCopy(MainDeployer.java:1149)
              at org.jboss.deployment.MainDeployer.init(MainDeployer.java:822)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:780)
              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:324)
              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:536)
              12:35:13,357 ERROR [MainDeployer] Could not initialise deployment: file:/C:/jboss4/server/default/conf/jboss-service.xml
              org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml
              at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:580)
              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)
              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:324)
              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:536)


              Thanks,
              Buddy

              • 4. Re: Error when deploying
                jaikiran

                 

                As per my collegues, JBOSS server is running and i need to shutdown then start script. But i encounter this error when using "shutdown - S"

                Exception in thread "main" javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099.


                Are you sure JBoss server is running? Before running the shutdown command, use:

                telnet localhost 1099


                what's the output of this command?


                • 5. Re: Error when deploying
                  b7518

                  this is the result

                  Connecting to localhost.........Could not open connection to the host, on port 1099: Connection failed

                  • 6. Re: Error when deploying
                    jaikiran

                    Which means that the server is not accessible. One of the probable reasons is that the server is not started. Also, try to connect to http://localhost:8080/jmx-console from the browser. If it doesn't work then the server is either not up or not listening to localhost.

                    As per my collegues, JBOSS server is running


                    You will have ask your colleague, how the server was started. What was the command used to start the server? Also, ask them to access the http://localhost:8080/jmx-console and see if it is accessible for them


                    • 7. Re: Error when deploying
                      b7518

                      http://localhost:8080/jmx-con cannot access the page...

                      • 8. Re: Error when deploying
                        b7518

                        Sorry, re-phrase from "JBOSS server is running" to "JBOSS server is not running". Thanks

                        • 9. Re: Error when deploying
                          jaikiran

                          I'm confused. Are you trying to start JBoss(in which case you dont have to use the shutdown.bat) and running into this issue? You havent yet replied to my earlier questions:

                          "jaikiran" wrote:
                          Did you do any changes to the JBoss installation? Also are you sure that the JBoss version that you downloaded was clean and was not corrupt?


                          "jaikiran" wrote:
                          Are you starting the server from the console or from an IDE like Eclipse?



                          • 10. Re: Error when deploying
                            b7518

                            Sorry for confusing you. if this is the case, i 'm just starting the server from console only. I don't do any changes in installation and JBOSS already installed in web server. Before this problem happened the webpage or web server is running smoothly.

                            • 11. Re: Error when deploying
                              jaikiran

                              Okay. Can you post the contents of your server.log file present in C:\jboss4\server\default\log folder? Maybe that will give us more details.

                              While posting, remember to wrap the contents of the logs in a code block by using the 'Code' button in the message editor window. That will make the logs readable.