Linux / Web Server Testing Guidelines Using Java

I am a .NET developer, who at one time does some research to become better acquainted with Linux and Java (like JSPs and servlets).

My plan is to install Linux on an old PC. Then install and configure a web server capable of hosting JavaServer pages and servlets. I would like to create a small website with dynamic content retrieved from a database. Again, this site is intended only for use by me for research and testing.

I have very little experience with Linux and Java. Was there a couple of projects in college, but that was over 8 years ago.

Below are questions about setting up a test environment that I can use for research and testing.

1) What version of Linux should I install on my old PC?

2) Which web server should I install on my Linux machine, which can be used to host JavaServer pages and servlets?

3) What database should I install on a Linux machine? Since I am doing this for research, it would be nice to test using a DBMS that is commonly used in the real world.

Thank you, Chris.

+4
source share
7 answers

You can use Debian, Tomcat and MySQL.

  • Debian is a fairly common Linux distribution and will run on almost every PC.
  • Tomcat is a simple servlet container. This is the best choice if the only thing you want to do is servlets and JSPs.
  • MySQL is, well MySQL :)

If you are not using Linux, you can use Ubuntu, which is more user friendly but not recommended as a server (at least for the default version).


These applications / distributions are among the most commonly used and most active communities.


Resources:

+3
source
  • Whatever you want :-) At work, for example, our Linux servers run Red Hat Enterprise Linux , which is freely based on Fedora , so it can be a good distribution that may look like what you would experience in a "real" the world. "

  • Tomcat or JBoss Application Server will be good application servers to start with. Tomcat is just a servlet container, while JBoss supports more Java EE technologies. However, many organizations believe that a lightweight application server such as Tomcat is adequate.

  • MySQL and PostgreSQL are widely used open source database servers.

+2
source
  • I would install the latest version of Ubuntu. The most user friendly and should work on your old PC.
  • I would install Glassfish or JBoss. Glassfish ships with Oracle Java EE and is easiest to install. JBoss is more widely used in commercial environments. Better yet, install both and try on both!
  • MySQL is easy to install on Linux machines. In fact, it is usually installed by default with the distribution.

Good luck Linux is a great learning experience and a lot of fun!

+1
source

I am not a specialist in linux distributions, but as a web server apache tomcat would be the best choice, I think version 6. the database could be mysql, but for professional use with more functionality, postgresql would be the best choice.

0
source

1) As you want, but I offer you Red-Hat ( CentOs ) or Debian ( Ubuntu , for example). Using Yum / RPM and Aptitude / Synaptic will make it easier to install Java (even if it's not complicated in other distributions).

2) To serve JSP pages and execute servlets, I suggest you Tomcat . It is much easier to install / configure it than other web servers ( JBoss , Websphere , Weblogic , etc.), and you won’t need them for the first time (EJB, etc.). )

3) As a database, you can use MySQL (very easy to install) or PostgreSQL or Oracle Express Edition (not open source, but free ... And Oracle is often used for large projects). From a Java perspective, this will be very similar (access to the JDBC / Hibernate database β€œhides” the database specificity)

0
source
  • Slackware You will receive many different answers about which distribution to use, and much of this is personal preference. I always prefer Slackware to install the server and install all my software from the source. I think of Ubuntu and Redhat more as client / desktop installations. I do not like to rely on packages to update my servers.

  • Tomcat You do not need J2EE. Tomcat will do the job perfectly.

  • MySQL This is pretty standard and works well.

0
source

I think you are starting in the wrong place.

1. If you want to try linux, try linux. You do not need to install it - just download the "live CD". I believe the latest Ubuntu installer comes on the live CD.

2. If you want to try Java development, you do not need to configure the server, just install eclipse for java ee and create a dynamic web project. Then just start development . Try to find some tutorials, etc. Eclipse can even download tomcat development from inside ide.

3. For databases β€” why not just use the same database that you use with .net ? I am sure there will be a jdbc driver, and the code you write should not be different from any other database.

0
source

All Articles