payara / ecosystem-support

Placeholder repository to handle community requests for the Payara Platform ecosystem tools
3 stars 2 forks source link

Server Fails to Start in VS Code if Space in Path/FISH-8180 #81

Open m-reza-rahman opened 6 months ago

m-reza-rahman commented 6 months ago

Brief Summary

If there is a space in the install path (e.g. C:\Program Files\payara-6.2023.11\payara6), Payara Server fails to start via the VS Code extension with the following error:

Error: Could not find or load main class Files\payara-6.2023.11\payara6\glassfish.lib.grizzly-npn-api.jar Caused by: java.lang.ClassNotFoundException: Files\payara-6.2023.11\payara6\glassfish.lib.grizzly-npn-api.jar

Expected Outcome

Payara Server should start normally.

Current Outcome

Server start fails with the following error:

Error: Could not find or load main class Files\payara-6.2023.11\payara6\glassfish.lib.grizzly-npn-api.jar Caused by: java.lang.ClassNotFoundException: Files\payara-6.2023.11\payara6\glassfish.lib.grizzly-npn-api.jar

Reproducer

Operating System

Windows 11 Enterprise

JDK Version

Temurin-11.0.18+10 (build 11.0.18+10)

Ecosystem Tool

Visual Studio IDE Plugin

felixif commented 6 months ago

Hello @m-reza-rahman,

I tested out the plugin, and indeed I found the wrong behaviour described by you in this issue. I have raised an internal issue with the reference code FISH-8180, and our development team is going to have a look at it soon. Thank you very much for your report!

Best regards, Felix Ifrim