[ 
https://issues.apache.org/jira/browse/NETBEANS-2888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16926907#comment-16926907
 ] 

Pete Whelpton commented on NETBEANS-2888:
-----------------------------------------

I believe that all Netbeans ever did when changing the context path in a Maven 
project was:

Check the version of GlassFish the Project is using:

If < GF3.1, create a sun-web.xml file in WEB-INF with the context path setting

If >= GF3.1, create a glassfish-web.xml file in WEB-INF with the context path 
setting

 

However, the glassfish-web.xml templates weren't in the donation from Oracle, 
so Netbeans can't create the glassfish-web.xml file when the context path is 
changed. See Geertjan's comments on the related issue of  the missing 
templates: https://issues.apache.org/jira/browse/NETBEANS-2951

There is a secondary issue, in that for GlassFish 5.0 and 5.1, Netbeans thinks 
they should have a sun-web.xml file, not a glassfish-web.xml. I suspect there 
is a hardcoded check somewhere that isn't taking the existance of GF > 4.x into 
account that needs to be found / fixed.

 

Hope that helps :)

 

> Project Context Path problem for Java Maven Web Application
> -----------------------------------------------------------
>
>                 Key: NETBEANS-2888
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2888
>             Project: NetBeans
>          Issue Type: Bug
>          Components: apisupport - Maven, apisupport - Project, javaee - 
> Maven, javaee - Web Project
>    Affects Versions: 11.0, 11.1
>         Environment: Netbeans 11.1 with Java 8 or 11 (Windows 10 64 bit),
> Eclipse GlassFish 5.1 or Payara app server for project app deployment
>            Reporter: SergeyT
>            Assignee: Josh Juneau
>            Priority: Blocker
>         Attachments: ctx_path_webapp.png
>
>
> There is no possibility to save/change the Project property -> Run for Java 
> Maven Web Application: Context Path (see attach)
> The context path in NB11.1 is always the same as the name of the project and 
> cannot be changed.
>  
> Environment: JDK 64-Bit Server VM 8 or 11



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to