You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2007/11/17 12:00:38 UTC

DO NOT REPLY [Bug 43888] New: - [antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43888>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43888

           Summary: [antlib:org.apache.tools.ant] Could not load definitions
                    from resource org/apache/tools/ant/antlib.xml. It could
                    not be found.
           Product: Ant
           Version: 1.7.0
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: critical
          Priority: P1
         Component: Build Process
        AssignedTo: dev@ant.apache.org
        ReportedBy: vivek.meghanathan@wipro.com


Please find pasted the error details below. the build.xml works fine in another ant.

everest:/cmdev_src/neu-124 >ant -v -Dimage=/tmp/test image
Apache Ant version 1.7.0 compiled on November 16 2007
Buildfile: build.xml
Detected Java version: 1.5 in: /usr/java1.2/jdk1.5.0_12/jre
Detected OS: SunOS
parsing buildfile /cmdev_src/neu/build.xml with URI = file:/cmdev_src/neu/build.xml
Project base dir set to: /cmdev_src/neu
[antlib:org.apache.tools.ant] Could not load definitions from resource
org/apache/tools/ant/antlib.xml. It could not be found.
Override ignored for property "image"
Build sequence for target(s) `image' is [compile, image]
Complete build sequence is [compile, image, package, clean, ]
 
compile:
 
BUILD FAILED
/cmdev_src/neu/build.xml:16: Directory /cmdev_src/neu/build/compile creation was
not successful for an unknown reason
        at org.apache.tools.ant.taskdefs.Mkdir.execute(Mkdir.java:64)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.Main.runBuild(Main.java:698)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 43888] - [antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43888>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43888


bielik@privasphere.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bielik@privasphere.com




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 43888] - Could not create a directory

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43888>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43888


vivek.meghanathan@wipro.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From vivek.meghanathan@wipro.com  2007-11-28 21:22 -------
Hi,
I have resolved this issue. The directory was in clearcase hence it required
checked-out. Here is my solution for the error "[antlib:org.apache.tools.ant]
Could not load definitions from resource org/apache/tools/ant/antlib.xml. It
could not be found".

1. Copied the ant.jar to any new/temp folder.
2. Extracted the jar using jar xvf <jar name> to the same folder.
3. Copied the file antlib.xml from
"org/apache/tools/ant/types/conditions/antlib.xml" to 
org/apache/tools/ant/antlib.xml.
4. Then updated the ant.jar with the file "org/apache/tools/ant/antlib.xml"
5. Placed the updated ant.jar to the $ANT_HOME/lib

Hence the problem has been resolved...

Thanks a lot for your reply.

regards
Vivek M
 


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 43888] - [antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43888>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43888


bielik@privasphere.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hauser@acm.org




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 43888] - Could not create a directory

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43888>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43888





------- Additional Comments From vivek.meghanathan@wipro.com  2007-11-29 01:04 -------
Hi,

Sorry for the confusion.In my previous reply it is mentioned that I required to
check-out the clearcase directory but it was not required. I have discussed with
the clearcase admin who was running the build.xml and facing the problem. I have
helped him to update the ant.jar with antlib.xml. He has explained that he is
able to run the build.xml and create the dir/images without changing anything else. 
Hence the issue is fixed by including the antlib.xml with the required path.

regards,
Vivek M 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 43888] - Could not create a directory

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43888>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43888


hauser@acm.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|hauser@acm.org              |




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 43888] - Could not create a directory

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43888>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43888


stevel@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
            Summary|[antlib:org.apache.tools.ant|Could not create a directory
                   |] Could not load definitions|
                   |from resource               |
                   |org/apache/tools/ant/antlib.|
                   |xml. It could not be found. |




------- Additional Comments From stevel@apache.org  2007-11-28 09:43 -------
These are unrelated issues. The message "Could not load definitions from resource
org/apache/tools/ant/antlib.xml." is an early warning that a an XML namespace
was encountered, and there was no matching resource there at the time the
document was parsed.

This is not an error until you get to the task/type use.

the real error is 

BUILD FAILED
/cmdev_src/neu/build.xml:16: Directory /cmdev_src/neu/build/compile creation was
not successful for an unknown reason
        at org.apache.tools.ant.taskdefs.Mkdir.execute(Mkdir.java:64)

and that line calls File.mkdirs(). Which, from javadocs says. 

Creates the directory named by this abstract pathname, including any necessary
but nonexistent parent directories. Note that if this operation fails it may
have succeeded in creating some of the necessary parent directories.

    Returns:
        true if and only if the directory was created, along with all necessary
parent directories; false otherwise

So. Ant could not create the directory. no information why not is given by the
API call. Something is wrong with your machine.

Try creating the same directory by hand. 
mdkir /cmdev_src/neu/build/compile
If it fails, you may get more diagnostics. There may be a file of that name, you
may not have the right permissions.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 43888] - Could not create a directory

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43888>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43888





------- Additional Comments From peterreilly@apache.org  2007-11-28 23:58 -------
Just be aware that the message 
Could not load definitions from resource org/apache/tools/ant/antlib.xml. It
could not be found".
is a debug message with no ill effects.
Creating an antlib.xml in org/.../ant/antlib.xml file will stop the debug message
but will (ever so slightly) slow down the running of ant.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 43888] - Could not create a directory

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43888>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43888





------- Additional Comments From vivek.meghanathan@wipro.com  2007-11-29 06:44 -------
Hi Steve,

Thanks a lot for your valuable comments. I was aware that updating Ant.jar can
cause problems. But we got deadline to fix this issue from manager hence tried
fix in this way.

Thanks again,
Vivek M

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 43888] - Could not create a directory

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43888>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43888





------- Additional Comments From stevel@apache.org  2007-11-29 05:19 -------
-glad you fixed it. ClearCase is not a real filesystem, and we cannot handle
support calls related to ant running on it. If you have further problems, reboot
your machine and try again before asking for help.

returning to the warning message: DO NOT UPDATE ANT.JAR . This a message that
appears at the -v level that is not important. Leave things alone. editing JAR
files from other people creates problems downstream.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 43888] - [antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43888>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43888





------- Additional Comments From hauser@acm.org  2007-11-28 07:48 -------
vivek, could you solve it? We are seeing a similar problem with Bug 43982

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org