This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
It looks like apps are being redeployed when the sun-resources.xml file is changed, but most of the changes do not end up in the server. Steps to reproduce build a recent pull of web-main start the ide activate the web and java ee features install/register build 69 (I used the download now feature) create a web app that targets the freshly registered server deploy the web app create a JDBC resource in the web app with a connection pool via the JDBC Resource wizard verify that the resources were registered. open the sun-resources.xml file change the value of the User property from app to apple and save the change. you will see a message that the app is being deployed... but watch carefully 'cause if is speedy quick. Open the properties dialog for the connection pool from the services explorer... Hmm. the User property still has the value app. If you change the name attribute of the connection pool or the jndi-name of the jdbc-resource, the updates seem to stick.
If I turn off deploy on save for the web app, before the first deploy, using the Run item after created the jdbc-resource/connection-pool does not push the resource to server.
The first issue is because the v3 resource registration does not update existing resources. Changing the jndi-name or name (respectively) results in a new resource with the provided jndi-name/name being created. V3 plugin resource registration will need to be changed to allow for updating an existing resource on deploy. The second scenario, Run on project with n additional newly created resource does not register the resource. Investigating ...
Fixed, http://hg.netbeans.org/web-main/rev/b73b359ddba5
Integrated into 'main-golden', will be available in build *200911050201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/b73b359ddba5 User: nityad@netbeans.org Log: #175351 : Fix for most resource changes being ignored on redeploy