Tomcat6 references March 15, 2008
Posted by lemonpress in 1.add a comment
A Tutorial on Installing and Using Jakarta Tomcat 6 for Servlet and JSP Development
Using Apache HTTP with Apache Tomcat
Pro Apache Tomcat 6 , apress on-line in google books
http://books.google.co.uk/books?id=bgMKmsXVbTAC&pg=PA109&lpg=PA109&dq=administration+tool+for+tomcat+6+&source=web&ots=toCJPBjrXZ&sig=VDyJ5fNVhX1ON8n5IV9wBPO_wiU&hl=en#PPA109,M1
MySQL settings March 15, 2008
Posted by lemonpress in dev environment installation.add a comment
mysql -u root -p
admin
Port: 3306
Data: C:\Data
Useful reference blog on how to make JSF, Tomcat and Eclipse work together March 3, 2008
Posted by lemonpress in 1, dev environment installation.add a comment
http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html
I wish I came across it earlier!
Tomcat6 installation March 2, 2008
Posted by lemonpress in dev environment installation.add a comment
Prerequisits
- Make sure you uninstall Tomcat if you have one installed already, otherwise Tomcat’s Windows Service Installer will fail with bizarre message about permissions
- Make sure you have JRE 5 and Java EnvVars all set in System>Advalced>Environment Variables (JAVA-HOME, Path in System EnvVars, optionally Path in User’s Vars and CLASSPATH)
- Just in case set a new EnvVar CATALINA-HOME=c:Tomcat6. This is my home dir for Tomcat, although WSI claims it will register CATALINA-HOME env-var automatically, last time it didn’t.
- you can optionally read Setup notes herehttp://tomcat.apache.org/tomcat-6.0-doc/, although the install with WSI should be trivial, if nothing goes wrong.
- You may want to restart PC, although it may be an overkill these days.
- Choosing Port for Tomcat is a bit of a guesswork: you can start all web services before doing Tomcat installation and run SysInternalsSuit tool tcpview.exe. On my PC I mistakenly uninstalled .NET framework and never got around to installing it back. So tcpview gives me frighteningly sounding windows error message, but never mind, it still runs and scans the ports. Make a list of all taken TCP ports. Optionally you can check which processes are running on these ports using procexp.exe from the same SysInternalsSuit. Make a list of ports and process IDs of interest in tcpview then go to procexp and check the names and descriptions against process numbers. Finally you can figure out which ports you can take, obviously the port num should be > 1024. Anything in 80XX range will be fine. Often servers require additional ports, some of which may be temporary and some grab free ports and make them permanent. To be dead sure that your chosen port and any additional ports the Tomcat may decide to grab will be available, start all your servers, i.e. JBoss, MySQL and so on. And then do the installation of Tomcat. If there is a conflict it will be discovered immediatelly, and it will also avoid potential future conflicts of ports.
Installation
-
Download Windows Service Installer for Tomcat6 from here: http://tomcat.apache.org/download-60.cgi and save in C:Downloads
- you can also download zip‘ed Tomcat, but only for reference. Do not try to run bin/startup.bat or bin/tomcat6.exe in it. Firstly, because it is restricted to port 8080, and in my case, port 8080 is already taken by JBoss.
- Turn off Firewall – it is not essential, but it prevents Windows complaining about security when WSI tries to grab the port.
- Run WSI and choose your config settings. Mine are
Home Dir: C:Tomcat6
Port: 8086
Check box: Run as Windows Service
( I will change it to manual startup later, but for now this setting will give you an immediate feedback if installation succeeded)
login: admin adminTest it
Start Browser and type: http://localhost:8086
If you have any .war files try to deploy and access them.
Finish Off
Go to firewall settings and add port 8086 to exceptions, select scope: local network
Turn on Firewall
Go to Control Panel > Administrative Tools > Services and change Apache Tomcat6 service to Start “manual”.
This is it.
Java from hell! March 2, 2008
Posted by lemonpress in dev environment installation.add a comment
Well, the JSF deployment has corrupted Tomcat5.5.
So, I decided to to upgrade Tomcat to v6, rather then fixing v5.5, which would require a complete re-installation anyway.
Installing Tomcat5.5 with Wndows Installer was a piece of cake last time. I wanted to keep 5.5 and fix it later and install 6.0 on a different port. The excercise which was expected to be trivial, turned into a 2 hour going around in circles, untill I discovered the solution here:
http://www.mail-archive.com/dev@tomcat.apache.org/msg15640.html
%JBOSS_HOME%binrun -c default March 2, 2008
Posted by lemonpress in dev environment installation.add a comment
will start JBoss from command line
To stop press CTRL+C and watch cmd for 5 minutes!
JSF is a complete disaster March 2, 2008
Posted by lemonpress in 1.add a comment
Deploying JSF project on Tomcat ended in complete disaster.
I am uber-annoyed!
Cannot compile JSF project March 2, 2008
Posted by lemonpress in 1.add a comment
Error in enclosing element of faces-config.xml:
cvc-elt.1: Cannot find the declaration of element ‘faces-config’
Fond the answer here: