This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

New - problem with Spring tutorial

Sep 24th, 2010, 12:41 PM

Hi,

I am new to Spring, and I am trying to follow the online tutorial at http://static.springsource.org/docs/...tep/part1.html. I have successfully done everything up to step 1.4. That is, I have the 'ant' command working properly, as well as the 'ant deploy'. However, when I attempt to run 'ant list', I get the following error:

The created webapps/springapp folder shows up in my apache-tomcat-6.0.14 folder.

The only alteration I made from the tutorial code was changing my username/password, and overriding appserver.lib, setting it equal to
appserver.lib=C:/Program Files/Apache Software Foundation/Tomcat 6.0/lib.

I don't think that is related as this is a permissions error right?

Comment

Ok, I see. The deployment performs direct copy to webapps directory so no credentials are needed for that. Are you able to login to:http://localhost:8080/manager/html
from the browser? (Or http://localhost:8080 and in the panel on the left link "Tomcat Administration"). Using your username and password? Ant script uses exacty the same mechanism to perform management actions. Please be minded that tomcat-users.xml has to contain the user with manager role, in your case:
<user name="someone" password="something" roles="manager" />
But as I wrote before, you have to be able to login from browser. Also check tha you have manager directory in you webapps (I assume you do, just to make sure):
C:\Users\Jacob\apache-tomcat-6.0.14\webapps\manager

Comment

so it looks like you're using 2 instances of Apache Tomcat. First is located in C:/Program Files/Apache Software Foundation/Tomcat 6.0/ and second in C:/users/me/apache-tomcat-6.0.14/
Which one are you running? You should consolidate your apache tomcat instances on your machine first.