[Opensource] Expresso installation problems with JBoss/Tomcat ?

Ravishankar Bhat ravishankar.bhat at mphasis.com
Thu Jan 9 03:54:11 PST 2003


Further finding...

The error we are getting is 
	17:12:49,671 ERROR [STDERR] Expresso Configuration initializing...
	ERROR: invalid console appender config detected, console stream is looping
I have found out the following
1) The last ERROR message (Expresso Configuration initializing...) is coming from StdServlet.init() method
2) This method tries to set the ConfigManager and calls ConfigManager.config(ServletConfig) method
3) In above said method ConfigManager tries to call LogManager.setupLog()
4) At this time LogManager class is loaded and static variables are initialized
5) Since LogManager has the following static variable, we are getting the problem
    protected static Appender setupAppender = new ConsoleAppender(
                                                      new PatternLayout(),
                                                      ConsoleAppender.SYSTEM_OUT); 

I don't know how to solve the problem, but this is were we are getting the error.

Hope this helps,

Regards
Ravi

-----Original Message-----
From: Ravishankar Bhat 
Sent: Thursday, January 09, 2003 4:29 PM
To: 'opensource at jcorporate.com'
Subject: RE: [Opensource] Expresso installation problems with
JBoss/Tomcat ?


Hi All,
I wanted to find out more on this problem, but could not do much.
All I could find out are the following
1) There is a conflict of console appenders happening, when we use expresso with JBOSS
2) JBOSS has it's own console appender and adding any more console appenders will result into this problem
3) If we remove the console appender definition in expressoLogging will not solve this conflict. [So there is some class is adding the console appender directly]
4) There is only one class in expresso classes that uses ConsoleAppender of log4j and that is LogManager
5) LogManager creates this cosole appender as 
	setupAppender = new ConsoleAppender( new PatternLayout(), ConsoleAppender.SYSTEM_OUT);
	So it does not use any of the expressoLogging setups
6) LogManager has the following public method
    synchronized public static Category setupLog() {
        if (setupLog == null) {
            setupLog = Logger.getLogger("expresso.initialize");
            setupLog.setLevel(setupPriority);
            setupLog.addAppender(setupAppender);
        }

        return setupLog;
    } /* setupLog() */

7) Field Summary (JAVADOCS) of setupAppender fields states as follows,
	"Change this to get initial setup logging logged to a different location other than stdout." Author : Michael Rimov

I am sure, someone of you Expresso Gurus, can help me from here.

Looking forward for your help,

Thanks
Ravi

-----Original Message-----
From: Gene McCullough [mailto:genemcc at swbell.net]
Sent: Friday, December 27, 2002 8:44 AM
To: opensource at jcorporate.com
Subject: Re: [Opensource] Expresso installation problems with
JBoss/Tomcat ?


Maybe your snippet just didn't get pasted properly, but the 
"ConversionPattern" tag is not closed.
No other clues

On Thu, 26 Dec 2002 16:26:32 -0500, <sdavenport at worldbank.org> wrote:

>
> Same problem on server startup....
>
> OS: RedHat Linux 8.0
> JDK: IBM J2SDK 1.4.0.0 (tried with Sun J2SE too)
> JBOSS 3.0.4 with Tomcat 4.1.12 bundle installation, working properly.
>
> 1. We have tried removing the ConsoleAppender lines from the 
> expressoLogging.xml
> file:
> <appender name="console" class="org.apache.log4j.ConsoleAppender">
> <param name="Target" value="System.Out"/>
> <layout class="org.apache.log4j.PatternLayout">
> <param name="ConversionPattern" value="%d %-5p [%t]
> %C{2} (%F:%L) -
> </layout>
> </appender>
> (/usr/local/jboss/server/default/deploy/expresso.war/WEB-INF/config/) 
> with no
> success...same error
>
> 07:05:35,451 INFO  [STDOUT] DefaultInit: init
> 07:05:35,561 ERROR [STDERR] Expresso Configuration initializing...
> ERROR: invalid console appender config detected, console stream is
> loopingShutting down
>
> Which, when Expresso called from browser leads to
> org.apache.jasper.JasperException: ConfigManager not initialized
>
> 2. Then we tried renaming/replacing the log4j.jar file 
> (/usr/local/jboss/lib/)
> for JBOSS with the one supplied by Expresso (log4j-1.2.7.jar)
> (/usr/local/jboss/server/default/deploy/expresso.war/WEB-INF/lib/) 
> ....same
> error
>
> 3. We removed expressoLogging.xml & the DTD....same error
>
> Any ideas?
>
>
> _______________________________________________
> Opensource mailing list
> Opensource at jcorporate.com
> http://mail.jcorporate.com/mailman/listinfo/opensource
> Archives: http://mail.jcorporate.com/pipermail/opensource/
>



-- 
gene

_______________________________________________
Opensource mailing list
Opensource at jcorporate.com
http://mail.jcorporate.com/mailman/listinfo/opensource
Archives: http://mail.jcorporate.com/pipermail/opensource/



More information about the Opensource mailing list