Another reason why not supporting tomcat 4.1 is wrong

One thing to add to the long list of IDEA annoyances when it is used for web application development.

It seems that tomcat 4.0 generates servlets from jsp in a pretty idiotic way, and if one puts "too much custom tags" into a page, the code of the generated class will have a single jspservice method of more than 64Kb, which results in a java.lang.VerifyError when trying to execute the jsp. Tomcat 4.1 apparently implements smarter algorithms for jsp->servlet generation, and is less subject to this kind of problems. Once more: please support tomcat 4.1 integration!

5 comments
Comment actions Permalink

But why don't you use Tomcat5?
It's final for quite some tine now...

0
Comment actions Permalink

Because I must put in production on Websphere 5.1 (not supported by IDEA either, because "no customer asks for it", of course...), and it does not support JSP 2.0.

0
Comment actions Permalink

...and in case you ask, problems arise because of jstl: I was able to run my app with jstl 1.1 on tomcat 5, but not with websphere 5. So I switched to jstl 1.0... but I wasn't able to have it working on Tomcat 5, and had to switch to tomcat 4.

0
Comment actions Permalink

Easy enough to work around. Just split up your pages and use includes. It's hardly the end of the world type of problem.

0
Comment actions Permalink

It's hardly the end of the world type of problem.

Of course not. But I'm not sure I can split up the page in includes, since all the custom tags are inside an html:form. Can I? Moreover since Tomcat is not the production engine, I'd prefer not being forced to include workarounds for problems that only occur in my development - test environment.

Anyway, I managed to reduce the compiled size by using less tags in a lot of places, and this is not the dirtiest thing I've had to do in order to work with struts.

For the general matter, I think that the lack of tomcat 4.1 support is not a big problem in itself, but it's one of the many bothering aspects of the current status the web development tools in IDEA show. I can't believe the level of refinement the "normal" java development receives in the IDE enhancements, if compared with the level of the web-jsp-custom tag support.

0

Please sign in to leave a comment.