Skip to content

Fixes creation of a Glassfish deployment descriptor - #3219

Merged
jGauravGupta merged 1 commit into
apache:masterfrom
jGauravGupta:FISH-5772
Jan 13, 2022
Merged

Fixes creation of a Glassfish deployment descriptor#3219
jGauravGupta merged 1 commit into
apache:masterfrom
jGauravGupta:FISH-5772

Conversation

@jGauravGupta

@jGauravGupta jGauravGupta commented Oct 7, 2021

Copy link
Copy Markdown
Contributor

This is a bug fix PR that fixes the creation of glassfish-web.xml deployment descriptor.

Issue 1:

If the server is not assigned to the project then glassfish-web.xml path is incorrect.

  • Server attached then descriptor path: webapp/WEB-INF/glassfish-web.xml
  • Server is not attached then the descriptor path: webapp/glassfish-web.xml

Fixed by checking the relative path of standard DD web.xml.

Issue 2:

Old Java EE and J2EE glassfish-web.xml templates no more exist and check for WebApp version 4.0 not added to getSunDDFromProjectsModuleVersion which skips the creation of glassfish-web.xml.

Fixed by returning the template org-netbeans-modules-glassfish-eecommon-ddtemplates-java_ee/glassfish-web.xml.

@matthiasblaesing matthiasblaesing left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane to me.

@ebarboni ebarboni added this to the 12.6 milestone Oct 12, 2021
@neilcsmith-net neilcsmith-net modified the milestones: 12.6, NB13 Oct 22, 2021
@jGauravGupta
jGauravGupta merged commit de94f12 into apache:master Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants