users@glassfish.java.net

RE: Issue with Jackrabbit/log4j on Glassfish/Windows XP

From: Martin Gainty <mgainty_at_hotmail.com>
Date: Mon, 6 Apr 2009 08:24:13 -0400

As this is annoying at best and misconfiguration of log4j default settings at worse
Have you contacted Magnolia Jira
http://jira.magnolia.info/browse
?
Martin
______________________________________________
Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.






> Date: Mon, 6 Apr 2009 03:20:57 -0700
> From: bergquistr_at_gmail.com
> To: users_at_glassfish.dev.java.net
> Subject: Re: Issue with Jackrabbit/log4j on Glassfish/Windows XP
>
>
> The problem I've found is that the magnolia jar comes deployed with a log4j
> configuration. At the root of the jar is a log4j.xml. The configuration
> sets the root log4j appender. It seems to override any other log4j.xml
> configs you have on your classpath.
>
> Thanks Magnolia - nice work defining a root appender at INFO to selfishly
> screw up anybodies else deployments. Not.
>
> The solution I found was to open up the magnolia jar, delete the log4j.xml,
> and re-jar it up. Restart and hey presto the log4j configuration that's on
> your glassfish server instance classpath starts working.
> If you want the magnolia log4j settings then you can place them in the one
> central log4j configuration that's on your glassfish server instance
> classpath.
>
> Hope that helps. It bugged me too for a few hours.
>
> Rgds,
> Crossedbearings.
>
>
>
>
> glassfish-2 wrote:
> >
> > Hi,
> >
> > I have configured Jackrabbit to Run on glassfish V2 on Windows XP. Once
> > this configuration was done and the repository setup , log4j stopped
> > working !!. I have tried my best by including the command line option for
> > log4j ( -Dlog4j.debug=true) and still the log4j setup is not working fine.
> > I have two web applications running on my glassfish and all of them have a
> > local log4j.property file.
> >
> > log4j was working fine before i had setup jackrabbit and since the
> > repository was setup , it does not work anymore. log output from my server
> > instance.
> >
> > If anyone has come across a similar issue and had a way around this ,
> > suggestions would be of great help.
> >
> > Cheers
> > Thiag
> >
> > #|2008-06-23T14:41:30.097+0530|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|
> > log4j: Trying to find [log4j.xml] using context classloader EJBClassLoader
> > :
> > urlSet = []
> > doneCalled = false
> > Parent -> java.net.URLClassLoader_at_93bca2
> > .|#]
> >
> > [#|2008-06-23T14:41:30.097+0530|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|
> > log4j: Trying to find [log4j.xml] using context classloader EJBClassLoader
> > :
> > urlSet = []
> > doneCalled = false
> > Parent -> java.net.URLClassLoader_at_93bca2
> > .|#]
> >
> > [#|2008-06-23T14:41:30.097+0530|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|
> > log4j: Trying to find [log4j.xml] using EJBClassLoader :
> > urlSet = [URLEntry :
> > file:/C:/glassfish/domains/domain1/applications/j2ee-modules/jackrabbit-jca-1.3/]
> > doneCalled = false
> > Parent -> java.net.URLClassLoader_at_93bca2
> > class loader.|#]
> >
> > [#|2008-06-23T14:41:30.097+0530|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|
> > log4j: Trying to find [log4j.xml] using
> > ClassLoader.getSystemResource().|#]
> >
> > [#|2008-06-23T14:41:30.097+0530|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|
> > log4j: Trying to find [log4j.properties] using context classloader
> > EJBClassLoader :
> > urlSet = []
> > doneCalled = false
> > Parent -> java.net.URLClassLoader_at_93bca2
> > .|#]
> >
> > [#|2008-06-23T14:41:30.097+0530|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|
> > log4j: Trying to find [log4j.properties] using EJBClassLoader :
> > urlSet = [URLEntry :
> > file:/C:/glassfish/domains/domain1/applications/j2ee-modules/jackrabbit-jca-1.3/]
> > doneCalled = false
> > Parent -> java.net.URLClassLoader_at_93bca2
> > class loader.|#]
> >
> > [#|2008-06-23T14:41:30.097+0530|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|
> > log4j: Trying to find [log4j.xml] using EJBClassLoader :
> > urlSet = [URLEntry :
> > file:/C:/glassfish/domains/domain1/applications/j2ee-modules/jackrabbit-jca-1.3/]
> > doneCalled = false
> > Parent -> java.net.URLClassLoader_at_93bca2
> > class loader.|#]
> >
> > [#|2008-06-23T14:41:30.097+0530|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|
> > log4j: Trying to find [log4j.properties] using
> > ClassLoader.getSystemResource().|#]
> >
> > [#|2008-06-23T14:41:30.097+0530|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|
> > log4j: Could not find resource: [null].|#]
> >
> > [#|2008-06-23T14:41:30.614+0530|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=c555c3a0-bdac-4337-9430-374ebe9eecf6;|log4j:WARN
> > No appenders could be found for logger
> > (org.apache.jackrabbit.core.RepositoryImpl).|#]
> >
> > [#|2008-06-23T14:41:30.097+0530|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|
> > log4j: Trying to find [log4j.xml] using
> > ClassLoader.getSystemResource().|#]
> >
> > [#|2008-06-23T14:41:30.097+0530|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|
> > log4j: Trying to find [log4j.properties] using context classloader
> > EJBClassLoader :
> > urlSet = []
> > doneCalled = false
> > Parent -> java.net.URLClassLoader_at_93bca2
> > .|#]
> >
> > [#|2008-06-23T14:41:30.097+0530|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|
> > log4j: Trying to find [log4j.properties] using EJBClassLoader :
> > urlSet = [URLEntry :
> > file:/C:/glassfish/domains/domain1/applications/j2ee-modules/jackrabbit-jca-1.3/]
> > doneCalled = false
> > Parent -> java.net.URLClassLoader_at_93bca2
> > class loader.|#]
> >
> > [#|2008-06-23T14:41:30.661+0530|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=c555c3a0-bdac-4337-9430-374ebe9eecf6;|
> > log4j:WARN Please initialize the log4j system properly.|#]
> >
> > [#|2008-06-23T14:41:30.097+0530|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|
> > log4j: Trying to find [log4j.properties] using
> > ClassLoader.getSystemResource().|#]
> >
> > [#|2008-06-23T14:41:30.097+0530|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|
> > log4j: Could not find resource: [null].|#]
> >
> > [#|2008-06-23T14:41:30.614+0530|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=c555c3a0-bdac-4337-9430-374ebe9eecf6;|log4j:WARN
> > No appenders could be found for logger
> > [b](org.apache.jackrabbit.core.RepositoryImpl).|#][/b]
> >
> > [#|2008-06-23T14:41:30.661+0530|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=c555c3a0-bdac-4337-9430-374ebe9eecf6;|
> > log4j:WARN Please initialize the log4j system properly.|#]
> > [Message sent by forum member 'thiagust' (thiagust)]
> >
> > http://forums.java.net/jive/thread.jspa?messageID=281913
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> > For additional commands, e-mail: users-help_at_glassfish.dev.java.net
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Issue-with-Jackrabbit-log4j-on-Glassfish-Windows-XP-tp18065536p22906014.html
> Sent from the java.net - glassfish users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>

_________________________________________________________________
Rediscover Hotmail®: Get e-mail storage that grows with you.
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage1_042009