glassfish
  1. glassfish
  2. GLASSFISH-20469

Local instances of local cluster not logging anything

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.0_b87_RC3
    • Fix Version/s: 4.1
    • Component/s: logging
    • Labels:
      None

      Description

      Either by using Logger or by using System.out, nothing is printed into

      ~/glassfish4/glassfish/nodes/localhost-domain1/instance1/logs/server.log
      

        Activity

        Hide
        sandeep.shrivastava added a comment -

        Closing this as not reproducible.

        Show
        sandeep.shrivastava added a comment - Closing this as not reproducible.
        Hide
        jacek.klimkowicz added a comment - - edited

        I confirm this issue. I configured Glassfish cluster on 2 VM's as well as on production environment (two machines with Glassfish 4.0 b89, CentOS 6.4 and JDK 1.7) and log files for particular instances of Glassfish contains only small portion of data logged during starting application server. But as soon as I deploy application logging no longer works and there is no new and important for me data.

        I tried to customize logger settings as well as change default logger but without success. If you have any questions I am ready to help you. I provide exhausting answer as soon as it will be possible.

        Show
        jacek.klimkowicz added a comment - - edited I confirm this issue. I configured Glassfish cluster on 2 VM's as well as on production environment (two machines with Glassfish 4.0 b89, CentOS 6.4 and JDK 1.7) and log files for particular instances of Glassfish contains only small portion of data logged during starting application server. But as soon as I deploy application logging no longer works and there is no new and important for me data. I tried to customize logger settings as well as change default logger but without success. If you have any questions I am ready to help you. I provide exhausting answer as soon as it will be possible.
        Hide
        sandeep.shrivastava added a comment -

        Please provide the detailed steps to reproduce this issue.

        Thanks

        Show
        sandeep.shrivastava added a comment - Please provide the detailed steps to reproduce this issue. Thanks
        Hide
        jacek.klimkowicz added a comment -

        Installation (CentOS 6.4):

        1. Creating user for glassfish:

        a) useradd -d /home/glassfish glassfish

        2. Creating answer file for glassfish's installer. Below listed answers.txt content:

        Domain.Configuration.ADMIN_PASSWORD=admin_password
        Domain.Configuration.ADMIN_PASSWORD_REENTER=admin_password
        Domain.Configuration.ADMIN_PORT=4848
        Domain.Configuration.ADMIN_USER=admin
        Domain.Configuration.DOMAIN_NAME=domain1
        Domain.Configuration.HTTP_PORT=8080
        InstallHome.directory.INSTALL_HOME=/home/glassfish
        UpdateTool.Configuration.ALLOW_UPDATE_CHECK=false
        UpdateTool.Configuration.BOOTSTRAP_UPDATETOOL=false
        UpdateTool.Configuration.PROXY_HOST=
        UpdateTool.Configuration.PROXY_PORT=8888

        2. Installation

        a) su glassfish (switch to user glassfish)
        b) sh /path/to/downloaded/glass/glassfish-4.0-unix-ml.sh -s -a answers.txt

        3. Configuring cluster

        On the DAS:

        a) su glassfish
        b) asadmin start-domain
        c) asadmin enable-secure-admin
        d) asadmin restart-domain
        e) asadmin create-cluster cluster
        f) asadmin create-local-instance --cluster cluster instance1

        On the second machine:

        a) asadmin --host IP_address --port 4848 create-loca-instance --cluster cluster instance2

        On the DAS:

        a) asadmin start-cluster cluster
        b) In the admin console: Nodes->Remote, type=ssh, SSH User authentication="password", SSH User password="......"

        On all nodes: asadmin validate-multicast (checking communication)

        On the DAS (I use AJP/mod_jk):

        a) asadmin create-network-listener --target cluster --protocol http-listener-1 --address 0.0.0.0 --listenerport 8009 --jkenabled true jk-connector

        b) asadmin create-jvm-options --target cluster "-DjvmRoute=\$

        {AJP_INSTANCE_NAME}

        "

        c) asadmin create-system-properties --target instance1 AJP_INSTANCE_NAME=glassfish1
        d) asadmin create-system-properties --target instance2 AJP_INSTANCE_NAME=glassfish2

        At next I configure connection pools, resources and propertieses necessary for my application. At the end I deploy it on the DAS.

        That is all. Like I said, after deploy logs for both instances are empty - there is no new data.

        Show
        jacek.klimkowicz added a comment - Installation (CentOS 6.4): 1. Creating user for glassfish: a) useradd -d /home/glassfish glassfish 2. Creating answer file for glassfish's installer. Below listed answers.txt content: Domain.Configuration.ADMIN_PASSWORD=admin_password Domain.Configuration.ADMIN_PASSWORD_REENTER=admin_password Domain.Configuration.ADMIN_PORT=4848 Domain.Configuration.ADMIN_USER=admin Domain.Configuration.DOMAIN_NAME=domain1 Domain.Configuration.HTTP_PORT=8080 InstallHome.directory.INSTALL_HOME=/home/glassfish UpdateTool.Configuration.ALLOW_UPDATE_CHECK=false UpdateTool.Configuration.BOOTSTRAP_UPDATETOOL=false UpdateTool.Configuration.PROXY_HOST= UpdateTool.Configuration.PROXY_PORT=8888 2. Installation a) su glassfish (switch to user glassfish) b) sh /path/to/downloaded/glass/glassfish-4.0-unix-ml.sh -s -a answers.txt 3. Configuring cluster On the DAS: a) su glassfish b) asadmin start-domain c) asadmin enable-secure-admin d) asadmin restart-domain e) asadmin create-cluster cluster f) asadmin create-local-instance --cluster cluster instance1 On the second machine: a) asadmin --host IP_address --port 4848 create-loca-instance --cluster cluster instance2 On the DAS: a) asadmin start-cluster cluster b) In the admin console: Nodes->Remote, type=ssh, SSH User authentication="password", SSH User password="......" On all nodes: asadmin validate-multicast (checking communication) On the DAS (I use AJP/mod_jk): a) asadmin create-network-listener --target cluster --protocol http-listener-1 --address 0.0.0.0 --listenerport 8009 --jkenabled true jk-connector b) asadmin create-jvm-options --target cluster "-DjvmRoute=\$ {AJP_INSTANCE_NAME} " c) asadmin create-system-properties --target instance1 AJP_INSTANCE_NAME=glassfish1 d) asadmin create-system-properties --target instance2 AJP_INSTANCE_NAME=glassfish2 At next I configure connection pools, resources and propertieses necessary for my application. At the end I deploy it on the DAS. That is all. Like I said, after deploy logs for both instances are empty - there is no new data.
        Hide
        sandeep.shrivastava added a comment -

        Thanks for posting your detail steps.

        What is the last log entry in the server.log for the instances?

        Could you also post the thread dumps? Are the instances and the application working fine otherwise?

        Thanks

        Show
        sandeep.shrivastava added a comment - Thanks for posting your detail steps. What is the last log entry in the server.log for the instances? Could you also post the thread dumps? Are the instances and the application working fine otherwise? Thanks

          People

          • Assignee:
            sandeep.shrivastava
            Reporter:
            Bruno Borges
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: