Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Apache Tomcat 4.0 Final Released

Posted by Hemos on Tue Sep 18, 2001 04:18 PM
from the meow-meow-roar dept.
A reader writes "The latest version of the Apache Java Servlet engine has been released. 'The 4.0 release implements the Servlet 2.3 and JSP 1.2 specifications.' Read more at The Apache Group's Jakarta site."
This discussion has been archived. No new comments can be posted.
Display Options Threshold:
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • Tomcat looks good (Score:5, Informative)

    by claes (25551) on Tuesday September 18 2001, @04:30PM (#2317447)
    Tomcat is getting pretty good. Version 4 makes it very easy to deploy new webapps: it includes a web admin interface, and new apps can be deployed without restarting it. As a standalone webserver it is also fairly competent, at least for specialised applications with smaller user numbers.

    Apache does some great things with Java. I have worked both with Tomcat (servlet container), Xerces (XML parser) and Xalan (XSLT engine). Thanks to the good work to come out from Apache, Java has become a very strong competitor to MS .NET. Actually I think it is ahead. In the future we will get the XML Binding API, that makes it possible to compile XML Schemas to java "xml manipulator" classes that can be used to manipulate XML instances of these schemas. XML parsing and manipulation will then be childs play. Define your schema, compile it and you have code that is specialised to work with these documents!

    With a strong XML foundation in place, Java's future is looking really good.
  • very cool (Score:5, Informative)

    by Dalroth (85450) on Tuesday September 18 2001, @04:33PM (#2317467) Homepage Journal
    I'm not completely up to speed on what Java Web development enhancements this brings to the table. However, I can honestly say that in my dealings with ßeta versions of Tomcat 4.0, the configuration files for Tomcat 4.0 are 1000x times easier and more sensible! The configuration files for Tomcat 3.x look like they were designed by a monkey on crack (or a Sendmail developer). Tomcat 4.0 config files are finally well thought out and usable. Can't wait to get my systems upgraded! :)
    • Re:very cool by jslag (Score:1) Tuesday September 18 2001, @04:48PM
      • Re:very cool by sstidman (Score:1) Wednesday September 19 2001, @09:18AM
  • Woah! (Score:1)

    by green pizza (159161) on Tuesday September 18 2001, @04:41PM (#2317515) Homepage
    I'm only using version 1.3.18 right now, so this will be quite a huge upgrade for me! Quite cool, I'll be downloading and compiling the new version tonight!
    • Re:Woah! by manic micko (Score:1) Tuesday September 18 2001, @04:55PM
  • by newbiescum (190145) on Tuesday September 18 2001, @04:45PM (#2317535)
    Anyone know a good place to start learning about Java Servlets and, in particular, how to implement such programs with Tomcat? The last time I tried, it was a major hassle to get even the sample applets running, and I would like a fresh start.
  • WOW - 6 hours (Score:2, Informative)

    by icoloma (322750) on Tuesday September 18 2001, @04:46PM (#2317540)
    Tomcat 4 was waiting for the new servlet standrd from Sun to become from draft to final.

    THAT WAS TODAY. Less than six hours later (I don't know the exact amount of time) Tomcat was announcing the official release of Tomcat 4. That is going fast! :)
  • And that also means... (Score:2, Informative)

    by vanza (125693) on Tuesday September 18 2001, @04:48PM (#2317550)
    That the 2.3 Servlet specification and 1.2 JSP Specification have been released [jcp.org] as final.
  • Hehe (Score:3, Insightful)

    by JediTrainer (314273) on Tuesday September 18 2001, @04:49PM (#2317563)
    Anybody else appreciate the irony that 4.0 Final is released while 3.3 is still in beta?

    I've been using Tomcat 3.2 in production for the last 6 months or so and it's been a wonderful servlet container. I can't wait to try out 4 in our testing environment!
    • Re:Hehe by Dg93 (Score:3) Tuesday September 18 2001, @04:52PM
      • Re:Hehe by JediTrainer (Score:3) Tuesday September 18 2001, @05:24PM
    • Hmm, reminds me of Linux. by Penguinoflight (Score:1) Tuesday September 18 2001, @10:52PM
    • 1 reply beneath your current threshold.
  • Very Mini howto... (Score:5, Informative)

    by (H)elix1 (231155) <slashdot DOT helix AT gmail DOT com> on Tuesday September 18 2001, @04:58PM (#2317600) Homepage Journal
    Download the file - lets say on a Win2K they have locked down at work. No admin rights? no problem... (Win2K assumptions here, though most OS's work about the same)

    Make sure you have a JDK installed, like Sun's Windows version [sun.com].

    Unzip to a directory - taking the defaults sets you up in c:\jakarta-tomcat-4.0.

    Go to the control pannel, click system, click advanced, click Environment Variables. Click new button on system variables and create a JAVA_HOME with a path to where you extracted your JDK. (My box has javac located in c:\jdk\bin, so my JAVA_HOME is c:\jdk). Create a TOMCAT_HOME as above pointing to c:\jakarta-tomcat-4.0.

    Open up a command prompt, cd to c:\jakarta-tomcat-4.0\bin and run startup.bat.

    Open a browser and type in http://localhost:8080, you should see it...

    Happy hacking in the example code!

  • Load balancing? (Score:2)

    by MSBob (307239) on Tuesday September 18 2001, @05:02PM (#2317622)
    I haven't looked at it yet but my first question is:

    Does Tomcat4.0 support load balancing the way 3.2.x did?

    In 3.3.x you could load balance a cluster of Tomcats through apache and mod_jserv or mod_jk (which is what we use). So does T4.0 support load balancing and if so is it through mod_jk or is there a new module to do the job? If so has anyone played with it yet?

    • 1 reply beneath your current threshold.
  • Hopefully it intalls easier... (Score:3, Informative)

    by Teancom (13486) <david@gn u c o n s u l t i n g.com> on Tuesday September 18 2001, @05:02PM (#2317623) Homepage
    I wasted a week of my life trying to get tomcat 3.2.x up and going on a solaris machine. The documentation was the worst that I had *ever* run across, with "how-tos" sporadically jumping back and forth between version 3.1 and 3.3, with not one single "clear, concise, consistent" document available for 3.2 (the previously current stable version). Even step involved downloading another package from the jakarta project, trying to figure out *it's* documentation, installing it, testing, and then finally getting back to tomcat just to discover (generally buried in some obscure comment four pages into a mostly-irrelevant faq) that you need to go get something else.

    Frankly, it wasn't until I got it going on a debian/x86 machine (apt-get install tomcat) that I was able to trace my way back and install it on solaris. Not that apache itself was much better, trying to get apxs working.

    Then, after it was going, I tried to enable .jsp support in all my user's home directories, the same way we do with cgi's (this is intranet, and we have a lot of people running things out of their ~username). Can't be done. Absa-no-freaking way. Either you configure each directory individually, basically "giving" the /public_html/ dir to tomcat and bypassing apache completely, or you make everybody create a new directory and then configure them *individually*. If someone has a work around for this, I would *love* to hear it. Note the main problem is that tomcat doesn't understand the ~ syntax, so the url passed by apache when a .jsp page is requested is "foo.com/~user/baz.jsp", and then tomcat complains that ~user/baz.jsp doesn't exist. This is the #1 reason jsp/servlets aren't used more where I work.

    So, I am *eager* to try out this release, and I truly hope that my complaints are now foundless. I would love nothing better than to be proven wrong, that the documentation has been completely overhauled, that it now understands the common ~username, that it works with any jdk besides blackdown's (on linux), and that it basically doesn't suck. But I'm not holding my breath.
  • J2EE-ish support? (for java CA) (Score:3, Interesting)

    by coyote-san (38515) on Tuesday September 18 2001, @05:02PM (#2317626)
    I'm currently working on a certificate authority written with servlets (and JNI calls to libopenssl for the gory work of actually creating and signing the X.509 certs), and everything is using EJB beans. The goal is to have the CA entity beans handle the actual CA and X.509 tasks, another set of beans and JSP to handle the web and java client interfaces, and yet another set of beans to handle the business rules regarding content and issuance of the certs, and tying it all together with J2EE or something similar.

    The only problem is that I seem to be missing a piece of the puzzle. For now, I'm creating and initializing the beans explicitly, but shouldn't this be handled automatically somewhere/somehow? I'm sure I'm just missing some small piece of information in this huge pile. Does this release address this problem, or is it an entirely different set of code?

    (As a related aside, I'm gonna stop using Debian if it continues to have such long release cycles. I eventually got suitable openssl (0.9.6), postgres (7.0) and java (1.3) installed, but it took days and a lot of pain because of the length of the "to do A you must first do B, to do B you must first do C, to do... chain.)
  • Tomcat As the Anti.NET? (Score:4, Interesting)

    by Lethyos (408045) on Tuesday September 18 2001, @05:11PM (#2317666) Journal
    This project seems that it could fill the role of a great that that Sun wanted to accomplish with Java. The versatility of Servlets is quite extensive and it makes me wonder why, in the shadow of this project, the OSS community is spending time on dotGNU and Mono.

    Tomcat has tremendous potential to deliver robust, complete apps in the same way .NET wants to. And, it's not restricted to Windows.

    Is my thinking correct in that we can level this software against Microsoft's upcoming ventures? Can we make a .NET killer out of this, or am I thinking about driving a screw with a hammer?
  • by frknfrk (127417) on Tuesday September 18 2001, @05:14PM (#2317682) Homepage
    also ant 1.4 was released recently (couple weeks ago). ant is a great build tool, i don't want to get into its features here (java and xml based build, replaces makefiles for my java builds, integrates with some IDEs and build verification/unit test tools (JUnit)). the reason i post here is because ant started out as a little tool with which tomcat developers build tomcat, and grew into its own tool. ant home page on jakarta [apache.org].
    • 1 reply beneath your current threshold.
  • J-Run (Score:2)

    by ajs (35943) <ajs@aj[ ]om ['s.c' in gap]> on Tuesday September 18 2001, @05:21PM (#2317712) Homepage
    Can someone speak to us lay-people (when it comes to Java anyway) about the differences between Tomcat and J-Run? Are the competitors? Do they fit different niches?

    I'm just wondering because I know some folks who are looking at upgrading J-Run, and I might advise them to check out Tomcat instead if that makes sense.

    Thanks!
    • Re:J-Run by cheezedawg (Score:1) Tuesday September 18 2001, @05:43PM
      • 1 reply beneath your current threshold.
    • Re:J-Run by Mad Browser (Score:1) Tuesday September 18 2001, @05:48PM
    • Re:J-Run by jefflinwood (Score:3) Tuesday September 18 2001, @05:48PM
      • Re:J-Run by Tsujigiri (Score:3) Wednesday September 19 2001, @03:28AM
      • 1 reply beneath your current threshold.
    • Re:J-Run by conan_albrecht (Score:1) Tuesday September 18 2001, @06:13PM
      • Re:J-Run by djweis (Score:1) Wednesday September 19 2001, @08:14AM
    • Re:J-Run by ChannelX (Score:1) Wednesday September 19 2001, @12:54AM
    • Re:J-Run by ChannelX (Score:1) Wednesday September 19 2001, @12:59AM
    • Re:J-Run by Doo-da-man (Score:1) Wednesday September 19 2001, @11:09AM
      • Re:J-Run by Doo-da-man (Score:1) Wednesday September 19 2001, @11:23AM
        • Re:J-Run by Luyon (Score:1) Wednesday September 19 2001, @11:31AM
  • Why use PHP? (Score:2, Interesting)

    by heretic (5829) on Tuesday September 18 2001, @05:23PM (#2317721)
    Not trying to indulge in a religious war, but I'm curious as to why PHP is so popular when JSP provides a much more robust solution. IMO, JavaScript is a real language compared to PHP's half-hearted C-like syntax, and it implements a real object model, again unlike PHP. I'm also uncomfortable with Zend's pricing scheme for their optimizer, whereas I can choose to use a JVM with JIT when using JSP at no cost. I also don't need to worry about proprietary caching schemes.
    • Re:Why use PHP? by MSBob (Score:2) Tuesday September 18 2001, @05:30PM
    • Re:Why use PHP? by JediTrainer (Score:2) Tuesday September 18 2001, @05:34PM
    • Re:Why use PHP? by mikera (Score:1) Tuesday September 18 2001, @05:35PM
    • Re:Why use PHP? by jefflinwood (Score:2) Tuesday September 18 2001, @05:56PM
      • Re:Why use PHP? by heretic (Score:1) Tuesday September 18 2001, @06:04PM
      • Re:Why use PHP? by jefflinwood (Score:1) Tuesday September 18 2001, @09:15PM
      • 1 reply beneath your current threshold.
    • Re:Why use PHP? (Score:5, Informative)

      by crisco (4669) on Tuesday September 18 2001, @06:09PM (#2317911) Homepage
      • Because Java / JSP is just getting to the point of ease of use that PHP was a couple of years ago? In terms of strength as a language and a platform, JSP and Servlets have PHP beat. But the entry level is much higher, think of the arcane xml files to get your programs working in the directories you want. With PHP you just drop things in and they work, often easier than CGI. Consider how many people start, diving in and messing with code. Now imagine you wanna do that with a servlet? Not that it is difficult, it is just a little harder than with PHP.
      • Because PHP / MySQL are standard at many cheap webhosts and with many Linux distros? And jsp / servlets aren't.
      • The OSS community's mistrust of Java and Sun and anything related to them.
      • Momentum and established codebase. Need a shopping cart, weblog, photogallery, or bulletin board? Head over to freshmeat and take your pick of PHP and Perl solutions. Want it in Java? Hmm, slim pickings...
      [ Parent ]
    • Re:Why use PHP? by hrbrmstr (Score:1) Tuesday September 18 2001, @09:30PM
    • Re:Why use PHP? by Pengo (Score:2) Wednesday September 19 2001, @01:30AM
      • Re:Why use PHP? by Ian Bicking (Score:2) Wednesday September 19 2001, @02:37AM
        • Re:Why use PHP? by MikeBabcock (Score:2) Wednesday September 19 2001, @09:45AM
    • Some reasons to use PHP by TheInternet (Score:2) Wednesday September 19 2001, @05:14AM
    • Simple problem, simple solution by Ars-Fartsica (Score:2) Wednesday September 19 2001, @10:26AM
    • 2 replies beneath your current threshold.
  • Help! (Score:2)

    by JediTrainer (314273) on Tuesday September 18 2001, @05:29PM (#2317746)
    Any word on whether they support IIS integration like the 3.x line did (via mod_isapi.dll, which hooked into the ajp12 connector)? It was fantastic, and helped bridge my application while it was being rewritten into Java-only.

    I can't seem to find any docs on how this might work, nor could I find any information on ajp12 at all in the 4.0 documentation! Now that the app has been rewritten (completely, finally) away from VB/asp to Java, it is possible to move to Apache (on any platform, since the code was carefully written to avoid platform-specific issues), but I'd still like to have the option of sticking with IIS at least for testing/benchmark comparison purposes...
    • Re:Help! by selectap (Score:1) Tuesday September 18 2001, @08:56PM
    • 1 reply beneath your current threshold.
  • JRun is better... (Score:2, Interesting)

    by hendridm (302246) on Tuesday September 18 2001, @05:43PM (#2317801) Homepage
    I dunno, Tomcat's configuration is horrible and I couldn't get it to run as a service on Windows, which is worthless. JRun has a very simple configuration interface, works well, and doesn't require editing of cryptic text files. They also have a free version available for development.

    IMO, Simplicity isn't necessarily a bad thing...
  • performance (Score:1)

    by iggyflashbulb (244946) on Tuesday September 18 2001, @05:59PM (#2317871)
    I just did a very informal test of a few implementations:

    Apache+jserv+gnujsp: 109.50 pages/second
    Resin 2.0.2 standalone: 55.87 pages/second
    Tomcat 4.0 beta: 24.65 pages/second
    Tomcat 3.2: 10.08 pages/second

    The page I tested was the hello.jsp one that comes with gnujsp. I'm on a PIII 800 with NT 4.0 using Sun's 1.3 jdk.

    I used the MS stress tester with 10 threads and 10 connections/thread. (I was lazy ran the web server and tester on the same machine.)

    Apache/jserv was the only one that got no errors during the test. The rest failed a few hundred times.

    I did request the page on each server to compile the jsp before running the tests.

    These numbers could easily be off by 25%. What's interesting is that there's a full order of magnitude across implementations.
    • Re:performance by DNS-and-BIND (Score:2) Tuesday September 18 2001, @06:55PM
    • Re:performance by iggyflashbulb (Score:1) Wednesday September 19 2001, @12:34PM
    • 1 reply beneath your current threshold.
  • by Codeala (235477) on Tuesday September 18 2001, @06:10PM (#2317915)
    The Subject line says it all, Tomcat needs good documents. The current FAQ is just not a good way for new users, who don't even know what they should be asking. And please don't assume the user know much about JSP and Servlet during installation. Many, like myself, just want to install it so we can start learning JSP! The latest version of web.xml and server.xml now contain more verbose comments on various settings, which is a big improvement on the old ones.

    The Apache document is a good example of how it is done. It contains details on every single configuration options and plus entire chapter on common tasks (eg DSO, Virtual Host). The Apache default conf file is probably the best commented of its type out there, sometime you don't even need to refer anything else to fully configure your installation!

    Note that this is NOT an attack on Tomcat as an application, once it is installed by someone who know what they are doing, it runs great. It is just that the initial step is very difficult for many people. Hopefully now that 4.0 is out, the developers can spend more time on documentations.
  • by Fate (2938) <hani&fate,demon,co,uk> on Tuesday September 18 2001, @06:38PM (#2318022)
    For all you OSS kids out there who are beaming at everything the Apache group puts out like it's gold dust, maybe it's time to look a little bit further afield if you actually care about performance, robustness, scalability, and general developer friendliness.

    I can't speak for any of the rest of the Apache group, since I have no experience with that side. However, I can safely say that the Java Apache group on the whole puts out some truly awful things, that only make it because of the clout and rep that the 'Apache' name brings.

    Tomcat is supposed to be a reference impl of the spec as put forth by the servlet expert group. In reality, the tomcat people are on that expert group, and do their utmost to spread a broken spec because 'we implemented it that way'. The spec has a number of very annoying failings (with regards to filters and request dispatchers, as well as context issues) that only made it in because the tomcat folk thought it's too hard to implement these properly. It's ludicrous that the spec suffers, because of incompetent vendors who have too much clout.

    The only java project at Apache that works and works well is ant, the rest of the useful ones are those that moved under that umbrella and grew outside of Apache (log4j, oro). ECS is a horrific idea, Slide doesn't work in any useful manner, Velocity is a ripoff of webmacro/freemarker), etc etc.

    It's a tight knit group of part time developers, with fairly fragile egos (obviously, this is a general perception, not 100% accurate!), who often get hugely defensive about their impls.

    At the end of the day, what matters to the end (business) user is how well the product performs, how well it scales, and other such measures. I can guarantee that tomcat is bottom of the list in any benchmark you care to run against any modern servlet engine. Yet, it's hailed as a success story. Open your eyes!

    if you want a real servlet engine, go with Orion or resin (or even jetty).
  • works great! (Score:1)

    by hrbrmstr (324215) on Tuesday September 18 2001, @09:00PM (#2318221) Homepage Journal
    kudos to the jakarta team!

    from download to install and http access (on solaris 8/sparc) in 5 minutes!

    servlet filters will be very useful (been using a similar feature with atg dynamo for a while now). in fact, tomcat has a number of very useful features that are normally found in the pay-per-use java servers. when the new apache module (to tie the ws in with the js) is done, this will be a kick-butt combination!

    anyone not already in the java server game should give this new beast a try. the sample application (structure and ant build config file) makes getting started snap!

    don't forget to d/l CVS to keep your projects straight!
  • by rajumd (519264) on Tuesday September 18 2001, @09:01PM (#2318223)
    Take a look at Sun's license for the SDK. It's for development use only, which means you can't use it for production. From the license (http://java.sun.com/j2se/1.3/j2sdk-1_3_1_01.licen se.html):

    Sun grants you a non-exclusive, non-transferable, limited license to reproduce internally and use internally the binary form of the Software complete and unmodified for the sole purpose of designing, developing and testing your Java applets and applications intended to run on the Java platform ("Programs").

    Anyone know of a JVM that I can use for a production server?

  • by jheinen (82399) on Tuesday September 18 2001, @09:06PM (#2318237) Homepage
    Tomcat and Jakarta are wonderful, however does anyone know of any enterprise class open source applications or application servers that provide functionality out of the box for things like billing, subscriptions, content management, CRM, product pricing, cross selling, settlements, personalization, call center support, etc.? I'm not talking about simple storefront type stuff that mom & pop companies use, but robust applications that support complex product pricing and bundling? Or an application that provides robust CRM? I'm thinking open source versions of products like Blue Martini, Broadvision, Siebel, Portal, etc.


    If not, why not? Why aren't there more OS projects that target these kinds of mission critical applications that the enterprise needs? It strikes me that if you want these kinds of capabilities from OS software, you are basically left to building them from scratch on top of something like JBoss/Tomcat, Enhydra, etc. Unless I'm missing something, there just doesn't seem to be any OS applications targeted at these important enterprise capabilities.

  • by Skapare (16644) on Tuesday September 18 2001, @10:53PM (#2318521) Homepage

    Can someone tell me what is it that Tomcat 4.0 (or any other version) lets me do that cannot be done otherwise? I know there must be something for them to put all this effort into it, but I cannot see it. If you're tempted to say "well if you can't see it, you won't understand it" then I'll say you probably don't understand it for yourself and you're doing it for the fad value of it.

    I want to know what the advantage is over say:

    • Apache with mod_perl or mod_php
    • Apache with CGI in C or C++
    • Apache with leet CGI in Java compiled with GCJ
  • Unicode support (Score:1)

    by juha0 (148119) on Wednesday September 19 2001, @03:23AM (#2318919)
    Finally this version seems to add some kind of Unicode support for HTTP requests. Lack of this before has been very strange, cause i18n has always been built in Java.
  • by qabi (166693) on Wednesday September 19 2001, @10:48AM (#2319964)
    I sincerely hope that it's better than Tomcat 3.x. We have worked with all versions between 3.2 and 3.2.3, and it's gotten better - but not great.

    There are still some concurrency issues under heavy load that makes it go belly up.

    Besides it's not excactly lightning fast. We've seen factors of 10-20 times the performance on other Servlet containers.

    Well, I guess that's what we've got innovation for!

    -dennis
  • by Paul Bain (9907) <paulbainNO@SPAMpobox.com> on Wednesday September 19 2001, @12:00PM (#2320444)
    The best places for learning about Tomcat (both 3.x and 4.0), aside from the documentation [apache.org], are mailing lists and forums, two of which are:

    (a) The mailing list tomcat-user-help@jakarta.apache.org, to which you can subscribe through the Jakarta site. The archives for this mailing list [mikal.org] are helpful, too, and can be searched. In both the current mailing list and the archives, the most productive use of your time would be to read everything posted by Craig McClanahan and Pier Fumagalli, who are the primary developers (of Tomcat) and writers of most of the documentation. They seem to know more about Tomcat than anyone else (at least Tomcat 4.0), and they often post material to the mailing list that is not found anywhere in the official documentation.

    (b) The Tomcat FAQ forum [jguru.com] and Tomcat FAQ [jguru.com] at jGuru.com.

    In this vein, see an introductory article ("Server-side Java with Jakarta Tomcat") in Linux Journal (April, 2001) in the regular column, At the Forge.

  • Re:WOo.. (Score:1)

    by blue trane (110704) on Tuesday September 18 2001, @08:57PM (#2318211) Journal
    yeah I've used both resin and tomcat and found resin easier to configure and use
    [ Parent ]
  • by Rich Katz (513967) on Tuesday September 18 2001, @09:04PM (#2318232)
    I'm sure Jon appreciates you for it. I'm glad to see he can inspire so many people such as yourself.

    But tell me something. Just why are you waiting for Jon on an Apache/Jakarta Tomcat thread?

    No, I'm not a immediate relative, but I did go a birthday party of his once.

    Regards,

    Rich Katz
    [ Parent ]
  • by tkrotchko (124118) on Tuesday September 18 2001, @09:48PM (#2318371) Homepage
    I agree, however, the implementations of J2EE have so far been so expensive they aren't practical for most people.

    It would be nice if Sun released a free J2EE implementation for Solaris.
    [ Parent ]
  • by spike666 (170947) on Wednesday September 19 2001, @12:18AM (#2318654) Journal
    The Apache group releases yet another world class product...
    i'm glad to see that the Jakarta Project's latest release of Tomcat comes with more documentation and administrative tools than the earlier 3.x releases. Not that those were hard to install and configure, but when you're trying to get Management to let you use a product, it helps to have more warm fuzzy ways of doing things, than the old "well i can edit that config file and we'll be ready to go"

    of course there are still some documentation pieces lacking, (like whats the WARP protocol?!?) but overall it seems a really good, well rounded release of the Tomcat product.

    of course, i still havent found how i integrate tomcat into an existing web server other than Apache...
    [ Parent ]
  • sigh (Score:2, Insightful)

    by mikemulvaney (24879) on Wednesday September 19 2001, @10:14AM (#2319749)
    Yet another non-Java developer trashing JSP's.

    I'll agree with you -- for pounding out web pages, it is much easier to do it in perl or php. But if that's all you want, then even perl and php are overkill. Why not just write static HTML pages?

    JSP is useful when you need to talk to Java components to get real work done. If you are a web designer, then don't use it. But if you are working on a big project, then the web interface is probably the least important part of the whole thing. Java provides a much richer set of tools than perl or php for creating reusable business components, and JSP provides an easy way to stick a front end on top of that.

    JSP scales a lot better than PHP/perl for mulitple developers, too. It sounds like you are more of a web designer than a programmer. JSP might make you feel unconfortable, because you wouldn't get to program as much, but the lines of responsibility are more clearly drawn. The guys in charge of the business beans would make up tags for you to use, and you could work on making the screens look pretty in Dreamweaver.

    So what can you do with JSP that you can't do with PHP, Perl, ASP, etc? Talk to Java. That's what we want to do.

    If you want to talk to a perl module, then use mod_perl or HTML::Mason. If you have COM objects, then use ASP.

    JSP is just a front end! The decision has already been made, long ago, to go with Java for all of its obvious business programming advantages.

    -Mike
    [ Parent ]
    • Re:sigh by chtephan (Score:1) Wednesday September 19 2001, @04:11PM
      • Re:sigh by Stu Charlton (Score:1) Wednesday September 19 2001, @07:38PM
  • by brlewis (214632) on Wednesday September 19 2001, @11:00AM (#2320060) Homepage

    The problem is not the nature of dynamic scripting languages (which I take to mean languages that let you prototype quickly). The problem is design choices made in the particular languages you've looked at. BRL [sourceforge.net] has no problem scaling to more complex applications. And if you choose to prototype quickly and end up with "dirty" code in pages, cleaning it out is a mindless process, as I described in another comment [slashdot.org].

    [ Parent ]
  • by Rich Katz (513967) on Wednesday September 19 2001, @06:17PM (#2322761)
    Hello Curly,

    It sounds like you're awefully angry and I'm sure there are people who will agree with you, but I'm not one of them. You say:

    o "Anything you can do in JSP you can do in ASP and..."

    I simply don't agree. The JSP/Servlet layer enables you to build systems using both extensible MVC framework and patterns plus use and XML. ASP doesn't. No such software design has been provided in ASP. Now ASP will be supported by OO languages and Microsoft has the opportunity to use and incorporate patterns. However the people responsible for ASP have spent the past five years ignoring the only OO languages Microsoft had: Visual Foxpro and J++. So its anyones guess as to whether ideas like MVC, cohesion, and decoupling are on their agenda yet.

    o They are "insanely difficult to debug"

    Have you considered that you're possibly making erroneous assumptions about what JSPs are or how they work? This is easy to do. Many people think JSPs are just kind of some sugar coated HTML. In fact, the lack of coherence in language design of such scripting facilities kept me away from them for a long time.

    Also, I would think that your not being familiar with Java could make you seriously frustrated with JSP.

    One of my early takes on JSP was that it was a way to avoid writing Java. When you instead look at JSP as a time-saving facade for programmers who actually *do* know Java, it takes on a completely different meaning.

    o The hammer vs. nail thing and the "management loves it" thing.

    Been there done that. These are "everyone here's against what I want and they just don't understand" positions. The hammer/nail thing applies to any new solution - there are going to be people who advocate using the same solution for everything, large or small - because that's what they know about. And "Management" is a word used by people who unfortunately have bad managers. (See bad-managers.com "True stories of disasterous projects and cowboy managers").

    Both Hammer/nail and "management loves it" has be said about mainframes, about Microsoft and about Visual Basic.

    Most recently, I've even seen it about C++. And before that C. And both attitudes helped kill the companies that held them.

    Originally, although I was coming from a somewhat different place from you, I felt the same way about JSP - that it was designed to be "like" Microsoft's ASP and that was not the right approach. But now I think JSP has proved its worth. There are people who have been successful with JSP, have put a lot of time into it, and have benefited from it.

    I'm glad you are successful with PHP. But there also going to be many who will resent you for calling JSP a "f_____ stupid technology." I don't think it's worth swearing at or asking others to "stamp it out" for you.

    In fact, although I'm definitely not the worlds number one JSP advocate, I even resent your swearing and hostility at JSP and at Tomcat, since the fact that you put this in the Tomcat thread, and at all the people who have worked hard to make Tomcat work.

    So, if it was your intention suck someone in with your negativity and make them upset just because you're upset at people you had to work with - then congratulations. You've succeeded.

    My only advise is, express your feelings to them. Or let it go. Or both. There are too many good things to do and not enough time to do them to be stay hostile at a whole technology.

    I'm sorry that it didn't work for you, and I do know the feeling.

    Regards and best wishes,

    Rich Katz
    [ Parent ]
  • 25 replies beneath your current threshold.