« Return to Thread: problem running or building JSP application after upgrade to 6.7

RE: problem running or building JSP application after upgrade to 6.7

by Dobson, Paul L CTR USAF AFMC 416 SCMS/OBN :: Rate this Message:

Reply to Author | View in Thread

Thank you for the clarification and the reference to more info.

-----Original Message-----
From: Melongo Annabel [mailto:melongo_annabel@...]
Sent: Thursday, July 02, 2009 6:25 PM
To: nbusers@...
Subject: Re: [nbusers] problem running or building JSP application after
upgrade to 6.7

Paul,
Ant is looking for a property file associated with the build.xml. In
that property file, you define variable/value pairs. For example
throughout your build.xml file, you will use ${build.dir} to refer to
the build folder of your application. However, when a task runs, it is
looking for a value associated with that variable. However a property
file isn't always necessary unless you have a lot of variables to
define. You can also define variable directly inside a build.xml file.
What I think happens in you case is that whoever created the build file
attached a property file to it; that's why at build time, ant is looking
for the file.If you still don't know how to do this here's a good side
that will help you: http://ant.apache.org/manual/CoreTasks/property.html
Thanks.


________________________________

From: "Dobson, Paul L CTR USAF AFMC 416 SCMS/OBN"
<Paul.Dobson@...>
To: nbusers@...
Sent: Wednesday, July 1, 2009 11:19:54 AM
Subject: RE: [nbusers] problem running or building JSP application after
upgrade to 6.7

Forgive my ignorance.  I do not know much about Ant except that Netbeans
generally does a good job at integrating it.  I do know that my
project.properties file has the fillowing line:

build.web.dir=${build.dir}/web

Is this what you are referring to? If not, could you tell me where else
I should be looking. I am not sure where my antlib.xml or the properties
file should be.

Thanks!
Paul Dobson

-----Original Message-----
From: Melongo Annabel [mailto:melongo_annabel@...]
Sent: Tuesday, June 30, 2009 7:54 PM
To: nbusers@...
Subject: Re: [nbusers] problem running or building JSP application after
upgrade to 6.7

Does your antlib.xml has a properties file? I think that's the file
missing. The system is trying to find the value of ${build.web.dir} but
it doesn't seem to see where it's defined.


________________________________

From: "Dobson, Paul L CTR USAF AFMC 416 SCMS/OBN"
<Paul.Dobson@...>
To: nbusers@...
Sent: Tuesday, June 30, 2009 3:28:42 PM
Subject: [nbusers] problem running or building JSP application after
upgrade to 6.7



I have a JSP application which I manage.  I upgraded from 6.0 to 6.7 and
get the following error if I try to run/compile the program:



-----------------------------------------------------------------------

Could not load definitions from resource
org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml. It could
not be found.

init:

deps-module-jar:

deps-ear-jar:

deps-jar:

library-inclusion-in-archive:

C:\Users\Paul.Dobson\Documents\NB
Projecs\WebTool\nbproject\build-impl.xml:531: Problem: failed to create
task or type copyfiles

Cause: The name is undefined.

Action: Check the spelling.

Action: Check that any custom tasks/types have been declared.

Action: Check that any <presetdef>/<macrodef> declarations have taken
place.

------------------------------------------------------------------------
-----------





The following is a snippet from my build-impl.xml line 531:





<target depends="init" name="library-inclusion-in-archive"
unless="dist.ear.dir">

        <copyfiles files="${file.reference.jcifs-1.1.0.jar}"
todir="${build.web.dir}/WEB-INF/lib"/>  (This is line 531)

        <copyfiles files="${file.reference.jcommon-1.0.9.jar}"
todir="${build.web.dir}/WEB-INF/lib"/>

        <copyfiles files="${file.reference.jfreechart-1.0.5.jar}"
todir="${build.web.dir}/WEB-INF/lib"/>



Thank you in advance for any ideas on how to resolve  the error.




 « Return to Thread: problem running or building JSP application after upgrade to 6.7