vscode-tomcat icon indicating copy to clipboard operation
vscode-tomcat copied to clipboard

Not able to add a war to the server

Open Panciz opened this issue 5 years ago • 10 comments

  • VSCode Version: 1.40.1
  • OS Version: Windows 10.0 x64
  • Tomcat Extension Version: 0.11

Steps to Reproduce:

  1. Install the plugin
  2. Add an Apache tomcat server and run start is
  3. Select a war from the target\ directory left click Debug on Tomcat

Simply nothings it happens. I cannot find any log message in the tomcat output console.

Panciz avatar Nov 20 '19 09:11 Panciz

I am having the same issue. This works without issue with container-based development (https://github.com/microsoft/vscode-dev-containers/tree/master/containers/java-8-tomcat-8.5) but when I try this locally, I get absolutely nothing with Tomcat 8.5.49. This is my system info, let me know if you need more specifics:

Version: 1.41.0 (user setup) Commit: 9579eda04fdb3a9bba2750f15193e5fafe16b959 Date: 2019-12-11T18:37:42.077Z Electron: 6.1.5 Chrome: 76.0.3809.146 Node.js: 12.4.0 V8: 7.6.303.31-electron.0 OS: Windows_NT x64 10.0.18363

ShiftyMcCool avatar Dec 18 '19 14:12 ShiftyMcCool

@Panciz @ShiftyMcCool I found a solution, as this issue has apparently been opened twice before. Documentation would be good, I will see if I can get this added to the README.

The solution to your issue was actually solved in this thread: https://github.com/adashen/vscode-tomcat/issues/33 Basically, you have to add a reference to the jdk/bin folder to your system path. If you are on Windows, make an entry in the environmental variables under the User section. That solved the problem for me.

eschulma avatar Dec 20 '19 20:12 eschulma

@eschulma Thanks, that worked for me!

ShiftyMcCool avatar Dec 23 '19 17:12 ShiftyMcCool

Thank you @eschulma that did the trick for me! Was aggravating to say the least.

sfariaNG avatar Jan 13 '20 21:01 sfariaNG

I just hope my pull request gets reviewed by a committer.

eschulma avatar Jan 13 '20 21:01 eschulma

VSCode Version: 1.52.1 OS Version: Ubuntu 20.04 64 Tomcat Extension Version: v0.11.3

Same problem here. How do i fix?

erickmendesBR avatar Jan 27 '21 19:01 erickmendesBR

VSCode Version: 1.52.1 OS Version: Ubuntu 20.04 64 Tomcat Extension Version: v0.11.3

Same problem here. How do i fix?

Hey, I'm having the same problem on Ubuntu. Did you fix it?

santanasara avatar Mar 25 '21 19:03 santanasara

@erickmendesBR and @santanasara see the comments above or my pull request, #275

eschulma avatar Mar 25 '21 19:03 eschulma

@erickmendesBR and @santanasara see the comments above or my pull request, #275

Hi, thanks for replying. The solutions above are for Windows, I'm on Ubuntu 20.04. I have JAVA_HOME and the path to the jdk bin set on etc/profile but I keep running into the same problem.

santanasara avatar Mar 25 '21 20:03 santanasara

I fixed the problem on Ubuntu 20.04 by installing default-jdk with sudo apt install default-jdk. I'm not sure why it wasn't working before since I already had the jdk 11 installed but this fixed it.

santanasara avatar Mar 26 '21 14:03 santanasara