|
From: Leif M. <le...@ta...> - 2006-04-04 01:33:44
|
Karthikeyan,
Can you post your wrapper.conf so I can see exactly what you are
doing. Log4j will
either locate its properties file using a system property, or by
locating the file on the
classpath. If you have this file in your conf directory, you will need
a class path entry
like the following:
wrapper.java.classpath.1=../lib/*.jar
wrapper.java.classpath.2=../conf
Cheers,
Leif
karthikeyan d wrote:
> Hi,
> i am using java service wrapper to run my java application as a
> windows service. while running the application i am able to get the
> logs written to the wrapper specific files but not to application
> specific log files. The application's java class log statements are
> not logging because of the warning i am getting
>
>
> jvm 1 | log4j:WARN No appenders could be found for logger (My Class
> name).
>
> jvm 1 | log4j:WARN Please initialize the log4j system properly.
>
>
>
> i am using the log4j-properties file for log4j configuration. i am
> passing this to java command at runtime and log4j.jar file is in the
> classpath. i tried putting the properties file in the folder that
> contains the wrapper.exe but still it didn't help. In my
> log4j-properties file i am using the absolute location for the
> differrent properties and all are valid entries. i browsed through all
> the log4j related posts in the site but still i need your valuable
> assistance in resolving my issues.
>
>
>
>
>
> Thanks in advance,
>
>
>
> Regards,
>
> D.Karthikeyan.
>
>
>
>
>
|