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.

Bug 47615 - org.netbeans.modules.web.project.ant.CopyFiles cannot be found
Summary: org.netbeans.modules.web.project.ant.CopyFiles cannot be found
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-21 01:07 UTC by tbrauer01
Modified: 2006-03-24 09:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tbrauer01 2004-08-21 01:07:53 UTC
error message listed in summary of this issue occurred when 
attempted to build web project in NetBeans IDE 4.0 beta 1.  The 
error is in the build-impl.xml file.  Please let me know if further 
information is needed.

note - this same project runs fine in NB 3.0 IDE.
Comment 1 Jesse Glick 2004-08-21 03:08:14 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.
Comment 2 tbrauer01 2004-08-21 03:47:22 UTC
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.
Comment 3 L Martinek 2004-08-26 18:28:32 UTC
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.
Comment 4 zikmund 2004-08-26 18:35:31 UTC
It happend several times on WinXP and Fedore 2 too -> setting platform.
Comment 5 Pavel Buzek 2004-08-26 19:01:32 UTC
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.
Comment 6 zikmund 2004-08-26 19:07:54 UTC
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 :-(.
Comment 7 Pavel Buzek 2004-08-27 22:48:37 UTC
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
Comment 8 L Martinek 2004-08-31 15:03:00 UTC
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.