10 Replies Latest reply on Sep 1, 2004 11:07 AM by 807581

    CLI156 Could Not Start The Domain domain1

    807581
      I just down loaded J2EE 1.4 (j2eesdk-1_4_dr-windows-eval-app). The installation went well. There were no problems, even the installation log was clean. The problem is when I try to "start default domain", I get:

      Starting domain domain1, please wait
      Log redirected to C:\Sun|Appserver\domains\domain1\logs\server.log

      Domain domain1 Failed to start. Please check server logs.
      CLI156 Could Not Start The Domain domain1.


      I did see on other posts where quotes ("" "") in the path can cause this. I have a clean path with no quotes. I have my environment variables and path set up properly.

      I am at a total loss, if anyone can help, I would appreciate it.
        • 1. Re: CLI156 Could Not Start The Domain domain1
          807581
          Is there any pertinent information in the server log?
          • 2. Re: CLI156 Could Not Start The Domain domain1
            807581
            Here is the important stuff that I was able to get from the log file. I am new to J2EE so this all seems greek to me.

            [#|2004-01-07T20:38:49.621-0500|INFO|j2ee-appserver1.4|org.apache.coyote.http11.Http11Protocol|_ThreadID=10;|Starting Coyote HTTP/1.1 on port 4848|#]

            [#|2004-01-07T20:39:50.549-0500|INFO|j2ee-appserver1.4|javax.enterprise.resource.jms|_ThreadID=10;|JMS5035: Timed out after 60000 milliseconds while trying to verify if the JMS service startup succeeded.|#]

            [#|2004-01-07T20:39:50.549-0500|INFO|j2ee-appserver1.4|javax.enterprise.resource.jms|_ThreadID=10;|JMS5037: Check permissions of MQ instance directory C:\Sun\AppServer\imq\var\instances|#]

            [#|2004-01-07T20:39:50.549-0500|INFO|j2ee-appserver1.4|javax.enterprise.resource.jms|_ThreadID=10;|JMS5036: More details may be available in the log file for the JMS service broker instance domain1_server. Please refer to the JMS provider documentation for the exact location of this log file.|#]

            [#|2004-01-07T20:39:50.549-0500|SEVERE|j2ee-appserver1.4|javax.enterprise.system.core|_ThreadID=10;|CORE5071: An error occured during initialization
            com.sun.appserv.server.ServerLifecycleException: [C4003]: Error occurred on connection creation [JASKOT1:7676]. - cause: java.net.SocketException: Software caused connection abort: recv failed
                 at com.sun.enterprise.jms.JmsProviderLifecycle.checkProviderStartup(JmsProviderLifecycle.java:379)
                 at com.sun.enterprise.server.PEMain.run(PEMain.java:221)
                 at com.sun.enterprise.server.PEMain.main(PEMain.java:171)
                 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.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
            Caused by: com.sun.messaging.jms.JMSException: [C4003]: Error occurred on connection creation [JASKOT1:7676]. - cause: java.net.SocketException: Software caused connection abort: recv failed
                 at com.sun.messaging.jmq.jmsclient.ExceptionHandler.getJMSConnectException(ExceptionHandler.java:233)
                 at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleConnectException(ExceptionHandler.java:180)
                 at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:172)
                 at com.sun.messaging.jmq.jmsclient.PortMapperClient.init(PortMapperClient.java:97)
                 at com.sun.messaging.jmq.jmsclient.PortMapperClient.<init>(PortMapperClient.java:50)
                 at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPConnectionHandler.<init>(TCPConnectionHandler.java:53)
                 at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler.openConnection(TCPStreamHandler.java:102)
                 at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnectionOld(ConnectionInitiator.java:271)
                 at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(ConnectionInitiator.java:107)
                 at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(ConnectionInitiator.java:92)
                 at com.sun.messaging.jmq.jmsclient.ProtocolHandler.init(ProtocolHandler.java:532)
                 at com.sun.messaging.jmq.jmsclient.ProtocolHandler.<init>(ProtocolHandler.java:1072)
                 at com.sun.messaging.jmq.jmsclient.ConnectionImpl.openConnection(ConnectionImpl.java:1684)
                 at com.sun.messaging.jmq.jmsclient.ConnectionImpl.init(ConnectionImpl.java:534)
                 at com.sun.messaging.jmq.jmsclient.ConnectionImpl.<init>(ConnectionImpl.java:260)
                 at com.sun.messaging.jmq.jmsclient.UnifiedConnectionImpl.<init>(UnifiedConnectionImpl.java:33)
                 at com.sun.messaging.jmq.jmsclient.QueueConnectionImpl.<init>(QueueConnectionImpl.java:32)
                 at com.sun.messaging.ConnectionFactory.createQueueConnection(ConnectionFactory.java:72)
                 at com.sun.messaging.jmq.admin.jmsspi.JMSAdminImpl.pingProvider(JMSAdminImpl.java:734)
                 at com.sun.enterprise.jms.JmsProviderLifecycle.waitForJmsProvider(JmsProviderLifecycle.java:308)
                 at com.sun.enterprise.jms.JmsProviderLifecycle.checkProviderStartup(JmsProviderLifecycle.java:367)
                 ... 7 more
            Caused by: java.net.SocketException: Software caused connection abort: recv failed
                 at java.net.SocketInputStream.socketRead0(Native Method)
                 at java.net.SocketInputStream.read(SocketInputStream.java:129)
                 at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
                 at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
                 at com.sun.messaging.jmq.io.PortMapperTable.readLine(PortMapperTable.java:270)
                 at com.sun.messaging.jmq.io.PortMapperTable.read(PortMapperTable.java:226)
                 at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:166)
                 ... 25 more
            |#]

            [#|2004-01-07T20:39:50.549-0500|SEVERE|j2ee-appserver1.4|javax.enterprise.system.core|_ThreadID=10;|Server Startup failed. Exiting...|#]
            • 3. Re: CLI156 Could Not Start The Domain domain1
              807581
              Would you also post the log located under the domain/log under C:\Sun\AppServer\imq\var\instances
              • 4. Re: CLI156 Could Not Start The Domain domain1
                807581
                Here is the contents of the log file C:\Sun\AppServer\imq\var\instances\domain1_server\log



                [07/Jan/2004:20:38:20 GMT-05:00] [B1002]: An existing property file for domain1_server was not found, no stored properties will be loaded
                [07/Jan/2004:20:38:20 GMT-05:00]
                ================================================================================
                Sun ONE Message Queue
                Sun Microsystems, Inc.
                Version: 3.5 Beta 7 (J2EE1.4 Application Server, Developer Release) (Build 261-Q)
                Compile: Fri 09/26/2003

                Copyright � 2003 Sun Microsystems, Inc. All rights reserved.
                Use is subject to license terms.

                This product includes code licensed from RSA Data Security.
                ================================================================================
                Java Runtime: 1.4.2_02 Sun Microsystems Inc. C:\j2sdk1.4.2_02\jre
                [07/Jan/2004:20:38:20 GMT-05:00] IMQ_HOME=C:\Sun\AppServer\imq
                [07/Jan/2004:20:38:20 GMT-05:00] IMQ_VARHOME=C:\Sun\AppServer\imq\var
                [07/Jan/2004:20:38:20 GMT-05:00] Windows XP 5.1 x86 localhost (1 cpu) The Jaskots
                [07/Jan/2004:20:38:20 GMT-05:00] Java Heap Size: max=194432k, current=16256k
                [07/Jan/2004:20:38:20 GMT-05:00] Arguments: -name domain1_server -port 7676 -bgnd -silent
                [07/Jan/2004:20:38:20 GMT-05:00] [B1004]: Starting the portmapper service using tcp [ 7676, 50 ] with min threads 1 and max threads of 1
                [07/Jan/2004:20:38:20 GMT-05:00] [B1060]: Loading persistent data...
                [07/Jan/2004:20:38:21 GMT-05:00] [B1041]: Cluster initialization successful.
                [07/Jan/2004:20:38:21 GMT-05:00] [B1136]: Processing stored transactions
                [07/Jan/2004:20:38:21 GMT-05:00] [B1013]: Auto Creation of Queues is Enabled
                [07/Jan/2004:20:38:21 GMT-05:00] [B1004]: Starting the jms service using tcp(host = *, port=0, mode=dedicated) with min threads 10 and max threads of 1000
                [07/Jan/2004:20:38:21 GMT-05:00] [B1004]: Starting the admin service using tcp(host = *, port=0, mode=dedicated) with min threads 4 and max threads of 10
                [07/Jan/2004:20:38:21 GMT-05:00] [B1039]: Broker "domain1_server@localhost:7676" ready.
                [07/Jan/2004:20:38:49 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:38:51 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:38:53 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:38:55 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:38:57 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:38:59 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:01 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:03 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:05 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:07 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:09 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:11 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:13 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:15 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:17 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:19 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:21 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:23 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:25 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:28 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:30 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:32 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:34 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:36 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:38 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:40 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:42 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:44 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:46 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:48 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:50 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [07/Jan/2004:20:39:50 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:00:35 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:00:52 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:00:54 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:00:56 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:00:58 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:00 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:02 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:04 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:06 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:08 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:10 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:12 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:14 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:16 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:18 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:20 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:22 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:24 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:26 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:28 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:30 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:32 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:34 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:36 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:38 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:40 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:42 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:44 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:46 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:48 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:50 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:52 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                [08/Jan/2004:09:01:52 GMT-05:00] ERROR [B3071]: Portmapper got an exception in write(). Continuing:
                java.net.SocketException: socket closed
                • 5. Re: CLI156 Could Not Start The Domain domain1
                  807581
                  You might want to try posting this to the application server forum. Make sure to include the server logs. http://swforum.sun.com/jive/forum.jspa?forumID=114
                  • 6. Re: CLI156 Could Not Start The Domain domain1
                    807581
                    I have a problem to start Default Application Server
                    plz anyone can help to resolve this problem
                    • 7. Re: CLI156 Could Not Start The Domain domain1
                      807581
                      If you are having issues starting the Default Application Server you will need to provide more info.

                      Are you seeing an error message:
                      on the screen?
                      in the ide.log?

                      Are there error messages in the server logs?

                      Which version/edition of the app server are you using?

                      Which version/edition of the Studio are you using?

                      What operating system are you using/

                      Without some initial data to limit the possibilities, there is little hope of being able to provide help that is helpful.

                      vbk
                      • 8. Re: CLI156 Could Not Start The Domain domain1
                        807581
                        I have the same problem. I install J2EE 1.4 Server on Windows XP then successfuly start it. After that I start Admin Console and I change the JMS username and password from Admin Console -> Application Server->Java Message Service->JMS Host->default_JMS_host. Then it says you have to restart the server. So i did it and then i cant start it again :( and i recive the same error msg, the same log as you.

                        Find this files:
                        <INSTALL_DIR>/domains/domain1/config/sun-acc.xml
                        and
                        <INSTALL_DIR>/domains/domain1/config/domain.xml

                        find in the first file:
                        <client-container>
                          <target-server name="admin" address="admin" port="3700"/>
                          <log-service file="" level="WARNING"/>
                        </client-container>
                        name="" and address="" was my user and pass ?!? i change it like it is now up in this code.

                        Then find in second file:
                        <jms-host admin-password="admin" admin-user-name="admin" host="..."....
                        it must be on line 71
                        again here was my username and password and I change them back to "admin" "admin"

                        And the server has started.... :)

                        This is my first steps in java but i fix this problem by this lame method. Hope it will help you too.
                        • 9. Re: CLI156 Could Not Start The Domain domain1
                          807581
                          Hi everyone! I just noticed this post and have recently (till about an hour ago) had this problem myself.
                          My Setup:
                          ** Redhat Linux 9.0 Running Inside a Virtual Machine (VMWARE GSX Server 3.0)
                          ** J2EE 1.4 (PE ver 8)
                          ** Jdk 1.4.2_04 (note, i used the bundle download of the app and j2sdk.. though that shouldnt matter)

                          What I did:
                          1. I was using the graphical X installer (forwading to my local workstation X Server) and was getting halfway thought he installation before it failed. The installation log said there was a "subprocess error"

                          2. After several more attempts, i switched to the command line installer.. the installation proceeded and said it was a success. However when i tried to start the domain, it failed again
                          this time with:
                          CLI156 Could not start the domain domain1

                          3. After seeing a post to a similiar problem, i opened the file: /usr/local/SunAppServer/domains/domain1/config/sun-acc.xml
                          and noticed the "client-container" aggregate had settings for target-server name and address that DID NOT MATCH THE NAME OF MY SERVER (they were localhost, my linux server was named striker for example)

                          4. I changed: target-server name and address to striker and saved the file. Then I placed a /etc/hosts entry for striker pointing to the IP address of the server.

                          I attempted to started the app server again with:
                          /usr/local/SunAppServer/bin/asadmin start-domain domain1

                          and low and behold! it worked like a charm. Looks like the J2ee server has some kind of sanity check (or bug) that requires the settings in this file and the servername to match. I know that occasionally a person may rename a server not thinking it'll affect any user space apps (you'd think they'd all use gethostname system call) but go figure...

                          Hope this helps someone! feel free to email me with questions: tjorda@columbus.rr.com


                          Cheers!
                          -=Terry
                          • 10. Re: CLI156 Could Not Start The Domain domain1
                            807581
                            set
                            asadmin start-domain domain1

                            Thats all .It worked for me