Invalid command 'JkMount'?!? Help!!

2002-07-25 Thread mpauley

Hi All,

I'm trying to integrate Apache (1.3.23) with Tomcat (4.0.3) on Linux
(RedHat 7.3) using mod_jk.  I'm getting the following error when I try to
restart Apache (or use apachectl configtest):

Syntax error on line 1260 of /etc/httpd/conf/httpd.conf:
Invalid  command  'JkMount', perhaps mis-spelled or defined by a module not
included in the server configuration

Line 1260 of httpd.conf is the fifth line of the following:

VirtualHost 137.48.138.201
ServerName bioinformatics.ist.unomaha.edu
ServerAlias bioinformatics.unomaha.edu
DocumentRoot /bioinformatics/webapps
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
DirectoryIndex index.jsp index.html
/VirtualHost

I  have  no  idea how to fix this as JkMount is indeed spelled correctly.
Is  it  possible that the mod_jk.so that I am using is corrupt or the wrong
version? I'musing   mod_jk-3.3-ap13-eapi.so   that   I   found   at
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/linux/i386/.

BTW,Ihavefollowedtheconfigurationinstructionsat
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html and
http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml  on  how  to do
this.   From  what  I  can  tell,  tomcat  is  running  correctly  with the
modifications I have made (no errors on restart).

Any help would be appreciated!

Mark


Mark A. Pauley
College of Information Science  Technology, UNO
Omaha, NE 68182-0116
e-mail:  [EMAIL PROTECTED]
phone:  (402) 554-4954  fax:  (402) 554-3284





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




mod_jk problem == Invalid command 'JkMount'?

2002-07-23 Thread mpauley

Hi,

I'm  trying  to get Tomcat 4 running with Apache 1.3 on Linux (RedHat 7.3).
I  have  followed the configuration instructions at
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html and
http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml  on  how  to do
this.   From  what  I  can  tell,  tomcat  is  running  correctly  with the
modifications  I  have made (no errors on restart).  However, when I try to
restart  Apache  (or  use  apachectl configtest), I get the following error
message:

Syntax error on line 1260 of /etc/httpd/conf/httpd.conf:
Invalid  command  'JkMount', perhaps mis-spelled or defined by a module not
included in the server configuration

Line 1260 of httpd.conf is the fifth line of the following:

VirtualHost 137.48.138.201
ServerName bioinformatics.ist.unomaha.edu
ServerAlias bioinformatics.unomaha.edu
DocumentRoot /bioinformatics/webapps
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
DirectoryIndex index.jsp index.html
/VirtualHost

I  have  no  idea how to fix this as JkMount is indeed spelled correctly.
Any help in resolving this would be greatly appreciated.

Another question, if you have time.
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html   indicates
that  you  need  to  load  the  mod_jk  module  in http.conf using both the
LoadModule and AddModule directives; e.g.,
LoadModule jk_module libexec/mod_jk.so
AddModule mod_jk.c

When  I  try  to  restart  Apache,  this  gives me a warning (someone about
mod_jk.c  already being loaded) which goes away when I remove the AddModule
line.  Is just having LoadModule sufficient?

Mark


Mark A. Pauley
College of Information Science  Technology, UNO
Omaha, NE 68182-0116
e-mail:  [EMAIL PROTECTED]
phone:  (402) 554-4954  fax:  (402) 554-3284




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




re: Apache 1.3.20 with Tomcat 4.0.4

2002-07-22 Thread mpauley

 Situation:
 Red Hat Linux 7.2 with Apache 1.3.20 installed out of box.

 I installed Tomcat 4.0.4

 I want to install mod_jk so that I can have Apache handle SSL/static
content,
 and have Tomcat handle JSP/servlets.

 I downloaded the source code for mod_jk from:

 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/src/

 Problem: there are no instructions on how to build anything.
 I'm assuming I need to build a mod_jk.so file and or JAR file.
 Is there anything that provides step-by-step instructions on how
 to compile this stuff and install it and configure Tomcat/Apache?

 Pointers to the RTFM appreciated! I'm having a hard time tracking
 down definitive documentation on this.
 Thanks,
 Chris

Chris,

I'm  in a similar situation (RedHat Linux 7.3, Apache 1.3.23, Tomcat 4.0.1)
and  am  having  a  hard time tracking down definitive information, too.  I
just  purchased  Apache Jakarta-Tomcat by James Goodwill; hopefully it will
help (it's on its way from Amazon.com).

From  what  I  have  read, the version of mod_jk that came with tomcat v3.3
works  with  tomcat  v4.   Binaries for several different flavors of mod_jk
existat
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/linux/i386/.

 Since you're runningApache1.3,you'llwanteither
mod_jk-3.3-ap13-noeapi.so  or mod_jk-3.3-ap13-eapi.so (*ap20* is for Apache
2).

Hope this helps.

Mark


Mark A. Pauley
College of Information Science  Technology, UNO
Omaha, NE 68182-0116
e-mail:  [EMAIL PROTECTED]



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




Tomcat w/ Apache Configuration Issues == Making Progress but HELP!! StillNeeded

2002-07-17 Thread mpauley

Hi All,

Thanks  to  those who responded to my previous.  I'm making progress but am
still having problems.  Again, my original problems were
1)  Although  our  JSPs  run  correctly,  neither  the list nor the manager
   contexts do.
2)  Tomcat is apparently intercepting ALL httpd requests.  For example, the
   address  http://biigserver.ist.unomaha.edu/  tries  to  access  the same
   directory that Tomcat is tied to.

For the first problem, it was suggested that I needed to create a user with
the role ofmanager. However,I'vedonethat(in
$CATALINA_HOME/conf/tomcat-users.xml)  to no effect.  Here are the complete
contents of this file:

!--
  NOTE:  By default, no user is included in the manager role required
  to operate the /manager web application.  If you wish to use this app,
  you must define such a user - the username and password are arbitrary.
--
tomcat-users
  user name=role1  password=tomcat roles=role1  /
  user name=tomcat password=tomcat roles=tomcat /
  user name=admin password=secret roles=manager /
  user name=both   password=tomcat roles=tomcat,role1 /
/tomcat-users

Any ideas on what I am (still) doing wrong?

To  solve  the  second  problem,  respondents  indicated  that  I needed to
integrate  Tomcat  and  Apache.   On the web, I found two different sets of
instructions on how to do this but neither work.  Here's what's happened.

First,followedinstructions   at
http://www.galatea.com/flashguides/apache-tomcat-4-unix.xml for integrating
Tomcat with Apache.  Highlights:
1)  Confirmed  that  DSO supported in my Apache installation was enabled  (
   httpd -l returned mod_so.c)
2)  Tomcat  4.0 had previously been installed via the RPM; $CATALINA_HOME =
   /var/tomcat4
3) Obtained mod_jk-3.3-ap13-eapi.sofrom
   http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/linux/i386/
   , renamed it to mod_jk.so and copied it to /usr/lib/apache.
4)ConfiguredTomcatformod_jk   as   specified   with   modJk
   =/usr/lib/apache/mod_jk.so,  workersConfig
   =/var/tomcat4/conf/jk/workers.properties   and   jkLog
   =/var/tomcat4/logs/mod_jk.log.
5)   Created   workers.properties   exactly   as   specified   except  with
   workers.tomcat_home=/var/tomcat4   and  workers.
   java_home=/usr/local/j2sdk-1.4.0.I   did  NOT  alter
   worker.inprocess.jvm_lib   as   it   seemed  correct  as  given;  placed
   workers.properties into /var/tomcat4/conf/jk
6) Since my webapps are not located in $CATALINA_HOME/webapps, I configured
   Apache  using  Option  2.   JkWorersFile  and  JkLogFile  were  modified
   appropriately.

After  doing  this,  Tomcat  restarted without a problem.  However, running
apachect configtest gives the error:

Syntax error on line 1505 of /etc/httpd/conf/httpd.conf:
Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a module
not
included in the server configuration

I'vealsotriedfollowingtheinstructions   as   given   at
http://www.ubeans.com/tomcat/index.html  except  that I configured for only
one  tomcat server instead of two (used the same mod_jk as above) and I did
NOT modifiy catalina.sh; here is workers.properties:
#
# workers.properties
#

# In Unix, we use forward slashes:
ps=/

# list the workers by name

worker.list=tomcat1

# 
# First tomcat server
# 
worker.tomcat1.port=11009
worker.tomcat1.host=localhost
worker.tomcat1.type=ajp13

# Specify the size of the open connection cache.
#worker.tomcat1.cachesize

Again,  Tomcat  restarts  without  a  problem.   However,  running apachect
configtest now gives the error:

Syntax OK
[Wed Jul 17 12:26:38 2002] [error] Cannot remove module mod_jk.c: not found
in m
odule list

HELP  (please)!!!   By  the  way,  why  are  these  two  configurations  so
different?(And   which   one  is  correct?)   Also,  using  the  second
configuration, what do I if my webapps are not in $CATALINA_HOME/webapps?

Here  are  the  particulars of my machine and setup:  Tomcat 4.0 is running
with Apache 1.3 on a RedHat Linux (7.3) Intel machine (P4; 1.5 GB).  Tomcat
was  installed  via  RPMs  to /var/tomcat4.  The JSPs that we want to serve
with   Tomcat   are   located   in  /bioinformatics/webapps/bioinformatics;
currently,  there  are  no subdirectories off of this directory.  Apache is
configured  with  a main server (DocumentRoot /home/www/biigweb; ServerName
biigserver.ist.unomaha.edu) and a VirtualHost which points to the directory
that  contains  our JSPs and has the ServerName
bioinformatics.ist.unomaha.edu.

Any help would be greatly appreciated.

Mark


Mark A. Pauley, Ph.D.
Senior Research Fellow
College of Information Science  Technology, UNO
Omaha, NE 68182-0116
e-mail:  [EMAIL 

re: HTTP Status 500 - No Context configured to process this request

2002-07-07 Thread mpauley

Hi (Jose),

Had  to  put this aside as I was gone over the holiday weekend; I'm back at
it again.

I  forgot  to give you one very important piece of information regarding my
setup:   tomcat is installed to /var/tomcat4 and the jsp that we are trying
to  use tomcat for is in /bioinformatics/webapps/bioinformatics (and again,
we want to use the URL http://bioinformatics.ist.unomaha.edu/bioinformatics
to  access  it;  note the lack of a port).  Based on this I'm assuming that
Docswouldbe   /bioinformatics/webapps/   and   Manager   would   be
/var/tomcat4/work/localhost/manager (where it exists in my install).

For  your reference, here are the relevant (uncommented-out) portions of my
server.xml  file  and  Apache  httpd.conf  file.   One  immediate question:
should I be changing localhost to the DNS name of the machine?

server.xml

  Host name=localhost debug=0 appBase=webapps unpackWARs=true

Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logsprefix=localhost_access_log.  suffix
=.txt
 pattern=common/

Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
timestamp=true/

Contextpath=/var/tomcat4   docBase=/bioinformatics/webapps
debug=0/

!-- Tomcat Manager Context --
Context  path=/manager  docBase=manager  debug=0  privileged
=true/

!-- Tomcat Examples Context --
Context  path=/examples  docBase=examples debug=0 reloadable
=true
  Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_examples_log. suffix=.txt
  timestamp=true/
  Ejb   name=ejb/EmplRecord type=Entity
 home=com.wombat.empl.EmployeeRecordHome
   remote=com.wombat.empl.EmployeeRecord/
  ManagerclassName
=org.apache.catalina.session.PersistentManager
  debug=0
  saveOnRestart=true
  maxActiveSessions=-1
  minIdleSwap=-1
maxIdleSwap=-1
  maxIdleBackup=-1
Store className=org.apache.catalina.session.FileStore/
  /Manager
  --
  Environment name=maxExemptions type=java.lang.Integer
  value=15/
  Parameter name=context.param.name value=context.param.value
 override=false/
  Resource name=jdbc/EmployeeAppDb auth=SERVLET
type=javax.sql.DataSource/
  ResourceParams name=jdbc/EmployeeAppDb
parameternameuser/namevaluesa/value/parameter
parameternamepassword/namevalue/value/parameter
parameternamedriverClassName/name
  valueorg.hsql.jdbcDriver/value/parameter
parameternamedriverName/name
  valuejdbc:HypersonicSQL:database/value/parameter
  /ResourceParams
  Resource name=mail/Session auth=Container
type=javax.mail.Session/
  ResourceParams name=mail/Session
parameter
  namemail.smtp.host/name
  valuelocalhost/value
/parameter
  /ResourceParams
/Context

  /Host

httpd.conf

VirtualHost 137.48.138.201
ServerName bioinformatics.ist.unomaha.edu
ServerAlias bioinformatics.unomaha.edu
DocumentRoot /bioinformatics/webapps
DirectoryIndex index.jsp index.html
/VirtualHost

Again,  with  the  current configuration, the jsp works but the manager and
examples contexts don't.

Mark


Mark A. Pauley, Ph.D.
Senior Research Fellow
Instructor, Department of Computer Science
College of Information Science  Technology, UNO
Omaha, NE 68182-0116
e-mail:  [EMAIL PROTECTED]
phone:  (402) 554-4954  fax:  (402) 554-3284



Content-Transfer-Encoding: 7bit
From: =?iso-8859-1?Q?Jos=E9_Montiel?= [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: HTTP Status 500 - No Context configured to process this
request
Date: Tue, 2 Jul 2002 13:36:02 -0400
Message-ID: 004701c221ee$f09c3fa0$6900030a@jmontiel
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1

Hi Mark,

 Ok I'm not totally clear with you set up, but try this

 Your context in Tomcat should look like this

Context  path=/manager
  docBase=/bioinformatics/webapps/manager
  debug=0
  privileged=true /


 if it doesn't work try this

Context  path=/bioinformatics/manager
  docBase=/bioinformatics/webapps/manager
  debug=0
 privileged=true /



If this doesn't work please send me your entire conf directory, where
server.xml file is, and your httpd.conf file of Apache. Also explain me
the structure of you file system (ex. Docs: /bioinformatics/webapps,
manager: /bioinformatics/webapps/manager, etc)


I'm sending my server.xml file so you can take a look at it. 

Re: HTTP Status 500 - No Context configured to process this request

2002-07-02 Thread mpauley

Hi (Jose),

I  made  the  changes  you suggested but I'm still having problems.  Let me
give you a little more background:

The  website  we  would  like  to  drive  using  tomcat4  is located in the
/bioinformatics/webapps/bioinformatics directory (again, we're using RedHat
Linux 7.3; I don't think it matters but /bioinformatics is a RAID 0 drive).
Since  it  is possible that other websites might be developed in the future
that need tomcat we want to access it using
http://bioinformatics.ist.unomaha.edu/bioinformatics.   Thus,  lines  198 -
201 in my server.xml file now look like this

!--
Context path= docBase=ROOT debug=0/
--
Context  path=/var/tomcat4  docBase=/bioinformatics/webapps  debug
=0/

Note  that  bioinformatics.ist.  . . is a VirtualHost in Apache, configured
thusly,

VirtualHost 137.48.138.201
ServerName bioinformatics.ist.unomaha.edu
ServerAlias bioinformatics.unomaha.edu
DocumentRoot /bioinformatics/webapps
DirectoryIndex index.jsp index.html
/VirtualHost

Now  for  the  problem that we're having:  The website itself seems to work
butIcannot   access   any   of   the   manager   functions;   e.g.,
http://bioinformatics.ist.unomaha.edu:8180/bioinformatics/manager/list.   I
have  modified  the  tomcat-users.xml file to contain a user admin with a
role of manager.  This is the error message that I get:

Apache Tomcat/4.0.3 - HTTP Status 404 - /manager/list



type Status report

message /manager/list

description The requested resource (/manager/list) is not available.

Any  help  you  could  provide  to help solve this problem would be greatly
appreciated.

Other general questions (if you have time):
1)  I  know  that  tomcat  can not stand alone and requires Apache to work.
   However,  in  our  case,  how  do they interact?  Do we need to set up a
   VirtualHost?
2)  My  understanding  is that we need to specify the port when accessing a
   tomcat-enabled website, e.g., http://bioinformatics.ist.unomaha.edu:8180
   .   Is this true?  If so, is there any way to configure Apache/Tomcat so
   that the port number is NOT required?
3) Right now, all we have done is to use some include file statements in an
   otherwise  static webpage.  In this case, do we need a WEB-INF directory
   in .../bioinformatics?
4)  We  have not deployed anything but our application seems to work.  When
   is deploying necessary?

Mark


Mark A. Pauley, Ph.D.
College of Information Science  Technology, UNO
Omaha, NE 68182-0116
e-mail:  [EMAIL PROTECTED]
phone:  (402) 554-4954  fax:  (402) 554-3284
   
 
tomcat-user-digest-help@jakarta
 
.apache.org To: 
[EMAIL PROTECTED]  
cc:
 
07/01/2002 10:59 AM Subject: tomcat-user Digest 1 Jul 
2002 15:59:30 - Issue 980 
Please respond to Tomcat Users
 
List  
 
   
 
   
 




Hi Mark,

Your server.xml looks fine.

Question which URL are you trying to access?

If you are trying to access http://localhost/ you will get this
error because there is no context defined to answer this request, only
request of the form

http://localhost/examples/***

and

http://localhost/manager/***

will be answered since they are the only two context defined

If that is the case, do the following

Replace line 198 -200

!--
Context path= docBase=ROOT debug=0/
--

for

Context path=/bioinformatics docBase=bioinformatics debug=0/

which will create a context /bioinformatics, so you can access it using
http://localhost/bioinformatics/

Or you can setup this app as the default context as follows

Replace line 198 -200

!--
Context path= docBase=ROOT debug=0/
--

for

Context path=/ docBase=bioinformatics debug=0/

which will create a context /, so you can access it using
http://localhost/

well, I hope this helps you, let me know how it goes



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