You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Charitha Kankanamge (JIRA)" <ji...@apache.org> on 2007/08/05 07:38:52 UTC

[jira] Created: (AXIS2-3073) commons-logging and log4j property files should not be placed at the root of axis2 binary distro

commons-logging and log4j property files should not be placed at the root of axis2 binary distro
------------------------------------------------------------------------------------------------

                 Key: AXIS2-3073
                 URL: https://issues.apache.org/jira/browse/AXIS2-3073
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
    Affects Versions: 1.3
            Reporter: Charitha Kankanamge
            Assignee: Deepal Jayasinghe
            Priority: Minor


Currently commons-logging.properties and log4j.properties are located at the root of axis2-1.3 RC3 binary distribution. These files should be placed either in conf or lib directory.



-- 
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-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-3073) commons-logging and log4j property files should not be placed at the root of axis2 binary distro

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

Davanum Srinivas updated AXIS2-3073:
------------------------------------

    Fix Version/s:     (was: 1.4)

Sorry folks, running out of steam, if anyone can fix the scripts and the dist generation, i'll take a patch, otherwise let's defer it.

thanks,
dims

> commons-logging and log4j property files should not be placed at the root of axis2 binary distro
> ------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3073
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3073
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Charitha Kankanamge
>            Assignee: Deepal Jayasinghe
>            Priority: Minor
>
> Currently commons-logging.properties and log4j.properties are located at the root of axis2-1.3 RC3 binary distribution. These files should be placed either in conf or lib directory.

-- 
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-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3073) commons-logging and log4j property files should not be placed at the root of axis2 binary distro

Posted by "Charitha Kankanamge (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12580418#action_12580418 ] 

Charitha Kankanamge commented on AXIS2-3073:
--------------------------------------------

Hi Dims,
Sorry for misunderstanding. I saw a couple of comments which does not directly relates to the issue i originally reported. 
I have seen that config files are placed in either conf or lib directories in most app servers. I thought it would be nice to have the same structure in Axis2 binary distro. Therefore I reported this minor usability issue a few months back. 
I saw the property files are located at the root in Axis2-1.4 RC1 and therefore reopened the issue.

I have no strong objections for placing them at the root since this is not a functionality issue, just a suggestion to improve usability. (It was my mistake to report this under Bug, this should have been reported as a suggestion)

regards
Charitha

> commons-logging and log4j property files should not be placed at the root of axis2 binary distro
> ------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3073
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3073
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Charitha Kankanamge
>            Assignee: Deepal Jayasinghe
>            Priority: Minor
>             Fix For: 1.4
>
>
> Currently commons-logging.properties and log4j.properties are located at the root of axis2-1.3 RC3 binary distribution. These files should be placed either in conf or lib directory.

-- 
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-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3073) commons-logging and log4j property files should not be placed at the root of axis2 binary distro

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517761 ] 

Davanum Srinivas commented on AXIS2-3073:
-----------------------------------------

Let's do this post 1.3. Need to avoid making changes to scripts.

thanks,
dims

> commons-logging and log4j property files should not be placed at the root of axis2 binary distro
> ------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3073
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3073
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Charitha Kankanamge
>            Assignee: Deepal Jayasinghe
>            Priority: Minor
>
> Currently commons-logging.properties and log4j.properties are located at the root of axis2-1.3 RC3 binary distribution. These files should be placed either in conf or lib directory.

-- 
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-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3073) commons-logging and log4j property files should not be placed at the root of axis2 binary distro

Posted by "Upul Godage (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517765 ] 

Upul Godage commented on AXIS2-3073:
------------------------------------

Just a suggestion.

Current console (Deploying... messages missing):
user@user:~/apps/axis2/bin$ bash axis2server.sh
 Using AXIS2_HOME:   /home/user/apps/axis2
 Using JAVA_HOME:       /usr/java
log4j:WARN No appenders could be found for logger (org.apache.axis2.transport.http.SimpleHTTPServer).
log4j:WARN Please initialize the log4j system properly.
[SimpleAxisServer] Using the Axis2 Repository/home/user/apps/axis2/repository
[SimpleAxisServer] Using the Axis2 Configuration File/home/user/apps/axis2/conf/axis2.xml
[SimpleAxisServer] Started
[SimpleHTTPServer] Stop called

With log4j.properties added to a jar's root:
user@user:~/apps/axis2/bin$ bash axis2server.sh
 Using AXIS2_HOME:   /home/user/apps/axis2
 Using JAVA_HOME:       /usr/java
[INFO] [SimpleAxisServer] Starting
[INFO] [SimpleAxisServer] Using the Axis2 Repository/home/user/apps/axis2/repository
[SimpleAxisServer] Using the Axis2 Repository/home/user/apps/axis2/repository
[SimpleAxisServer] Using the Axis2 Configuration File/home/user/apps/axis2/conf/axis2.xml
[INFO] Deploying module: ping-SNAPSHOT
[INFO] Deploying module: soapmonitor-SNAPSHOT
[INFO] Deploying module: metadataExchange-SNAPSHOT
[INFO] Deploying module: addressing-SNAPSHOT
[INFO] Deploying module: script-SNAPSHOT
[INFO] script module activated
[INFO] Deploying Web service: version.aar
[INFO] [SimpleAxisServer] Started
[SimpleAxisServer] Started
[INFO] Listening on port 8080
[SimpleHTTPServer] Stop called
[INFO] Shut down connection listener
[INFO] Shut down HTTP processors
[INFO] HTTP protocol handler shut down

At the moment I see only System.out, errs in the console for axis2server.sh, wsdl2java.sh etc. with the warning,
log4j:WARN No appenders could be found for logger (org.apache.axis2.transport.http.SimpleHTTPServer).
log4j:WARN Please initialize the log4j system properly.

When this goes as a release and people start using it, when something goes wrong they will only get a stack trace.  All log messages will be ignored.  I think that would be dangerous.  Users cannot see what is going on.

As the classpath only has jars in this situation, as a quick fix we can add the log4j.properties file inside one of the allways-used axis2 jars' root.  Let's say axis2-kernel.jar.  This way logging system will be initialized always.  Only problem would be the user won't see the file to do any changes.  But I think it would be better than nothing for the moment.


> commons-logging and log4j property files should not be placed at the root of axis2 binary distro
> ------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3073
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3073
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Charitha Kankanamge
>            Assignee: Deepal Jayasinghe
>            Priority: Minor
>
> Currently commons-logging.properties and log4j.properties are located at the root of axis2-1.3 RC3 binary distribution. These files should be placed either in conf or lib directory.

-- 
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-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3073) commons-logging and log4j property files should not be placed at the root of axis2 binary distro

Posted by "Upul Godage (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517756 ] 

Upul Godage commented on AXIS2-3073:
------------------------------------

At present I don't see the log messages for axis2server.sh, wsdl2java.sh etc.  It seems the log configuration files are not visible to the system anyway.

You can add these 2 properties to the setenv.sh to initialize it properly.  commons-logging.properties file is not needed.
You can put the log4j.properties file in the conf directory with these settings. Keeping it at a usual place like conf directory, the user can customize it if required.

In setenv.sh (in one line):

export JAVA_OPTS="$JAVA_OPTS "-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger" "-Dlog4j.configuration=file:../conf/log4j.properties

In axis2server.sh etc. add $JAVA_OPTS:

java $JAVA_OPTS -classpath $AXIS2_CLASSPATH org.apache.axis2.transport.SimpleAxis2Server \
-repo $AXIS2_HOME/repository -conf $AXIS2_HOME/conf/axis2.xml $*

> commons-logging and log4j property files should not be placed at the root of axis2 binary distro
> ------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3073
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3073
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Charitha Kankanamge
>            Assignee: Deepal Jayasinghe
>            Priority: Minor
>
> Currently commons-logging.properties and log4j.properties are located at the root of axis2-1.3 RC3 binary distribution. These files should be placed either in conf or lib directory.

-- 
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-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3073) commons-logging and log4j property files should not be placed at the root of axis2 binary distro

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12580424#action_12580424 ] 

Davanum Srinivas commented on AXIS2-3073:
-----------------------------------------

Got it!!! i thought you were seeing an issue that i was not seeing (like the first comment from upul). 

Will try to fix for 1.4.

thanks,
dims

> commons-logging and log4j property files should not be placed at the root of axis2 binary distro
> ------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3073
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3073
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Charitha Kankanamge
>            Assignee: Deepal Jayasinghe
>            Priority: Minor
>             Fix For: 1.4
>
>
> Currently commons-logging.properties and log4j.properties are located at the root of axis2-1.3 RC3 binary distribution. These files should be placed either in conf or lib directory.

-- 
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-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-3073) commons-logging and log4j property files should not be placed at the root of axis2 binary distro

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

Davanum Srinivas resolved AXIS2-3073.
-------------------------------------

    Resolution: Fixed

looks like latest trunk, the properties file do get picked up...

C:\axis2-SNAPSHOT\bin>axis2server.bat
Using JAVA_HOME    C:\JDK15
Using AXIS2_HOME   C:\axis2-SNAPSHOT\bin\..
[INFO] [SimpleAxisServer] Starting
[INFO] [SimpleAxisServer] Using the Axis2 RepositoryC:\axis2-SNAPSHOT\bin\..\repository
[SimpleAxisServer] Using the Axis2 RepositoryC:\axis2-SNAPSHOT\bin\..\repository
[SimpleAxisServer] Using the Axis2 Configuration FileC:\axis2-SNAPSHOT\bin\..\conf\axis2.xml
[INFO] Deploying module: addressing-SNAPSHOT - file:/C:/axis2-SNAPSHOT/bin/../repository/modules/addressing-SNAPSHOT.mar
[INFO] Deploying module: metadataExchange-SNAPSHOT - file:/C:/axis2-SNAPSHOT/bin/../repository/modules/mex-SNAPSHOT.mar
[INFO] Deploying module: ping-SNAPSHOT - file:/C:/axis2-SNAPSHOT/bin/../repository/modules/ping-SNAPSHOT.mar
[INFO] Deploying module: script-SNAPSHOT - file:/C:/axis2-SNAPSHOT/bin/../repository/modules/scripting-SNAPSHOT.mar
[INFO] Deploying module: smtpfault - file:/C:/axis2-SNAPSHOT/bin/../repository/modules/smtpfault.mar
[INFO] Deploying module: soapmonitor-SNAPSHOT - file:/C:/axis2-SNAPSHOT/bin/../repository/modules/soapmonitor-SNAPSHOT.mar
[INFO] script module activated
[INFO] Deploying Web service: version.aar - file:/C:/axis2-SNAPSHOT/bin/../repository/services/version.aar
[INFO] [SimpleAxisServer] Started
[SimpleAxisServer] Started
[INFO] Listening on port 8080

> commons-logging and log4j property files should not be placed at the root of axis2 binary distro
> ------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3073
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3073
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Charitha Kankanamge
>            Assignee: Deepal Jayasinghe
>            Priority: Minor
>             Fix For: 1.4
>
>
> Currently commons-logging.properties and log4j.properties are located at the root of axis2-1.3 RC3 binary distribution. These files should be placed either in conf or lib directory.

-- 
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-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Reopened: (AXIS2-3073) commons-logging and log4j property files should not be placed at the root of axis2 binary distro

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

Charitha Kankanamge reopened AXIS2-3073:
----------------------------------------


These two files (commons-logging.properties and logs4j.properties) are still placed at the root of binary distro. Retested with Axis2-1.4 RC1.



> commons-logging and log4j property files should not be placed at the root of axis2 binary distro
> ------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3073
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3073
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Charitha Kankanamge
>            Assignee: Deepal Jayasinghe
>            Priority: Minor
>             Fix For: 1.4
>
>
> Currently commons-logging.properties and log4j.properties are located at the root of axis2-1.3 RC3 binary distribution. These files should be placed either in conf or lib directory.

-- 
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-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-3073) commons-logging and log4j property files should not be placed at the root of axis2 binary distro

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12580405#action_12580405 ] 

Davanum Srinivas commented on AXIS2-3073:
-----------------------------------------

Charitha,

And the problem is....what?

-- dims

> commons-logging and log4j property files should not be placed at the root of axis2 binary distro
> ------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3073
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3073
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Charitha Kankanamge
>            Assignee: Deepal Jayasinghe
>            Priority: Minor
>             Fix For: 1.4
>
>
> Currently commons-logging.properties and log4j.properties are located at the root of axis2-1.3 RC3 binary distribution. These files should be placed either in conf or lib directory.

-- 
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-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-3073) commons-logging and log4j property files should not be placed at the root of axis2 binary distro

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

Davanum Srinivas updated AXIS2-3073:
------------------------------------

    Fix Version/s: 1.4

> commons-logging and log4j property files should not be placed at the root of axis2 binary distro
> ------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3073
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3073
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Charitha Kankanamge
>            Assignee: Deepal Jayasinghe
>            Priority: Minor
>             Fix For: 1.4
>
>
> Currently commons-logging.properties and log4j.properties are located at the root of axis2-1.3 RC3 binary distribution. These files should be placed either in conf or lib directory.

-- 
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-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org