You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2006/01/24 13:40:16 UTC

DO NOT REPLY [Bug 38367] New: - Executing any Catalina Ant task results in an exception

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38367>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38367

           Summary: Executing any Catalina Ant task results in an exception
           Product: Tomcat 5
           Version: 5.5.14
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: ppurang@gmail.com


which in turn breaks the build process.

Steps to Reproduce: Try executing any of the following targets where 

<target name="tomcat.application.deploy" description="Install Web application">
        <deploy url="${tomcat.management.url}"
                username="${tomcat.management.username}"
                password="${tomcat.management.password}"
                path="${web.context.path}" war="${web.war.file}"/>
    </target>


    <target name="tomcat.application.reload" description="Reload Web application">
        <reload url="${tomcat.management.url}"
                username="${tomcat.management.username}"
                password="${tomcat.management.password}"
                path="${web.context.path}"/>
    </target>

    <target name="tomcat.application.undeploy" description="Remove Web application">
        <undeploy url="${tomcat.management.url}"
                  username="${tomcat.management.username}"
                  password="${tomcat.management.password}"
                  path="${web.context.path}"/>
    </target>

    <target name="tomcat.application.start" description="Start Tomcat application.">
        <start url="${tomcat.management.url}"
               username="${tomcat.management.username}"
               password="${tomcat.management.password}"
               path="${web.context.path}"/>
    </target>

    <target name="tomcat.application.stop" description="Stop Tomcat application.">
        <stop url="${tomcat.management.url}"
              username="${tomcat.management.username}"
              password="${tomcat.management.password}"
              path="${web.context.path}"/>
    </target> 
<target name="tomcat.applications.list" description="List Tomcat applications.">
        <list url="${tomcat.management.url}"
              username="${tomcat.management.username}"
              password="${tomcat.management.password}"/>
    </target>

Actual Results: After executing the task ant throws an exception. Last part of
the description is the exact ant output (the lengthy html doc was removed from
the output) 
 

Expected Results: There shouldn't be any exceptions thrown!

Build Date & Platform: 5.5.15 (Here I could just select 5.5.14!)

Additional Information: 

I imported the catalina-tasks.xml in my tomcat.xml that defines the above targets.

Ant - version 1.6.5
JDK - version 1.5.0_06
IDE - occurs with both netbeans (5RC1) and intellij(5.0.2). 


Likely Solution:

The ant tasks just call the urls.. which in turn yield a complete html page..
make sure that when the ant tasks call the urls the result is not an html
document but something suitable and concise.


A faulty run with ant -verbose(I snipped out the html document part of the output):
Detected Java version: 1.5 in: D:\opt\Java\jdk1.5.0_06\jre
Detected OS: Windows XP
parsing buildfile
jar:file:/D:/opt/netbeans/ide6/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml
with URI =
jar:file:/D:/opt/netbeans/ide6/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml
parsing buildfile
jar:file:/D:/opt/netbeans/ide6/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml
with URI =
jar:file:/D:/opt/netbeans/ide6/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml
parsing buildfile
jar:file:/D:/opt/netbeans/ide6/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml
with URI =
jar:file:/D:/opt/netbeans/ide6/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml
parsing buildfile
jar:file:/D:/opt/netbeans/ide6/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml
with URI =
jar:file:/D:/opt/netbeans/ide6/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml
parsing buildfile
jar:file:/D:/opt/netbeans/profiler1/ant/nblib/org-netbeans-modules-profiler.jar!/org/netbeans/modules/profiler/antlib.xml
with URI =
jar:file:/D:/opt/netbeans/profiler1/ant/nblib/org-netbeans-modules-profiler.jar!/org/netbeans/modules/profiler/antlib.xml
parsing buildfile
jar:file:/D:/opt/netbeans/profiler1/ant/nblib/org-netbeans-modules-profiler.jar!/org/netbeans/modules/profiler/antlib.xml
with URI =
jar:file:/D:/opt/netbeans/profiler1/ant/nblib/org-netbeans-modules-profiler.jar!/org/netbeans/modules/profiler/antlib.xml
parsing buildfile
jar:file:/D:/opt/netbeans/enterprise2/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml
with URI =
jar:file:/D:/opt/netbeans/enterprise2/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml
parsing buildfile
jar:file:/D:/opt/netbeans/enterprise2/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml
with URI =
jar:file:/D:/opt/netbeans/enterprise2/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml
parsing buildfile
jar:file:/D:/opt/netbeans/enterprise2/ant/nblib/org-netbeans-modules-j2ee-sun-appsrv81.jar!/org/netbeans/modules/j2ee/sun/appsrv81/antlib.xml
with URI =
jar:file:/D:/opt/netbeans/enterprise2/ant/nblib/org-netbeans-modules-j2ee-sun-appsrv81.jar!/org/netbeans/modules/j2ee/sun/appsrv81/antlib.xml
parsing buildfile
jar:file:/D:/opt/netbeans/enterprise2/ant/nblib/org-netbeans-modules-j2ee-sun-appsrv81.jar!/org/netbeans/modules/j2ee/sun/appsrv81/antlib.xml
with URI =
jar:file:/D:/opt/netbeans/enterprise2/ant/nblib/org-netbeans-modules-j2ee-sun-appsrv81.jar!/org/netbeans/modules/j2ee/sun/appsrv81/antlib.xml
parsing buildfile
jar:file:/D:/opt/netbeans/ide6/ant/nblib/org-netbeans-modules-apisupport-ant.jar!/org/netbeans/modules/apisupport/ant/antlib.xml
with URI =
jar:file:/D:/opt/netbeans/ide6/ant/nblib/org-netbeans-modules-apisupport-ant.jar!/org/netbeans/modules/apisupport/ant/antlib.xml
parsing buildfile
jar:file:/D:/opt/netbeans/ide6/ant/nblib/org-netbeans-modules-apisupport-ant.jar!/org/netbeans/modules/apisupport/ant/antlib.xml
with URI =
jar:file:/D:/opt/netbeans/ide6/ant/nblib/org-netbeans-modules-apisupport-ant.jar!/org/netbeans/modules/apisupport/ant/antlib.xml
parsing buildfile D:\home\fix0pur\netbeans\regexhelper\conf\build\build.xml with
URI = file:///D:/home/fix0pur/netbeans/regexhelper/conf/build/build.xml
Project base dir set to: D:\home\fix0pur\netbeans\regexhelper\conf\build
Setting proxy to 194.114.63.23:8080
Loading D:\home\fix0pur\netbeans\regexhelper\conf\build\build.project.properties
Loading D:\home\fix0pur\netbeans\regexhelper\conf\build\build.directory.properties
Importing file locc.xml from
D:\home\fix0pur\netbeans\regexhelper\conf\build\build.xml
parsing buildfile D:\home\fix0pur\netbeans\regexhelper\conf\build\locc.xml with
URI = file:///D:/home/fix0pur/netbeans/regexhelper/conf/build/locc.xml
Loading D:\home\fix0pur\netbeans\regexhelper\conf\build\locc.properties
Importing file checkstyle.xml from
D:\home\fix0pur\netbeans\regexhelper\conf\build\build.xml
parsing buildfile D:\home\fix0pur\netbeans\regexhelper\conf\build\checkstyle.xml
with URI = file:///D:/home/fix0pur/netbeans/regexhelper/conf/build/checkstyle.xml
Loading D:\home\fix0pur\netbeans\regexhelper\conf\build\checkstyle.properties
Importing file compile.xml from
D:\home\fix0pur\netbeans\regexhelper\conf\build\build.xml
parsing buildfile D:\home\fix0pur\netbeans\regexhelper\conf\build\compile.xml
with URI = file:///D:/home/fix0pur/netbeans/regexhelper/conf/build/compile.xml
Loading D:\home\fix0pur\netbeans\regexhelper\conf\build\compile.properties
Importing file findbugs.xml from
D:\home\fix0pur\netbeans\regexhelper\conf\build\build.xml
parsing buildfile D:\home\fix0pur\netbeans\regexhelper\conf\build\findbugs.xml
with URI = file:///D:/home/fix0pur/netbeans/regexhelper/conf/build/findbugs.xml
Loading D:\home\fix0pur\netbeans\regexhelper\conf\build\findbugs.properties
Importing file testng.xml from
D:\home\fix0pur\netbeans\regexhelper\conf\build\build.xml
parsing buildfile D:\home\fix0pur\netbeans\regexhelper\conf\build\testng.xml
with URI = file:///D:/home/fix0pur/netbeans/regexhelper/conf/build/testng.xml
Loading D:\home\fix0pur\netbeans\regexhelper\conf\build\testng.properties
Importing file cobertura.xml from
D:\home\fix0pur\netbeans\regexhelper\conf\build\build.xml
parsing buildfile D:\home\fix0pur\netbeans\regexhelper\conf\build\cobertura.xml
with URI = file:///D:/home/fix0pur/netbeans/regexhelper/conf/build/cobertura.xml
Loading D:\home\fix0pur\netbeans\regexhelper\conf\build\cobertura.properties
Importing file dist.xml from
D:\home\fix0pur\netbeans\regexhelper\conf\build\build.xml
parsing buildfile D:\home\fix0pur\netbeans\regexhelper\conf\build\dist.xml with
URI = file:///D:/home/fix0pur/netbeans/regexhelper/conf/build/dist.xml
Loading D:\home\fix0pur\netbeans\regexhelper\conf\build\dist.properties
Importing file web.xml from
D:\home\fix0pur\netbeans\regexhelper\conf\build\build.xml
parsing buildfile D:\home\fix0pur\netbeans\regexhelper\conf\build\web.xml with
URI = file:///D:/home/fix0pur/netbeans/regexhelper/conf/build/web.xml
Loading D:\home\fix0pur\netbeans\regexhelper\conf\build\web.properties
Importing file tomcat.xml from
D:\home\fix0pur\netbeans\regexhelper\conf\build\build.xml
parsing buildfile D:\home\fix0pur\netbeans\regexhelper\conf\build\tomcat.xml
with URI = file:///D:/home/fix0pur/netbeans/regexhelper/conf/build/tomcat.xml
Loading D:\home\fix0pur\netbeans\regexhelper\conf\build\tomcat.properties
Importing file D:/opt/tomcat-5.5.15//bin/catalina-tasks.xml from
D:\home\fix0pur\netbeans\regexhelper\conf\build\tomcat.xml
parsing buildfile D:\opt\tomcat-5.5.15\bin\catalina-tasks.xml with URI =
file:///D:/opt/tomcat-5.5.15/bin/catalina-tasks.xml
Importing file custom.xml from
D:\home\fix0pur\netbeans\regexhelper\conf\build\build.xml
parsing buildfile D:\home\fix0pur\netbeans\regexhelper\conf\build\custom.xml
with URI = file:///D:/home/fix0pur/netbeans/regexhelper/conf/build/custom.xml
Importing file run.xml from
D:\home\fix0pur\netbeans\regexhelper\conf\build\build.xml
parsing buildfile D:\home\fix0pur\netbeans\regexhelper\conf\build\run.xml with
URI = file:///D:/home/fix0pur/netbeans/regexhelper/conf/build/run.xml
Build sequence for target(s) `tomcat.applications.list' is
[tomcat.applications.list]
Complete build sequence is [tomcat.applications.list, clean.java.class,
compile.testng, testng.execute.cobertura, testng.execute, testng.view.results,
testng, checkstyle.check, checkstyle.view.results, checkstyle, compile.java,
run.FinalReturnTest, locc, findbugs.execute, test, web.validate.xml,
web.create.war, tomcat.application.deploy, tomcat.application.reload,
tomcat.application.start, cobertura.instrument, dist.jar, tomcat.debug.start,
findbugs.view.results, findbugs, custom.cleanCompileFindbugs,
cobertura.view.results, cobertura.check.results, tomcat.application.stop,
tomcat.application.undeploy, tomcat.stop, context.status, cobertura,
tomcat.start, locc.view.results, run.JavaRegexPatternHarness, ]
tomcat.applications.list:
<html>
-------------------------< SNIP <--------------------------------
The entire resultant html document that would be the result of 
calling management.url from a browser!
-------------------------< SNIP <--------------------------------
</html>
D:\home\fix0pur\netbeans\regexhelper\conf\build\tomcat.xml:76: <html>
        at
org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:261)
        at
org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:145)
        at org.apache.catalina.ant.ListTask.execute(ListTask.java:49)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at
org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:234)
        at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:287)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
Caused by: <html>
        at
org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:257)
        ... 13 more
--- Nested Exception ---
<html>
        at
org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:257)
        at
org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:145)
        at org.apache.catalina.ant.ListTask.execute(ListTask.java:49)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at
org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:234)
        at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:287)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
BUILD FAILED (total time: 0 seconds)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 38367] - Executing any Catalina Ant task results in an exception

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38367>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38367





------- Additional Comments From ppurang@gmail.com  2006-04-20 09:15 -------
Created an attachment (id=18145)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18145&action=view)
the ant file 

The properties that are refferred in the xml file are 


-----<begin file="tomcat.properties">---------------
tomcat.home=D:/opt/tomcat-5.5.15/
tomcat.home.bin=${tomcat.home}/bin

tomcat.catalina.ant.tasks.file=${tomcat.home.bin}/catalina-tasks.xml


tomcat.management.url=http://localhost:8080/manager/html
tomcat.management.username=admin
tomcat.management.password=admin 
-----</end>---------------

I hope that provides the information you are looking for.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 38367] - Executing any Catalina Ant task results in an exception

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38367>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38367





------- Additional Comments From ppurang@gmail.com  2006-01-24 13:56 -------
I made a mistake above. The tomcat.application.deploy target succeeds and last
line is OK - Application with Context Path /regexhelper installed. So it doesn't
throw the exception reported in the report.

It is the others that cause the problem. For example if after a successful
deploy I try an tomcat.application.undeploy or tomcat.applications.list both
succeed but the exception is thrown as indicated by the bug report.

The output attached with the report description was encountered while running
tomcat.applications.list as can be seen by this line in the output 
"tomcat.applications.list:"

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 38367] - Executing any Catalina Ant task results in an exception

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38367>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38367


yoavs@computer.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




------- Additional Comments From yoavs@computer.org  2006-04-13 20:03 -------
Are the username ans password set?

If you could attach your Ant xml script file, that'd be a great help in
reproducing your issue.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org