RE: RE: Configuring Tomcat 4
I did as much as I could from these instructions. I didn't figure out service+ but it doesn't bother me to start tomcat first. However now when I try to use a jsp page it wants to download it instead of doing like html files. There should be a total idiots guide to tomcat. Why is it they made apache so easy to configure yet tomcat so hard? It's ridiculous! _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: RE: Configuring Tomcat 4
You need to deploy a web application properly :-) http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html Notes: 1. Create Directory in web-apps (eg test) create sub-folder WEB-INF with sub-folders inside lib and classes 2. Add the following entry to the TOMCAT_HOME/conf/server.xml file, setting the values for the path and docBase to the name of your web application. Notice again that the name we are using is onjava. Context path=/test docBase=test debug=0 reloadable=true / 2. Create web.xml and copy to WEB-INF Default setup: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/j2ee/dtds/web-app_2_3.dtd; web-app /web-app 3. try your jsp now :-) You'll probably need to look at the article too :-)) G. -Original Message- From: Larry Chambers [mailto:[EMAIL PROTECTED]] Sent: Thursday, 28 March 2002 2:44 p.m. To: [EMAIL PROTECTED] Subject: RE: RE: Configuring Tomcat 4 I did as much as I could from these instructions. I didn't figure out service+ but it doesn't bother me to start tomcat first. However now when I try to use a jsp page it wants to download it instead of doing like html files. There should be a total idiots guide to tomcat. Why is it they made apache so easy to configure yet tomcat so hard? It's ridiculous! _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: RE: Configuring Tomcat 4
Ignore Notice again that the name we are using is onjava. Lol :-) G. -Original Message- From: Lawrence, Gareth [mailto:[EMAIL PROTECTED]] Sent: Thursday, 28 March 2002 2:47 p.m. To: 'Tomcat Users List' Subject: RE: RE: Configuring Tomcat 4 You need to deploy a web application properly :-) http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html Notes: 1. Create Directory in web-apps (eg test) create sub-folder WEB-INF with sub-folders inside lib and classes 2. Add the following entry to the TOMCAT_HOME/conf/server.xml file, setting the values for the path and docBase to the name of your web application. Context path=/test docBase=test debug=0 reloadable=true / 2. Create web.xml and copy to WEB-INF Default setup: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/j2ee/dtds/web-app_2_3.dtd; web-app /web-app 3. try your jsp now :-) You'll probably need to look at the article too :-)) G. -Original Message- From: Larry Chambers [mailto:[EMAIL PROTECTED]] Sent: Thursday, 28 March 2002 2:44 p.m. To: [EMAIL PROTECTED] Subject: RE: RE: Configuring Tomcat 4 I did as much as I could from these instructions. I didn't figure out service+ but it doesn't bother me to start tomcat first. However now when I try to use a jsp page it wants to download it instead of doing like html files. There should be a total idiots guide to tomcat. Why is it they made apache so easy to configure yet tomcat so hard? It's ridiculous! _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Configuring Tomcat 4
Apache, MySQL, Tomcat, Netbeans and Mozilla --- Hope this helps Chris. - 1) Install Apache Install Apache_1.3.22-win32-x86.exe (Windows Installer of latest stable release) to c:\server\ (actually places it in Apache subdirectory of c:\server). During installation select the Run as Service for all Users option. Verify the installation in Control Panel / Services by checking for Apache. 2) Install MySQL Install mysql-max-3.23.49-win.zip by unzipping and running setup.exe Recommend installing to c:\server\mysql Create c:\winnt\my.ini with the following contents: [mysqld] basedir=C:/projects/mysql datadir=C:/projects/mysql/data When you are done add c:\server\mysql\bin to the path environment variable. You can get MySQL-Front from www.mysqlfront.de if you need a graphical front end for the database. Also available is MyODBC, which allows MySQL to be connected to by applications utilising ODBC. You can use the winmysqladmin utility to make mysql-max run as a service instead of mysql which supports transactions with berkeley db tables. 3) Install Java 2 Standard Edition 1.4 Run the J2SE installer, and choose to install to c:\Program Files\Java\J2SE. Install all components and set it as a plugin for all browsers Add the following to the PATH variable: c:\Progra~1\J2SE\bin. Install Tomcat 4.0.4 beta 1 LE Download Tomcat 4.0.4 beta 1 LE (for JDK 1.4) and run the installer. Take care to install Tomcat as a Service when offered the option by the installer. Set the following environment variables: JAVA_HOME - c:\Progra~1\Java\J2SE CATALINA_HOME - c:\Progra~1\Java\Tomcat 4) Integrate Tomcat and Apache Stop the Tomcat and Apache services. Then download mod_webapp from jakarta.apache.org. Extract libapr.dll to c:\winnt\system32. Also extract libapr.dll and mod_webapp.so to c:\server\apache\modules. Add the following lines to httpd.conf: LoadModule webapp_module modules/mod_webapp.so AddModule mod_webapp.c You need to configure a connector in httpd.conf (examples shown for the modules you can export initially - remove the comments to enable them): IfModule mod_webapp.c WebAppConnection warpConnection warp localhost:8008 WebAppInfo /webapp-info #WebAppDeploy examples warpConnection /examples #WebAppDeploy webdav warpConnection /webdav /IfModule Before restarting Apache download Service+ from ActivePlus and use it to set Apache as depending on Tomcat. Then restart Apache (Tomcat will restart automatically). 5) Install JDBC Driver for MySQL Download the MySQL JDBC driver. Open the file (mm.mysql-2.0.11-you-must-unjar-me.jar) in WinZip and extract mm.mysql-2.0.11-bin.jar and place it in c:\program files\java\j2se\jre\lib\ext. It will now be automatically available to Java programs, without needing to add it to the classpath. 6) Install Mozilla Plugin Copy the np* files from C:\Program Files\Java\J2SE\jre\bin to C:\Program Files\Mozilla\Plugins. Restart Mozilla 7) Install NetBeans Install NetBeans to c:\Program Files\Java\NetBeans. The installer will automatically detect the JDK. Netbeans can debug Tomcat, if you want to enable this first remove the existing Tomcat Service: net stop Apache Tomcat c:\progra~1\java\tomcat\bin\tomcat.exe -uninstall Apache Tomcat Next install the modified Tomcat service which is enabled for debugging: Tomcat.exe -install Apache Tomcat c:\progra~1\java\j2se\jre\bin\server\jvm.dll -Djava.class.path=c:\progra~1\j ava\tomcat\bin\bootstrap.jar;c:\progra~1\java\tomcat\bin\servlet.jar;C:\Prog ra~1\Java\J2SE\lib\tools.jar -Xint -Xdebug -Xnoagent -Xrunjdwp:transport=dt_ socket,server=y,address=12999,suspend=n -Dcatalina.home=c:\progra~1\java\tom cat\ -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out c:\progra~1\java\tomcat\logs\stdout.log -err c:\progra~1\java\tomcat\logs\stderr.log Make the service depend on MySQL as before Once Tomcat has been restarted go to Netbeans, and select the Debug / Attach menu. Seelect JPDA as the Debugger Type, Socket Attach, the hostname of the machine Tomcat is on, and 12999 as the port. It is now possible to debug the running Tomcat server. To assist debugging mount the Tomcat Sources in the Netbeans explorer: C:\Program Files\Java\J2SE\src C:\Program Files\Java\Tomcat\src\catalina\src\share C:\Program Files\Java\Tomcat\src\catalina\src\test C:\Program Files\Java\Tomcat\src\jasper\src\share -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Larry Chambers Sent: 26 March 2002 02:20 To: [EMAIL PROTECTED] Subject: Configuring Tomcat 4 I would like to configure Tomcat, but the xml files are not very easy to follow. All i'm trying to do right now is set up everything to make another directory ROOT, which is the one that I have apache pointing to right now. If it would be easier to just configure apache to send requests to tomcat then how can I do that? I've heard
RE: RE: Configuring Tomcat 4
4) Integrate Tomcat and Apache Add the following lines to httpd.conf: LoadModule webapp_module modules/mod_webapp.so AddModule mod_webapp.c You need to configure a connector in httpd.conf (examples shown for the modules you can export initially - remove the comments to enable them): So this below is the connector? I have no idea what it means. Do I not need to do anything to the server.xml or web.xml for tomcat? IfModule mod_webapp.c WebAppConnection warpConnection warp localhost:8008 WebAppInfo /webapp-info #WebAppDeploy examples warpConnection /examples #WebAppDeploy webdav warpConnection /webdav /IfModule Before restarting Apache download Service+ from ActivePlus and use it to set Apache as depending on Tomcat. Then restart Apache (Tomcat will restart automatically). I don't want tomcat as the main server. Also is it necessary to get the Service+? _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: RE: Configuring Tomcat 4
This question seems to get asked every few days. How could I get a HOWTO included in the Tomcat distribution?? -- Tomcat isn't the main server - however, for mod_web_app to work and integrate the two Tomcat must start /before/ Apache which is what the dependency means. Do you really need Service+? Not really, you can manually edit the registry. You can find a solution for this if you search in Google. You need to set up web.xml for all your applications. Then you need to put in a connector in the Apache configuration if you want it to forward requests for that application on port 80 to Tomcat. Without establishing the dependency you will have to do the restarting by hand - and Apache/Tomcat integration won't work out the box when you boot up the machine. So - you don't have to do this, but it makes things work /properly/. The best example of a *.war to get going with is perhaps bookstore.war which you can find in the Java Tutorial (http://java.sun.com/docs/books/tutorial/servlets/index.html). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Larry Chambers Sent: 26 March 2002 14:22 To: [EMAIL PROTECTED] Subject: RE: RE: Configuring Tomcat 4 4) Integrate Tomcat and Apache Add the following lines to httpd.conf: LoadModule webapp_module modules/mod_webapp.so AddModule mod_webapp.c You need to configure a connector in httpd.conf (examples shown for the modules you can export initially - remove the comments to enable them): So this below is the connector? I have no idea what it means. Do I not need to do anything to the server.xml or web.xml for tomcat? IfModule mod_webapp.c WebAppConnection warpConnection warp localhost:8008 WebAppInfo /webapp-info #WebAppDeploy examples warpConnection /examples #WebAppDeploy webdav warpConnection /webdav /IfModule Before restarting Apache download Service+ from ActivePlus and use it to set Apache as depending on Tomcat. Then restart Apache (Tomcat will restart automatically). I don't want tomcat as the main server. Also is it necessary to get the Service+? _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Configuring Tomcat 4/mod_webapp
What is the exact link to get mod_jk. I can't seem to find it- 4) Integrate Tomcat and Apache Stop the Tomcat and Apache services. Then download mod_webapp from jakarta.apache.org Thanks Sanjay --- Chris Pheby [EMAIL PROTECTED] wrote: Apache, MySQL, Tomcat, Netbeans and Mozilla --- Hope this helps Chris. - 1) Install Apache Install Apache_1.3.22-win32-x86.exe (Windows Installer of latest stable release) to c:\server\ (actually places it in Apache subdirectory of c:\server). During installation select the Run as Service for all Users option. Verify the installation in Control Panel / Services by checking for Apache. 2) Install MySQL Install mysql-max-3.23.49-win.zip by unzipping and running setup.exe Recommend installing to c:\server\mysql Create c:\winnt\my.ini with the following contents: [mysqld] basedir=C:/projects/mysql datadir=C:/projects/mysql/data When you are done add c:\server\mysql\bin to the path environment variable. You can get MySQL-Front from www.mysqlfront.de if you need a graphical front end for the database. Also available is MyODBC, which allows MySQL to be connected to by applications utilising ODBC. You can use the winmysqladmin utility to make mysql-max run as a service instead of mysql which supports transactions with berkeley db tables. 3) Install Java 2 Standard Edition 1.4 Run the J2SE installer, and choose to install to c:\Program Files\Java\J2SE. Install all components and set it as a plugin for all browsers Add the following to the PATH variable: c:\Progra~1\J2SE\bin. Install Tomcat 4.0.4 beta 1 LE Download Tomcat 4.0.4 beta 1 LE (for JDK 1.4) and run the installer. Take care to install Tomcat as a Service when offered the option by the installer. Set the following environment variables: JAVA_HOME - c:\Progra~1\Java\J2SE CATALINA_HOME - c:\Progra~1\Java\Tomcat 4) Integrate Tomcat and Apache Stop the Tomcat and Apache services. Then download mod_webapp from jakarta.apache.org. Extract libapr.dll to c:\winnt\system32. Also extract libapr.dll and mod_webapp.so to c:\server\apache\modules. Add the following lines to httpd.conf: LoadModule webapp_module modules/mod_webapp.so AddModule mod_webapp.c You need to configure a connector in httpd.conf (examples shown for the modules you can export initially - remove the comments to enable them): IfModule mod_webapp.c WebAppConnection warpConnection warp localhost:8008 WebAppInfo /webapp-info #WebAppDeploy examples warpConnection /examples #WebAppDeploy webdav warpConnection /webdav /IfModule Before restarting Apache download Service+ from ActivePlus and use it to set Apache as depending on Tomcat. Then restart Apache (Tomcat will restart automatically). 5) Install JDBC Driver for MySQL Download the MySQL JDBC driver. Open the file (mm.mysql-2.0.11-you-must-unjar-me.jar) in WinZip and extract mm.mysql-2.0.11-bin.jar and place it in c:\program files\java\j2se\jre\lib\ext. It will now be automatically available to Java programs, without needing to add it to the classpath. 6) Install Mozilla Plugin Copy the np* files from C:\Program Files\Java\J2SE\jre\bin to C:\Program Files\Mozilla\Plugins. Restart Mozilla 7) Install NetBeans Install NetBeans to c:\Program Files\Java\NetBeans. The installer will automatically detect the JDK. Netbeans can debug Tomcat, if you want to enable this first remove the existing Tomcat Service: net stop Apache Tomcat c:\progra~1\java\tomcat\bin\tomcat.exe -uninstall Apache Tomcat Next install the modified Tomcat service which is enabled for debugging: Tomcat.exe -install Apache Tomcat c:\progra~1\java\j2se\jre\bin\server\jvm.dll -Djava.class.path=c:\progra~1\j ava\tomcat\bin\bootstrap.jar;c:\progra~1\java\tomcat\bin\servlet.jar;C:\Prog ra~1\Java\J2SE\lib\tools.jar -Xint -Xdebug -Xnoagent -Xrunjdwp:transport=dt_ socket,server=y,address=12999,suspend=n -Dcatalina.home=c:\progra~1\java\tom cat\ -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out c:\progra~1\java\tomcat\logs\stdout.log -err c:\progra~1\java\tomcat\logs\stderr.log Make the service depend on MySQL as before Once Tomcat has been restarted go to Netbeans, and select the Debug / Attach menu. Seelect JPDA as the Debugger Type, Socket Attach, the hostname of the machine Tomcat is on, and 12999 as the port. It is now possible to debug the running Tomcat server. To assist debugging mount the Tomcat Sources in the Netbeans explorer: C:\Program Files\Java\J2SE\src C:\Program Files\Java\Tomcat\src\catalina\src\share C:\Program Files\Java\Tomcat\src\catalina\src\test C:\Program Files\Java\Tomcat\src\jasper\src\share -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Larry Chambers Sent: