Meaningless Drivel is fun!
The moose likes Tomcat and the fly likes Setting up Tomcat & MySQL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Setting up Tomcat & MySQL" Watch "Setting up Tomcat & MySQL" New topic

Setting up Tomcat & MySQL

Sanjeet Khan

Joined: Aug 29, 2012
Posts: 4
Hello everyone,

I'm new to this forum, but I figured it would be a good place to start to find some information on a personal project, information that I haven't been able to find as of yet anywhere else.

I'm beginning development of a web application using JSP, and I have been trying to set up the environment as I understand it needs to be set up, so here's the background. I want to host my pages on a Tomcat 7 server, along with java web services, along with a MySQL database.

My initial thought was to load XAMPP with Tomcat 7 on my machine for testing purposes, especially since it comes with a MySQL database. btw, I'm running on a Windows 7 machine.

I was able to install XAMPP and the Tomcat add on, but when I tried to start the Tomcat service, it was just stuck in the start phase. Upon checking the catalina log, it seems that it is unable to start/find a jvm.dll.

Now, I have a 64 bit JDK/JRE running version 6, and the solutions for this don't work. I'm thinking about ONLY getting the Tomcat 7 server, not the XAMPP, and just a MySQL download.

The question is whether having ONLY Tomcat 7 and MySQL instance be sufficient for me to mimic the environment for my application/services before deployment to a Tomcat host? And second, are there any issues with Tomcat 7 installation on a Windows 7 machine, and what are the REAL fixes?

Imran Khan
Rob Spoor

Joined: Oct 27, 2005
Posts: 20269

You don't need XAMPP. The AMPP part stands for Apache (HTTPD server), MySQL, PHP and Perl. Out of those four you only need MySQL. Just download and install the Tomcat and MySQL installers for Windows. Those will take care of the rest. And yes, that will definitely be enough, unless you also need to test an Apache HTTP server in front of your Tomcat.

How To Ask Questions How To Answer Questions
Sanjeet Khan

Joined: Aug 29, 2012
Posts: 4
Ok, that's what I figured, I just wanted to make sure. I asked a few of my colleagues about Tomcat 7 installation problems, mainly around the difficulty creating a jvm because it can't find the .dll file. Since I'm running a 64 bit machine with a 64 bit JDK/JRE, it shouldn't be a problem. I'll try just the Tomcat 7 installation without XAMPP and hopefully it should work.

I'll post back if anything odd happens.

Thanks for now!
I agree. Here's the link:
subject: Setting up Tomcat & MySQL
It's not a secret anymore!