7 Replies Latest reply on Aug 24, 2005 11:42 AM by Darran Lofthouse

    Jboss deployment error

    mandarjboss Newbie

      Getting following exception

      UnknownHostException:www.jbosss.org

        • 1. Re: Jboss deployment error
          Darran Lofthouse Master

          What JBoss version?
          Copy and paste the actual exception including the stack trace.
          What are you actualy deploying to get the exception?

          • 2. Re: Jboss deployment error
            mandarjboss Newbie

            My Jboss version is 3.2.6. Also, jdk 1.4 & 1.5 is installed on my machine.

            org.jboss.deployment.DeploymentException: www.jboss.org; - nested throwable: (java.net.UnknownHostException: www.jboss.org)
            at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:316)
            at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
            at org.jboss.ejb.EJBDeployer.init(EJBDeployer.java:416)
            at org.jboss.deployment.MainDeployer.init(MainDeployer.java:696)
            at org.jboss.deployment.MainDeployer.init(MainDeployer.java:713)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:631)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:604)
            at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy8.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
            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.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:884)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:414)
            at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy4.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:251)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:829)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:604)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:588)
            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.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:407)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311)
            at org.jboss.Main.boot(Main.java:145)
            at org.jboss.Main$1.run(Main.java:399)
            at java.lang.Thread.run(Thread.java:534)
            Caused by: java.net.UnknownHostException: www.jboss.org
            at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
            at java.net.Socket.connect(Socket.java:452)
            at java.net.Socket.connect(Socket.java:402)
            at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
            at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
            at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
            at sun.net.www.http.HttpClient.(HttpClient.java:306)
            at sun.net.www.http.HttpClient.(HttpClient.java:267)
            at sun.net.www.http.HttpClient.New(HttpClient.java:339)
            at sun.net.www.http.HttpClient.New(HttpClient.java:320)
            at sun.net.www.http.HttpClient.New(HttpClient.java:315)
            at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:521)
            at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:498)
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:626)
            at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
            at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
            at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
            at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
            at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
            at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
            at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
            at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
            at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:293)
            ... 69 more
            13:50:56,156 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
            Incompletely deployed packages:
            org.jboss.deployment.DeploymentInfo@79418b90 { url=file:/C:/jboss-3.2.6/server/default/deploy/euroExchange.ear }
            deployer: org.jboss.deployment.EARDeployer@12bf892
            status: null
            state: FAILED
            watch: file:/C:/jboss-3.2.6/server/default/deploy/euroExchange.ear
            lastDeployed: 1124785255937
            lastModified: 1124785253593
            mbeans:


            13:50:56,484 INFO [Http11Protocol] Coyote HTTP/1.1é=â|ü[âg http-0.0.0.0-4040 é+ïNô«é¦é_é+
            13:50:56,656 INFO [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009
            13:50:56,718 INFO [JkMain] Jk running ID=0 time=0/93 config=null
            13:50:56,718 INFO [Server] JBoss (MX MicroKernel) [3.2.6 (build: CVSTag=JBoss_3_2_6 date=200410140106)] Started in 21s:484ms

            • 3. Re: Jboss deployment error
              Darran Lofthouse Master

              Ok, we are getting a little bit closer. It looks like a problem in one of your deployment descriptors.

              From the stack trace the error is coming from the EJBDeployer. Are there any messages above the exception and stack trace in the log to indicate what is being deployed at the time the error is shown?

              Can you post your jboss sepcific deployment descriptors from your ejb jar here wrapped with [ code ][/ code ] tags without the spaces and use the preview button to make sure they display correctly.

              • 4. Re: Jboss deployment error
                Darran Lofthouse Master

                Also which JDK version are you actually using, which one is referenced by the JAVA_HOME environment variable?

                • 5. Re: Jboss deployment error
                  mandarjboss Newbie

                  Hi darranl
                  First of all thanks a lot for showing so much interest in my problem.
                  My Java_Home is pointing to JDK 1.4 only.
                  Secondly the same EAR is running properly on other machines of my colleagues in the team.Only the JBoss on my machine is giving this strange error.I have even tried copying the whole JBoss setup from a working machine but still it doesn't work.
                  Can it be a problem of some XML parsers? May be something like turning off the validation ( I am just guessing not sure)....

                  I am posting my deployment descriptors here for your reference.

                  <?xml version="1.0"?>
                  
                  <!DOCTYPE ejb-jar PUBLIC
                  '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN'
                  'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
                  
                  <ejb-jar>
                   <enterprise-beans>
                   <session>
                   <ejb-name>LoginEJB</ejb-name>
                   <home>com.indicus.lms.ejb.interfaces.LoginHome</home>
                   <remote>com.indicus.lms.ejb.interfaces.LoginRemote</remote>
                   <ejb-class>com.indicus.lms.ejb.LoginBean</ejb-class>
                   <session-type>Stateless</session-type>
                   <transaction-type>Container</transaction-type>
                   </session>
                   </enterprise-beans>
                   <assembly-descriptor>
                   </assembly-descriptor>
                  </ejb-jar>
                  


                  My JBoss.xml is ....
                  <?xml version="1.0" encoding="UTF-8"?>
                  <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.2//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd">
                  <jboss>
                   <enterprise-beans>
                   <session>
                   <ejb-name>LoginEJB</ejb-name>
                   <jndi-name>LoginEJB</jndi-name>
                   </session>
                   </enterprise-beans>
                  </jboss>
                  


                  • 6. Re: Jboss deployment error
                    mandarjboss Newbie

                    Hi Darranl,

                    Finally I got rid of this problem.I was using Jboss 3.2.3.However I was doing development on JBoss-IDE plug-in for Eclipse.
                    The only thing i had to do to solve the problem is to make following change in "jboss.xml"


                    
                    Original :-
                    <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">
                    
                    Changed :-
                    <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.2//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd">
                    
                    Thanks a lot for your help.
                    
                    


                    • 7. Re: Jboss deployment error
                      Darran Lofthouse Master

                      FYI JBoss uses a resolver to identify known dtds locally, if the dtd is not recognised it will attempt to download it from the URL specified.