Also, curious I'm kind of new to this but why does the build.xml file use <reload url="${tomcat.manager.url} - it's obviously point to http://localhost:8080/manager/ to do the reload - but why? The springapp is in http://localhost:8080/springapp ?? This seems really odd to me - or maybe I just don't really understand what the tomcat manager does... but it seems to me that the build.xml / ant is telling tomcat to go reload in the manager directory and well of course the file is not there, hence the fileIO exception.... I could be totally off lol
Any help or info would be greatly appreciated. Thanks!
And just a heads up - yes the app and unit tests all run fabulously - my server is started, I can see my little test page in the browser: http://localhost:8080/springapp/hello.jsp - which is actually the last thing listed on that page of the tutorial.
So all seems to actually be working but ant is giving me that error... not sure why?
I haven't tried that tutorial, but I saw a sentence on that page that said if you are using an IDE you will see an error related to tomcat target and to ignore it. But not sure exactly what it means, but what happens if you build on the command line.
I am not going to be much help here as I always use Maven and really hate ant myself. ;)
I am doing the command line - ant deploy reload. It's odd, I almost finished the tutorial, which is great but I still get this odd ant / tomcat error. Can't believe I'm the only one....
Rajive Rishi
Greenhorn
Joined: Nov 07, 2007
Posts: 1
posted
0
what version is your tomcat. if it is 7 or above.
you need to change the properties file as below: (reason is that the role manager has now been divided into 4 different roles)
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="s3cret" roles="manager-gui"/>
Daisy Gutierrez wrote:Also, curious I'm kind of new to this but why does the build.xml file use <reload url="${tomcat.manager.url} - it's obviously point to http://localhost:8080/manager/ to do the reload - but why?
The other required parameters are added to the manager URL by the handler (ReloadTask) in this case. It is identified by the reload taskdef in your build.xml