LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-12-2007, 12:34 AM   #1
Gattuso
LQ Newbie
 
Registered: Jul 2007
Posts: 8

Rep: Reputation: 0
Distro of choice for Tomcat and JSP


Hi,

I am setting up my web server, I was wondering what would be the best distro to use for me?

I am considering Fedora or Debian, but what do you think will be the best one?

ThankS!
 
Old 07-12-2007, 01:11 AM   #2
janstedehouder
LQ Newbie
 
Registered: Mar 2007
Posts: 21

Rep: Reputation: 15
I think that would depend on your prior knowledge and experience with either one of them. Debian has the reputation of being very, very, very stable, solid and slow on adding bleeding edge software. Besides being stable of course. Fedora is closer to the bleeding edge with somewhat more rapid release cycles. If you like Fedora and know you way around the tools you could also consider CentOS. CentOS is build on Red Hat Enterprise, which again is more solid and stable than Fedora.

It also depends on what you whish to do with your webserver and how secure you want it to be. When it comes to security few distro's beat OpenBSD for that. Then again, OpenBSD is another playing field.

Personally I would go for Debian, but that is because I have some more experience with it.
 
Old 07-12-2007, 04:53 AM   #3
Gattuso
LQ Newbie
 
Registered: Jul 2007
Posts: 8

Original Poster
Rep: Reputation: 0
But when it comes to ease of installation of tomcat, which do you think would be easier to use, fedora or debian?

Ive read some discussions on the net that, when you would like to use tomcat together with jsp, a much better compatibility will be on debian,

is that true?
 
Old 07-12-2007, 11:47 PM   #4
janstedehouder
LQ Newbie
 
Registered: Mar 2007
Posts: 21

Rep: Reputation: 15
I wouldn't know about the software repositories that Fedora is using, but installing TomCat under Debian is indeed simple. The issue is setting Apache and TomCat up, because that require more knowledge and skills.

Just an example. The author says this is a simple howto.
http://www.howtoforge.com/apache2_to...jk_integration
 
Old 07-13-2007, 03:56 PM   #5
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Tomcat is available from the Fedora repositories but don't expect it to be the latest available. I always get a more up-to-date one and install that instead. Installing Tomcat is pretty easy:
- edit /etc/profile to export JAVA_HOME
- optionally set administrator name/password in the tomcat configuration files
There, done. Please also note that Tomcat distributions from repositories tend to use 8180 rather than the customary 8080. Although I am using Fedora right now (I find it somewhat better suited to develop on), I have to admit that Debian offers at least one real advantage: it can install jdk from its repositories, while no such repository is available for Fedora. In other words, jdk needs to be installed and configured manually. On the other hand, Fedora 64 bit is not pure 64 bit, i.e. it is quite easy to install both 32 bit and 64 bit jdks and switch from one to the other as the need arises. That being said, I don't even use Tomcat anymore; I have adopted Glass Fish (Sun Java Application server) instead.

Last edited by jay73; 07-13-2007 at 04:01 PM.
 
Old 07-15-2007, 12:59 AM   #6
Gattuso
LQ Newbie
 
Registered: Jul 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Is Glass Fish (Sun Java Application server) better than tomcat? I mean, why did you choose this over tomcat? hehe

and if you dont mind, hehe whats the differece of these? "32 bit and 64 bit jdks"

Thanks for your replies guys! I really appreciated it..
 
Old 07-15-2007, 08:35 AM   #7
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
32 and 64 bit jdks are essentially the same but they use a different architectures. The 64 bit one obviously can use the full power of 64 bit hardware while the 32 bit one can't. Whether this means better performance is the subject of heated, debate, however - I just like to keep an eye on the future. And of course, if you have a 32 bit computer and/or OS, you're restricted to 32 bit java anyway. The choice doesn't become relevant until you have a 64 bit system. The reason I use both is that I have a few 32 bit distributions in addtion to my 64 bit Fedora; having both jdks allows me to develop for all of them from one centralized spot. A matter of convenience, really, although . Or not. The 64 bit one does have a few limitations compared to the other one: for example, there isn't any 64 bit firefox-plugin. But again, if you have both, you can use 32 bit to provide the plugin and the other one to do your programming.

As for Java System Application Server vs. Tomcat, that depends on your needs. In most standard situations, the JSAS/Glass Fish offers more features and flexibility. After all, Tomcat is only a servlet/JSP server whereas JSAS is a full J2EE container. There is also less fiddling with configuration files (although that is still possible) as it offers a GUI to do all of that. Plus it generally looks a lot better than Tomcat. Whatever, if you get the J2EE package from Sun, you will get both Tomcat and JSAS in the bundle.
 
Old 07-17-2007, 09:03 AM   #8
Gattuso
LQ Newbie
 
Registered: Jul 2007
Posts: 8

Original Poster
Rep: Reputation: 0
What about in terms of security, which sever should be the best for me?

I am also wondering, is there any way, that hackers may be able to extract my source code? or is it even possible?

Encryption would be my way of secreting my data, but with them extacting my code, its no use.. hehe

if there is any way, is there a way to prevent that?

THanks!
 
Old 07-17-2007, 03:48 PM   #9
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Quote:
if there is any way, is there a way to prevent that?
There is, actually: disconnecting from the net, closing the door and swallowing the key. No, seriously, if you set up a firewall and use a tight permissions scheme as well as encryption, I don't think that it'll be easy to run off with your code. Running your applications server just locally, not as a service, will help much as well. Then again, I don't know what kind of code you are writing that you should be that concerned. Most hackers really don't bother with hacking into a computer just to read some java code - unless you are working with state secrets or banking accounts. In which case I'd be glad to have a go at your computer myself
 
  


Reply

Tags
debian, fedora, jsp, tomcat



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
trying JSP with tomcat Anand Kiran Programming 1 01-16-2007 05:35 AM
New to JSP and the Tomcat Container PATFRA Programming 1 06-28-2006 07:37 PM
404 error using JSP on tomcat jayn16 Programming 2 06-25-2006 01:07 PM
Is tomcat the only choice in order to surport JSP? ICO Programming 3 03-07-2004 11:59 PM
Basic JSP/Tomcat question. CodeWarrior Programming 1 07-06-2003 09:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration