0

I have a problem here with me at the moment, regarding application servers. I want to build an app. that connects to the database using Spring (not Spring Boot).

I first started with glassfish, in which I could not create a connection pool. So, someone recommended that I use Payara Server for pooling.

These is what I did:

  1. Because I did not have Payara Plugins in Netbeans, I downloaded and plugged them in.
  2. Created a server in Netbeans using a simple GUI (click-away)
  3. During creation, Netbeans required me to select/download a server. I told Netbeans to download it for me (I selected this version to be downloaded: Payara 4.1.1.161).
  4. The server was then created successfully.

When I start the server, I receive the following error:

enter image description here

halfer
  • 19,471
  • 17
  • 87
  • 173
DESH
  • 477
  • 2
  • 10
  • 22

2 Answers2

-1

I recommend to retry with the most recent version of Payara Server, which is 5.181, released in February 2018.

The version 4.1.1.161 is 2 years old.

If the version 5.181 isn't available in the Netbeans GUI, just download if from here https://www.payara.fish/all_downloads, unzip on the disk and point Netbeans to its location.

OndroMih
  • 6,927
  • 1
  • 25
  • 41
-1

I would also recommend using the latest version of Payara Server, but I think that what is causing the error here could be a JVM option which has a space in it (e.g. - Xmx rather than -Xmx).

It looks like Java is trying to interpret a single - as a JVM option.

Mike
  • 4,762
  • 1
  • 27
  • 48