This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes Setting up... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Setting up..." Watch "Setting up..." New topic
Author

Setting up...

Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 815
I want to start writing and testing JSP programs. I was wondering is there a free webserver out there that would be suffice in allowing me to do just that? Appreciate the advice. Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Are you talking about a hosting service that you can upload to, or a server you can run on your own system?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
Have you looked into using JBoss, or Tomcat as a standalone, or the J2EE RI?


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 815
Nathan,
No I haven't looked into either. Just thought a few minutes ago maybe giving this a try and decided to post. Basically I just want to start playing with some JSP code (i.e. writing apps) and I just was wondering if, and which, webserver would be best to use. Since I only intend to use this for personal use I would prefer it would be free. Which of the ones you listed do you think are best in terms of capabilities? Thanks.
Rob
Nathaniel Stoddard
Ranch Hand

Joined: May 29, 2003
Posts: 1258
They're all free. I think that Tomcat is best for you. It's the easiest to set up and manage. The other two I mention are full EJB/Web containers, so more is involved. Try Tomcat out and see how it works. (The other two actually embed Tomcat, so it's only slightly different.)
Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 815
Thanks Nathan! Just a couple of quick questions in addition... how much space does it take up and where's the best place to download? Also, I do want to test out some stuff with JSPs but eventually I'll want to get more indepth with the apps I do. Very open question : At what point should consideration of the other 2 webservers be taken (any sort of major limitations I should know about regarding Tomcat)? Thanks again.
Rob
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

I don't know what the Tomcat footprint is off the top of my head, but it should not be a major concern. You can obtain Tomcat from jakarta.apache.org.
The vast majority of web apps will never need anything other than a servlet container such as Tomat. You will only need application servers like JBoss if you are goig to use EJBs.
Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 815
Thanks for the responses guys. I'll give it a try.
Rob
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
barebones Tomcat 4 installation (without any webapps installed) is about 30-40MB depending on whether you install documentation etc.
When you add some webapps that will of course grow as the logs and cache will start to add up in addition to the space taken by your webapp.
Tomcat 5 (recommended if you're starting out rather than having to support older software which is why I use Tomcat 4) is a few megs larger.
Get it from http://jakarta.apache.org


42
Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 815
Didn't get much of a chance to do it last night, except download TomCat 5, but I did notice that Apache TomCat is now running as a service. I did have this immediate question though (probably be answered as soon as I start looking at the docs but here goes), does TomCat have any facilities to do such tasks as those that can be performed in IIS? I'm using Windows XP Home Edition and I was hoping to set up a default website like you can do in IIS. Is there a way of doing this within TomCat? Are there additional downloads needed to accomplish these sort of tasks? I'd appreciate any help regarding this. I'm at a disadvantage right now as I'm at work and my curiousity is getting the better of me, hence the question. Thanks.
Rob
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

I was hoping to set up a default website like you can do in IIS.

"default website"?
Depends what you mean by that. You can pretty much set up anything you want -- it's a matter of learning your way around the server.xml config file.
[ April 27, 2004: Message edited by: Bear Bibeault ]
Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 815
Sorry Bear I should have referred to "default website" as "home directory" as is called in IIS. Is there not a GUI interface to help deal with setup files and to eliminate having to look through text files to set things up?
Rob
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Yes, each web app can have its own "home directory".
And no, although there's a manager app that helps you start and stop web apps, you will need to get your hands dirty in the XML config files to set up anything substantive.
This, by the way, is not a bad thing.
 
 
subject: Setting up...
 
Similar Threads
Cant use object from another class
WA #1.....word association
Posting to bump up my count...
Text box value is not being completely filled with request attribute
The x900 effect ?