Closed damien-biasotto closed 2 years ago
Hi @damien-biasotto ,
May you also share the VSCode logs? Goto Help > Toggle Developer tools > console tab to view it.
@jGauravGupta There you go:
It looks like it is relying on JAVA_HOME
env variable, and does not fallback on the settings java.home
.
My settings:
{
"explorer.confirmDragAndDrop": false,
"[purescript]": {
"editor.defaultFormatter": "nwolverson.ide-purescript"
},
"security.workspace.trust.untrustedFiles": "open",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"java.configuration.runtimes": [
{
"name": "JavaSE-1.8",
"path": "/home/damien/.jdks/openjdk8/lib/openjdk",
},
{
"name": "JavaSE-11",
"path": "/home/damien/.jdks/openjdk11/lib/openjdk",
},
{
"name": "JavaSE-16",
"path": "/home/damien/.jdks/openjdk16/lib/openjdk",
"default": true
},
],
"java.home": "/home/damien/.jdks/openjdk11/lib/openjdk",
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
"maven.executable.options": "-o -DskipTests"
}
The logs:
workbench.desktop.main.js:741 Couldn't locate java in $JAVA_HOME or $PATH
onDidChangeNotification @ workbench.desktop.main.js:741
(anonymous) @ workbench.desktop.main.js:741
fire @ workbench.desktop.main.js:60
addNotification @ workbench.desktop.main.js:741
notify @ workbench.desktop.main.js:1872
(anonymous) @ workbench.desktop.main.js:1825
_showMessage @ workbench.desktop.main.js:1825
$showMessage @ workbench.desktop.main.js:1825
_doInvokeHandler @ workbench.desktop.main.js:1832
_invokeHandler @ workbench.desktop.main.js:1832
_receiveRequest @ workbench.desktop.main.js:1832
_receiveOneMessage @ workbench.desktop.main.js:1832
(anonymous) @ workbench.desktop.main.js:1832
fire @ workbench.desktop.main.js:60
fire @ workbench.desktop.main.js:76
_receiveMessage @ workbench.desktop.main.js:76
(anonymous) @ workbench.desktop.main.js:76
fire @ workbench.desktop.main.js:60
acceptChunk @ workbench.desktop.main.js:76
(anonymous) @ workbench.desktop.main.js:76
D @ workbench.desktop.main.js:2938
emit @ events.js:315
addChunk @ internal/streams/readable.js:309
readableAddChunk @ internal/streams/readable.js:284
Readable.push @ internal/streams/readable.js:223
onStreamRead @ internal/stream_base_commons.js:188
workbench.desktop.main.js:62 [Extension Host] Application activemq-rar contains no web modules.
workbench.desktop.main.js:741 Application deployment failed:
onDidChangeNotification @ workbench.desktop.main.js:741
(anonymous) @ workbench.desktop.main.js:741
fire @ workbench.desktop.main.js:60
addNotification @ workbench.desktop.main.js:741
notify @ workbench.desktop.main.js:1872
(anonymous) @ workbench.desktop.main.js:1825
_showMessage @ workbench.desktop.main.js:1825
$showMessage @ workbench.desktop.main.js:1825
_doInvokeHandler @ workbench.desktop.main.js:1832
_invokeHandler @ workbench.desktop.main.js:1832
_receiveRequest @ workbench.desktop.main.js:1832
_receiveOneMessage @ workbench.desktop.main.js:1832
(anonymous) @ workbench.desktop.main.js:1832
fire @ workbench.desktop.main.js:60
fire @ workbench.desktop.main.js:76
_receiveMessage @ workbench.desktop.main.js:76
(anonymous) @ workbench.desktop.main.js:76
fire @ workbench.desktop.main.js:60
acceptChunk @ workbench.desktop.main.js:76
(anonymous) @ workbench.desktop.main.js:76
D @ workbench.desktop.main.js:2938
emit @ events.js:315
addChunk @ internal/streams/readable.js:309
readableAddChunk @ internal/streams/readable.js:284
Readable.push @ internal/streams/readable.js:223
onStreamRead @ internal/stream_base_commons.js:188
DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/507ce72a4466fbb27b715c3722558bb15afa9f48/core/vs/workbench/workbench.desktop.main.js.map: Load canceled due to load timeout
Hi @damien-biasotto ,
java.home
path from settings having greater priority over JDK_HOME
and JAVA_HOME
env.
Hi, @damien-biasotto , is this resolved by setting the correct Java path?
@jGauravGupta @OndroMih Sorry for the late reply, sadly, I can no longer test it anymore (changed job and tech stack). I'll close the issue for you, as I believe it should work (it is very likely the java.home
path was not correct in my config).
Description
I'm trying to deploy a war file on Payara 5.201 via VSCode, just like the gif in the repo. But every time I'm trying regardless if it's a simple run or a debug, it fails. An error tooltip shows up saying
Application deployment failed:
and an empty description.Looking at my system logs, I can see there is a null pointer every time I tried to deploy:
Expected Outcome
The war file is deployed successfully.
Current Outcome
The war file is not deployed.
Environment