I got the jar command to work, I had to run it within the directory I have
java installed, so what else should I check?  I ran:

C:\j2sdk1.4.2_05\bin>jar -tf "c:\Documents and
Settings\PRGJR1\.maven\repository
\log4j\jars"\log4j-1.2.9.jar | find "Category.class"

And got this:

org/apache/log4j/Category.class
org/apache/log4j/spi/RootCategory.class

So the Category class is there.  I am not referencing Category anywhere in
my application, so I'm not sure why it is looking for Category?  What else
can I try to get this working on my windows machine?

Thanks for all the help!!  I could attach my .jar file if that would help.

-----Original Message-----
From: James Stauffer [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 18, 2005 8:43 AM
To: Log4J Users List
Subject: Re: RollingFileAppender

That will give you grep and many other unix utils so that you could
run the commands that were recommended.  It doesn't address your issue
directly but gives you more tools to help.

On Thu, 17 Mar 2005 09:26:08 -0500, Jason Roscoe <[EMAIL PROTECTED]>
wrote:
> What will this give me?  I downloaded this and added usr/bin/wbin to my
> windows path variable and that didn't help anything
> 
> -----Original Message-----
> From: James Stauffer [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 16, 2005 3:56 PM
> To: Log4J Users List
> Subject: Re: RollingFileAppender
> 
> Another option: Get UnixUtils from http://unxutils.sourceforge.net/.
> Just extract, add usr/bin/wbin to you path, and you are set.
> 
> On Wed, 16 Mar 2005 14:39:02 -0600, Rieser, Michael (SCI TW)
> <[EMAIL PROTECTED]> wrote:
> > On Windows try:
> >
> > jar -tf log4j-1.2.9.jar | find "Category.class"
> >
> > Note: the double quotes ("") are necessary.
> >
> > Mike
> >
> > > -----Original Message-----
> > > From: Jason Roscoe [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, March 16, 2005 11:54 AM
> > > To: 'Log4J Users List'
> > > Subject: RE: RollingFileAppender
> > >
> > >
> > >
> > > I am running on a windows machine, so I can't use your jar
> > > command to grep
> > > for Category.class.  If I open up my log4j jar, under
> > > org.apache.log4j, I
> > > have a Category.class file.
> > >
> > > I ran this:
> > >
> > > java -classpath "..\lib\classes\log4j-1.2.9.jar"
> > > org.apache.log4j.Category
> > >
> > > and got Exception in thread "main" java.lang.NoClassDefFoundError:
> > > org/apache/log4j/Categoy.  So I guess log4j isn't on my
> > > classpath (rmember,
> > > I am running this on a windows machine right now).
> > >
> > > Where do I change Category to Logger?  In my application, I have
> > >
> > > import org.apache.log4j.Logger;
> > >
> > > -----Original Message-----
> > > From: Curt Arnold [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, March 16, 2005 12:34 PM
> > > To: Log4J Users List
> > > Subject: Re: RollingFileAppender
> > >
> > >
> > > On Mar 16, 2005, at 8:12 AM, Jason Roscoe wrote:
> > >
> > > >
> > > > I tried using 1.2.9 (stable) and I was able to get the
> > > > RollingFileAppend to
> > > > work.  When I try running my application from a command line, I get
> > > > this
> > > > error:
> > > >
> > > > Exception in thread "main" java.lang.NoClassDefFoundError:
> > > > org/apache/log4j/Category
> > > >
> > > > Here is my full config file:
> > > >
> > >
> > > This looks like a classpath issue, not a configuration issue.
> > > org.apache.log4j.Category was the original name for Logger
> > > and is still
> > > in the jar to support older applications but is deprecated.  So it is
> > > likely that you have a class that uses Category, but your
> > > classpath is
> > > not set up to find the log4j jar.
> > >
> > > You can confirm that o.a.l.Category is in your jar file by:
> > >
> > > jar -tf log4j-1.2.9.jar | grep Category.class
> > >
> > > You can check if it is on your classpath by
> > >
> > > java [classpath stuff] org.apache.log4j.Category
> > >
> > > if you get a NoClassDefFoundError, then log4j isn't on your
> > > classpath.
> > > If you get a NoSuchMethodError, then it is on you classpath
> > > and it just
> > > can't find a main method.
> > >
> > > If you have any control over the application that was using Category,
> > > you should migrate Category to Logger and Priority to Level.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> > > Disclaimer: This e-mail message is intended only for the
> > > personal use of
> > > the recipient(s) named above.  If you are not an intended
> > > recipient, you
> > > may not review, copy or distribute this message. If you have
> > > received this
> > > communication in error, please notify us immediately by
> > > e-mail and delete
> > > the original message.
> > > This e-mail expresses views only of the sender, which are not to be
> > > attributed to Rite Aid Corporation and may not be copied or
> > > distributed
> > > without this statement.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> --
> James Stauffer
> Are you good? Take the test at http://www.livingwaters.com/good/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

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




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

Reply via email to