Matt RaibleMatt Raible is a Web Developer and Java Champion. Connect with him on LinkedIn.

The Angular Mini-Book The Angular Mini-Book is a guide to getting started with Angular. You'll learn how to develop a bare-bones application, test it, and deploy it. Then you'll move on to adding Bootstrap, Angular Material, continuous integration, and authentication.

Spring Boot is a popular framework for building REST APIs. You'll learn how to integrate Angular with Spring Boot and use security best practices like HTTPS and a content security policy.

For book updates, follow @angular_book on Twitter.

The JHipster Mini-Book The JHipster Mini-Book is a guide to getting started with hip technologies today: Angular, Bootstrap, and Spring Boot. All of these frameworks are wrapped up in an easy-to-use project called JHipster.

This book shows you how to build an app with JHipster, and guides you through the plethora of tools, techniques and options you can use. Furthermore, it explains the UI and API building blocks so you understand the underpinnings of your great application.

For book updates, follow @jhipster-book on Twitter.

10+ YEARS


Over 10 years ago, I wrote my first blog post. Since then, I've authored books, had kids, traveled the world, found Trish and blogged about it all.

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
Comments:

Any numbers on the speed diff between 4.1.x/5.0.x and 5.5.x? The most recent versions seem to have really caught up to the commercial offerings in terms of speed, a faster 5.5.x would be nice. Do you think much of the difference was due to using a more recent jdk?

Posted by Paul on October 01, 2004 at 08:42 AM MDT #

Do you think the speediness of the new Tomcat is this: they decompose "admin" , "manager" and another module from tomcat.

Posted by char on October 01, 2004 at 02:00 PM MDT #

Looks like the new release of Cactus works with JDK 5.0 - http://jakarta.apache.org/cactus/1.7/ANNOUNCEMENT.txt

Posted by Steve Wall on February 03, 2005 at 03:55 PM MST #

Can we deploy same in JBoss4.0.x?

Posted by Niel More on February 04, 2005 at 02: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 11:51 AM MST #

It sounds like some JSP APIs are missing from your classpath. I'm not sure if Struts Resume distributes this or not (it's been a few years).

Posted by Matt Raible on February 11, 2008 at 04:05 PM MST #

Post a Comment:
  • HTML Syntax: Allowed