Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot deploy an application to Glassfish 4.1 in Eclipse

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.

like image 728
user3601262 Avatar asked Jan 12 '15 14:01

user3601262


Video Answer


1 Answers

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...

like image 52
eric A Avatar answered Oct 16 '22 11:10

eric A