Re: Logs from different web apps go to same file with log4j?!

2010-05-18 Thread G.Cholakov

Hi Jake,

log4j.jar is in WEB-INF/lib, log4j.xml is in WEB-INF/classes. 
What do you mean by "use autoconfiguration or
some other location and use manual confguration"?

I attached the log4j.xml, because in the first post some lines dissapeared.


-- 
View this message in context: 
http://old.nabble.com/Logs-from-different-web-apps-go-to-same-file-with-log4j-%21-tp28595472p28604540.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: Logs from different web apps go to same file with log4j?!

2010-05-18 Thread Jacob Kjome

Where do you place log4j.jar?  In WEB-INF/lib or in some shared location?  And
where do you place log4j.xml?  In WEB-INF/classes and use autoconfiguration or
some other location and use manual confguration?


Jake


On 5/18/2010 6:50 AM, G.Cholakov wrote:
> 
> Hi,
> 
> The problem is the following - I have several web apps, running in Tomcat 6.
> I've noticed that all logs go to one file, which is specific for only one of
> the web applications! Each file in each application is named unique.
> What I did wrong?
> 
> Here is the log4j.xml:
> 
> 
> 
>  xmlns:log4j="http://jakarta.apache.org/log4j/";>
>  class="org.apache.log4j.RollingFileAppender">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: Vigilog 1.3.1 problem

2010-05-18 Thread Jacob Kjome
Vigilog is not a product of the Apache Logging Services Project.  Please contact
the maker of Vigilog for support.

Jake

On 5/18/2010 12:48 AM, Prashant Patil wrote:
> 
> 
> Hi All,
> 
> I have downloaded "Vigilog 1.3.1" log viewer tool.
> 
> I am trying to use this for simple log4j text log files by providing Log 
> Pattern "[%d{dd MMM  HH:mm:ss,SSS}] [%p] %m%n".
> 
> But it is throwing exception for this log pattern saying that "MMM" is 
> unsupported conversion.
> 
> Please help me out if this log pattern is not supported or anything else.
> 
> Stack trace I am getting:-->
> 
> 
> Message:
> java.util.concurrent.ExecutionException: 
> net.sourceforge.vigilog.parse.LogFileParserException: Unsupported conversion 
> item: MMM
> Level:
> SEVERE
> Stack Trace:
> net.sourceforge.vigilog.parse.LogFileParserException: Unsupported conversion 
> item: MMM
> java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
> java.util.concurrent.FutureTask.get(Unknown Source)
> org.jdesktop.swingworker.SwingWorker.get(Unknown Source)
> 
> net.sourceforge.vigilog.ui.LogFileLoaderCallable.call(LogFileLoaderCallable.java:106)
> 
> net.sourceforge.vigilog.ui.LogFileLoaderCallable.call(LogFileLoaderCallable.java:42)
> java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
> java.util.concurrent.FutureTask.run(Unknown Source)
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
> java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> Unsupported conversion item: MMM
> 
> net.sourceforge.vigilog.parse.Log4jLogFileParser.parse(Log4jLogFileParser.java:229)
> 
> net.sourceforge.vigilog.ui.LogFileLoaderCallable$ParseLogSwingWorker.doInBackground(LogFileLoaderCallable.java:199)
> 
> net.sourceforge.vigilog.ui.LogFileLoaderCallable$ParseLogSwingWorker.doInBackground(LogFileLoaderCallable.java:188)
> org.jdesktop.swingworker.SwingWorker$1.call(Unknown Source)
> java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
> java.util.concurrent.FutureTask.run(Unknown Source)
> org.jdesktop.swingworker.SwingWorker.run(Unknown Source)
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
> java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> java.lang.Thread.run(Unknown Source)
> 
> 
>  Warm Regards,
>  Prashant
> 
> 
> 
> DISCLAIMER
> ==
> This e-mail may contain privileged and confidential information which is the 
> property of Persistent Systems Ltd. It is intended only for the use of the 
> individual or entity to which it is addressed. If you are not the intended 
> recipient, you are not authorized to read, retain, copy, print, distribute or 
> use this message. If you have received this communication in error, please 
> notify the sender and delete all copies of this message. Persistent Systems 
> Ltd. does not accept any liability for virus infected mails.
> 

-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: ECCN Question -- Apache Log4J 1.2

2010-05-18 Thread Curt Arnold
Export status of Apache software is at http://www.apache.org/licenses/exports/. 
 Apache log4j is not listed as it is not known to contain cryptographic 
functionality or to be specially designed to use other software with 
cryptographic functionality.

Please see the disclaimer on that page and consider my further comments covered 
by that disclaimer.

On May 18, 2010, at 7:13 PM, Erin Clark wrote:

> Hi All:
> 
> 
> 
> I'm assisting a client with the export classification of their product
> and the subject product utilizes Apache Log4J 1.2.  Do you know who
> might be the correct developer(s) for this open source code?  If it's
> you all, do you happen to know what the Export Control Classification
> Number (ECCN) for this code?  If you don't know the ECCN, can you please
> respond to the following questions at your convenience?
> 
> 
> 
> a. Does the code perform cryptographic functions (i.e.,
> encryption/decryption)?

Not that I am aware of.

> 
> b.Does the code contain any cryptographic algorithms (i.e., 3DES,
> Diffie-Helman, Blowfish, Rijndael, RC4, RSA) (whether or not these
> algorithms are actually being used by the software)?

Not that I am aware of.

> 
> c. Is the code capable of interfacing with, calling to, using,
> invoking or enabling/disabling the cryptographic features within other
> software or within the underlying platform in any way?

The SMTPAppender has a configurable string property that specifies the protocol 
to be used and which is passed down to the java.mail API.  The value "smtps" 
has no special meaning to log4j, but does to java.mail and would result in use 
of an SMTP+SSL transport.   As the value is passed through log4j to the lower 
level API without special treatment, log4j is not specifically designed to use 
encryption.  We are just we are aware it can happen with some values.  In the 
same manner, if any FileAppender is configured to use a encrypted filesystem, 
the underlying system will perform encryption.


> 
> d.Is the code capable of performing message digesting/hashing (i.e.,
> MD5, RIPEMD, SHA, Tiger), fixed data compression or authentication?

Not that I'm aware of.  The log4j extras companion (distributed separately from 
log4j 1.2.x), does call the Java API for Gzip and Zip compression of log files.


> 
> e. Does the code contain/utilize and open cryptographic interface
> (OCI), where the cryptographic capabilities of the code are
> user-accessible and/or modifiable?  (See below for a more detailed
> definition of OCI.)  

Not that I am aware of.


-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



ECCN Question -- Apache Log4J 1.2

2010-05-18 Thread Erin Clark
Hi All:



I'm assisting a client with the export classification of their product
and the subject product utilizes Apache Log4J 1.2.  Do you know who
might be the correct developer(s) for this open source code?  If it's
you all, do you happen to know what the Export Control Classification
Number (ECCN) for this code?  If you don't know the ECCN, can you please
respond to the following questions at your convenience?

 

a. Does the code perform cryptographic functions (i.e.,
encryption/decryption)?

b.Does the code contain any cryptographic algorithms (i.e., 3DES,
Diffie-Helman, Blowfish, Rijndael, RC4, RSA) (whether or not these
algorithms are actually being used by the software)?

c. Is the code capable of interfacing with, calling to, using,
invoking or enabling/disabling the cryptographic features within other
software or within the underlying platform in any way?

d.Is the code capable of performing message digesting/hashing (i.e.,
MD5, RIPEMD, SHA, Tiger), fixed data compression or authentication?

e. Does the code contain/utilize and open cryptographic interface
(OCI), where the cryptographic capabilities of the code are
user-accessible and/or modifiable?  (See below for a more detailed
definition of OCI.)  

 

If 'yes' to any of the above, please provide detailed response.

(Open cryptographic interface - A mechanism which is designed to allow a
customer or other party to insert cryptographic functionality without
the intervention, help or assistance of the manufacturer or its agents
(i.e., manufacturer's signing of cryptographic code or proprietary
interfaces). If the cryptographic interface implements a fixed set of
cryptographic algorithms, key lengths or key exchange management
systems, that cannot be changed, it will not be considered an "open"
cryptographic interface. All general application programming interfaces
(i.e., those that accept either a cryptographic or non-cryptographic
interface, but do not themselves maintain any cryptographic
functionality) will not be considered "open" cryptographic interfaces
either.)

Please let me know if you have any questions for me and many thanks in
advance for your assistance.

 

Regards,

Erin

 

Erin Clark

Export Compliance Manager



Sandler & Travis Trade Advisory Services, Inc. 

 

|phone  248.699.1588 | cell  619.997.4197 | fax 619.330.2336 | Web
  | eMail   |

 

This is a transmission from Sandler & Travis Trade Advisory Services,
Inc. and is solely for the use of the intended addressee. It may contain
information which is confidential and subject to attorney client
privilege.  If you are not the intended recipient, please e-mail the
sender and destroy all copies of this message and any attachment.  Any
unauthorized use of the contents of the message or attachments is
strictly prohibited.

 

P PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING

 



Logs from different web apps go to same file with log4j?!

2010-05-18 Thread G.Cholakov

Hi,

The problem is the following - I have several web apps, running in Tomcat 6.
I've noticed that all logs go to one file, which is specific for only one of
the web applications! Each file in each application is named unique.
What I did wrong?

Here is the log4j.xml:



http://jakarta.apache.org/log4j/";>




























-- 
View this message in context: 
http://old.nabble.com/Logs-from-different-web-apps-go-to-same-file-with-log4j-%21-tp28595472p28595472.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: Doubt about log4j configuration and OCI

2010-05-18 Thread Douglas E Wegscheid
ahha. someone *has* done a JDBCAppender that will use an existing 
datasource. Take a look at 
http://www.boky.cc/2010/02/03/jdbcappender-for-log4j/

Douglas E Wegscheid
Lead Technical Analyst, Whirlpool Corporation

"A wrong note played hesitatingly is a wrong note. A wrong note played 
with conviction is interpretation."



"Exposito Aguilera, Francisco"  wrote 
on 05/18/2010 08:14:04 AM:

> Hello,
> 
> I have a doubt about how to configure log4j in order to avoid the error 
> 
> java.lang.UnsatisfiedLinkError: Native Library
> C:\oracle\product\10.2.0\client_1\BIN\ocijdbc10.dll already loaded in
> another classloader
> 
> I want log write the log in the same database as the other sql 
statements I
> need for my application.
> 
> 
> I have a DAO Connection class with this method:
> 
> public static Connection getConnection()
> {
>InitialContext initContext = new InitialContext();
>Context envContext  = (Context)
> initContext.lookup("java:/comp/env");
>DataSource dataSource = (DataSource)
> envContext.lookup("jdbc/testdb");
>return dataSource.getConnection();
> }
> 
> This method uses the DB info placed in META-INF/context.xml file:
> 
> type="javax.sql.DataSource" username=""
> password=""
>driverClassName="oracle.jdbc.driver.OracleDriver"
>url="jdbc:oracle:oci:@DESARROLLO"
>maxActive="20" maxIdle="24"/>
> 
> 
> Then I have my log4j.xml files configured like that:
> 
>   
> 
>
> 
>
>
>
> 
> 
> 
> 
> But when I execute the first log.debug statement (the connection class 
has
> been already executed), I receive the error
> 
> java.lang.UnsatisfiedLinkError: Native Library
> C:\oracle\product\10.2.0\client_1\BIN\ocijdbc10.dll already loaded in
> another classloader
> 
> Any idea?
> 
> Thanks in advance.
> 
> -
> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
> For additional commands, e-mail: log4j-user-h...@logging.apache.org
> 


Re: Doubt about log4j configuration and OCI

2010-05-18 Thread Douglas E Wegscheid
I don't think you can load the Oracle native driver more than once (that 
tries to load the native bits/dlls more than once, and that's what the 
"Native Library already loaded" is about).

A couple of choices are to try to use the existing DataSource (which I 
don't think JDBCAppender can do out of the box, though I'd be surprised if 
no one has fixed that), or trying to leave the driverClassName off (if 
possible) so that you rely on the driver that was loaded earlier. (That's 
assuming the log4j appender is the later of the two to load, and that the 
JDBCAppender will let you leave off the "driver" parameter).

Douglas E Wegscheid
Lead Technical Analyst, Whirlpool Corporation


"A wrong note played hesitatingly is a wrong note. A wrong note played 
with conviction is interpretation."



"Exposito Aguilera, Francisco"  wrote 
on 05/18/2010 08:14:04 AM:

> Hello,
> 
> I have a doubt about how to configure log4j in order to avoid the error 
> 
> java.lang.UnsatisfiedLinkError: Native Library
> C:\oracle\product\10.2.0\client_1\BIN\ocijdbc10.dll already loaded in
> another classloader
> 
> I want log write the log in the same database as the other sql 
statements I
> need for my application.
> 
> 
> I have a DAO Connection class with this method:
> 
> public static Connection getConnection()
> {
>InitialContext initContext = new InitialContext();
>Context envContext  = (Context)
> initContext.lookup("java:/comp/env");
>DataSource dataSource = (DataSource)
> envContext.lookup("jdbc/testdb");
>return dataSource.getConnection();
> }
> 
> This method uses the DB info placed in META-INF/context.xml file:
> 
> type="javax.sql.DataSource" username=""
> password=""
>driverClassName="oracle.jdbc.driver.OracleDriver"
>url="jdbc:oracle:oci:@DESARROLLO"
>maxActive="20" maxIdle="24"/>
> 
> 
> Then I have my log4j.xml files configured like that:
> 
>   
> 
>
> 
>
>
>
> 
> 
> 
> 
> But when I execute the first log.debug statement (the connection class 
has
> been already executed), I receive the error
> 
> java.lang.UnsatisfiedLinkError: Native Library
> C:\oracle\product\10.2.0\client_1\BIN\ocijdbc10.dll already loaded in
> another classloader
> 
> Any idea?
> 
> Thanks in advance.
> 
> -
> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
> For additional commands, e-mail: log4j-user-h...@logging.apache.org
> 


Doubt about log4j configuration and OCI

2010-05-18 Thread Exposito Aguilera, Francisco
Hello,

I have a doubt about how to configure log4j in order to avoid the error 

java.lang.UnsatisfiedLinkError: Native Library
C:\oracle\product\10.2.0\client_1\BIN\ocijdbc10.dll already loaded in
another classloader

I want log write the log in the same database as the other sql statements I
need for my application.


I have a DAO Connection class with this method:

public static Connection getConnection()
{
InitialContext initContext = new InitialContext();
Context envContext  = (Context)
initContext.lookup("java:/comp/env");
DataSource dataSource = (DataSource)
envContext.lookup("jdbc/testdb");
return dataSource.getConnection();
}

This method uses the DB info placed in META-INF/context.xml file:




Then I have my log4j.xml files configured like that:

   
   

   







But when I execute the first log.debug statement (the connection class has
been already executed), I receive the error

java.lang.UnsatisfiedLinkError: Native Library
C:\oracle\product\10.2.0\client_1\BIN\ocijdbc10.dll already loaded in
another classloader

Any idea?

Thanks in advance.

-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org