PDA

View Full Version : Deploying to a Tomcat Server


adaykin
Jan 6th, 2008, 01:52 AM
Hey I'm not sure how to go about with the basic Tomcat setup. The directory that my files are in is C:\Users\adaykin\workspace\webApps. My Tomcat installation directory (I'm on vista) is C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.14. When I tried to run the build.xml file, I got a message in the console that said:

Buildfile: C:\Users\adaykin\workspace\webApps\build.xml

BUILD FAILED
C:\Users\adaykin\workspace\webApps\build.xml:85: C:\Users\adaykin\apache-tomcat-6.0.14\lib not found.

Total time: 209 milliseconds

Here is my build.properties file I am using for the ant file build.xml:

# Ant properties for building the springapp

appserver.home=${user.home}/apache-tomcat-6.0.14
# for Tomcat 5 use $appserver.home}/server/lib
# for Tomcat 6 use $appserver.home}/lib
appserver.lib=${appserver.home}/lib

deploy.path=${appserver.home}/webapps

tomcat.manager.url=http://localhost:8080/manager/html
tomcat.manager.username= my user name
tomcat.manager.password= my password

adaykin
Jan 6th, 2008, 01:58 AM
Ok I just solved it. How can I mark this as solved?

svader
Jan 6th, 2008, 05:23 AM
If you have solved it you should post details of how you solved it that will help others when searching the forum.

adaykin
Jan 6th, 2008, 11:00 AM
All I had to do was put the path to the Tomcat directory in the appserver.home

dropzone51
Feb 18th, 2008, 06:58 PM
Hello,
I' new to spring, and trying to do the tutorial in the the spring documentation spring-mvc-setp-by-set.pdf

I'm on Mac OS X Tiger, java 1.5.0_13, using eclipse, Tomcat 6.0.16, stored in /Library/apache-tomcat-6.0.16/

I'm trying to build the ant's script (p.8), I modified the line
appserver.home=${user.home}/apache-tomcat-6.0.14/
to the version 6.0.16
appserver.home=${user.home}/apache-tomcat-6.0.16/


I'm getting the following error :
Buildfile: build.xml

BUILD FAILED
/Users/olivier/Documents/developement/workspace/springapp/build.xml:75: /Users/olivier/apache-tomcat-6.0.16/lib not found

I thought that it was because I installed tomcat in another directory than /Users/olivier/apache ....

So I tried modifying this line in the build.properties to fit with my install :
appserver.home=/Library/apache-tomcat-6.0.16/

But I'm still getting the same error :
BUILD FAILED
/Users/olivier/Documents/developement/workspace/springapp/build.xml:75: /Library/apache-tomcat-6.0.16/lib not found.

I'm blocked on this error because the directory /Library/apache-tomcat-6.0.16/ exists (a cd directory name works ...) and there's a /lib directory with jars in it ...

I also tried permissions but nothing worked.

It's probably due to a mistake from myself, as I'm new to Mac OS X, but i succeeded in installing tomcat and launch its main page, so I'm probably not far of it. I'm interested if you see any evident mistkakes, or if you have a link to a recent tutorial of installing tomcat (version 6.0.14 to fit with spring tutorial would be great) on Mac OS X.

Thanks for your attention

Olivier

jerry4ever
Feb 20th, 2008, 02:13 AM
I had problem same as DROPZONE51 when i was trying Spring-mvc-step-by-step.
I put the path to the Tomcat directory in the appserver.home, like ADAYKIN.
I fixed that problem like that:
appserver.home=${user.home}/apache-tomcat-6.0.14/
===>
appserver.home=C:/Program Files/Apache Software Foundation/Tomcat 6.0

and it's OK.

jerry4ever
Feb 20th, 2008, 02:19 AM
Sorry, i forgot.
Note the path: "\" replace with "/" (slash in the path)

dropzone51
Mar 9th, 2008, 05:51 PM
Thanks for answering, but, I already tried to put the path of my Tomcat install Directory like :
appserver.home=/Library/apache-tomcat-6.0.16/

where a
cd /Library/apache-tomcat-6.0.16/lib works in terminal
and I put a 777 rights recursively on the apache-tomcat directory to be sure it's not a problem of permissions.

If any other ideas

Thx for all

Olivier

jerry4ever
Mar 13th, 2008, 06:47 AM
I think you shoud type the path exactly with your Tomcat directory. Try it, : )

dropzone51
Mar 16th, 2008, 07:51 AM
I think you shoud type the path exactly with your Tomcat directory. Try it, : )

Thanks for this trying, but if you read my previous post, you see that if I try a cd "the error missing directory given by ant", it works. So the name of the directory of tomcat I copy/pasted was good, or I missed smthg.

Thx for all

Olivier