Installing Apache and Tomcat and Mysql on Windows 7
Installing Apache and Tomcat and Mysql on Windows 7 - Setting Up Tomcat Manager PDF Print E-mail
Written by Administrator   
Sunday, 05 December 2010 15:26
Article Index
Installing Apache and Tomcat and Mysql on Windows 7
Installing Apache on WIndows
Tomcat Windows Install
Install mod_jk on Windows
Setting Up Tomcat Manager
Deploying a GWT app on your Tomcat Server
Installing Mysql on Window 7
Installing JDBC
JDBCHello JDBC Test Project for Eclipse
All Pages

Setting up Tomcat Manager so it Actually Works

 Tomcat  Manager is a great program- it will automatically deploy your GWT apps with ease and no hassle.   You can start/stop and undeploy your apps easily too!  It is well worth the effort to make them work.
 
Now I just have to set up those pesky config files.
So I went to my tomcat/conf folder and edited tomcat-users.xml
Near the end, but before the </tomcat-users> line I added:

LoadModule jk_module modules/mod_jk.so

<role rolename=”manager”/>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<user username="tomcatuser" password="mygirlfriendsname" roles="manager,manager-gui,manager-script"/>
 
I am not sure if I restarted Tomcat using the control panel/services panel at this point, or not.   No harm in doing so though.
 
After this, I can actually use Tomcat Manager!
 
I did the following, although I'm not sure I had to do it. It didn't seem to hurt anything.
 
To get java programs running on the server with Tomcat to talk to mysql, apparently there need to be some permissions given.   I’m adding the following to my
/usr/local/tomcat/conf/catalina.policy

file.


// 2010_dec_1 kds - adding permissions to mysql and web apps
grant codeBase "file:$(catalina.home)/webapps/-" {
   permission java.net.SocketPermission "192.168.1.11:3306", "connect";
};

grant codeBase "file:$(catalina.home)/webapps/-" {
   permission java.security.AllPermission;
};
 
Last Updated on Sunday, 05 December 2010 18:27
 

Sponsored Links

Bold Inventions, Powered by Joomla!; Joomla templates by SG web hosting