Greetings,
I've had a couple of experiences with the upgrades to Tomcat 5 and Ant
1.6. This email will explain them in some detail:
Upgrade to Ant 1.6.2 and using Java 1.4.1.
- for some reason why using Java 1.4.1 there was a problem running the
junit report task.
Upgrade to Tomcat 5.0.28
- Tomcat 5 has a cool feature that places an xml file in
<tomcat>/conf/Catalina/localhost that describes the
"docBase" and "path" of any web application that has
been installed in tomcat regardless of whether it was hot deployed or war
deployed. When you startup tomcat after any installation of hackystat you
will see this on the console:
INFO: Processing Context configuration file URL
file:C:\java\jakarta-tomcat-5.0.
28\conf\Catalina\localhost\hackystat.xml
09/20 18:35:53
09/20 18:35:53 Hackystat: Initializing system.
09/20 18:36:03 Admin: [EMAIL PROTECTED] (kagawaa)
09/20 18:36:03 TimeZoneChanger: Server Time Zone = Hawaii Standard
Time
09/20 18:36:03 TimeZoneChanger: No change needed
09/20 18:36:03
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
09/20 18:36:03 Startup Summary: SDTs: 9, Commands: 45, Sensors: 0, Users:
16
09/20 18:36:03 Version: 6.2.920 Buildtime: September 20 2004
17:04:28
09/20 18:36:03
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- My first "ant -q freshStart junitAll" on a clean tomcat
worked out fine
- My second "ant -q freshStart junitAll" had problems. Most
notably was the unsuccessful deployment of the Soap Services which causes
various sensorshell testcases to fail. (it is interesting to note
that if you do a "ant -q freshStart" and an "ant -q
junitAll" everything seems ok. the problems occur when the two tasks
are done in one ant invocation).
Total time: 28 seconds
c:\java\cvs\hackyBuild>ant -q freshStart junitAll
[echo] (hackyBuild) Starting build on September
20 2004 18:42:54.
[echo] (hackyBuild) Removing hackystat web app
from tomcat.
[echo] (hackyBuild) OK - Undeployed application
at context path /hackystat
.... (deleted extra stuff) ...
[echo] (hackyBuild) Installing hackystat web app
to tomcat.
[echo] (hackyBuild) OK - Deployed application at
context path /hackystat
[echo] (hackyBuild) Deploying soap
services.
[java] [SOAPException:
faultCode=SOAP-ENV:Protocol; msg=Unsupported response content
type "text/html; charset=utf-8", must be: "text/xml".
Response was:
[java]
<html><head><title>Apache Tomcat/5.0.28 - Error
report</title><style><!--H1 {f
ont-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H
2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px
;} H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:
14px;} BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
B {f
ont-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P {font-family:T
ahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.na
me {color : black;}HR {color : #525D76;}--></style>
</head><body><h1>HTTP Status 404 - //h
ackystat/servlet/rpcrouter</h1><HR size="1"
noshade="noshade"><p><b>type</b> Status
report
</p><p><b>message</b>
<u>//hackystat/servlet/rpcrouter</u></p><p><b>description</b>
<u>The
requested resource (//hackystat/servlet/rpcrouter) is not
available.</u></p><HR size="1"
noshade="noshade"><h3>Apache
Tomcat/5.0.28</h3></body></html>
[java] ]
[java] at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:172)
[java] at
org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
[java] at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
[java] at
org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
[java] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[java] at
org.apache.tools.ant.Task.perform(Task.java:364)
[java] at
org.apache.tools.ant.Target.execute(Target.java:341)
[java] at
org.apache.tools.ant.Target.performTasks(Target.java:369)
[java] at
org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[java] at
org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[java] at
org.apache.tools.ant.Main.runBuild(Main.java:673)
[java] at
org.apache.tools.ant.Main.startAnt(Main.java:188)
[java] at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
[java] at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
[java] Caused by: [SOAPException:
faultCode=SOAP-ENV:Protocol; msg=Unsupported respon
se content type "text/html; charset=utf-8", must be:
"text/xml". Response was:
[java]
<html><head><title>Apache Tomcat/5.0.28 - Error
report</title><style><!--H1 {f
ont-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H
2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px
;} H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:
14px;} BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}
B {f
ont-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P {font-family:T
ahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.na
me {color : black;}HR {color : #525D76;}--></style>
</head><body><h1>HTTP Status 404 - //h
ackystat/servlet/rpcrouter</h1><HR size="1"
noshade="noshade"><p><b>type</b> Status
report
</p><p><b>message</b>
<u>//hackystat/servlet/rpcrouter</u></p><p><b>description</b>
<u>The
requested resource (//hackystat/servlet/rpcrouter) is not
available.</u></p><HR size="1"
noshade="noshade"><h3>Apache
Tomcat/5.0.28</h3></body></html>
Besides that everything seems fine. Please let me know if you have
similar configurations and do NOT have those problems.
thanks, aaron
- [HACKYSTAT-DEV-L:72] tomcat.servlet.jar.filename and Tomcat... Philip Johnson
- Aaron Kagawa
