I had about the same problem : my database.properties file had to be put in the same folder as the .aar : webapps/axis2/WEB-INF/services.
I guess Axis can't allow FileInputStream to fetch the file from within the .aar .

Three days ago I asked here how to specify to Axis2 the directory to use for relative file paths used in a service : Keith Chapman suggested to add it to the classpath and then load it off the classpath.

Regards
Pierre

[EMAIL PROTECTED] a écrit :
Hello,
 
I have a problem with my properties class. After archiving my service my database controller can't locate or read the properties data.
In the data are the settings for the database connection like treiber , username url .
Where do I have to place the properties for the right reading and is it possible to use a normal properties like this:
 

private boolean loadProperties() {

boolean data = "">false;

try {

properties.load(new FileInputStream(config));

data = "">true;

} catch (final FileNotFoundException e) {

System.out.println("Config File konnte nicht gefunden weren oder existiert nicht.");

data = "">false;

e.printStackTrace();

} catch (final IOException e) {

System.out.println("Es ist ein Fehler beim Lesen der Config Datei aufgetreten.");

data = "">false;

e.printStackTrace();

}

return data;

}// end of load Properties

 
 
I hope , that someone can help with this problem.
 
 
Best regards
Jörn 

**************************
Si vous n'êtes pas le destinataire désigné de ce message ou une personne autorisée à l'utiliser, toute distribution, copie, publication ou usage à quelques fins que ce soit des informations dans ce message sont interdits. Merci d'informer immédiatement l'expéditeur par messagerie, et, de détruire ce message.
This e-mail is confidential. If you are not the addressee or an authorized recipient of this message, any distribution, copying, publication or use of this information for any purpose is prohibited. Please notify the sender immediately by e-mail and then delete this message.
**************************


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

Reply via email to