I think images will better illustrate my problem. I have a Java project in Eclipse and am unable to add it to internal GlassFish. What must I do to for Eclipse to let me do this?



Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Figured it out!
Go to project Properties -> Project Facets. Click Convert to faceted form. A list of facets will appear. Check the Dynamic Web Module facet. Click Apply.
While still in project properties, go to Deployment Assembly. Delete the WebContent entry. Add a new entry, select the src/main/webapp directory. Click finish. It will deploy this directory to /.
That’s it! Working like a charm for me!