Cannot deploy an application to Glassfish 4.1 in Eclipse
Solution 1
I had same deployment issue (eclipse Lune/Glassfish 4.1) and it was resolved thanks to Marvin's feedback.
You can find the "Use JAR archives for deployment" by: right click on glassfish from eclipse server tab. Then, select Monitoring >Properties > Glassfish in new windows > Use JAR archives for deployment.
Then, the miracle occurs...
Solution 2
Try the following steps:
- right click on glassfish server
- click on properties
- then you will get 3 options(general,glassfish,monitoring) at the left side of that box.
- click on glassfish
- click that checkbox "Use JAR archives for depolyment". Previously it was unchecked. That's why I was getting issue.
user3601262
Updated on September 06, 2020Comments
-
user3601262 over 3 years
I have Glassfish 4.1 and Eclipse Luna installed on Ubuntu. When I tried to run a simple web application (jsp + servlet + java bean) I`ve received the following error:
Publishing to Glassfish 4 at localhost[domain1].. has encountered a problem. cannot Deploy mvcprj1 deploy is failing=Application with name [mvcprj1] is not deployed
Nothing is appearing neither in the glassfish server log or in the eclipse console.
-
jowey about 7 yearsAfter doing this, you can also rightclick on the server and select "Clean" and afterwards uncheck the box again. After a redeploy everything will work as before.
-
DAB almost 7 yearsThis fixed the problem with Eclipse Neon too. Thanks
-
Alexander Mihailov over 4 yearsIn 2019 eclipse 2019-09 R (4.13.0) and Glassfish is still the same. Thank you very much and thanks to @jowey - the clean trick works also!