Results 1 to 4 of 4

Thread: Tomcat / JSP = ARGH!

  1. #1
    bored out of my tiny mind malfunction's Avatar
    Join Date
    Jul 2003
    Location
    Lurking
    Posts
    3,923
    Thanks
    191
    Thanked
    187 times in 163 posts
    • malfunction's system
      • Motherboard:
      • Gigabyte G1.Sniper (with daft heatsinks and annoying Killer NIC)
      • CPU:
      • Xeon X5670 (6 core LGA 1366) @ 4.4GHz
      • Memory:
      • 48GB DDR3 1600 (6 * 8GB)
      • Storage:
      • 1TB 840 Evo + 1TB 850 Evo
      • Graphics card(s):
      • 290X
      • PSU:
      • Antec True Power New 750W
      • Case:
      • Cooltek W2
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Dell U2715H

    Tomcat / JSP = ARGH!



    I know this isn't quite the right place for a rant but OMG how complicated can they make setting this thing up?

    After much hair pulling - in order to just have a quick mess around with it - I find out that all you REALLY need is to:

    1) create the directory you want to put your 'web application' in

    2) stick a logically EMPTY web.xml file in WEB-INF:

    <?xml version="1.0" encoding="ISO-8859-1"?>

    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">
    </web-app>

    That's what you need to start messing around with tomcat / JSP development. No ANT... No build process. No bazillion obscure entries in the web.xml file...

    Nice to see that Apache / J2EE is still keeping the "harder to setup than to actually use" theme alive that Linux used to do so well (and still does to a lesser extent!)

    ARGH!

    (I feel better now)

  2. #2
    bored out of my tiny mind malfunction's Avatar
    Join Date
    Jul 2003
    Location
    Lurking
    Posts
    3,923
    Thanks
    191
    Thanked
    187 times in 163 posts
    • malfunction's system
      • Motherboard:
      • Gigabyte G1.Sniper (with daft heatsinks and annoying Killer NIC)
      • CPU:
      • Xeon X5670 (6 core LGA 1366) @ 4.4GHz
      • Memory:
      • 48GB DDR3 1600 (6 * 8GB)
      • Storage:
      • 1TB 840 Evo + 1TB 850 Evo
      • Graphics card(s):
      • 290X
      • PSU:
      • Antec True Power New 750W
      • Case:
      • Cooltek W2
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Dell U2715H
    HURRAH!

    It only took another hour to decipher setting up a connection pool to a database!

    WOW! IS THIS EASY TO USE OR WHAT?!?

  3. #3
    Goat Boy
    Join Date
    Jul 2003
    Location
    Alexandra Park, London
    Posts
    2,428
    Thanks
    0
    Thanked
    0 times in 0 posts
    The web.xml file is VERY powerful. Concepts like inbound and outbound filters, Tag Library Descriptors and controller servlets are not simple things.

    An hour to set up a connection pool? That doesnt sound too bad. What's the problem?

    At the end of the day JSP is not like ASP or PHP. It is not really designed for "pick up and go". It is an industry strength solution that stresses configurability over ease of use.

    Thinking about it, if you want to get running with PHP, you need to install a web server, install and configure the php library and then configure the web server for php use. That is not a simple process. To get tomcat running you need to:

    - Install a jdk (which is a next click wizard)
    - Unzip tomcat and run the startup script

    And that goes for any OS.

    I'm not sure how long it would take me (a PHP n00b but someone with a LOT of web development experience) to configure a database connection pool in PHP, but I would certainly not expect to accomplish it in under an hour. Not if I actually wanted to know what was going on behind the scenes...
    "All our beliefs are being challenged now, and rightfully so, they're stupid." - Bill Hicks

  4. #4
    bored out of my tiny mind malfunction's Avatar
    Join Date
    Jul 2003
    Location
    Lurking
    Posts
    3,923
    Thanks
    191
    Thanked
    187 times in 163 posts
    • malfunction's system
      • Motherboard:
      • Gigabyte G1.Sniper (with daft heatsinks and annoying Killer NIC)
      • CPU:
      • Xeon X5670 (6 core LGA 1366) @ 4.4GHz
      • Memory:
      • 48GB DDR3 1600 (6 * 8GB)
      • Storage:
      • 1TB 840 Evo + 1TB 850 Evo
      • Graphics card(s):
      • 290X
      • PSU:
      • Antec True Power New 750W
      • Case:
      • Cooltek W2
      • Operating System:
      • Windows 10
      • Monitor(s):
      • Dell U2715H
    An hour is a long time to find out how to do something which at the end of the day only needs an entry in a configuration file and a library (jar file) putting in the right place. But anyway - it was a rant - no need to reply

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. ARGH Why do women do this S***
    By GreenPiggy in forum General Discussion
    Replies: 68
    Last Post: 10-08-2005, 06:33 PM
  2. ARGH! HELP! - Clutch goes bye bye
    By Vimeous in forum Automotive
    Replies: 13
    Last Post: 29-12-2004, 04:28 PM
  3. Urgent help! Drive seems to be dieing... argh!
    By Howard in forum PC Hardware and Components
    Replies: 17
    Last Post: 18-08-2004, 11:36 AM
  4. Big Brother!!! Argh!!!!
    By DeludedGuy in forum General Discussion
    Replies: 6
    Last Post: 29-05-2004, 12:33 PM
  5. argh! am i going mad?
    By lynni in forum General Discussion
    Replies: 57
    Last Post: 30-04-2004, 07:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •