RE: Paths for JkMount

2005-06-14 Thread Greg Scott
Thank you Luc - 

My JkMount directives are inside an an included file, which is itself inside a 
virtualhost directive in httpd.conf, almost at the bottom of section 3.  Why 
wouldn't this work?  The idea was, if we decide to host more than one of these 
on the same system, we can put the JkMount directives inside the appropriate 
virtualhost in http.conf.  Also note, I lifted this arrangement right out of 
a working Apache 1.3 and Tomcat 3.3 setup.  

Here are the relevant sections of httpd.conf and my include file.  I 
substituted the string, webname for the real name of the site when it goes 
live:


[EMAIL PROTECTED] conf]# tail httpd.conf -c 1090

# configuration.

#
# Use name-based virtual hosting.
#
#NameVirtualHost *:80

NameVirtualHost webname.greg.local:80

#
# NOTE: NameVirtualHost cannot be used without a port specifier 
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

VirtualHost webname.greg.local
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /var/www/html/webname/
###  ServerName www.webnamekids.org
 ServerName webname.greg.local
###  ServerAlias development.webnamekids.org staging.webnamekids.org
 include /etc/httpd/conf/webname.conf
/VirtualHost




#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#VirtualHost *:80
#ServerAdmin [EMAIL PROTECTED]
#DocumentRoot /www/docs/dummy-host.example.com
#ServerName dummy-host.example.com
#ErrorLog logs/dummy-host.example.com-error_log
#CustomLog logs/dummy-host.example.com-access_log common
#/VirtualHost
[EMAIL PROTECTED] conf]# 

And here is the include file:

[EMAIL PROTECTED] conf]# more webname.conf
#
# www.webnamekids.com 
#
###SetEnvIf Remote_Addr 10\.10\.10\.78 BADIP

LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ combine
d

CustomLog | /usr/sbin/rotatelogs /var/log/webname_access_log 259200 combin
ed env=!BADIP

###DocumentRoot /usr/local/websites/webname/
# Already setup in httpd.conf

##JkMount /servlets/* ajp13
##JkMount /*.jsp ajp13
##JkMount /*.do ajp13

##JkMount /servlets/* worker1
##JkMount /*.jsp worker1
##JkMount /*.do worker1

JkMount /var/www/html/webname/servlets/* worker1
JkMount /var/www/html/webname/*.jsp worker1
JkMount /var/www/html/webname/*.do worker1

#UserDir disabled

AddHandler server-parsed .html .shtml. htm

ErrorDocument 404 /notfound.html

#Directory /
#Options None
#AllowOverride None
#/Directory

# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.

Directory /var/www/html/webname/
Options Indexes FollowSymLinks Includes
AllowOverride All
DirectoryIndex index.html index.shtml index.jsp
/Directory


# There have been reports of people trying to abuse an old bug from pre-1.1
# days.  This bug involved a CGI script distributed as a part of Apache.
# By uncommenting these lines you can redirect these attacks to a logging 
# script on phf.apache.org.  Or, you can record them yourself, using the script
# support/phf_abuse_log.cgi.

Location /cgi-bin/phf*
deny from all
ErrorDocument 403 http://phf.apache.org/phf_abuse_log.cgi
/Location

# You may place any other directories or locations you wish to have
# access information for after this one.

###
[EMAIL PROTECTED] conf]# 


Thanks

- Greg Scott
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 13, 2005 7:40 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: Paths for JkMount

Hi,

I used relative path to mount files to Tomcat with the JkMount directive so I 
don't think your problem comes from that.

First. Be sure that :

 - Aliasses have been created in httpd.conf
 - Your JkMount directives are placed between section 2 
   And 3 of httpd.conf
 - Your JkMount directives are placed AFTER the Alias
   Directives

If that doesn't work, let us know.


Luc Boudreau
Université du Québec
Canada



-Message d'origine-
De : Greg Scott [mailto:[EMAIL PROTECTED]
Envoyé : 11 juin 2005 23:41
À : tomcat-user@jakarta.apache.org
Cc : [EMAIL PROTECTED]; Joan Kinnischtzke; Michael R Ponicki Objet : Paths for 
JkMount

Hello -

I am working on a proof of concept application, porting from tomcat 3.n and 
Apache 1.3 to Tomcat 5.5.9 and Apache 2.0.52. The problem - every time this app 
would try to execute a .jsp file, Apache would return an error.  After a bunch 
of troubleshooting in httpd.conf, I found the problem.  It was these JkMount 
directives:
 
JkMount /servlets/* worker1
JkMount /*.jsp worker1
JkMount /*.do worker1

I was assuming these paths were all really relative to my DocumentRoot - but 
noo!  The path evidently needs to be a real, absolute path

RE: Where are the UNIX-type scripts?

2005-06-12 Thread Greg Scott
Here are the savesets I used and I have all the scripts:

jakarta-tomcat-5.5.9.tar.gz
jakarta-tomcat-5.5.9-compat.tar.gz

These files I grabbed were a binary distribution - already compiled and
built.  I'll bet the difference is, you built yours from source.  Here
are the files I have.  I set this up on a Linux FC3 host:

[EMAIL PROTECTED] bin]# cd $CATALINA_HOME/bin
[EMAIL PROTECTED] bin]# ls -la
total 1072
drwxr-xr-x   3 root root   4096 May 17 17:56 .
drwxr-xr-x  11 root root   4096 May 17 17:56 ..
-rw-r--r--   1 root root  22547 Mar 26 13:22 bootstrap.jar
-rw-r--r--   1 root root   7684 Mar 26 13:22 catalina.bat
-rwxr-xr-x   1 root root  10921 Mar 26 13:22 catalina.sh
-rw-r--r--   1 root root   9386 Mar 26 13:22 commons-daemon.jar
-rw-r--r--   1 root root  26202 Mar 26 13:22 commons-logging-api.jar
-rw-r--r--   1 root root511 Mar 26 13:22 cpappend.bat
-rw-r--r--   1 root root   1284 Mar 26 13:22 digest.bat
-rwxr-xr-x   1 root root848 Mar 26 13:22 digest.sh
-rw-r--r--   1 root root 408051 Mar 26 13:22 jmx.jar
-rwxr-xr-x   1 root root  76244 May 17 17:33 jsvc
drwxr-xr-x   5 root root   4096 May 17 17:33 jsvc-src
-rw-r--r--   1 root root  73008 Mar 26 13:22 jsvc.tar.gz
-rw-r--r--   1 root root   3956 Mar 26 13:22 service.bat
-rw-r--r--   1 root root   2013 Mar 26 13:22 setclasspath.bat
-rwxr-xr-x   1 root root   2788 Mar 26 13:22 setclasspath.sh
-rw-r--r--   1 root root   1273 Mar 26 13:22 shutdown.bat
-rwxr-xr-x   1 root root787 Mar 26 13:22 shutdown.sh
-rw-r--r--   1 root root   1274 Mar 26 13:22 startup.bat
-rwxr-xr-x   1 root root   1141 Mar 26 13:22 startup.sh
-rw-r--r--   1 root root 102400 Mar 26 13:23 tomcat5.exe
-rw-r--r--   1 root root 131072 Mar 26 13:23 tomcat5w.exe
-rw-r--r--   1 root root  12104 Mar 26 13:22 tomcat-juli.jar
-rw-r--r--   1 root root   2235 Mar 26 13:22 tool-wrapper.bat
-rwxr-xr-x   1 root root   2549 Mar 26 13:22 tool-wrapper.sh
-rw-r--r--   1 root root   1280 Mar 26 13:22 version.bat
-rw-r--r--   1 root root790 Mar 26 13:22 version.sh
[EMAIL PROTECTED] bin]# 

- Greg Scott
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Saturday, June 11, 2005 4:23 PM
To: Tomcat Users List
Subject: Where are the UNIX-type scripts?

 I recently downloaded the latest jakarta-tomcat-5.5.9.tar.gz
installation files and set them up, but I can not find the startup.sh,
catalina.sh, ... file.

 This is all I see:

[EMAIL PROTECTED] bin]$ ls -l
total 500
-rw-r--r--  1 tcbox00 tcbox00  22547 Jun 11 09:10 bootstrap.jar
-rw-r--r--  1 tcbox00 tcbox00   7684 Jun 11 09:10 catalina.bat
-rw-r--r--  1 tcbox00 tcbox00   9386 Jun 11 09:10 commons-daemon.jar
-rw-r--r--  1 tcbox00 tcbox00  26202 Jun 11 09:10
commons-logging-api.jar
-rw-r--r--  1 tcbox00 tcbox00511 Jun 11 09:10 cpappend.bat
-rw-r--r--  1 tcbox00 tcbox00   1284 Jun 11 09:10 digest.bat
-rw-r--r--  1 tcbox00 tcbox00  73008 Jun 11 09:10 jsvc.tar.gz
-rw-r--r--  1 tcbox00 tcbox00   3956 Jun 11 09:10 service.bat
-rw-r--r--  1 tcbox00 tcbox00   2013 Jun 11 09:10 setclasspath.bat
-rw-r--r--  1 tcbox00 tcbox00   1273 Jun 11 09:10 shutdown.bat
-rw-r--r--  1 tcbox00 tcbox00   1274 Jun 11 09:10 startup.bat
-rw-r--r--  1 tcbox00 tcbox00 102400 Jun 11 09:10 tomcat5.exe
-rw-r--r--  1 tcbox00 tcbox00 131072 Jun 11 09:10 tomcat5w.exe
-rw-r--r--  1 tcbox00 tcbox00  12104 Jun 11 09:10 tomcat-juli.jar
-rw-r--r--  1 tcbox00 tcbox00   2235 Jun 11 09:10 tool-wrapper.bat
-rw-r--r--  1 tcbox00 tcbox00   1280 Jun 11 09:10 version.bat
-rwxr-xr-x  1 tcbox00 tcbox00790 Jun 11 09:10 version.sh

 So, where are the UNIX-type scripts?

 Thanks
 Albretch

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Where are the UNIX-type scripts?

2005-06-12 Thread Greg Scott
Let's try this again.  I don't know why the list bounced my reply...

- Greg Scott 



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Sunday, June 12, 2005 3:35 AM
To: Greg Scott
Subject: failure delivery

Unable to deliver message to the following address(es) Tomcat Users
List tomcat-user@jakarta.apache.org.

Remote host said: 554 delivery error: This user doesn't have an account

--- Original message follows.
Here are the savesets I used and I have all the scripts:

jakarta-tomcat-5.5.9.tar.gz
jakarta-tomcat-5.5.9-compat.tar.gz

These files I grabbed were a binary distribution - already compiled and
built.  I'll bet the difference is, you built yours from source.  Here
are the files I have.  I set this up on a Linux FC3 host:

[EMAIL PROTECTED] bin]# cd $CATALINA_HOME/bin [EMAIL PROTECTED] bin]# ls -la
total 1072
drwxr-xr-x   3 root root   4096 May 17 17:56 .
drwxr-xr-x  11 root root   4096 May 17 17:56 ..
-rw-r--r--   1 root root  22547 Mar 26 13:22 bootstrap.jar
-rw-r--r--   1 root root   7684 Mar 26 13:22 catalina.bat
-rwxr-xr-x   1 root root  10921 Mar 26 13:22 catalina.sh
-rw-r--r--   1 root root   9386 Mar 26 13:22 commons-daemon.jar
-rw-r--r--   1 root root  26202 Mar 26 13:22 commons-logging-api.jar
-rw-r--r--   1 root root511 Mar 26 13:22 cpappend.bat
-rw-r--r--   1 root root   1284 Mar 26 13:22 digest.bat
-rwxr-xr-x   1 root root848 Mar 26 13:22 digest.sh
-rw-r--r--   1 root root 408051 Mar 26 13:22 jmx.jar
-rwxr-xr-x   1 root root  76244 May 17 17:33 jsvc
drwxr-xr-x   5 root root   4096 May 17 17:33 jsvc-src
-rw-r--r--   1 root root  73008 Mar 26 13:22 jsvc.tar.gz
-rw-r--r--   1 root root   3956 Mar 26 13:22 service.bat
-rw-r--r--   1 root root   2013 Mar 26 13:22 setclasspath.bat
-rwxr-xr-x   1 root root   2788 Mar 26 13:22 setclasspath.sh
-rw-r--r--   1 root root   1273 Mar 26 13:22 shutdown.bat
-rwxr-xr-x   1 root root787 Mar 26 13:22 shutdown.sh
-rw-r--r--   1 root root   1274 Mar 26 13:22 startup.bat
-rwxr-xr-x   1 root root   1141 Mar 26 13:22 startup.sh
-rw-r--r--   1 root root 102400 Mar 26 13:23 tomcat5.exe
-rw-r--r--   1 root root 131072 Mar 26 13:23 tomcat5w.exe
-rw-r--r--   1 root root  12104 Mar 26 13:22 tomcat-juli.jar
-rw-r--r--   1 root root   2235 Mar 26 13:22 tool-wrapper.bat
-rwxr-xr-x   1 root root   2549 Mar 26 13:22 tool-wrapper.sh
-rw-r--r--   1 root root   1280 Mar 26 13:22 version.bat
-rw-r--r--   1 root root790 Mar 26 13:22 version.sh
[EMAIL PROTECTED] bin]# 

- Greg Scott
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 11, 2005 4:23 PM
To: Tomcat Users List
Subject: Where are the UNIX-type scripts?

I recently downloaded the latest jakarta-tomcat-5.5.9.tar.gz 
installation files and set them up, but I can not find the 
startup.sh, catalina.sh, ... file.

 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Where are the UNIX-type scripts?

2005-06-12 Thread Greg Scott
But the dates on your files are June 11 and the dates on mine are March
26.  I don't have the exact URL where I downloaded mine, just navigated
there from the Jakarta home page.

- Greg


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Sunday, June 12, 2005 1:39 PM
To: Tomcat Users List
Subject: RE: Where are the UNIX-type scripts?

 FYI. I didn't build mine from source

 Thanks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Paths for JkMount

2005-06-11 Thread Greg Scott
Hello -

I am working on a proof of concept application, porting from tomcat 3.n
and Apache 1.3 to Tomcat 5.5.9 and Apache 2.0.52. The problem - every
time this app would try to execute a .jsp file, Apache would return an
error.  After a bunch of troubleshooting in httpd.conf, I found the
problem.  It was these JkMount directives:
 
JkMount /servlets/* worker1
JkMount /*.jsp worker1
JkMount /*.do worker1

I was assuming these paths were all really relative to my DocumentRoot -
but noo!  The path evidently needs to be a real, absolute path.

These directives work:

JkMount /var/www/html/{approot}/servlets/* worker1
JkMount /var/www/html/{approot}/*.jsp worker1
JkMount /var/www/html/{approot}/*.do worker1

(where {approot} is the directory with all the html, jsp, and other
files.)

And now the app seems to behave properly.  

But this bothers me - aren't all these supposed to be relative to
DocumentRoot?  Am I missing something or are JkMount directives supposed
to point to an absolute path?

Thanks

- Greg Scott
  [EMAIL PROTECTED]