Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Tomcat 5 for Apache 2

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  ExpiresDefault and image caching  
Author Message
stephan144

External


Since: Mar 04, 2004
Posts: 3



(Msg. 1) Posted: Fri Mar 05, 2004 12:42 am
Post subject: Tomcat 5 for Apache 2
Archived from groups: alt>apache>configuration (more info?)

Hi NG,

I'm quite new to server related topics. Now I'm trying to build a
server for educational purposes that can run java-servlets. So I picked
Tomcat 5 and the JK2-connector but cannot find the right configuration
to bind them (Tomcat & Apache 2) together. I read many of the HOWTOs on
apache.org and the rest of the web, but none of them works and most of
them refer to elements of the server.xml, that don't exist in mine. I.e.
to let Tomcat auto-create the configuration-file for apache. I didn't
find how to do that in newer tomcat-documentations and the hint I found
in the Tomcat 3 -docs told me to look out for some elements in the
server.xml, that don't exist in my file. Does anyone know where I can
find a HOWTO that actually works for Tomcat 5? (on the apache.org
entry-level site for tomcat5-documentation there is under Reference a
link to JK Documentation, that doesn't work (it brings up the
download-page). On the left side (the navigation) there is the same
link. It works, but brings up the jk-chapter in the 4.1-documentation)

My OS is a win xp pro and in about two weeks I'll get my older pc back,
where I'm going to install red hat 8 and apache/tomcat/php/mysql/cocoon
- just to know how to do it in both os-worlds. But honestly - I wonder
if I'll ever make it on one of them. /-)

best regards,
Stephan Herzog

 >> Stay informed about: Tomcat 5 for Apache 2 
Back to top
Login to vote
stephan144

External


Since: Mar 04, 2004
Posts: 3



(Msg. 2) Posted: Fri Mar 05, 2004 2:29 am
Post subject: Re: Tomcat 5 for Apache 2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ok, here is an exact description what doesn't work:

First I changed from the mod_jk2 to the mod_jk1, because when using JK2
and I test the http.conf syntax I get an error message, that
JkWorkersFile is perhaps mis-spelled or not defined by the module. When
using Jk1 the http.conf syntax is ok.

-------------------
Here's my http.conf
-------------------

## Attempting to integrate Tomcat
# load module
LoadModule jk_module modules/mod_jk1.dll

# JkWorkers-Datei
JkWorkersFile c:/Tomcat5/conf/workers.properties
JkLogFile c:/Tomcat5/mod_jk.log
JkLogLevel error
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
Alias /examples "c:/Tomcat5/webapps/jsp-examples"
<Directory "c:/Tomcat5/webapps/jsp-examples">
Options Indexes FollowSymLinks
</Directory>

JkMount /examples/servlet/* ajp13
JkMount /examples/*.jsp ajp13

--------------------------------------------
My workers.properties-file reads as follows:
--------------------------------------------

workers.tomcat_home=c:\Tomcat5
workers.java_home=c:\jdk
ps=\
worker.list=ajp13

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers = ajp13

--------------------------------------------

Ok, so when I type in http://localhost/examples/ I come up with the
right directory (is that what you call a virtual directory?) - but of
course the *.jsp-files don't work. When I try one I get a

------------------
Tomcat-Error Page.
------------------

Http Status 404 - /examples/jsp2/el/basic-arithmetic.jsp
type: Status report
message /examples/jsp2/el/basic-arithmetic.jsp
description: The requested resource (/examples/jsp2....) is not available

So, I guess I have to change Tomcat's server.xml into something. Can
anyone tell me what it is and where exactly in that file I need to put
it to?

many thanks in advantage and sorry for that long message,
Stephan

 >> Stay informed about: Tomcat 5 for Apache 2 
Back to top
Login to vote
stephan144

External


Since: Mar 04, 2004
Posts: 3



(Msg. 3) Posted: Fri Mar 05, 2004 11:30 pm
Post subject: Re: Tomcat 5 for Apache 2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi again,

I'm going to post the same message on
http://www.jguru.com/-Tomcat-forum. Just wanted to state that so that I
wouldn't violate any usenet-cross-posting-rules. The reason I asked this
question on an apache-NG was, that I haven't found newsgroups about
tomcat. I searched the web for a alt.apache.configuration-FAQ but
couldn't find one. Please inform me, if I violated any NG-rules and
therefore got no answer(s).

best regards,
Stephan
 >> Stay informed about: Tomcat 5 for Apache 2 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
tomcat and apache - i've just set up tomcat and apache on my mandrake linux box. i'm wondering how i get apache and tomcat to work together so that when someone comes to a html page it is handled by apache, then when it encounters a jsp page, tomcat handles that. where..

SSI + Apache + Tomcat - Hi All, Background: Here we have an Apache 2 server sitting in front of Tomcat 4, communicating via mod_jk2. Problem: We have a standard header and footer that we want applied to every out going page, both static apache files and JSP\servlet. Is...

Apache+PHP+Tomcat - Hi, I need to set up to web applications on ONE host. One application is written in PHP and the second in JSP. I thought that setting different virtual host names for those apps will be enough. Some how I have failed to do it properly. Either one or..

Tomcat 4 and Apache - Hello all. I worked with Apache and Tomcat 3 for a while but never got around to Tomcat 4. My question is how do Apache and Tomcat 4 work together? Is Tomcat 4 a web and app server in one, or maybe Apache has to be configured to send requests to..

Apache and Tomcat on Linux - hi i have setup an apache 2.0.4x and Tomcat 4.1.30 and the mod_jk connector 1.2.5 both work well when being used independent of each other. when i try to access a jsp file via apche over port 80 i always get an 500 internal server error. what do i....
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]