problem running or building JSP application after upgrade to 6.7

View: New views
9 Messages — Rating Filter:   Alert me  

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 Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

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.


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

by Melongo Annabel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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.



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 Threaded | Show Only this Message

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.



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 Threaded | Show Only this Message

I did just replace my computer with Vista and my job has my machine
locked down very tight.  I only have write access to my profile. I
noticed the problem occurs when I create a new jsp web application
project without source as well.  It seems that my Netbeans install out
of the box cannot create web applications.  Could this be a Vista thing
or possibly Netbeans is trying to write the Ant config file to the
install directory?

Thanks in advance for any ideas.

Thanks

Paul

-----Original Message-----
From: Dobson, Paul L CTR USAF AFMC 416 SCMS/OBN
[mailto:Paul.Dobson@...]
Sent: Wednesday, July 01, 2009 10:20 AM
To: nbusers@...
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.



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 Threaded | Show Only this Message

Here is how I resolved the problem:

1. Had administrator log in and give me write permission to the install
folder.  
2. Deleted all Netbeans configuration files from my user profile.
3. Opened Netbeans.
4. Created a default web application and ran it. ( It said something
about configuring j2ee)

I don't know if all the steps are required.  It is just what I did and
it worked. Perhaps someone much smarter than I could look into why write
permission is required on the install folder to run web application from
Netbeans.

Paul

-----Original Message-----
From: Dobson, Paul L CTR USAF AFMC 416 SCMS/OBN
[mailto:Paul.Dobson@...]
Sent: Wednesday, July 01, 2009 2:31 PM
To: nbusers@...
Subject: RE: [nbusers] problem running or building JSP application after
upgrade to 6.7

I did just replace my computer with Vista and my job has my machine
locked down very tight.  I only have write access to my profile. I
noticed the problem occurs when I create a new jsp web application
project without source as well.  It seems that my Netbeans install out
of the box cannot create web applications.  Could this be a Vista thing
or possibly Netbeans is trying to write the Ant config file to the
install directory?

Thanks in advance for any ideas.

Thanks

Paul

-----Original Message-----
From: Dobson, Paul L CTR USAF AFMC 416 SCMS/OBN
[mailto:Paul.Dobson@...]
Sent: Wednesday, July 01, 2009 10:20 AM
To: nbusers@...
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.



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

by Melongo Annabel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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.




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

by Peter B. West :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Paul,

The copylibstask seems to live in here:

java2/ant/extra/org-netbeans-modules-java-j2seproject-copylibstask.jar

Mine contains:
192-168-1-7:extra pbw$ jar tvf org-netbeans-modules-java-j2seproject-
copylibstask.jar
      0 Wed Jun 24 14:44:18 EST 2009 META-INF/
    134 Wed Jun 24 14:44:16 EST 2009 META-INF/MANIFEST.MF
      0 Wed Jun 24 14:44:16 EST 2009 org/
      0 Wed Jun 24 14:44:16 EST 2009 org/netbeans/
      0 Wed Jun 24 14:44:16 EST 2009 org/netbeans/modules/
      0 Wed Jun 24 14:44:16 EST 2009 org/netbeans/modules/java/
      0 Wed Jun 24 14:44:16 EST 2009 org/netbeans/modules/java/
j2seproject/
      0 Wed Jun 24 14:44:16 EST 2009 org/netbeans/modules/java/
j2seproject/copylibstask/
   3686 Wed Jun 24 14:44:16 EST 2009 org/netbeans/modules/java/
j2seproject/copylibstask/Bundle.properties
   3381 Wed Jun 24 14:44:16 EST 2009 org/netbeans/modules/java/
j2seproject/copylibstask/CopyFiles.class
   3581 Wed Jun 24 14:44:16 EST 2009 org/netbeans/modules/java/
j2seproject/copylibstask/CopyLibs.class

Is it present in your system?

It looks as though the task 'copyfiles' is not being found.


On 03/07/2009, at 10:24 AM, Melongo Annabel wrote:

> 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.
>
>
>
>


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 Threaded | Show Only this Message

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.





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

by Petr Jiricka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am glad this problem is resolved now. This looks like a problem with  
compatibility of older projects with the new NetBeans - the truth is,  
we don't always have the bandwidth to test project import from all  
previous versions of NetBeans.

One thing you may want to do to make your projects more self-contained  
is to introduce a "shared libraries" folder for your project: go to  
the Libraries section in your project's properties and specify a  
"Libraries Folder" using the Browse button. You can either put it  
inside your project directory, or (if you wish to share libraries  
among multiple projects) to a versioned directory outside of your  
project folder. When you then follow the wizard, NetBeans will make  
your project self-contained, so it does not require a NetBeans  
installation to build, or a properties file outside of version  
control, and allows you to easily share your project with other users.  
Then it will be less sensitive to IDE updates.

Petr


On Jul 6, 2009, at 4:47 PM, Dobson, Paul L CTR USAF AFMC 416 SCMS/OBN  
wrote:

> 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.
>
>
>
>