Re: How to turn off INFO messages

"Mustafa Cayci" <[email protected]>
Newsgroups gmane.comp.java.sshtools.user
Message-ID <[email protected]>
Actually, the problem is that my application cannot find the properties
file.

I have packaged my application in a jar file and calling it as follows

$JAVA_HOME/bin/java -jar filediff.jar

I have included a MANIFEST.MF file in the jar as well and in the MANIFEST.MF,
I have the following defined

Created-By: 1.5.0_05 (Sun Microsystems Inc.)
Class-Path: j2ssh.log4j.properties
Main-Class: gov.dhs.visit.om.filediff.FileDiff
Sealed: true

and j2ssh.log4j.properties is also packaged with my jar file.

FYI, If I run this inside my IDE, then everything works fine.

Mustafa



On 1/4/07, Bernardo F Costa <[email protected]> wrote:
>
> Can you show us the contents of the file
> j2ssh.log4j.properties that you use ? In my case, it
> works. The contents I use are above written:
>
>
> log4j.rootLogger=WARN,myAppender
> log4j.appender.myAppender.file=j2ssh.log
> log4j.appender.myAppender=org.apache.log4j.FileAppender
> log4j.appender.myAppender.layout=org.apache.log4j.PatternLayout
> log4j.appender.myAppender.layout.ConversionPattern=[%d{MMM
> dd HH:mm:ss}] %-5p (%F) - %m%n
>
>
> --- Mustafa Cayci <[email protected]> escreveu:
>
> > Bernardo,
> >
> > When I put the code you mentioned, I am getting the
> > following during
> > runtime.
> >
> > log4j:WARN No appenders could be found for logger (
> >
> com.sshtools.j2ssh.configuration.ConfigurationLoader).
> > log4j:WARN Please initialize the log4j system
> > properly.
> >
> > Thanks,
> >
> > Mustafa
> >
>
> __________________________________________________
> Fale com seus amigos  de graça com o novo Yahoo! Messenger
> http://br.messenger.yahoo.com/
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Sshtools-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sshtools-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.