Thursday September 30, 2004
Playing with JDK 5.0 and Tomcat 5.5.2 I did some experimenting this evening with JDK 5.0 and Tomcat 5.5.2. The good news is that AppFuse compiles fine with JDK 5.0 and runs on Tomcat 5.5.2 nicely too. Here's a couple of things I found:
JDK 5.0
I received a number of interesting errors from the new JDK. Here's one of them:
[javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details.
I received a few other messages that were deprecation warnings. The wierd thing is that it was telling me what's deprecated in HttpServletResponse, rather than what's deprecated in my code. Huh - what's the point?
Unfortunately, I found that Cactus won't run on JDK 5.0. Too bad, everything else seems to work fine.
Tomcat 5.5.2
I like the speediness of the new Tomcat, but I was disappointed to find out that they changed the DTD for the context.xml file. The old one works fine on Tomcat 4.1.x and 5.0.x, but you have to make some modifications for it to work on 5.5.x. To be fair, the new syntax is shorter and more concise. I've updated AppFuse's build.xml to detect Tomcat 5.5 and swap context files as appropriate.
Because of the Cactus bug, I think I'll be sticking with JDK 1.4.2 and Tomcat 5.0.28 for now - but it's cool to know that everything else will work once Cactus is fixed.
Posted in Java
at Sep 30 2004, 11:32:03 PM MDT
6 Comments
Search This Site
Recent Entries
- Jack's Mohawk
- LinkedIn Cuts 10% (a.k.a. The Journey is Over)
- Happy Birthday Abbie!
- Moving from Spring's XML to Annotations in AppFuse
- Free Maven Training in New Orleans on Election Day
- AppFuse Light ยป AppFuse, Maven Archetypes and Shared Web Assets
- Great Weekend in Montana
- Colorado Software Summit 2008 Wrapup
- RESTful Web Applications with Subbu Allamaraju
- Core Animation with Bill Dudney
Posted by Paul on October 01, 2004 at 08:42 AM MDT #
Posted by char on October 01, 2004 at 02:00 PM MDT #
Posted by Steve Wall on February 03, 2005 at 02:55 PM MST #
Posted by Niel More on February 04, 2005 at 01:19 AM MST #
Hi Matt,
I am trying to run the latest version of Struts Resume. I followed the instructions in README-new.txt file and on step 4 which asks to run target "ant setup-tomcat deploy" it fails and complains about the following
compile-module: [echo] Compiling web... [javac] Compiling 46 source files to C:\sampleApps\struts-resume\build\web\classes [javac] C:\sampleApps\struts-resume\src\web\org\appfuse\webapp\taglib\Secure.java:43: cannot find symbol [javac] symbol: class BodyTagSupport [javac] public class Secure extends BodyTagSupport { [javac] ^ [javac] C:\sampleApps\struts-resume\src\web\org\appfuse\webapp\taglib\Secure.java:72: cannot find symbol [javac] symbol : class JspException [javac] location: class org.appfuse.webapp.taglib.Secure [javac] public int doStartTag() throws JspException { ..................................................................................... ..................................................................................... .....................................................................................I am using tomcat 5.5
Can you give me some pointer? Is this a jar version issue? Which appropriate jars do I need?
Thanks,
Rachit
Posted by Rachit Gandhi on February 11, 2008 at 10:51 AM MST #
Posted by Matt Raible on February 11, 2008 at 03:05 PM MST #