You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Laxmilal Menaria <lm...@chambal.com> on 2007/05/30 16:04:20 UTC
java.lang.NoClassDefFoundError: org/apache/log4j/Appender Exception in thread "main"
Hi,
I am log4j user and now getting the following exception while using in perl
scripts.
java.lang.NoClassDefFoundError: org/apache/log4j/Appender Exception in
thread "main" [Wed May 30 06:58:43 2007] my.pl: print() on closed filehandle
ERRLOG at my.pl line 111. [Wed May 30 06:58:43 2007] my.pl: print() on
closed filehandle LOGGING at search.pl line 85.
code is :
if(-e "$FileName")
{
open(LOGGING,">>$FileName");
}
else
{
open(LOGGING,">>$FileName");
print LOGGING "#Fields: Date \t Time\t UserIP \t UserAgent \t
Referer \n";
}
$output=`$MyExePath`;
My working environment is : Shared hosting server
and My Application details :
1. Perl Script is calling a Java package (Executable wrapper using
launch4j).
2. Java package contains
MyApplication.jar=Main jar+Log4j Jar (using pro guard)
MyApplication.exe=MyApplication.jar (using launch4j)
3. JRE6
--
Thanks,
Laxmilal menaria
http://www.minalyzer.com/
http://www.chambal.com/
Re: java.lang.NoClassDefFoundError: org/apache/log4j/Appender
Exception in thread "main"
Posted by Jacob Kjome <ho...@visi.com>.
I'm not familiar with your execution environment, but it sounds like
you've got multiple classloaders mucking things up. I can't say much
more than that because I've never used "pro guard" nor "launch4j".
Jake
At 09:04 AM 5/30/2007, you wrote:
>Hi,
>
>I am log4j user and now getting the following exception while using in perl
>scripts.
>
>java.lang.NoClassDefFoundError: org/apache/log4j/Appender Exception in
>thread "main" [Wed May 30 06:58:43 2007] my.pl: print() on closed filehandle
>ERRLOG at my.pl line 111. [Wed May 30 06:58:43 2007] my.pl: print() on
>closed filehandle LOGGING at search.pl line 85.
>
>code is :
>
>if(-e "$FileName")
> {
> open(LOGGING,">>$FileName");
> }
> else
> {
> open(LOGGING,">>$FileName");
> print LOGGING "#Fields: Date \t Time\t UserIP \t UserAgent \t
>Referer \n";
> }
> $output=`$MyExePath`;
>
>My working environment is : Shared hosting server
>
>and My Application details :
>
>1. Perl Script is calling a Java package (Executable wrapper using
>launch4j).
>2. Java package contains
> MyApplication.jar=Main jar+Log4j Jar (using pro guard)
> MyApplication.exe=MyApplication.jar (using launch4j)
>3. JRE6
>
>--
>Thanks,
>Laxmilal menaria
>
>http://www.minalyzer.com/
>http://www.chambal.com/
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org