tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M. Goodell" <freebsdu...@yahoo.com>
Subject Re: Connector Problems -
Date Tue, 08 Aug 2006 21:03:59 GMT
In looking at your config, I see that the word "type" is spelled "typw" Was this copied directly
from your actual config file?
   
  worker.worker1.typw=ajp13

Just wondering . . .
  
Mark Eggers <its_toasted@yahoo.com> wrote:
  I just finally moved over to mod_jk from mod_jk2. 
Since this is a development environment on
Windows/2000 Professional, I didn't have the pressure
to move.

Anyway, here's my environment:

Windows/2000 Professional
Apache 2.054 (will upgrade one of these days)
Tomcat 5.5.17
JDK 1.5.0_06-b05

Since I don't like spaces in my file names, everything
is installed under C:\Apache\Apache2 and
C:\Apache\Tomcat.

My workers file looks like the following (I specify a
lot of the defaults).

# only one worker
# a better name is called for
worker.list=worker1

#
# worker1 specs
#
worker.worker1.typw=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.socket_timeout=60

Loading mod_jk in my httpd.conf file:

#
# mod_jk
#
LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log

Now I create aliased for each of my web applications
and set up directory controls. I do that so I can
serve static files from Apache, and dynamic files from
Tomcat. I could also use JkAutoAlias.


Options Indexes MultiViews
AllowOverride None
Order deny,allow
Allow from 192.168.1
Allow from 127.0.0.1


This sets directory access, since the Tomcat webapps
directory is outside my document root.

An Alias and a JkMount finish up the configuration.

# all on one line
Alias /jsp-examples
"C:/Apache/Tomcat/webapps/jsp-examples"

# separate line
JkMount /jsp-examples/*.jsp worker1

Hope this helps.

/mde/
just my two cents . . . .


--- "M. Goodell" wrote:

> I am unable to get the tomcat connectors to work
> after spending hours 
> reading docs and scouring google in search of
> answers. 
> 
> I have seen the problem I am having posted all over
> the web but there 
> are no solutions to it that I have seen.
> 
> Here is the summary of the problem:
> 
> Component information:
> 
> - MS Windows XP
> - Tomcat-5.5.17
> - Apache 2.0.58
> - mod_jk-1.2.18
> 
> I define the workers.properties file as specified
> per the 
> documentation which resides in:
> "C:/Program Files/Apache
> Group/Apache2/conf/workers.properties"
> 
> worker.list = worker1
> worker.worker1.type = ajp13
> 
> (according to the docs "type" is the only mandatory
> element)
> 
> And the VirtualHost portion of httpd.conf looks like
> this:
> 
> 
> ServerAdmin webmaster@dummy-host.example.com
> DocumentRoot /www/sandbox
> ServerName dummy-host.example.com
> ErrorLog logs/172.27.224.236.error.log
> CustomLog logs/172.27.224.236.access.log common
> LoadModule jk_module "C:/Program Files/Apache 
> Group/Apache2/modules/mod_jk.so"
> JkWorkersFile "C:/Program Files/Apache
> Group/Apache2/conf/workers.properties"
> JkLogFile "C:/Program Files/Apache 
> Group/apache-tomcat-5.5.17/logs/mod_jk.log"
> JkLogLevel debug
> JkMount /axis ajp13
> JkMount /axis/* ajp13
> JkMount /servlets-examples ajp13
> JkMount /servlets-examples/* ajp13
> JkMount /jsp-examples ajp13
> JkMount /jsp-examples/* ajp13
> JkMount /MGGWebApp worker1
> JkMount /MGGWebApp/* worker1
> 
> 
> When I attempt to access
> http://172.27.224.236/MGGWebApp/ I get an 
> "Internal Server Error" page and the error info is
> dumped to the log. The regular ajp13 references work
> perfect.
> 
> Alas, Here is the log entry:
> 
> [Tue Aug 08 12:47:16 2006] [1988:0324] [debug]
> jk_uri_worker_map.c 
> (508): Attempting to map URI '/MGGWebApp/index.jsp'
> from 8 maps
> [Tue Aug 08 12:47:16 2006] [1988:0324] [debug]
> jk_uri_worker_map.c 
> (520): Attempting to map context URI
> '/servlets-examples/*'
> [Tue Aug 08 12:47:16 2006] [1988:0324] [debug]
> jk_uri_worker_map.c 
> (520): Attempting to map context URI
> '/jsp-examples/*'
> [Tue Aug 08 12:47:16 2006] [1988:0324] [debug]
> jk_uri_worker_map.c 
> (520): Attempting to map context URI '/MGGWebApp/*'
> [Tue Aug 08 12:47:16 2006] [1988:0324] [debug]
> jk_uri_worker_map.c 
> (534): Found a wildchar match worker1 ->
> /MGGWebApp/*
> [Tue Aug 08 12:47:16 2006] [1988:0324] [debug]
> mod_jk.c (1832): Into 
> handler jakarta-servlet worker=worker1 r->proxyreq=0
> [Tue Aug 08 12:47:16 2006] [1988:0324] [debug]
> jk_worker.c (111): did 
> not find a worker worker1
> [Tue Aug 08 12:47:16 2006] [1988:0324] [info] 
> mod_jk.c (1986): Could 
> not find a worker for worker name=worker1
> 
> It seems to me, from the log file information, that
> it simply cannot 
> find the workers.properties file. Also, it looks as
> though the mod_jk 
> is loading due to Apaches lack of complaining.
> 
> Any help / direction or chastisment on this would
> be welcomed.
> 
> Many thanks! 
> 
> M Goodell


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org



 		
---------------------------------
Stay in the know. Pulse on the new Yahoo.com.  Check it out. 
 		
---------------------------------
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message