Barry,

On 9/12/21 12:59, Barry Kimelman wrote:
I just installed tomcat 9.0.52 on my linux ubuntu 20.04 LTS system.

I was successfully able to run the manager app as a test.

Now I am trying to build an application that I had worked on quite a while
ago in an older version of tomcat.

I have a script which runs a series of ANT commands to build and install my
app which has always worked well.

Now with this version of tomcat when I run   ant remove I get the following
error messages

Buildfile: /home/barry/tomcat/hockey3/build.xml
Trying to override old definition of datatype resources

remove:

BUILD FAILED
/home/barry/tomcat/hockey3/build.xml:504: java.net.ProtocolException:
Server redirected too many  times (20)
at
java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1932)
at
java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
at
org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:224)
at
org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:156)
at org.apache.catalina.ant.UndeployTask.execute(UndeployTask.java:41)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1391)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1254)
at org.apache.tools.ant.Main.runBuild(Main.java:830)
at org.apache.tools.ant.Main.startAnt(Main.java:223)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)

Total time: 0 seconds

Here is the relavant  portion of my build.xml file


   48 <project name="My Tomcat Project" default="compile" basedir=".">

   79  <property file="build.properties"/>
   80  <property file="${user.home}/build.properties"/>

  127  <property name="app.name"      value="hockey3"/>
  128  <property name="app.path"      value="/${app.name}"/>
  129  <property name="app.version"   value="0.1-dev"/>
  130  <property name="build.home"    value="${basedir}/build"/>
  131  <property name="catalina.home" value="/opt/tomcat"/>
  132  <property name="dist.home"     value="${basedir}/dist"/>
  133  <property name="docs.home"     value="${basedir}/docs"/>
  134  <property name="manager.url"   value="
http://localhost:8080/manager/text"/>
  135  <property name="src.home"      value="${basedir}/src"/>
  136  <property name="web.home"      value="${basedir}/web"/>

  487 <!-- ==================== Remove Target
=================================== -->
  488

  497
  498  <target name="remove"
  499   description="Remove application on servlet container">
  500
  501    <undeploy url="${manager.url}"
  502         username="${manager.username}"
  503         password="${manager.password}"
  504             path="${app.path}"/>
  505
  506  </target>

I am puzzled.   What have IO done wrong ?

Try running "ant -v [target]" and see if you get more output.

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to