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 Charl Gerber <ch...@yahoo.com> on 2004/08/19 08:41:59 UTC

[Q] -Dlog4j.defaultInitOverride=true in Java Webstart?

System property:
-Dlog4j.defaultInitOverride=true

How do I configure it to be used in an application
that starts in Java Webstart? I have tried 

-Dlog4j.defaultInitOverride=true
-log4j.defaultInitOverride=true
-Dlog4j.defaultInitOverride true
-log4j.defaultInitOverride true

in the <argument> tag of the <application-desc>, but
it doesn't work. Log4j still uses the default
log4j.properties in the downloaded .jar.

Any ideas on how to make log4j ignore the
log4j.properties when the app is started via Java
Webstart?

Thank
Charl


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


RE: [Q] -Dlog4j.defaultInitOverride=true in Java Webstart?

Posted by Charl Gerber <ch...@yahoo.com>.
 --- Paul Smith <ps...@aconex.com> wrote: 
> By "this" do you mean log4j?  Of course, Chainsaw
> itself is a web start
> application built on top of log4j. 

By "this" I mean getting log4j to ignore default
configuration it finds in the .jar (in the root) and
wait until I manually configure logging. In a Java
Webstart application.




> 
> Have you checked the jar files that the webstart is
> using?  Do any of them
> have a log4j.properties or log4j.xml in the root of
> the jar?
> 
> 
> > -----Original Message-----
> > From: Charl Gerber [mailto:charlgerber@yahoo.com]
> > Sent: Thursday, August 19, 2004 5:15 PM
> > To: Log4J Users List
> > Subject: RE: [Q] -Dlog4j.defaultInitOverride=true
> in Java Webstart?
> > 
> > After a quick scan through the document, I assumed
> I
> > had to use this:
> > 
> > <resources>
> >     <property name="log4j.defaultInitOverride"
> > value="true"/>
> > </resources>
> > 
> > in my jnlp file... also no luck. Has anyone
> actually
> > managed to get this working in Java WS?
> > 
> > Charl
> > 
> > 
> >  --- Paul Smith <ps...@aconex.com> wrote:
> > >
> > > Try this link (and this whole website for all
> things
> > > Webstart):
> > >
> > > http://www.vamphq.com/jwsfaq.html#magic-props
> > >
> > >
> > > > -----Original Message-----
> > > > From: Charl Gerber
> [mailto:charlgerber@yahoo.com]
> > > > Sent: Thursday, August 19, 2004 4:42 PM
> > > > To: Log4J Users List
> > > > Subject: [Q] -Dlog4j.defaultInitOverride=true
> in
> > > Java Webstart?
> > > >
> > > > System property:
> > > > -Dlog4j.defaultInitOverride=true
> > > >
> > > > How do I configure it to be used in an
> application
> > > > that starts in Java Webstart? I have tried
> > > >
> > > > -Dlog4j.defaultInitOverride=true
> > > > -log4j.defaultInitOverride=true
> > > > -Dlog4j.defaultInitOverride true
> > > > -log4j.defaultInitOverride true
> > > >
> > > > in the <argument> tag of the
> <application-desc>,
> > > but
> > > > it doesn't work. Log4j still uses the default
> > > > log4j.properties in the downloaded .jar.
> > > >
> > > > Any ideas on how to make log4j ignore the
> > > > log4j.properties when the app is started via
> Java
> > > > Webstart?
> > > >
> > > > Thank
> > > > Charl
> > > >
> > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > log4j-user-unsubscribe@logging.apache.org
> > > > For additional commands, e-mail:
> > > log4j-user-help@logging.apache.org
> > >
> > >
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > log4j-user-unsubscribe@logging.apache.org
> > > For additional commands, e-mail:
> > > log4j-user-help@logging.apache.org
> > >
> > >
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail:
> log4j-user-help@logging.apache.org
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail:
> log4j-user-help@logging.apache.org
> 
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


RE: [Q] -Dlog4j.defaultInitOverride=true in Java Webstart?

Posted by Paul Smith <ps...@aconex.com>.
I wonder if it's a particular version of webstart that has some
restrictions.  Maybe an older JDK with an older JWS doesn't support the
embedded properties?
Thanks for letting us know it does work under some conditions.
Cheers,
Paul Smith

> -----Original Message-----
> From: Ionel GARDAIS [mailto:igardais@yahoo.fr]
> Sent: Thursday, August 19, 2004 8:27 PM
> To: Log4J Users List
> Subject: RE: [Q] -Dlog4j.defaultInitOverride=true in Java Webstart?
> 
> Strange behavior.
> 
> I am using
> 
>   <resources>
>     <property name="log4j.debug" value="true"/>
>     <property name="log4j.configuration"
> value="resources/log4j.properties"/>
>   </resources>
> 
> to trace log4j and to use a custom configuration file.
> 
> it works fine for me ...
> 
> 
> 
> 
> 
> 
> Vous manquez d’espace pour stocker vos mails ?
> Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
> Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
> 
> Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés
> pour dialoguer instantanément avec vos amis. A télécharger gratuitement
> sur http://fr.messenger.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


RE: [Q] -Dlog4j.defaultInitOverride=true in Java Webstart?

Posted by Ionel GARDAIS <ig...@yahoo.fr>.
Strange behavior.

I am using

  <resources>
    <property name="log4j.debug" value="true"/>
    <property name="log4j.configuration"
value="resources/log4j.properties"/>
  </resources>

to trace log4j and to use a custom configuration file.

it works fine for me ...


	

	
		
Vous manquez d’espace pour stocker vos mails ? 
Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour dialoguer instantanément avec vos amis. A télécharger gratuitement sur http://fr.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


RE: [Q] -Dlog4j.defaultInitOverride=true in Java Webstart?

Posted by Charl Gerber <ch...@yahoo.com>.
It works! Thanks Paul

Charl


 --- Paul Smith <ps...@aconex.com> wrote: 
> It looks like that Webstart will only be able to
> accept _some_ System
> properties from the jnlp file.  I think this is a
> security restriction.
> From what I can determine, I would suggest the
> _first_ line in the main
> method of your webstart client is to set this system
> property, ie:
> 
> public static void main(String[] args){
>  System.setProperty("log4j.defaultInitOverride",
> "true");
> ....
> 
> Make sure this is the first line that gets executed,
> and there is no Logger
> accessed in a static way inside your main class,
> (otherwise the static
> reference to Logger will kick off the default auto
> initialization).
> I hope that helps.
> Cheers,
> Paul Smith 
> 
> > -----Original Message-----
> > From: Charl Gerber [mailto:charlgerber@yahoo.com]
> > Sent: Thursday, August 19, 2004 5:35 PM
> > To: Log4J Users List
> > Subject: RE: [Q] -Dlog4j.defaultInitOverride=true
> in Java Webstart?
> > 
> > > Have you checked the jar files that the webstart
> is
> > > using?  Do any of them have a log4j.properties
> or
> > > log4j.xml in the root of the jar?
> > 
> > Yes, they do (a log4j.properties in the root), but
> I
> > thought the whole point of the system property was
> to
> > tell log4j to ignore this file, right?
> > 
> > What is the relevance of Chainsaw to this all? I'm
> > just trying to get log4j to ignore the default
> > configuration it finds and wait until I manually
> > configure it. For a Java Webstart client app.
> > 
> > 
> > 
> > > > -----Original Message-----
> > > > From: Charl Gerber
> [mailto:charlgerber@yahoo.com]
> > > > Sent: Thursday, August 19, 2004 5:15 PM
> > > > To: Log4J Users List
> > > > Subject: RE: [Q]
> -Dlog4j.defaultInitOverride=true
> > > in Java Webstart?
> > > >
> > > > After a quick scan through the document, I
> assumed
> > > I
> > > > had to use this:
> > > >
> > > > <resources>
> > > >     <property name="log4j.defaultInitOverride"
> > > > value="true"/>
> > > > </resources>
> > > >
> > > > in my jnlp file... also no luck. Has anyone
> > > actually
> > > > managed to get this working in Java WS?
> > > >
> > > > Charl
> > > >
> > > >
> > > >  --- Paul Smith <ps...@aconex.com> wrote:
> > > > >
> > > > > Try this link (and this whole website for
> all
> > > things
> > > > > Webstart):
> > > > >
> > > > >
> http://www.vamphq.com/jwsfaq.html#magic-props
> > > > >
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Charl Gerber
> > > [mailto:charlgerber@yahoo.com]
> > > > > > Sent: Thursday, August 19, 2004 4:42 PM
> > > > > > To: Log4J Users List
> > > > > > Subject: [Q]
> -Dlog4j.defaultInitOverride=true
> > > in
> > > > > Java Webstart?
> > > > > >
> > > > > > System property:
> > > > > > -Dlog4j.defaultInitOverride=true
> > > > > >
> > > > > > How do I configure it to be used in an
> > > application
> > > > > > that starts in Java Webstart? I have tried
> > > > > >
> > > > > > -Dlog4j.defaultInitOverride=true
> > > > > > -log4j.defaultInitOverride=true
> > > > > > -Dlog4j.defaultInitOverride true
> > > > > > -log4j.defaultInitOverride true
> > > > > >
> > > > > > in the <argument> tag of the
> > > <application-desc>,
> > > > > but
> > > > > > it doesn't work. Log4j still uses the
> default
> > > > > > log4j.properties in the downloaded .jar.
> > > > > >
> > > > > > Any ideas on how to make log4j ignore the
> > > > > > log4j.properties when the app is started
> via
> > > Java
> > > > > > Webstart?
> > > > > >
> > > > > > Thank
> > > > > > Charl
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail:
> > > > > log4j-user-unsubscribe@logging.apache.org
> > > > > > For additional commands, e-mail:
> > > > > log4j-user-help@logging.apache.org
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > > > log4j-user-unsubscribe@logging.apache.org
> > > > > For additional commands, e-mail:
> > > > > log4j-user-help@logging.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > log4j-user-unsubscribe@logging.apache.org
> > > > For additional commands, e-mail:
> > > log4j-user-help@logging.apache.org
> > >
> > >
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > log4j-user-unsubscribe@logging.apache.org
> > > For additional commands, e-mail:
> > > log4j-user-help@logging.apache.org
> > >
> > >
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail:
> log4j-user-help@logging.apache.org
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail:
> log4j-user-help@logging.apache.org
> 
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


RE: [Q] -Dlog4j.defaultInitOverride=true in Java Webstart?

Posted by Paul Smith <ps...@aconex.com>.
It looks like that Webstart will only be able to accept _some_ System
properties from the jnlp file.  I think this is a security restriction.
>From what I can determine, I would suggest the _first_ line in the main
method of your webstart client is to set this system property, ie:

public static void main(String[] args){
 System.setProperty("log4j.defaultInitOverride", "true");
....

Make sure this is the first line that gets executed, and there is no Logger
accessed in a static way inside your main class, (otherwise the static
reference to Logger will kick off the default auto initialization).
I hope that helps.
Cheers,
Paul Smith 

> -----Original Message-----
> From: Charl Gerber [mailto:charlgerber@yahoo.com]
> Sent: Thursday, August 19, 2004 5:35 PM
> To: Log4J Users List
> Subject: RE: [Q] -Dlog4j.defaultInitOverride=true in Java Webstart?
> 
> > Have you checked the jar files that the webstart is
> > using?  Do any of them have a log4j.properties or
> > log4j.xml in the root of the jar?
> 
> Yes, they do (a log4j.properties in the root), but I
> thought the whole point of the system property was to
> tell log4j to ignore this file, right?
> 
> What is the relevance of Chainsaw to this all? I'm
> just trying to get log4j to ignore the default
> configuration it finds and wait until I manually
> configure it. For a Java Webstart client app.
> 
> 
> 
> > > -----Original Message-----
> > > From: Charl Gerber [mailto:charlgerber@yahoo.com]
> > > Sent: Thursday, August 19, 2004 5:15 PM
> > > To: Log4J Users List
> > > Subject: RE: [Q] -Dlog4j.defaultInitOverride=true
> > in Java Webstart?
> > >
> > > After a quick scan through the document, I assumed
> > I
> > > had to use this:
> > >
> > > <resources>
> > >     <property name="log4j.defaultInitOverride"
> > > value="true"/>
> > > </resources>
> > >
> > > in my jnlp file... also no luck. Has anyone
> > actually
> > > managed to get this working in Java WS?
> > >
> > > Charl
> > >
> > >
> > >  --- Paul Smith <ps...@aconex.com> wrote:
> > > >
> > > > Try this link (and this whole website for all
> > things
> > > > Webstart):
> > > >
> > > > http://www.vamphq.com/jwsfaq.html#magic-props
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Charl Gerber
> > [mailto:charlgerber@yahoo.com]
> > > > > Sent: Thursday, August 19, 2004 4:42 PM
> > > > > To: Log4J Users List
> > > > > Subject: [Q] -Dlog4j.defaultInitOverride=true
> > in
> > > > Java Webstart?
> > > > >
> > > > > System property:
> > > > > -Dlog4j.defaultInitOverride=true
> > > > >
> > > > > How do I configure it to be used in an
> > application
> > > > > that starts in Java Webstart? I have tried
> > > > >
> > > > > -Dlog4j.defaultInitOverride=true
> > > > > -log4j.defaultInitOverride=true
> > > > > -Dlog4j.defaultInitOverride true
> > > > > -log4j.defaultInitOverride true
> > > > >
> > > > > in the <argument> tag of the
> > <application-desc>,
> > > > but
> > > > > it doesn't work. Log4j still uses the default
> > > > > log4j.properties in the downloaded .jar.
> > > > >
> > > > > Any ideas on how to make log4j ignore the
> > > > > log4j.properties when the app is started via
> > Java
> > > > > Webstart?
> > > > >
> > > > > Thank
> > > > > Charl
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > > log4j-user-unsubscribe@logging.apache.org
> > > > > For additional commands, e-mail:
> > > > log4j-user-help@logging.apache.org
> > > >
> > > >
> > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > > log4j-user-unsubscribe@logging.apache.org
> > > > For additional commands, e-mail:
> > > > log4j-user-help@logging.apache.org
> > > >
> > > >
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > log4j-user-unsubscribe@logging.apache.org
> > > For additional commands, e-mail:
> > log4j-user-help@logging.apache.org
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail:
> > log4j-user-help@logging.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


RE: [Q] -Dlog4j.defaultInitOverride=true in Java Webstart?

Posted by Charl Gerber <ch...@yahoo.com>.
> Have you checked the jar files that the webstart is
> using?  Do any of them have a log4j.properties or 
> log4j.xml in the root of the jar?

Yes, they do (a log4j.properties in the root), but I
thought the whole point of the system property was to
tell log4j to ignore this file, right?

What is the relevance of Chainsaw to this all? I'm
just trying to get log4j to ignore the default
configuration it finds and wait until I manually
configure it. For a Java Webstart client app.



> > -----Original Message-----
> > From: Charl Gerber [mailto:charlgerber@yahoo.com]
> > Sent: Thursday, August 19, 2004 5:15 PM
> > To: Log4J Users List
> > Subject: RE: [Q] -Dlog4j.defaultInitOverride=true
> in Java Webstart?
> > 
> > After a quick scan through the document, I assumed
> I
> > had to use this:
> > 
> > <resources>
> >     <property name="log4j.defaultInitOverride"
> > value="true"/>
> > </resources>
> > 
> > in my jnlp file... also no luck. Has anyone
> actually
> > managed to get this working in Java WS?
> > 
> > Charl
> > 
> > 
> >  --- Paul Smith <ps...@aconex.com> wrote:
> > >
> > > Try this link (and this whole website for all
> things
> > > Webstart):
> > >
> > > http://www.vamphq.com/jwsfaq.html#magic-props
> > >
> > >
> > > > -----Original Message-----
> > > > From: Charl Gerber
> [mailto:charlgerber@yahoo.com]
> > > > Sent: Thursday, August 19, 2004 4:42 PM
> > > > To: Log4J Users List
> > > > Subject: [Q] -Dlog4j.defaultInitOverride=true
> in
> > > Java Webstart?
> > > >
> > > > System property:
> > > > -Dlog4j.defaultInitOverride=true
> > > >
> > > > How do I configure it to be used in an
> application
> > > > that starts in Java Webstart? I have tried
> > > >
> > > > -Dlog4j.defaultInitOverride=true
> > > > -log4j.defaultInitOverride=true
> > > > -Dlog4j.defaultInitOverride true
> > > > -log4j.defaultInitOverride true
> > > >
> > > > in the <argument> tag of the
> <application-desc>,
> > > but
> > > > it doesn't work. Log4j still uses the default
> > > > log4j.properties in the downloaded .jar.
> > > >
> > > > Any ideas on how to make log4j ignore the
> > > > log4j.properties when the app is started via
> Java
> > > > Webstart?
> > > >
> > > > Thank
> > > > Charl
> > > >
> > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > log4j-user-unsubscribe@logging.apache.org
> > > > For additional commands, e-mail:
> > > log4j-user-help@logging.apache.org
> > >
> > >
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > log4j-user-unsubscribe@logging.apache.org
> > > For additional commands, e-mail:
> > > log4j-user-help@logging.apache.org
> > >
> > >
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail:
> log4j-user-help@logging.apache.org
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail:
> log4j-user-help@logging.apache.org
> 
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


RE: [Q] -Dlog4j.defaultInitOverride=true in Java Webstart?

Posted by Paul Smith <ps...@aconex.com>.
By "this" do you mean log4j?  Of course, Chainsaw itself is a web start
application built on top of log4j. 

Have you checked the jar files that the webstart is using?  Do any of them
have a log4j.properties or log4j.xml in the root of the jar?


> -----Original Message-----
> From: Charl Gerber [mailto:charlgerber@yahoo.com]
> Sent: Thursday, August 19, 2004 5:15 PM
> To: Log4J Users List
> Subject: RE: [Q] -Dlog4j.defaultInitOverride=true in Java Webstart?
> 
> After a quick scan through the document, I assumed I
> had to use this:
> 
> <resources>
>     <property name="log4j.defaultInitOverride"
> value="true"/>
> </resources>
> 
> in my jnlp file... also no luck. Has anyone actually
> managed to get this working in Java WS?
> 
> Charl
> 
> 
>  --- Paul Smith <ps...@aconex.com> wrote:
> >
> > Try this link (and this whole website for all things
> > Webstart):
> >
> > http://www.vamphq.com/jwsfaq.html#magic-props
> >
> >
> > > -----Original Message-----
> > > From: Charl Gerber [mailto:charlgerber@yahoo.com]
> > > Sent: Thursday, August 19, 2004 4:42 PM
> > > To: Log4J Users List
> > > Subject: [Q] -Dlog4j.defaultInitOverride=true in
> > Java Webstart?
> > >
> > > System property:
> > > -Dlog4j.defaultInitOverride=true
> > >
> > > How do I configure it to be used in an application
> > > that starts in Java Webstart? I have tried
> > >
> > > -Dlog4j.defaultInitOverride=true
> > > -log4j.defaultInitOverride=true
> > > -Dlog4j.defaultInitOverride true
> > > -log4j.defaultInitOverride true
> > >
> > > in the <argument> tag of the <application-desc>,
> > but
> > > it doesn't work. Log4j still uses the default
> > > log4j.properties in the downloaded .jar.
> > >
> > > Any ideas on how to make log4j ignore the
> > > log4j.properties when the app is started via Java
> > > Webstart?
> > >
> > > Thank
> > > Charl
> > >
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > log4j-user-unsubscribe@logging.apache.org
> > > For additional commands, e-mail:
> > log4j-user-help@logging.apache.org
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail:
> > log4j-user-help@logging.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


RE: [Q] -Dlog4j.defaultInitOverride=true in Java Webstart?

Posted by Charl Gerber <ch...@yahoo.com>.
After a quick scan through the document, I assumed I
had to use this:

<resources>
    <property name="log4j.defaultInitOverride"
value="true"/>
</resources>

in my jnlp file... also no luck. Has anyone actually
managed to get this working in Java WS?

Charl


 --- Paul Smith <ps...@aconex.com> wrote: 
> 
> Try this link (and this whole website for all things
> Webstart):
> 
> http://www.vamphq.com/jwsfaq.html#magic-props
> 
> 
> > -----Original Message-----
> > From: Charl Gerber [mailto:charlgerber@yahoo.com]
> > Sent: Thursday, August 19, 2004 4:42 PM
> > To: Log4J Users List
> > Subject: [Q] -Dlog4j.defaultInitOverride=true in
> Java Webstart?
> > 
> > System property:
> > -Dlog4j.defaultInitOverride=true
> > 
> > How do I configure it to be used in an application
> > that starts in Java Webstart? I have tried
> > 
> > -Dlog4j.defaultInitOverride=true
> > -log4j.defaultInitOverride=true
> > -Dlog4j.defaultInitOverride true
> > -log4j.defaultInitOverride true
> > 
> > in the <argument> tag of the <application-desc>,
> but
> > it doesn't work. Log4j still uses the default
> > log4j.properties in the downloaded .jar.
> > 
> > Any ideas on how to make log4j ignore the
> > log4j.properties when the app is started via Java
> > Webstart?
> > 
> > Thank
> > Charl
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail:
> log4j-user-help@logging.apache.org
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail:
> log4j-user-help@logging.apache.org
> 
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


RE: [Q] -Dlog4j.defaultInitOverride=true in Java Webstart?

Posted by Charl Gerber <ch...@yahoo.com>.
Does someone have a straight forward working solution?
The document says nothing about log4j and although I
will later, I do not have the time now to read the
whole thing and sort it out.

For one, is it a Java WS setting or a setting in the
.jnlp file?


 --- Paul Smith <ps...@aconex.com> wrote: 
> 
> Try this link (and this whole website for all things
> Webstart):
> 
> http://www.vamphq.com/jwsfaq.html#magic-props
> 
> 
> > -----Original Message-----
> > From: Charl Gerber [mailto:charlgerber@yahoo.com]
> > Sent: Thursday, August 19, 2004 4:42 PM
> > To: Log4J Users List
> > Subject: [Q] -Dlog4j.defaultInitOverride=true in
> Java Webstart?
> > 
> > System property:
> > -Dlog4j.defaultInitOverride=true
> > 
> > How do I configure it to be used in an application
> > that starts in Java Webstart? I have tried
> > 
> > -Dlog4j.defaultInitOverride=true
> > -log4j.defaultInitOverride=true
> > -Dlog4j.defaultInitOverride true
> > -log4j.defaultInitOverride true
> > 
> > in the <argument> tag of the <application-desc>,
> but
> > it doesn't work. Log4j still uses the default
> > log4j.properties in the downloaded .jar.
> > 
> > Any ideas on how to make log4j ignore the
> > log4j.properties when the app is started via Java
> > Webstart?
> > 
> > Thank
> > Charl
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail:
> log4j-user-help@logging.apache.org
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail:
> log4j-user-help@logging.apache.org
> 
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


RE: [Q] -Dlog4j.defaultInitOverride=true in Java Webstart?

Posted by Paul Smith <ps...@aconex.com>.
Try this link (and this whole website for all things Webstart):

http://www.vamphq.com/jwsfaq.html#magic-props


> -----Original Message-----
> From: Charl Gerber [mailto:charlgerber@yahoo.com]
> Sent: Thursday, August 19, 2004 4:42 PM
> To: Log4J Users List
> Subject: [Q] -Dlog4j.defaultInitOverride=true in Java Webstart?
> 
> System property:
> -Dlog4j.defaultInitOverride=true
> 
> How do I configure it to be used in an application
> that starts in Java Webstart? I have tried
> 
> -Dlog4j.defaultInitOverride=true
> -log4j.defaultInitOverride=true
> -Dlog4j.defaultInitOverride true
> -log4j.defaultInitOverride true
> 
> in the <argument> tag of the <application-desc>, but
> it doesn't work. Log4j still uses the default
> log4j.properties in the downloaded .jar.
> 
> Any ideas on how to make log4j ignore the
> log4j.properties when the app is started via Java
> Webstart?
> 
> Thank
> Charl
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org