You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by ji...@apache.org on 2004/04/17 18:55:29 UTC
[jira] Updated: (CACTUS-80) tools.jar not found from within Eclipse
The following issue has been updated:
Updater: Vincent Massol (mailto:vmassol@apache.org)
Date: Sat, 17 Apr 2004 9:53 AM
Changes:
assignee changed from Cactus Developers Mailing List
type changed from Bug to Improvement
description changed from This is specifically concerning the cactus ant tasks run from within Eclipse.
This Bug was raised by request after a detailed discussion in Cactus Users.
As I understand it Eclipse isn't playing by the rules and is running Ant from
within a JRE JVM instance rather than a JVM anchored to the SDK, with access to
tools.jar. This is exasperated by some code within Cactus
(AbstractJavaContainer according to Google) that makes various assumptions
regarding the location of the file. Result is that tools.jar cannot be found.
For your analysis I include comparative output from my buildfile launched from
the commandine and from Eclipse. Clearly my build is still not working but as
far as I can tell that is another issue I will have to reasearch.
Eclipse:
[cactus] -----------------------------------------------------------------
[cactus] Running tests against Tomcat 4.1.29
[cactus] -----------------------------------------------------------------
[cactus] Deleting 4 files from C:\DOCUME~1\SIMONG~1.TRO\LOCALS~1
\Temp\cactus\tomcat4x
[cactus] Deleted 2 directories from C:\DOCUME~1\SIMONG~1.TRO\LOCALS~1
\Temp\cactus\tomcat4x
[cactus] Couldn't find tools.jar (needed for JSP compilation)
You must either set location or path on <pathelement>
at org.apache.tools.ant.types.Path.list(Path.java:309)
at org.apache.tools.ant.types.Path.list(Path.java:320)
at org.apache.tools.ant.types.Path.addExisting(Path.java:260)
at org.apache.tools.ant.types.Path.concatSystemClasspath(Path.java:551)
at org.apache.tools.ant.types.CommandlineJava.size
(CommandlineJava.java:346)
at org.apache.tools.ant.types.CommandlineJava.getCommandline
(CommandlineJava.java:248)
at org.apache.tools.ant.types.CommandlineJava.describeCommand
(CommandlineJava.java:311)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:138)
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
at
org.apache.cactus.integration.ant.container.tomcat.AbstractCatalinaContainer.inv
okeBootstrap(AbstractCatalinaContainer.java:214)
at
org.apache.cactus.integration.ant.container.tomcat.Tomcat4xContainer.startUp
(Tomcat4xContainer.java:98)
at org.apache.cactus.integration.ant.container.ContainerRunner$1.run
(ContainerRunner.java:179)
at java.lang.Thread.run(Thread.java:536)
[cactus] BUILD FAILED: file:H:/Finance/Finance
Projects/Development/Finance Reporting App/tomcatProject/build.xml:139: Failed
to start the container after more than [60000] ms. Trying to connect to the
[http://localhost:8080/reportingapp/ServletRedirector?Cactus_Service=RUN_TEST]
test URL yielded a [-1] error code. Please run in debug mode for more details
about the error.
Command Line:
[cactus] -----------------------------------------------------------------
[cactus] Running tests against Tomcat 4.1.29
[cactus] -----------------------------------------------------------------
[cactus] Deleting 5 files from C:\DOCUME~1\SIMONG~1.TRO\LOCALS~1\Temp\cactus\
tomcat4x
[cactus] Deleted 8 directories from C:\DOCUME~1\SIMONG~1.TRO\LOCALS~1\Temp\ca
ctus\tomcat4x
BUILD FAILED
file:H:/Finance/Finance%20Projects/Development/Finance%20Reporting%20App/tomcatP
roject/build.xml:140: Failed to start the container after more than [60000] ms.
Trying to connect to the [http://localhost:8080/reportingapp/ServletRedirector?C
actus_Service=RUN_TEST] test URL yielded a [-1] error code. Please run in debug
mode for more details about the error. to This is specifically concerning the cactus ant tasks run from within Eclipse.
This Bug was raised by request after a detailed discussion in Cactus Users.
As I understand it Eclipse isn't playing by the rules and is running Ant from
within a JRE JVM instance rather than a JVM anchored to the SDK, with access to
tools.jar. This is exasperated by some code within Cactus
(AbstractJavaContainer according to Google) that makes various assumptions
regarding the location of the file. Result is that tools.jar cannot be found.
For your analysis I include comparative output from my buildfile launched from
the commandine and from Eclipse. Clearly my build is still not working but as
far as I can tell that is another issue I will have to reasearch.
Eclipse:
[cactus] -----------------------------------------------------------------
[cactus] Running tests against Tomcat 4.1.29
[cactus] -----------------------------------------------------------------
[cactus] Deleting 4 files from C:\DOCUME~1\SIMONG~1.TRO\LOCALS~1
\Temp\cactus\tomcat4x
[cactus] Deleted 2 directories from C:\DOCUME~1\SIMONG~1.TRO\LOCALS~1
\Temp\cactus\tomcat4x
[cactus] Couldn't find tools.jar (needed for JSP compilation)
You must either set location or path on <pathelement>
at org.apache.tools.ant.types.Path.list(Path.java:309)
at org.apache.tools.ant.types.Path.list(Path.java:320)
at org.apache.tools.ant.types.Path.addExisting(Path.java:260)
at org.apache.tools.ant.types.Path.concatSystemClasspath(Path.java:551)
at org.apache.tools.ant.types.CommandlineJava.size
(CommandlineJava.java:346)
at org.apache.tools.ant.types.CommandlineJava.getCommandline
(CommandlineJava.java:248)
at org.apache.tools.ant.types.CommandlineJava.describeCommand
(CommandlineJava.java:311)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:138)
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
at
org.apache.cactus.integration.ant.container.tomcat.AbstractCatalinaContainer.inv
okeBootstrap(AbstractCatalinaContainer.java:214)
at
org.apache.cactus.integration.ant.container.tomcat.Tomcat4xContainer.startUp
(Tomcat4xContainer.java:98)
at org.apache.cactus.integration.ant.container.ContainerRunner$1.run
(ContainerRunner.java:179)
at java.lang.Thread.run(Thread.java:536)
[cactus] BUILD FAILED: file:H:/Finance/Finance
Projects/Development/Finance Reporting App/tomcatProject/build.xml:139: Failed
to start the container after more than [60000] ms. Trying to connect to the
[http://localhost:8080/reportingapp/ServletRedirector?Cactus_Service=RUN_TEST]
test URL yielded a [-1] error code. Please run in debug mode for more details
about the error.
Command Line:
[cactus] -----------------------------------------------------------------
[cactus] Running tests against Tomcat 4.1.29
[cactus] -----------------------------------------------------------------
[cactus] Deleting 5 files from C:\DOCUME~1\SIMONG~1.TRO\LOCALS~1\Temp\cactus\
tomcat4x
[cactus] Deleted 8 directories from C:\DOCUME~1\SIMONG~1.TRO\LOCALS~1\Temp\ca
ctus\tomcat4x
BUILD FAILED
file:H:/Finance/Finance%20Projects/Development/Finance%20Reporting%20App/tomcatP
roject/build.xml:140: Failed to start the container after more than [60000] ms.
Trying to connect to the [http://localhost:8080/reportingapp/ServletRedirector?C
actus_Service=RUN_TEST] test URL yielded a [-1] error code. Please run in debug
mode for more details about the error.
environment changed from Operating System: Other
Platform: Other to Operating System: Other
Platform: Other
priority changed to Major
Fix Version changed to 1.7
---------------------------------------------------------------------
For a full history of the issue, see:
http://issues.apache.org/jira/browse/CACTUS-80?page=history
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/CACTUS-80
Here is an overview of the issue:
---------------------------------------------------------------------
Key: CACTUS-80
Summary: tools.jar not found from within Eclipse
Type: Improvement
Status: Unassigned
Priority: Major
Project: Cactus
Components:
Ant Integration
Fix Fors:
1.7
Versions:
1.5
Assignee:
Reporter: Simon Gibbs
Created: Fri, 28 Nov 2003 5:09 PM
Updated: Sat, 17 Apr 2004 9:53 AM
Environment: Operating System: Other
Platform: Other
Description:
This is specifically concerning the cactus ant tasks run from within Eclipse.
This Bug was raised by request after a detailed discussion in Cactus Users.
As I understand it Eclipse isn't playing by the rules and is running Ant from
within a JRE JVM instance rather than a JVM anchored to the SDK, with access to
tools.jar. This is exasperated by some code within Cactus
(AbstractJavaContainer according to Google) that makes various assumptions
regarding the location of the file. Result is that tools.jar cannot be found.
For your analysis I include comparative output from my buildfile launched from
the commandine and from Eclipse. Clearly my build is still not working but as
far as I can tell that is another issue I will have to reasearch.
Eclipse:
[cactus] -----------------------------------------------------------------
[cactus] Running tests against Tomcat 4.1.29
[cactus] -----------------------------------------------------------------
[cactus] Deleting 4 files from C:\DOCUME~1\SIMONG~1.TRO\LOCALS~1
\Temp\cactus\tomcat4x
[cactus] Deleted 2 directories from C:\DOCUME~1\SIMONG~1.TRO\LOCALS~1
\Temp\cactus\tomcat4x
[cactus] Couldn't find tools.jar (needed for JSP compilation)
You must either set location or path on <pathelement>
at org.apache.tools.ant.types.Path.list(Path.java:309)
at org.apache.tools.ant.types.Path.list(Path.java:320)
at org.apache.tools.ant.types.Path.addExisting(Path.java:260)
at org.apache.tools.ant.types.Path.concatSystemClasspath(Path.java:551)
at org.apache.tools.ant.types.CommandlineJava.size
(CommandlineJava.java:346)
at org.apache.tools.ant.types.CommandlineJava.getCommandline
(CommandlineJava.java:248)
at org.apache.tools.ant.types.CommandlineJava.describeCommand
(CommandlineJava.java:311)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:138)
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
at
org.apache.cactus.integration.ant.container.tomcat.AbstractCatalinaContainer.inv
okeBootstrap(AbstractCatalinaContainer.java:214)
at
org.apache.cactus.integration.ant.container.tomcat.Tomcat4xContainer.startUp
(Tomcat4xContainer.java:98)
at org.apache.cactus.integration.ant.container.ContainerRunner$1.run
(ContainerRunner.java:179)
at java.lang.Thread.run(Thread.java:536)
[cactus] BUILD FAILED: file:H:/Finance/Finance
Projects/Development/Finance Reporting App/tomcatProject/build.xml:139: Failed
to start the container after more than [60000] ms. Trying to connect to the
[http://localhost:8080/reportingapp/ServletRedirector?Cactus_Service=RUN_TEST]
test URL yielded a [-1] error code. Please run in debug mode for more details
about the error.
Command Line:
[cactus] -----------------------------------------------------------------
[cactus] Running tests against Tomcat 4.1.29
[cactus] -----------------------------------------------------------------
[cactus] Deleting 5 files from C:\DOCUME~1\SIMONG~1.TRO\LOCALS~1\Temp\cactus\
tomcat4x
[cactus] Deleted 8 directories from C:\DOCUME~1\SIMONG~1.TRO\LOCALS~1\Temp\ca
ctus\tomcat4x
BUILD FAILED
file:H:/Finance/Finance%20Projects/Development/Finance%20Reporting%20App/tomcatP
roject/build.xml:140: Failed to start the container after more than [60000] ms.
Trying to connect to the [http://localhost:8080/reportingapp/ServletRedirector?C
actus_Service=RUN_TEST] test URL yielded a [-1] error code. Please run in debug
mode for more details about the error.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org