From: <php...@li...> - 2007-06-17 12:43:03
|
Hello list, Firstly, thank you to the php-java-bridge developers - this project has proven invaluable to me and has worked out of the box with little configuration. I recently have installed the JavaBridge.war into a JBoss/Tomcat configuration. JBoss uses log4j for all of its logging, and all of the other components for our web application thus use it as well. It looks like the JavaBridge.war resets the log4j configuration, when it finds log4j.jar on the class path and attempts to setup the ChainsawLogger. When this happens, all logging for any component in JBoss is disabled, and no more logging output occurs throughout my app server. A reference to how someone else got around this issue in the past: http://sourceforge.net/mailarchive/message.php?msg_id=20061014163030.20262.qmail%40web27908.mail.ukl.yahoo.com I've already modified the Java source files to just use the FileLogger class rather than reconfigure log4j (and thus lose the rest of my jboss logging). However, I am running into issues on the build process. I am a Java developer unfamiliar with autoconf/automake -- can someone point me at the steps necessary to recreate the JavaBridge.war file? I'd like to only modify the source for the 4.08a version I am using (or whatever the latest stable release is), right now I checked out the latest from CVS, but I'd rather not deploy it until the next stable release. Any thoughts on making the logging more configurable - or just changing the default detection scheme for log4j to make it not reset the entire logging configuration? Thanks for your help, -Mark |
From: <php...@li...> - 2007-06-18 12:09:31
|
Hi, I agree that this behaviour is annoying. We will change this in version 4.1.3. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2007-06-20 13:24:59
|
Hi, I have created a hidden download which fixes this problem: http://sourceforge.net/project/downloading.php?group_id=117793&use_mirror=osdn&filename=php-java-bridge_4.1.3_j2ee.zip&8337726 >From 4.1.2 to 4.1.3: The bridge doesn't assume ownership of log4j.jar if it came from the global classpath. In particular it doesn't reset the global log4j configuration anymore when it detects a log4j back end listening on port @445 Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
From: <php...@li...> - 2007-06-20 13:32:52
|
Thanks! I will test this out today. -Mark On 6/20/07, php...@li... <php...@li...> wrote: > Hi, > > I have created a hidden download which fixes this > problem: > > http://sourceforge.net/project/downloading.php?group_id=3D117793&use_mirr= or=3Dosdn&filename=3Dphp-java-bridge_4.1.3_j2ee.zip&8337726 > > > >From 4.1.2 to 4.1.3: > > The bridge doesn't assume ownership of log4j.jar if it > came from the global classpath. In particular it > doesn't reset the global log4j configuration anymore > when it detects a log4j back end listening on port > @445 > > > Regards, > Jost Boekemeier > > __________________________________________________ > Do You Yahoo!? > Sie sind Spam leid? Yahoo! Mail verf=FCgt =FCber einen herausragenden Sch= utz gegen Massenmails. > http://mail.yahoo.com > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
From: <php...@li...> - 2007-06-20 14:01:11
|
Just tried it -- works great! All the log4j logging from jboss works fine - the configuration is no longer reset. I don't have chainsaw setup on 445 (I only use log4j to log to files and the console), but log4j is on my global classpath for jboss. Thanks for the quick fix, much appreciated, -Mark On 6/20/07, Mark Mitchell <ma...@gm...> wrote: > Thanks! > > I will test this out today. > > -Mark > > On 6/20/07, php...@li... > <php...@li...> wrote: > > Hi, > > > > I have created a hidden download which fixes this > > problem: > > > > http://sourceforge.net/project/downloading.php?group_id=3D117793&use_mi= rror=3Dosdn&filename=3Dphp-java-bridge_4.1.3_j2ee.zip&8337726 > > > > > > >From 4.1.2 to 4.1.3: > > > > The bridge doesn't assume ownership of log4j.jar if it > > came from the global classpath. In particular it > > doesn't reset the global log4j configuration anymore > > when it detects a log4j back end listening on port > > @445 > > > > > > Regards, > > Jost Boekemeier > > > > __________________________________________________ > > Do You Yahoo!? > > Sie sind Spam leid? Yahoo! Mail verf=FCgt =FCber einen herausragenden S= chutz gegen Massenmails. > > http://mail.yahoo.com > > > > -----------------------------------------------------------------------= -- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > php-java-bridge-users mailing list > > php...@li... > > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > |