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.
I played with the redeployment of a web project with jsf. After changing the context path and try to redeploy the project I got the attached exception.
Created attachment 45142 [details] The exception
I'm increasing the priority, because I get the exception again and after this the project is not redeployed.
*** Issue 109309 has been marked as a duplicate of this issue. ***
*** Issue 102624 has been marked as a duplicate of this issue. ***
I'll look into this... I don't know why ModuleConfigurationImpl.save() is being called. I thought it was deprecated, it certainly doesn't work properly.
The method throwing the exception is the method that writes out deployment descriptors as a deployment plan file (e.g. J2EE.dpf). I wasn't aware this was still being used, but no biggie, easy to fix. More precise instructions to reproduce: This method is called in response to the j2eeserver call "distribute", when the deployment descriptor has been changed. So... 1. Create J2EE module (war, ejb, etc.). 2. Make runnable (e.g. add ejb & business method if ejb jar, etc.) 3. Run module. 4. Modify the sun deployment descriptor for the application in some way and save. (e.g change context-root for web app, persistence type for an ejb, whatever.) 5. Undeploy and Deploy module. 6. Run module. <-- distribute is called as part of this step.
Fixed. http://serverplugins.netbeans.org/source/browse/serverplugins/sun/appsrv81/src/org/netbeans/modules/j2ee/sun/ide/j2ee/ModuleConfigurationImpl.java?r1=1.13&r2=1.14 http://serverplugins.netbeans.org/source/browse/serverplugins/sun/sunddui/src/org/netbeans/modules/j2ee/sun/share/configbean/SunONEDeploymentConfiguration.java?r1=1.54&r2=1.55