Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Unable to find "HelloService.properties" file

Hi Team,

Im working on hellojfs sample... after adding the "config" class, on running the project I get error:

ERROR com.ibm.team.jfs.app.ConfigUtil - CRJZS0159E Failed to find helloservice.properties. Search path: C:\Jazz\Jazzworspace\.metadata\.plugins\org.eclipse.pde.core\HelloJfs\org.eclipse.osgi\bundles\3\data\temp\_HelloJfs\proxytemp\hc_3115866;C:\Jazz\Jazzworspace\.metadata\.plugins\org.eclipse.pde.core\HelloJfs\org.eclipse.osgi\bundles\3\data\temp\_HelloJfs\proxytemp\hc_3115866;C:\Jazz\Jazzworspace\com.example.HelloService.appdescriptor\conf\HelloJfs;C:\Jazz\Jazzworspace\com.example.HelloService.appdescriptor\conf


When I look back into the config class the variables are well set to point to the correct properties class and urls:

private static final String _propFileName = "helloservice.properties"; //$NON-NLS-1$
private static final String _jfsRootServicesUrlProp = "com.example.hellojfs.jfsRootServicesUrl"; //$NON-NLS-1$
private static final String _hellojfsFrontsideURL="com.example.hellojfs.helloJfsFrontsideURL"; //$NON-NLS-1$
private static final String _consumerSecretProp = "com.example.hellojfs.consumerSecret"; //$NON-NLS-1$
private static final String _consumerKeyProp = "com.example.hellojfs.consumerKey";

In the args of configuration, I have specifed the correct path for my Jazzworkspace and conf directory of my project:

-Dorg.mortbay.log.LogFactory.noDiscovery=true -Declipse.ignoreApp=true -Dosgi.noShutdown=true -Dlog4j.configuration="file:///${workspace_loc}/com.example.HelloService.adddescriptor/log4j.properties" -Dcom.ibm.team.jfs.app.conf="file:///${workspace_loc}/com.example.HelloService.appdescriptor/conf"
-Djetty.http.port=9081 -Djetty.https.port=9444

But still on executing this I get an error:

"Unable to retrieve application properties"

Any ideas what am I missing here?

0 votes



One answer

Permanent link
As you can see in the error message, the search path for the properties file is reported. Note that the last two entries are

C:\Jazz\Jazzworspace\com.example.HelloService.appdescriptor\conf\HelloJfs
C:\Jazz\Jazzworspace\com.example.HelloService.appdescriptor\conf

So please double-check that those paths are correct, and at least one of them exists and contains your properties file. (E.g. did you really name the project "com.example.HelloService.appdescriptor", and not "com.example.HelloJfs.appdescriptor"?)

Hi Team,

Im working on hellojfs sample... after adding the "config" class, on running the project I get error:

ERROR com.ibm.team.jfs.app.ConfigUtil - CRJZS0159E Failed to find helloservice.properties. Search path: C:\Jazz\Jazzworspace\.metadata\.plugins\org.eclipse.pde.core\HelloJfs\org.eclipse.osgi\bundles\3\data\temp\_HelloJfs\proxytemp\hc_3115866;C:\Jazz\Jazzworspace\.metadata\.plugins\org.eclipse.pde.core\HelloJfs\org.eclipse.osgi\bundles\3\data\temp\_HelloJfs\proxytemp\hc_3115866;C:\Jazz\Jazzworspace\com.example.HelloService.appdescriptor\conf\HelloJfs;C:\Jazz\Jazzworspace\com.example.HelloService.appdescriptor\conf


When I look back into the config class the variables are well set to point to the correct properties class and urls:

private static final String _propFileName = "helloservice.properties"; //$NON-NLS-1$
private static final String _jfsRootServicesUrlProp = "com.example.hellojfs.jfsRootServicesUrl"; //$NON-NLS-1$
private static final String _hellojfsFrontsideURL="com.example.hellojfs.helloJfsFrontsideURL"; //$NON-NLS-1$
private static final String _consumerSecretProp = "com.example.hellojfs.consumerSecret"; //$NON-NLS-1$
private static final String _consumerKeyProp = "com.example.hellojfs.consumerKey";

In the args of configuration, I have specifed the correct path for my Jazzworkspace and conf directory of my project:

-Dorg.mortbay.log.LogFactory.noDiscovery=true -Declipse.ignoreApp=true -Dosgi.noShutdown=true -Dlog4j.configuration="file:///${workspace_loc}/com.example.HelloService.adddescriptor/log4j.properties" -Dcom.ibm.team.jfs.app.conf="file:///${workspace_loc}/com.example.HelloService.appdescriptor/conf"
-Djetty.http.port=9081 -Djetty.https.port=9444

But still on executing this I get an error:

"Unable to retrieve application properties"

Any ideas what am I missing here?

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Apr 13 '10, 11:03 p.m.

Question was seen: 8,302 times

Last updated: Apr 13 '10, 11:03 p.m.

Confirmation Cancel Confirm