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?
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?
One answer
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"?)
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?