Where did you put the propertity file? It has to be somewhere in the web 
applicatin directory.  Also you do not have to add variables as system ones 
the way you were trying, you can use 
System.getProperties().put(variable_name, variable_value) to set it in the 
init method and later get it using System.getProperty(variable_name).

Bin


>From: "Scott Humphreys" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: JRun-Talk <[EMAIL PROTECTED]>
>Subject: Trouble loading the Properties File with Jrun 3.0
>Date: Thu, 5 Jul 2001 13:31:27 -0700
>
>This is a multi-part message in MIME format.
>
>------=_NextPart_000_014E_01C10556.CB3E5230
>Content-Type: text/plain;
>       charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
>I am using JRun 3.0 on Windows 2000.  I am attempting to add a servlet.  =
>My servlet needs to load a prop file on init.  I see how to add =
>application variables but they are using ServletContext() how can I pass =
>parameters to ServletConfig().  I have tried InitParam with =
>Propfile=3Dc:\wshtml.prop but I get a 500 error and when I look in the =
>log I see my servlet is not instantiated because of a null pointer =
>exception when trying to load the propfile.  Any help is appreciated. =
>Thanks
>
>Scott Humphreys
>I/O Concepts
>Technical Support
>425 450 0650 x103
>[EMAIL PROTECTED]
>
>------=_NextPart_000_014E_01C10556.CB3E5230
>Content-Type: text/html;
>       charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
><HTML><HEAD>
><META http-equiv=3DContent-Type content=3D"text/html; =
>charset=3Diso-8859-1">
><META content=3D"MSHTML 5.50.4613.1700" name=3DGENERATOR>
><STYLE></STYLE>
></HEAD>
><BODY bgColor=3D#ffffff>
><DIV><FONT face=3DArial size=3D2>I am using JRun 3.0 on Windows =
>2000.&nbsp; I am=20
>attempting to add a servlet.&nbsp; My servlet needs to load a prop file =
>on=20
>init.&nbsp; I see how to add application variables but they are using=20
>ServletContext() how can I pass parameters to ServletConfig().&nbsp; I =
>have=20
>tried InitParam with Propfile=3Dc:\wshtml.prop but I get a 500 error and =
>when I=20
>look in the log I see my servlet is not instantiated because of a null =
>pointer=20
>exception when trying to load the propfile.&nbsp; Any help is =
>appreciated.=20
>Thanks</FONT></DIV>
><DIV>&nbsp;</DIV>
><DIV><FONT face=3DArial size=3D2>Scott Humphreys<BR>I/O =
>Concepts<BR>Technical=20
>Support<BR>425 450 0650 x103<BR><A=20
>href=3D"mailto:[EMAIL PROTECTED]";>[EMAIL PROTECTED]</A></FONT></DIV=
> ></BODY></HTML>
>
>------=_NextPart_000_014E_01C10556.CB3E5230--
>
>Archives: http://www.mail-archive.com/[email protected]/
>Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to