VMware GemFire

 View Only

 Unable to start pulse after starting a ServerLauncher

Priyam Soni's profile image
Priyam Soni posted Feb 11, 2020 05:42 PM

I am trying to run Gemfire Server using java code. However, I am unable to start pulse as I get an error saying "geode-web-api war file was not found".

There are no logs being printer after this:

 

[info 2020/02/11 14:32:46.648 GMT <main> tid=0x1] GEODE_HOME:C:\FAST\pivotal-gemfire-9.9.0\tools\Extensions

 

[warn 2020/02/11 14:32:46.649 GMT <main> tid=0x1] geode-web-api war file was not found

 

[info 2020/02/11 14:32:46.649 GMT <main> tid=0x1] Unable to find GemFire Developer REST API WAR file; the Developer REST Interface for GemFire will not be accessible.

 

[info 2020/02/11 14:32:46.650 GMT <main> tid=0x1] Initializing region __ParameterizedQueries__

Capture

[info 2020/02/11 14:32:46.650 GMT <main> tid=0x1] Initialization of region __ParameterizedQueries__ completed

 

 

 

Here is the code I am using to run the ServerLauncher:

 

 

 

 

Geet Rawat's profile image
Broadcom Employee Geet Rawat

Hello Priyam

 

Thank you for contacting Pivotal Support community.

 

Please check if you have "geode-web-api" war file under $(GEMFIRE_HOME)/tools/Extensions directory. Following war files should exist in order to start the rest api and pulse.

  • geode-web-api-x.x
  • geode-web-management-x.x
  • geode-web-x.x

 

Please refer to the following link for more information.

https://gemfire.docs.pivotal.io/99/geode/rest_apps/setup_config.html

 

Kind Regards

Geet

Priyam Soni's profile image
Priyam Soni

Hi,

I have them all here.

Capture

Priyam Soni's profile image
Priyam Soni

Is it meant to be GEMFIRE_HOME or GEODE_HOME?

Geet Rawat's profile image
Broadcom Employee Geet Rawat

Apologies. It should be GEODE_HOME. Gemfire uses system classpath followed by application classpath. So, can you please try adding the war file to your classpath manually.

 

 

Kind Regards

Geet

Priyam Soni's profile image
Priyam Soni

Add it in the Intellij's libraries? I can see Gemfire has found the GEODE_HOME path but can't find the war files from there.

 

[info 2020/02/11 17:35:25.375 GMT <main> tid=0x1] GEODE_HOME:C:\FAST\pivotal-gemfire-9.9.0

 

[warn 2020/02/11 17:35:25.376 GMT <main> tid=0x1] geode-web-api war file was not found

 

[info 2020/02/11 17:35:25.376 GMT <main> tid=0x1] Unable to find GemFire Developer REST API WAR file; the Developer REST Interface for GemFire will not be accessible.

 

 

 

Geet Rawat's profile image
Broadcom Employee Geet Rawat

That is one option, yes.

Can you also try the same using gfsh. Like start a locator and then a server with "--start-rest-api=true" and see if you are still getting error. This error actually is a classpath issue.

If that does not resolve, then I would encourage you to open a support ticket and we can review the artifacts in detail.

 

 

Kind Regards

 

Geet Rawat

Priyam Soni's profile image
Priyam Soni

I added .set("start-rest-api", "true").

But gives an exception saying "Unknown configuration attribute name start-rest-api."

Geet Rawat's profile image
Broadcom Employee Geet Rawat

start-rest-api is a gfsh parameter while starting the server.

Priyam Soni's profile image
Priyam Soni

Hi I have tried that, and through gfsh it is able to pick up the war files. But just not in intellij.

Capture

Geet Rawat's profile image
Broadcom Employee Geet Rawat

Then you should try to check if your settings are excluding .war extenstions or try including the war files in intellij library manually.

Priyam Soni's profile image
Priyam Soni

Okay thanks!