Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation issues #14

Open
ibstelix opened this issue Dec 22, 2018 · 2 comments
Open

Installation issues #14

ibstelix opened this issue Dec 22, 2018 · 2 comments

Comments

@ibstelix
Copy link

Hello dear,
i installed before the version 6.4 without problem.
Now i wanted to test the version 7.4 on another laptop but i meet lot of issues with the project business-ecosystem-rss.

  • First issue met: the folder properties is not included
  • second : i need to do mvn clean in this folder before the mvn install works
  • third : the deploy is failing, this one i am not yet able to fix it: remote failure: Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'settlementController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private es.upm.fiware.rss.service.UserManager es.upm.fiware.rss.controller.SettlementController.userManager; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userManager': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private es.upm.fiware.rss.common.properties.AppProperties es.upm.fiware.rss.service.UserManager.oauthProperties; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'oauthProperties' defined in file [/opt/biz-ecosystem/glassfish4/glassfish/domains/domain1/applications/DSRevenueSharing/WEB-INF/classes/META-INF/spring/database.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [es.upm.fiware.rss.common.properties.AppProperties]: Constructor threw exception; nested exception is java.lang.NullPointerException. Please see server.log for more details.
    Command deploy failed.
@ibstelix
Copy link
Author

ibstelix commented Dec 22, 2018

commenting this part (business-ecosystem-rss/rss-core/rss-common/src/main/java/es/upm/fiware/rss/common/properties/AppProperties.java):
` if (filename.equals("/etc/default/rss/oauth.properties")) {
prop.setProperty("config.grantedRole", System.getenv("BAE_RSS_OAUTH_CONFIG_GRANTEDROLE"));
prop.setProperty("config.sellerRole", System.getenv("BAE_RSS_OAUTH_CONFIG_SELLERROLE"));
prop.setProperty("config.aggregatorRole", System.getenv("BAE_RSS_OAUTH_CONFIG_AGGREGATORROLE"));
} else {
prop.setProperty("database.url", System.getenv("BAE_RSS_DATABASE_URL"));
prop.setProperty("database.username", System.getenv("BAE_RSS_DATABASE_USERNAME"));
prop.setProperty("database.password", System.getenv("BAE_RSS_DATABASE_PASSWORD"));
prop.setProperty("database.driverClassName", System.getenv("BAE_RSS_DATABASE_DRIVERCLASSNAME"));
}

if (prop.getProperty("config.grantedRole") == null || prop.getProperty("config.sellerRole") == null ||
    prop.getProperty("config.aggregatorRole") == null || prop.getProperty("database.url") == null ||
    prop.getProperty("database.username") == null || prop.getProperty("database.password") == null ||
    prop.getProperty("database.driverClassName") == null) {
    

    try {
	InputStream input = new FileInputStream(filename);
	prop.load(input);
    } catch (IOException ioe) {
	AppProperties.logger.error("Error >>>>>>> " + ioe.getMessage(), ioe);
    }
} `

fixed the deployment issue

@fdelavega
Copy link

This issue should be fixed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants