You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Stefano Pettini (JIRA)" <ji...@apache.org> on 2007/10/02 16:18:50 UTC

[jira] Created: (AXIS2C-711) Log messages when deployed to apache written to wrong file

Log messages when deployed to apache written to wrong file
----------------------------------------------------------

                 Key: AXIS2C-711
                 URL: https://issues.apache.org/jira/browse/AXIS2C-711
             Project: Axis2-C
          Issue Type: Bug
          Components: core/deployment
    Affects Versions: 1.0.0, 1.1.0
         Environment: RedHat Enterprise Linux 4 running Apache 2.0.52
            Reporter: Stefano Pettini
            Priority: Minor


According to user manual:

PATH_TO_LOG_FILE has to be replaced with the full path to where you wish to have the Axis2/C log file, for example, /tmp/axis2.log. Note that the log file path should have write access to the daemon user account under which the Apache2 HTTPD process is run.

It doesn't seem to work: Axis log messages are written to apache's error_log file, not the file specified with PATH_TO_LOG_FILE.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Commented: (AXIS2C-711) Log messages when deployed to apache written to wrong file

Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2C-711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12532039 ] 

Samisa Abeysinghe commented on AXIS2C-711:
------------------------------------------

What are the settings that you used in the httpd.conf file?

> Log messages when deployed to apache written to wrong file
> ----------------------------------------------------------
>
>                 Key: AXIS2C-711
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-711
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/deployment
>    Affects Versions: 1.0.0, 1.1.0
>         Environment: RedHat Enterprise Linux 4 running Apache 2.0.52
>            Reporter: Stefano Pettini
>            Priority: Minor
>
> According to user manual:
> PATH_TO_LOG_FILE has to be replaced with the full path to where you wish to have the Axis2/C log file, for example, /tmp/axis2.log. Note that the log file path should have write access to the daemon user account under which the Apache2 HTTPD process is run.
> It doesn't seem to work: Axis log messages are written to apache's error_log file, not the file specified with PATH_TO_LOG_FILE.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Assigned: (AXIS2C-711) Log messages when deployed to apache written to wrong file

Posted by "Damitha Kumarage (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Damitha Kumarage reassigned AXIS2C-711:
---------------------------------------

    Assignee: Damitha Kumarage

> Log messages when deployed to apache written to wrong file
> ----------------------------------------------------------
>
>                 Key: AXIS2C-711
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-711
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/deployment
>    Affects Versions: 1.0.0, 1.1.0
>         Environment: RedHat Enterprise Linux 4 running Apache 2.0.52
>            Reporter: Stefano Pettini
>            Assignee: Damitha Kumarage
>            Priority: Minor
>             Fix For: 1.2.0
>
>
> According to user manual:
> PATH_TO_LOG_FILE has to be replaced with the full path to where you wish to have the Axis2/C log file, for example, /tmp/axis2.log. Note that the log file path should have write access to the daemon user account under which the Apache2 HTTPD process is run.
> It doesn't seem to work: Axis log messages are written to apache's error_log file, not the file specified with PATH_TO_LOG_FILE.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Commented: (AXIS2C-711) Log messages when deployed to apache written to wrong file

Posted by "Stefano Pettini (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2C-711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12532355 ] 

Stefano Pettini commented on AXIS2C-711:
----------------------------------------

Here are the lines in my httpd.conf related to logging:

ErrorLog logs/error_log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog logs/access_log combined

Here is Axis2/C config file (parsed before logging lines above):

LoadModule axis2_module /usr/local/axis2c/lib/libmod_axis2.so

Axis2RepoPath /usr/local/axis2c
Axis2LogFile /etc/httpd/logs/axis2c.log
Axis2LogLevel info

<Location /ws>
 SetHandler axis2_module
</Location>


Thank you!
S. 

> Log messages when deployed to apache written to wrong file
> ----------------------------------------------------------
>
>                 Key: AXIS2C-711
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-711
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/deployment
>    Affects Versions: 1.0.0, 1.1.0
>         Environment: RedHat Enterprise Linux 4 running Apache 2.0.52
>            Reporter: Stefano Pettini
>            Priority: Minor
>
> According to user manual:
> PATH_TO_LOG_FILE has to be replaced with the full path to where you wish to have the Axis2/C log file, for example, /tmp/axis2.log. Note that the log file path should have write access to the daemon user account under which the Apache2 HTTPD process is run.
> It doesn't seem to work: Axis log messages are written to apache's error_log file, not the file specified with PATH_TO_LOG_FILE.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Closed: (AXIS2C-711) Log messages when deployed to apache written to wrong file

Posted by "Damitha Kumarage (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Damitha Kumarage closed AXIS2C-711.
-----------------------------------

    Resolution: Fixed

This is fixed

> Log messages when deployed to apache written to wrong file
> ----------------------------------------------------------
>
>                 Key: AXIS2C-711
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-711
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/deployment
>    Affects Versions: 1.0.0, 1.1.0
>         Environment: RedHat Enterprise Linux 4 running Apache 2.0.52
>            Reporter: Stefano Pettini
>            Assignee: Damitha Kumarage
>            Priority: Minor
>             Fix For: 1.2.0
>
>
> According to user manual:
> PATH_TO_LOG_FILE has to be replaced with the full path to where you wish to have the Axis2/C log file, for example, /tmp/axis2.log. Note that the log file path should have write access to the daemon user account under which the Apache2 HTTPD process is run.
> It doesn't seem to work: Axis log messages are written to apache's error_log file, not the file specified with PATH_TO_LOG_FILE.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Commented: (AXIS2C-711) Log messages when deployed to apache written to wrong file

Posted by "Damitha Kumarage (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2C-711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549832 ] 

Damitha Kumarage commented on AXIS2C-711:
-----------------------------------------

When apache2 cannot write to the specified Axis2LogFile path for some reason(read/write/execute access denied) it writes to the apaehce's error log file. If correct permission is given I find no problem writing to the 
given log path.

> Log messages when deployed to apache written to wrong file
> ----------------------------------------------------------
>
>                 Key: AXIS2C-711
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-711
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/deployment
>    Affects Versions: 1.0.0, 1.1.0
>         Environment: RedHat Enterprise Linux 4 running Apache 2.0.52
>            Reporter: Stefano Pettini
>            Assignee: Damitha Kumarage
>            Priority: Minor
>             Fix For: 1.2.0
>
>
> According to user manual:
> PATH_TO_LOG_FILE has to be replaced with the full path to where you wish to have the Axis2/C log file, for example, /tmp/axis2.log. Note that the log file path should have write access to the daemon user account under which the Apache2 HTTPD process is run.
> It doesn't seem to work: Axis log messages are written to apache's error_log file, not the file specified with PATH_TO_LOG_FILE.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Updated: (AXIS2C-711) Log messages when deployed to apache written to wrong file

Posted by "Damitha Kumarage (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Damitha Kumarage updated AXIS2C-711:
------------------------------------

    Fix Version/s: 1.2.0
         Assignee:     (was: Damitha Kumarage)

> Log messages when deployed to apache written to wrong file
> ----------------------------------------------------------
>
>                 Key: AXIS2C-711
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-711
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/deployment
>    Affects Versions: 1.0.0, 1.1.0
>         Environment: RedHat Enterprise Linux 4 running Apache 2.0.52
>            Reporter: Stefano Pettini
>            Priority: Minor
>             Fix For: 1.2.0
>
>
> According to user manual:
> PATH_TO_LOG_FILE has to be replaced with the full path to where you wish to have the Axis2/C log file, for example, /tmp/axis2.log. Note that the log file path should have write access to the daemon user account under which the Apache2 HTTPD process is run.
> It doesn't seem to work: Axis log messages are written to apache's error_log file, not the file specified with PATH_TO_LOG_FILE.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Commented: (AXIS2C-711) Log messages when deployed to apache written to wrong file

Posted by "Senaka Fernando (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2C-711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549853 ] 

Senaka Fernando commented on AXIS2C-711:
----------------------------------------

Hi Stefano,
      Did u try using /tmp/axis2c.log instead of /etc/httpd/logs/axis2c.log? I guess this is because it doesn't have write access. As you see, it is not your user account that needs write access but the account in which the process which accesses the file runs. Therefore, if you really want to keep this location, you may try a chmod 766 or chmod 777 on your file(s).

I have successfully got the messages logged to the file that I specify instead of the apache log, and I used /tmp/axis2.log. This is because the folder /tmp has write access.

Regards,
Senaka

> Log messages when deployed to apache written to wrong file
> ----------------------------------------------------------
>
>                 Key: AXIS2C-711
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-711
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/deployment
>    Affects Versions: 1.0.0, 1.1.0
>         Environment: RedHat Enterprise Linux 4 running Apache 2.0.52
>            Reporter: Stefano Pettini
>            Assignee: Damitha Kumarage
>            Priority: Minor
>             Fix For: 1.2.0
>
>
> According to user manual:
> PATH_TO_LOG_FILE has to be replaced with the full path to where you wish to have the Axis2/C log file, for example, /tmp/axis2.log. Note that the log file path should have write access to the daemon user account under which the Apache2 HTTPD process is run.
> It doesn't seem to work: Axis log messages are written to apache's error_log file, not the file specified with PATH_TO_LOG_FILE.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Assigned: (AXIS2C-711) Log messages when deployed to apache written to wrong file

Posted by "Damitha Kumarage (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Damitha Kumarage reassigned AXIS2C-711:
---------------------------------------

    Assignee: Damitha Kumarage

> Log messages when deployed to apache written to wrong file
> ----------------------------------------------------------
>
>                 Key: AXIS2C-711
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-711
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/deployment
>    Affects Versions: 1.0.0, 1.1.0
>         Environment: RedHat Enterprise Linux 4 running Apache 2.0.52
>            Reporter: Stefano Pettini
>            Assignee: Damitha Kumarage
>            Priority: Minor
>             Fix For: 1.2.0
>
>
> According to user manual:
> PATH_TO_LOG_FILE has to be replaced with the full path to where you wish to have the Axis2/C log file, for example, /tmp/axis2.log. Note that the log file path should have write access to the daemon user account under which the Apache2 HTTPD process is run.
> It doesn't seem to work: Axis log messages are written to apache's error_log file, not the file specified with PATH_TO_LOG_FILE.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org