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.
Summary: | org.netbeans.modules.web.project.ant.CopyFiles cannot be found | ||
---|---|---|---|
Product: | javaee | Reporter: | tbrauer01 <tbrauer01> |
Component: | Web Project | Assignee: | Pavel Buzek <pbuzek> |
Status: | CLOSED FIXED | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
tbrauer01
2004-08-21 01:07:53 UTC
Further information will almost certainly be needed. If possible, step-by-step instructions to reproduce the problem from scratch (ideally starting with a fresh IDE install and fresh user dir), to make sure the reader of the bug report can follow what you did. The web application is located in a directory structure as follows: /Developer/Tomcat/webapps/web_store_dvlp_v3r1 In NB 4.0b1 IDE, created a new project with category = "Web"; project type = "Web Project with Existing Sources"; then set the location for this project to the above directory, gave it a project name of "WebStoreDvlp_V3R1" and set the project folder also equal to the above directory. Next I started the tomcat 5 server (from the "runtime" tab) which is set to "http: //localhost:8084/". Finally, I attempted to run the "index.jsp" which is the main page of this web app - then NB returned the "CopyFiles cannot be found message". Here is output from the log window: pre-init: init-private: init-userdir: init-user: init-project: do-init: post-init: init-check: init-macrodef-javac: init-macrodef-nbjpda: init-macrodef-debug: init-taskdefs: /Developer/Tomcat/webapps/web_store_dvlp_v3r1/nbproject/build-impl.xml:129: taskdef class org.netbeans.modules.web.project.ant.CopyFiles cannot be found BUILD FAILED (total time: 0 seconds) please let me know if you need further information on this issue. thank you. It happened to me too. I have userdir on which it always happens and I don't know how to get rid of it. Anytime when I want to build, clean or run web project I get the error. Zipped userdir has 6 MB so I can't attach it. I can send it on demand. It's without any project. After starting IDE with the userdir, create new web project and try to build it. It will fail. It happend several times on WinXP and Fedore 2 too -> setting platform. I think I see what it is. References to various jar files are stored in build.properties. If you use the same userdir with a different build the references to libraries are updated but references to copyfiles are not. In this example your log shows that you were running the build with 200408251800 but the reference to copyfiles in build.properties is to E:\\Builds\\dev\\200408181800\\ide4\\ant\\extra\\copyfiles.jar. Karle, please check if it was the same problem. I will make sure the locations are updated as needed. Pavle sorry, but I don't have saved userdir. We have been trying to reproduce it with Martin Schovanek for the last week - we wanted to save the userdir, but Libor has the first and the only userdir saved with this bug :-(. cvs commit -m "47615 update location of libraries if the userdir is used with different nb.home" src\org\netbeans\modules\web\project\WebProjectModule.java (in directory E:\nb_all\web\project\) Checking in src/org/netbeans/modules/web/project/WebProjectModule.java; /cvs/web/project/src/org/netbeans/modules/web/project/WebProjectModule.java,v <-- WebProjectModule.java new revision: 1.3; previous revision: 1.2 done I verified it on my saved userdir and now it works. Sometimes I delete old builds so that's why the reference to copyfile stopped working. |