[ https://issues.apache.org/jira/browse/NETBEANS-4266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17101839#comment-17101839 ]
Geertjan Wielenga edited comment on NETBEANS-4266 at 5/7/20, 4:16 PM: ---------------------------------------------------------------------- Kind of a work around -- maybe it helps you: if create a file named glassfish-web.xml (should work for Payara too) in the folder src/main/webapp/WEB-INF, with this content below, then I can make changes to that property and it will be reflected in context-root element that will be created in the below: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd"> <glassfish-web-app error-url=""> </glassfish-web-app> However, I'd recommend to set context root and other such properties in the Maven POM, in one way or another. was (Author: geertjanwielenga): Kind of a work around -- maybe it helps you: if create a file named glassfish-web.xml in the folder src/main/webapp/WEB-INF, with this content below, then I can make changes to that property and it will be reflected in context-root element that will be created in the below: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd"> <glassfish-web-app error-url=""> </glassfish-web-app> However, I'd recommend to set context root and other such properties in the Maven POM, in one way or another. > Project Properties build/Run Context Path is an editable field but is not > updated when clicking OK. > ---------------------------------------------------------------------------------------------------- > > Key: NETBEANS-4266 > URL: https://issues.apache.org/jira/browse/NETBEANS-4266 > Project: NetBeans > Issue Type: Bug > Components: core > Affects Versions: 12.0 > Reporter: David Gradwell > Priority: Major > > *Problem* > Using Apache Netbeans 12.0 beta 3, Project Properties build/Run Context Path > is an editable field but is not updated when clicking OK. > This is also an issue in 11.3 > *Steps to reproduce:* > 1. Install Apache NetBeans 12.0 beta 3 > 2. Create a new project Java with Maven/Web Application. Go to Project > Properties build/Run Context Path and change it. Click OK. Go back to > Project Properties build/Run Context Path and note that it has not changed. > *Importance* > This is an important bug because the Context Path is passed to the server, > e.g. Payara resulting in a 404 when the servlet is invoked. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists