I've seen this a couple times in the archives, but I fear I'm too dense to
sense the solution.  So I've joined the list and hopefully I can give as
good as I get.

I have a java class (Invoice.java) that is called from a jsp under Resin.
I have this line in the beginning of my class def:

  static Category log = Category.getInstance(Invoice.class.getName());

And this line in my constructor:

  PropertyConfigurator.configure("log4j.properties");

Everything compiles fine, but when I try to bring up the jsp I get this in
the stderr.log in resin:

log4j:ERROR No appenders could be found for category (com.foo.Invoice).
log4j:ERROR Please initialize the log4j system properly.

I have numerous questions about setup.  I defined a log4j.properties as
this, which I scavenged off example posts:

log4j.category.com.foo.Invoice=DEBUG, R
log4j.additivity.com.foo.Invoice=false
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.MaxFileSize=100MB
log4j.appender.R.MaxBackupIndex=4
[EMAIL PROTECTED]@/opennms-jboss.log
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d %-5p [%t] %c{1}: %m%n

I put this file in my WEB-INF/classes directory under the resin docs
directory.  I'm led to believe that the resin java process will find this
file there.

So basically I don't have a clue, and am wondering if I'm even close to
the right path.  If anyone is doing anything remotely similar and could
detail their setup/config for me, that would be marvelous.

Thanks,
Don.



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to