Hi, I'm having problems deploying remotely to the later versions of tomcat using ant's deploy task. Sorry if its a bit lengthy.
The context paths for most of the applications deployed on our Tomcat servers are required to have several levels e.g. /tests/deployments. We currently host 22 web applications on the production server and a number of them need regular redeployment due to tweaking and updates. Remote deployment is done using ant's deploy task. This has been working quite well with an older version of tomcat 5. However we'd like to upgrade to later versions i.e. versions 5.0.28 and 5.5.x but I've found that remote deployment doesn't behave for these webapps against version 5.0.28. I've searched on google for clues as to what needs to be done, but so far only found information for Tomcat 5.5 at the following link http://mail-archives.apache.org/mod_mbox/tomcat-users/200511.mbox/[EMAIL PROTECTED] The scenario in the post doesn't mention ant and we're using a slightly older version of tomcat, but it does hint that tomcat uses the name of the context.xml file to determine the path used for a deployed application. I've tried placing a context file with the name matching the pattern tests#deployments.xml in the META-INF subdirectory of the web application hoping that tomcat will pickup on that. Unfortunately that doesn't seem to help as when I run the following ant deploy task: <deploy password="${live-manager.password}" path="/tests/deployments" logerror="true" url="${live-manager.url}" username="${live-manager.username}" war="file:${warfile}" /> I still get the following errors from ant and tomcat respectively: ANT: [deploy] FAIL - Encountered exception java.net.MalformedURLException: no !/ in spec TOMCAT LOG: WARNING: Exception while expanding web application archive tests#deployments.war >From the Tomcat log it seems Tomcat can't even get to the context definition >file in the WAR file because the name of the WAR file changes to tests#deployments.war during the deployment. For Tomcat 5.0.16 this would have been changed to tests_deployments.war. I don't know if it is ant or tomcat responsible for this change. All I know is that '#' breaks things. I'd like to point out that this renaming takes place regardless of the original name of the WAR file. Any help would be greatly appreciated. This is the current development environment: Tomcat version 5.0.28 JVM version: 1.4.2_04-b05 ANT version: 1.6.5 Regards Eviano Afiemo -------------------------------------------------- Technologies & Development Team Library & Information Services IT [EMAIL PROTECTED] Natural History Museum London -------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]