[
https://issues.apache.org/jira/browse/NETBEANS-4559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17173774#comment-17173774
]
Pete Whelpton commented on NETBEANS-4559:
-----------------------------------------
Hi [~bht] . Apologies, I wasn't making myself clear.
I had a look at the NB source code, and it seems like there is a bug. The
*Relative URL* will only get saved if *Action -> Run Project* has the property:
{{netbeans.deploy=true}}
I think this should get set by default when a new Maven project is created.
However, at the moment that doesn't seem to be happening and I haven't found a
commit in the Netbeans history since the project moved to Apache that looks
like it would have changed/broken this.
In the meantime, you should be able to workaround your issue by manually adding
the property:
netbeans.deploy=true
to the Run Action and click OK. Then go back into the project properties and
setting the Relative URL should now correctly save the value (it also gets
saved as a property in the Run Actions).
Let us know if that works!
> Web Project Properties Dialog fails to save Relative URL
> --------------------------------------------------------
>
> Key: NETBEANS-4559
> URL: https://issues.apache.org/jira/browse/NETBEANS-4559
> Project: NetBeans
> Issue Type: Bug
> Components: projects - Maven
> Affects Versions: 11.3
> Reporter: Bernard
> Priority: Critical
> Attachments: ProjectPropertiesActionRun.png,
> ProjectPropertiesActionRun.png, ProjectPropertiesRun.png,
> PropertiesBefore.png, PropertiesBeforeAfter.png, WebSocketMovieTheater.zip,
> image-2020-08-07-15-48-32-635.png, messages.log
>
>
> Please see attached images and project.
> In the project properties, there is a field "Relative URL" for the page to
> load relative to the context path.
> If I enter it and confirm the dialog, then after re-opening the dialog again,
> the value is lost.
>
> The project is from
> [https://technology.amis.nl/2015/05/14/java-web-application-sending-json-messages-through-websocket-to-html5-browser-application-for-real-time-push/]
> - just adapted to run under NetBeans.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
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