user3601262
user3601262

Reputation: 681

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.

Upvotes: 13

Views: 39347

Answers (4)

yrz
yrz

Reputation: 57

I believe, that occurs, when one has not closed the "Browser Page" in Eclipse, after he had tried out the same application previous time. After closing all open "Browser Pages" of this application in Eclipse, the deployment is possible again.

Upvotes: 0

arnab layek
arnab layek

Reputation: 167

Try the following steps:

  1. right click on glassfish server
  2. click on properties
  3. then you will get 3 options(general,glassfish,monitoring) at the left side of that box.
  4. click on glassfish
  5. click that checkbox "Use JAR archives for depolyment". Previously it was unchecked. That's why I was getting issue.

Upvotes: 12

Srilu
Srilu

Reputation: 11

I have deleted the Glassfish server instance in eclipse and recreated it to solve this problem.

Upvotes: 1

eric A
eric A

Reputation: 806

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

Upvotes: 61

Related Questions