JDk: Both 1.5.0_10 and 1.6
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
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:
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]
Created attachment 44114 [details]
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...
Verified on : 200708011200