It works! Thanks Paul

Charl


 --- Paul Smith <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]
> > 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:[EMAIL PROTECTED]
> > > > 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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]
> > > > > > 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:
> > > > > [EMAIL PROTECTED]
> > > > > > For additional commands, e-mail:
> > > > > [EMAIL PROTECTED]
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> > > > > [EMAIL PROTECTED]
> > > > > For additional commands, e-mail:
> > > > > [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to