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.
Build:200706201745 JDk: Both 1.5.0_10 and 1.6 Glassfish v2b50 Steps to reproduce: 1. Create new VW project with target server as glassfish. 2. Run application. 3. Add a new VW JSF page to the project 4. Run project again. 5. Deployment will fail with the following error on console: (full output attached) Building jar: C:\Documents and Settings\USER\Desktop\sample rojects\WebApplication44\dist\WebApplication44.war do-dist: dist: Incrementally deploying WebApplication44_localhost:4848_server Error during incremental deploy: org.netbeans.modules.masterfs.filebasedfs.utils.FSException: Cannot create file Page3.class in folder C:/Documents and Settings/USER/Desktop/sample rojects/WebApplication44/build/web/WEB-INF/classes/webapplication44. This file already exists. C:\Documents and Settings\USER\Desktop\sample rojects\WebApplication44\nbproject\build-impl.xml:526: Deployment error: null See the server log for details. BUILD FAILED (total time: 3 seconds) 6. Server log shows no problems (attached). Run application again and it will be deployed fine.
Created attachment 44113 [details] Console Output
Created attachment 44114 [details] Server Output
Created attachment 44115 [details] I see this exception from the console
Looks like the failure is caused by org.netbeans.modules.j2ee.deployment. (see attached messages.log) I also see "java.lang.RuntimeException: Cant copy Serializable object" in the server log.
Created attachment 44117 [details] I also see "Cant copy Serializable object" in the server.log
I have reproduced this issue and have a hack of a fix. The real fix will need some more thought... It seems like the class file for a new page "appears" after the code thinks that it should... The issue is really in j2eeserver/.../ServerFileDistributor.java...
http://j2eeserver.netbeans.org/source/browse/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/ServerFileDistributor.java?r1=1.26&r2=1.27
Verified on : 200708011200