Hi
I am trying to deploy GWS that is needed to GIR I am using the latest version of GWS 8.5.201.61
and followed the below steps to deploy the web application according to the deployment guide
1.Copy the installation_CD/ gws-.noarch.rpm file to a local folder.
2. Perform the installation using the RPM package manager: rpm -ivh [–prefix installation_location] gws-.noarch.rpm
3.Copy the *.sample files from the /installation_path/gws/config/config-templates directory to the /installation_path/ gws/config directory and remove the .sample extension.
4. Run following command to register the new service on your host: chkconfig gws on
5.configuring webservices (I configured the mandatory parameters)
6. Testing cassandra (running)
7. start the service by running the command: service gws start
At this stage I am getting:
Starting Web Services and Applications: su: warning: cannot change directory to /home/gws: No such file or directory FAILED Thu Mar 9 12:29:57 AST 2017
and checking the logs at /var/log/gws we are getting the below:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: java.io.FileNotFoundException: ./config/application.yaml (Permission denied)
at org.springframework.beans.factory.config.YamlProcessor.handleProcessError(YamlProcessor.java:184)
at org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:176)
at org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:136)
at org.springframework.boot.env.YamlPropertySourceLoader$Processor.process(YamlPropertySourceLoader.java:101)
at org.springframework.boot.env.YamlPropertySourceLoader.load(YamlPropertySourceLoader.java:58)
at org.springframework.boot.env.PropertySourcesLoader.load(PropertySourcesLoader.java:127)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.loadIntoGroup(ConfigFileApplicationListener.java:452)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:439)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:364)
at org.springframework.boot.context.config.ConfigFileApplicationListener.addPropertySources(ConfigFileApplicationListener.java:200)
at org.springframework.boot.context.config.ConfigFileApplicationListener.postProcessEnvironment(ConfigFileApplicationListener.java:169)
at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEnvironmentPreparedEvent(ConfigFileApplicationListener.java:161)
at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEvent(ConfigFileApplicationListener.java:146)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:163)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:136)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:119)
at org.springframework.boot.context.event.EventPublishingRunListener.publishEvent(EventPublishingRunListener.java:111)
at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:65)
at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)
at org.springframework.boot.SpringApplication.doRun(SpringApplication.java:315)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:295)
at com.genesyslab.cloud.application.CloudWebApplication.main(CloudWebApplication.java:69)
… 6 more
Caused by: java.io.FileNotFoundException: ./config/application.yaml (Permission denied)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at java.io.FileInputStream.(FileInputStream.java:93)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
Please Appreciate your help to suggest what can be done here and thanks