Hi,
I am able to access the file using 

properties.load(new FileInputStream("C:/Documents and
Settings/..../.netbeans/6.7/apache-tomcat-6.0.18_base/webapps/axis2/WEB-INF/services/...properties"));

but I am not able to get it using

properties.load(MyService.class.getResourceAsStream("/WEB-INF/sample.properties");

format.
I am getting a null pointer exception.  Please tell me if their is any other
way of accessing details in a property file.  I am actually looking for a
client configurable database connection parameters to be put in what ever
way it is simplest.


alpatino2 wrote:
> 
> If you have:
> 
> {AXIS2-APP-SERVER-PATH}/WEB-INF/sample.properties
> 
> Then write something like:
> 
> Class MyService extends MyServiceSkeleton {
> 
> Properties properties = new Properties();
> 
> 
> public initProperties() {
> 
>      
> properties.load(MyService.class.getResourceAsStream(/WEB-INF/sample.properties)
> 
> }
> 
> 
> 
> 
> On Thu, Apr 17, 2008 at 1:51 PM, Chris Richmond
> <[email protected]> wrote:
>>
>>
>>
>>
>> Hey all,
>>
>>
>>
>> Where do I place a standard java .properties file in my axis2 web service
>> folder structure if I want to be able to read it in standard java
>> fashion.
>>
>>
>>
>> I have tried several locations and cannot figure out where it should go
>> to
>> use a .properties file with my web service
>>
>>
>>
>> Thanks,
>>
>> Chris
> 
> 
> 
> -- 
> Don't be evil!!!
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/.properties-file-location-in-axis2-tp16753312p25060317.html
Sent from the Axis - User mailing list archive at Nabble.com.

Reply via email to