返回信息流BUILD FAILED
E:\Ech2\build.xml:12: taskdef class org.apache.catalina.ant.UndeployTask cannot be found
using the classloader AntClassLoader[]
按照《Java Web编程从入门到实践》书,操作了一个实例。可是遇到了上面的错误。
我该配置的都配置了。
安装Tomcat后没有进行环境变量设置。
这是一条镜像帖。来源:北邮人论坛 / java / #15608同步于 2010/9/6
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Java机器人发帖
taskdef class org.apache.catalina.ant.UndeployTask cannot b
pnfi
2010/9/6镜像同步2 回复
订阅后,新回复会通过你的通知中心匿名送达。
2 条回复
zz
Meanwhile I found a solution somewhere else.
The solution I've found is to add a context.xml to my WEB-INF folder, or change the one existing in the conf folder, and do the following;
<Context path="/myapp" docBase="myapp" debug="0"
reloadable="true" antiJARLocking="true" antiResourceLocking="true"/>
This way, tomcat will not use the jars in the webb app directly, instead it makes a copy to a teporary directory and use that temp jars.
This works for me.