Solved

Build Failed: ant Remove, ant Install

Posted on 2009-05-16
1
958 Views
Last Modified: 2013-12-05
Hi I am a bit new to this so I know really the very basic things.

My CI2260 folder is in a H Folder in my Home Directory.

This is what happens
Right when type ant clean in the CI2260 folder
------------------------------------------------------------------------
linux-phax:/home/rudu/H/CI2260 # ant clean
Buildfile: build.xml

clean:

BUILD SUCCESSFUL
Total time: 0 seconds
------------------------------------------------------------------------
ant remove
------------------------------------------------------------------------
linux-phax:/home/rudu/H/CI2260 # ant remove
Buildfile: build.xml

remove:
 [undeploy] FAIL - No context exists for path /CI2260

BUILD FAILED
/home/rudu/H/CI2260/build.xml:453: FAIL - No context exists for path /CI2260

Total time: 0 seconds
------------------------------------------------------------------------
ant install
------------------------------------------------------------------------
linux-phax:/home/rudu/H/CI2260 # ant install
Buildfile: build.xml

prepare:
    [mkdir] Created dir: /root/tomcat
    [mkdir] Created dir: /root/tomcat/WEB-INF
    [mkdir] Created dir: /root/tomcat/WEB-INF/classes
     [copy] Copying 21 files to /root/tomcat

compile:
    [javac] Compiling 11 source files to /root/tomcat/WEB-INF/classes

BUILD FAILED
/home/rudu/H/CI2260/build.xml:255: /usr/share/tomcat6/endorsed not found.

Total time: 0 seconds

.... I have attached my Build.xml and Build Properties

------------------------[SOMETHINGS YOU SHOULD KNOW]-------------------------
----->  Also you should know is that the Build and Build Properties and files from my university so I have not made them

---->  I have Apache2 Installed and Tomcat6

----> I followed the instructions of my tutor http://www.ubiubi.org/wrk/notes/SETUPS/ToolChainOpenSuse11.html
in which I found where he says :

To configure Tomcat and Ant
in /etc/ant.d create (as superuser) a file called catalina-ant5
in this file enter the text /tomcat/catalina-ant
check /etc/tomcat6/tomcat-users.xml looks like this and IS NOT COMMENTED OUT:

/tomcat/catalina-ant

"ant clean" did not work... but then I changed it to /tomcat6/catalina-ant
then ant clean did work...

----> type sudo /etc/init.d/tomcat restart to restart the server also i had to change it to: sudo /etc/init.d/tomcat6 restart to make this command work.
------------------------------------------------------------------------------------------------

I hope i have give you enough information...
could you please explain and tell me what those errors and and a solution for it thank you.

If any more information is needed please ask thank you. v.much
build.properties.txt
build.xml.txt
0
Comment
Question by:WarAngelos
1 Comment
 

Accepted Solution

by:
WarAngelos earned 0 total points
ID: 24411215
Never Mind everything is Fine

All I had to do was create a folder called endorsed in /usr/share/tomcat6/

oh and the folder I made was changed to root as owner... with this command type: chown root foldername

switched on superuser coz it wouldn't let me copy it in there by Typing: su

then I did type: cp -r foldername /usr/share/tomcat6/

hmm that's it I think.
chown root foldername
 

su
 

cp -r foldername /usr/share/tomcat6/

Open in new window

0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now