13 Replies Latest reply on Aug 17, 2011 7:13 AM by 882771

    Failed to start JAVA Systems Web Server

    858598
      Hey all,

      i set up a java sun web server 6.1 sp12. installation was successful and now i want to start the server (go to: [installDIR]/https-adminserv/ and there i tried to execute ./start )

      Now i got the following output. I tried to look up in the logfiles ([installDIR]/https-adminserv/logs) but empty.

      user@user36:~sun-webserver6.1/https-admserv$ ./start
      Aborted
      Aborted
      Aborted
      Aborted
      user@user36:~/sun-webserver6.1/https-admserv$

      Hope someone can help me.

      Thanks in advance.
        • 1. Re: Failed to start JAVA Systems Web Server
          middleware
          user@user36:~sun-webserver6.1/https-admserv$ ./start
          try to start it as "root"
          • 2. Re: Failed to start JAVA Systems Web Server
            858598
            i tried to start, but that doesn't solve the problem.
            • 3. Re: Failed to start JAVA Systems Web Server
              Mv-Oracle
              Can you use truss and look at the last few lines?
              • 4. Re: Failed to start JAVA Systems Web Server
                858598
                execve("./start", ["./start"], [* 37 vars */]) = 0
                brk(0) = 0x8291000
                access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
                mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb773c000
                access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
                open("/etc/ld.so.cache", O_RDONLY) = 3
                fstat64(3, {st_mode=S_IFREG|0644, st_size=62769, ...}) = 0
                mmap2(NULL, 62769, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb772c000
                close(3) = 0
                access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
                open("/lib/libc.so.6", O_RDONLY) = 3
                read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@n\1\0004\0\0\0"..., 512) = 512
                fstat64(3, {st_mode=S_IFREG|0755, st_size=1421892, ...}) = 0
                mmap2(NULL, 1427880, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x110000
                mmap2(0x267000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x157) = 0x267000
                mmap2(0x26a000, 10664, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x26a000
                close(3) = 0
                mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb772b000
                set_thread_area({entry_number:-1 -> 6, base_addr:0xb772b8d0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
                mprotect(0x267000, 8192, PROT_READ) = 0
                mprotect(0x805c000, 4096, PROT_READ) = 0
                mprotect(0x5f8000, 4096, PROT_READ) = 0
                munmap(0xb772c000, 62769) = 0
                getpid() = 6607
                rt_sigaction(SIGCHLD, {SIG_DFL, [CHLD], SA_RESTART}, {SIG_DFL, [], 0}, 8) = 0
                geteuid32() = 4723611
                brk(0) = 0x8291000
                brk(0x82b2000) = 0x82b2000
                getppid() = 6606
                stat64("/home/sunwebserver/https-admserv", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
                stat64(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
                open("./start", O_RDONLY) = 3
                fcntl64(3, F_DUPFD, 10) = 10
                close(3) = 0
                fcntl64(10, F_SETFD, FD_CLOEXEC) = 0
                rt_sigaction(SIGINT, NULL, {SIG_DFL, [], 0}, 8) = 0
                rt_sigaction(SIGINT, {0x8056690, ~[RTMIN RT_1], 0}, NULL, 8) = 0
                rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 8) = 0
                rt_sigaction(SIGQUIT, {SIG_DFL, ~[RTMIN RT_1], 0}, NULL, 8) = 0
                rt_sigaction(SIGTERM, NULL, {SIG_DFL, [], 0}, 8) = 0
                rt_sigaction(SIGTERM, {SIG_DFL, ~[RTMIN RT_1], 0}, NULL, 8) = 0
                read(10, "#!/bin/sh\n#\n# Copyright (c) 2003"..., 8192) = 4077
                pipe([3, 4]) = 0
                clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb772b938) = 6608
                close(4) = 0
                read(3, "Linux\n", 128) = 6
                read(3, "", 128) = 0
                --- SIGCHLD (Child exited) @ 0 (0) ---
                close(3) = 0
                wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6608
                chdir("/home/sunwebserver/bin/https/bin") = 0
                pipe([3, 4]) = 0
                clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb772b938) = 6609
                close(4) = 0
                read(3, "", 128) = 0
                close(3) = 0
                wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGABRT}], 0, NULL) = 6609
                --- SIGCHLD (Child exited) @ 0 (0) ---
                write(2, "Aborted\n", 8) = 8
                pipe([3, 4]) = 0
                clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb772b938) = 6610
                close(4) = 0
                read(3, "", 128) = 0
                --- SIGCHLD (Child exited) @ 0 (0) ---
                close(3) = 0
                wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGABRT}], 0, NULL) = 6610
                write(2, "Aborted\n", 8) = 8
                pipe([3, 4]) = 0
                clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb772b938) = 6611
                close(4) = 0
                read(3, "", 128) = 0
                --- SIGCHLD (Child exited) @ 0 (0) ---
                close(3) = 0
                wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGABRT}], 0, NULL) = 6611
                write(2, "Aborted\n", 8) = 8
                pipe([3, 4]) = 0
                clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb772b938) = 6612
                close(4) = 0
                read(3, "", 128) = 0
                close(3) = 0
                wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGABRT}], 0, NULL) = 6612
                --- SIGCHLD (Child exited) @ 0 (0) ---
                write(2, "Aborted\n", 8) = 8
                stat64("/home/sunwebserver/bin/https/lib/libCld.so", 0xbf817dd0) = -1 ENOENT (No such file or directory)
                clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb772b938) = 6613
                wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 6613
                --- SIGCHLD (Child exited) @ 0 (0) ---
                exit_group(1) = ?


                im on ubuntu and used strace, but it should be the same.

                i have installed the programm to my home folder. it looks like there are some files missing ?!

                Edited by: Heinrich H. on May 2, 2011 2:22 AM
                • 5. Re: Failed to start JAVA Systems Web Server
                  Mv-Oracle
                  start script has this :

                  PRODUCT_BIN=webservd-wdog
                  ...
                  case $arg in
                  -start)
                  ./$PRODUCT_BIN -r $SERVER_ROOT -d $INSTANCE_CONFIG_DIR -n $INSTANCE_NAME $@

                  print these argument values and run this PRODUCT_BIN=webservd with truss.
                  • 6. Re: Failed to start JAVA Systems Web Server
                    858598
                    i dont exactly understand what you mean. i executed the start script with the following values.

                    the folder "PRODUCT_BIN=webservd-wdog" doesn't exist on my pc :(

                    ~/sun-webserver6.1/https-admserv$ strace -o log.log ./start
                    Aborted
                    Aborted
                    Aborted
                    Aborted
                    ./webservd-wdog -r /home/sun-webserver6.1 -d /home/sun-webserver6.1/https-admserv/config -n https-admserv


                    hope this is the right output.

                    thanks in advance :)
                    • 7. Re: Failed to start JAVA Systems Web Server
                      Mv-Oracle
                      put an echo just after -start line

                      -start)
                      echo $@
                      and take these values.

                      $truss -o truss.out .... "webservd -r /home/sun-webserver6.1 -d /home/sun-webserver6.1/https-admserv/config -n https-admserv ...the values you get from echo command above..."

                      Do u have anything in /home/sun-webserver6.1/https-admserv/logs/errors?
                      • 8. Re: Failed to start JAVA Systems Web Server
                        858598
                        i modified the start script like this:
                        "
                        -start)
                        echo $PRODUCT_BIN $SERVER_ROOT $INSTANCE_CONFIG_DIR $INSTANCE_NAME $@
                        "


                        now i get the following output:
                        --------------------------------------------------------------------------------------------------------------------
                        ~/sun-webserver6.1/https-admserv$ strace -o log.log ./start
                        Aborted
                        Aborted
                        Aborted
                        Aborted
                        webservd-wdog /home/sun-webserver6.1 /home/sun-webserver6.1/https-admserv/config https-admserv
                        --------------------------------------------------------------------------------------------------------------------



                        my strace ouput is the following (only the last few line, as you wish):
                        --------------------------------------------------------------------------------------------------------
                        close(3) = 0
                        wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 9934
                        chdir("/home/sun-webserver6.1/bin/https/bin") = 0
                        pipe([3, 4]) = 0
                        clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb786d938) = 9935
                        close(4) = 0
                        read(3, "", 128) = 0
                        close(3) = 0
                        wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGABRT}], 0, NULL) = 9935
                        --- SIGCHLD (Child exited) @ 0 (0) ---
                        write(2, "Aborted\n", 8) = 8
                        pipe([3, 4]) = 0
                        clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb786d938) = 9936
                        close(4) = 0
                        read(3, "", 128) = 0
                        --- SIGCHLD (Child exited) @ 0 (0) ---
                        close(3) = 0
                        wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGABRT}], 0, NULL) = 9936
                        write(2, "Aborted\n", 8) = 8
                        pipe([3, 4]) = 0
                        clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb786d938) = 9937
                        close(4) = 0
                        read(3, "", 128) = 0
                        close(3) = 0
                        wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGABRT}], 0, NULL) = 9937
                        --- SIGCHLD (Child exited) @ 0 (0) ---
                        write(2, "Aborted\n", 8) = 8
                        pipe([3, 4]) = 0
                        clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb786d938) = 9938
                        close(4) = 0
                        read(3, "", 128) = 0
                        close(3) = 0
                        wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGABRT}], 0, NULL) = 9938
                        --- SIGCHLD (Child exited) @ 0 (0) ---
                        write(2, "Aborted\n", 8) = 8
                        stat64("/home/sun-webserver6.1/bin/https/lib/libCld.so", 0xbf87dcd0) = -1 ENOENT (No such file or directory)
                        write(1, "webservd-wdog /home/sun-webse"..., 149) = 149
                        clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb786d938) = 9939
                        wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 9939
                        --- SIGCHLD (Child exited) @ 0 (0) ---
                        exit_group(1) = ?
                        --------------------------------------------------------------------------------------------------------


                        and i definitely have no log files.
                        • 9. Re: Failed to start JAVA Systems Web Server
                          858598
                          Hm, i now found out, where these "Aborted" errors come from.
                          In the start script i changed the "#parse JAVA_HOME" line , and now i get only 3 "Aborted" errors.



                          FROM:
                          #parse JAVA_HOME
                          JAVA_HOME=`./parsexml ${INSTANCE_CONFIG_DIR} JAVA javahome`; export JAVA_HOME
                          JAVA_RUNTIME_LIBPATH=${JAVA_HOME}/jre/lib/i386/server:${JAVA_HOME}/jre/lib/i386:${JAVA_HOME}/jre/lib/i386/native_threads
                          TO:
                          #parse JAVA_HOME
                          JAVA_RUNTIME_LIBPATH=$/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/i386/server:/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/i386:/usr/lib/jvm/java-1.6.0-openjdk/jre/lib/i386/native_threads





                          Now there are 3 #parse left and i have no idea how to modify them. I only know that the first line of the 2 lines throw the "Aborted" message.

                          ~/sun-webserver6.1/https-admserv$ /home/sun-webserver6.1/bin/https/bin/parsexml /home/sun-webserver6.1/https-admserv/config JAVA nativelibrarypathprefix
                          Aborted


                          So if anyone can help me to modify this few lines of code, plz help ;)



                          #parse Java nativelibrarypathprefix from server.xml
                          JAVA_RUNTIME_LIBPATH_PREFIX=`/home/likewise-open/SIGMAAIE/och/sun-webserver6.1/bin/https/bin/parsexml ${INSTANCE_CONFIG_DIR} JAVA nativelibrarypathprefix`
                          JAVA_RUNTIME_LIBPATH_PREFIX=${JAVA_RUNTIME_LIBPATH_PREFIX:+$JAVA_RUNTIME_LIBPATH_PREFIX:}

                          #parse Java nativelibrarypathsuffix from server.xml
                          #JAVA_RUNTIME_LIBPATH_SUFFIX=`./parsexml ${INSTANCE_CONFIG_DIR} JAVA nativelibrarypathsuffix`
                          JAVA_RUNTIME_LIBPATH_SUFFIX=${JAVA_RUNTIME_LIBPATH_SUFFIX:+:$JAVA_RUNTIME_LIBPATH_SUFFIX}

                          #parse any Java profiler nativelibrarypath if present
                          #JAVA_PROFILER_LIBPATH=`./parsexml ${INSTANCE_CONFIG_DIR} JAVA/PROFILER nativelibrarypath`
                          JAVA_PROFILER_LIBPATH=${JAVA_PROFILER_LIBPATH:+:$JAVA_PROFILER_LIBPATH}


                          Thanks in advance.
                          • 10. Re: Failed to start JAVA Systems Web Server
                            858598
                            so , now i took another linux distribution and with success.

                            but now i want sun web server working with weblogic . i found in several tutorials, that i have to copy the libproxy_61.so from the weblogic folder to a sun folder, modify "obj.conf" and "magnus.conf" and it should work.

                            but now my question is, where the hell is the libproxy_61.so ? I've searched in the weblogic folder, but nothing found. The Oracle documentation say the following:

                            Linux
                                 WL_HOME/server/lib/linux/i686/libproxy128.so
                            WL_HOME/server/lib/linux/i686/libproxy128_61.so
                            WL_HOME/server/lib/linux/i686/libproxy.so
                            WL_HOME/server/lib/linux/i686/libproxy_61.so

                            But i definatly have no such files in my weblogic folder. :( is it possible that someone can share the file for me ? or give me link, hint or something else ?

                            Thanks in advance.
                            • 11. Re: Failed to start JAVA Systems Web Server
                              Mv-Oracle
                              If you are picking up a new server can you try Web Server 7.0? It has built in reverse proxy feature.

                              Refer http://blogs.sun.com/meena/entry/configuring_reverse_proxy_in_sun
                              • 12. Re: Failed to start JAVA Systems Web Server
                                858598
                                hey,

                                ok everything is working fine now. i downloaded the weblogic server *.bin file and took the libproxy_61.so from there.

                                thanks to all involved for helping me ;)
                                • 13. Re: Failed to start JAVA Systems Web Server
                                  882771
                                  Hey

                                  Hey could share to me where you download tha web logic *.bin files, I need libproxy_61.so file also.
                                  but I have no idea where to get this file

                                  Thanls