[ 
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):
[EMAIL PROTECTED]:~/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:
[EMAIL PROTECTED]:~/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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to