antx.tomcat.start不支持嵌套的“debug”元素

时间:2012-12-22 13:56:02

标签: java-ee tomcat6

当我在调试模式下启动tomcat时,它会给我上面的错误。

<macrodef name="tomcat">
    <element name="options" optional="yes" />
    <sequential>
        <delete dir="server/cache" failonerror="no" />
        <delete dir="server/logs" failonerror="no" />
        <delete dir="server/workspace" failonerror="no" />
        <delete dir="server/tomcat/logs" failonerror="no" />
        <antx:tomcat.start>
            <tomcat catalinahome="${catalina.home}" port="${server.port}" />
            <enovia enoviahome="${enovia.server.home}">
                <memory size="medium" />
                <classpath>
                    <pathelement location="${alt.jdk.home}/lib/tools.jar" />
                    <pathelement location="${webapp.home}/WEB-INF/classes" />
                    <pathelement location="${webapp.home}/WEB-INF/lib" />
                    <pathelement location="${catalina.home}/lib/jsp-api.jar" />
                                            <pathelement location="${catalina.home}/lib/servlet-api.jar" />
                </classpath>
                <bootstrap connectstring="${oracle.sid}" driver="${oracle.driver}" password="${schema.password}" user="${schema.user}" />
            </enovia>
            <webapp location="${webapp.home}" />
            <javahome location="${alt.jdk.home}" />
            <options />
        </antx:tomcat.start>
    </sequential>
</macrodef>

<target name="tomcat-start-debug" description="start tomcat in debug mode">
    <tomcat>
        <options>
            <jrebel location="${jrebel.jar}" />
            <debug transport="dt_socket" address="8998" server="y" suspend="n" />
        </options>
    </tomcat>
</target>

我在其他一些项目中有相同的配置,并且它可以工作。我正在努力为此找到解决方案。如果有人知道如何解决这个问题,那么如果它在这里分享会有所帮助。

谢谢, 和Sandeep

0 个答案:

没有答案