Re: Redhat9 / mod_jk2 builds from source

2004-01-17 Thread George Shafik
Hi Mark, Oscar

Sorry I now realise you want the ssl feature in apache 2 build.

try the following

./configure --with-ssl=shared --enable-modules=all --enable-shared=max

remember I'm running things on Linux 9 by default OpenSSH running as a
daemon

But I'm having problems with getting httpd.conf ssl.conf files right - can
you e-mail any that work

Cheers,
George

- Original Message - 
From: George Shafik [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 8:39 PM
Subject: Re: Redhat9 / mod_jk2 builds from source


 Opps typo

  ./configure --enable-module=all --enabled-shared=max

 should be

  ./configure --enable-module=all --enable-shared=max


 - Original Message - 
 From: George Shafik [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, January 15, 2004 8:35 PM
 Subject: Re: Redhat9 / mod_jk2 builds from source


  Hi Mark, Oscar, and anyone interested:
 
  I found the following always works:
 
 
  make
  make install
 
  I think I've could the eXtrem functionality - I call is Xapache while
  drinking lots of Pepsi  :-)
 
  enjoy,
  George
 
  - Original Message - 
  From: Mark Eggers [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Thursday, January 15, 2004 1:05 PM
  Subject: Re: Redhat9 / mod_jk2 builds from source
 
 
   Oscar - set $JAVA_HOME if you get configure errors
   with include-os-type=include/linux.  The configure
   script will tack on the $JAVA_HOME value.
  
   If you don't, then give the full path to the header
   files.
  
   I think I get all the extra info because I build
   Apache with:
  
   ./configure --with-ssl=shared --with-modules=all
   --with-shared=most
  
   Basically, I have the kitchen sink version of Apache.
  
   Hope that clears things up.
  
   /mde/
   just my two cents . . . .
  
   __
   Do you Yahoo!?
   Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
   http://hotjobs.sweepstakes.yahoo.com/signingbonus
  
   -
   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: Redhat9 / mod_jk2 builds from source

2004-01-15 Thread George Shafik
Hi Mark, Oscar, and anyone interested:

I found the following always works:

./configure --enable-module=all --enabled-shared=max
make
make install

I think I've could the eXtrem functionality - I call is Xapache while
drinking lots of Pepsi  :-)

enjoy,
George

- Original Message - 
From: Mark Eggers [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 1:05 PM
Subject: Re: Redhat9 / mod_jk2 builds from source


 Oscar - set $JAVA_HOME if you get configure errors
 with include-os-type=include/linux.  The configure
 script will tack on the $JAVA_HOME value.

 If you don't, then give the full path to the header
 files.

 I think I get all the extra info because I build
 Apache with:

 ./configure --with-ssl=shared --with-modules=all
 --with-shared=most

 Basically, I have the kitchen sink version of Apache.

 Hope that clears things up.

 /mde/
 just my two cents . . . .

 __
 Do you Yahoo!?
 Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
 http://hotjobs.sweepstakes.yahoo.com/signingbonus

 -
 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: Redhat9 / mod_jk2 builds from source

2004-01-15 Thread George Shafik
Opps typo

 ./configure --enable-module=all --enabled-shared=max

should be 

 ./configure --enable-module=all --enable-shared=max


- Original Message - 
From: George Shafik [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 8:35 PM
Subject: Re: Redhat9 / mod_jk2 builds from source


 Hi Mark, Oscar, and anyone interested:
 
 I found the following always works:
 

 make
 make install
 
 I think I've could the eXtrem functionality - I call is Xapache while
 drinking lots of Pepsi  :-)
 
 enjoy,
 George
 
 - Original Message - 
 From: Mark Eggers [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, January 15, 2004 1:05 PM
 Subject: Re: Redhat9 / mod_jk2 builds from source
 
 
  Oscar - set $JAVA_HOME if you get configure errors
  with include-os-type=include/linux.  The configure
  script will tack on the $JAVA_HOME value.
 
  If you don't, then give the full path to the header
  files.
 
  I think I get all the extra info because I build
  Apache with:
 
  ./configure --with-ssl=shared --with-modules=all
  --with-shared=most
 
  Basically, I have the kitchen sink version of Apache.
 
  Hope that clears things up.
 
  /mde/
  just my two cents . . . .
 
  __
  Do you Yahoo!?
  Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
  http://hotjobs.sweepstakes.yahoo.com/signingbonus
 
  -
  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: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots

2004-01-10 Thread George Shafik
Hi All,

Well after going back to Yahoo! I found a page that at least got Tomcat
4.1.29 talking to Apache 2 though mod_jk2
YES!

:)))
)))

http://www.kawao.com/java/docs/mod_jk.html
(note the mod_jk2 is further down the page)

Its not all in English but the critical parts are - look at the section
titled
httpd.conf
file and the way they set-up the context mapping to /examples
(It would be great if someone would translate as I couldn't find a link for
an English version)

Still getting the jk2_init() error but I can now move on.

I will post a complete HOWTO in the next week

Cheers,
George



- Original Message - 
From: George Shafik [EMAIL PROTECTED]
To: Nikola Milutinovic [EMAIL PROTECTED]; Peter O'Reilly
[EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; Mark Eggers [EMAIL PROTECTED];
[EMAIL PROTECTED]
Cc: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, January 10, 2004 2:03 PM
Subject: Re: jk2_init() Can't find child  in none of the 1024 scoreboard
slots


 Hi Nikola and any one else that can help,

 I'm still stuck on jk2_init() error -
 even though many developers out there reckon this is not an issue I still
 find it concerning that Apache2 is trying to find a Child process and
 reports it as an [error].

 [Sat Jan 10 13:15:08 2004] [notice] mod_jk.post_config() first invocation
 [Sat Jan 10 13:15:08 2004] [notice] mod_jk.post_config() second invocation
 [Sat Jan 10 13:15:08 2004] [error] jk2_init() Can't find child 2089 in
none
 of the 256 scoreboard slots
 [Sat Jan 10 13:15:08 2004] [error] jk2_init() Can't find child 2090 in
none
 of the 256 scoreboard slots
 [Sat Jan 10 13:15:08 2004] [error] jk2_init() Can't find child 2091 in
none
 of the 256 scoreboard slots
 [Sat Jan 10 13:15:08 2004] [error] jk2_init() Can't find child 2092 in
none
 of the 256 scoreboard slots
 [Sat Jan 10 13:15:08 2004] [error] jk2_init() Can't find child 2093 in
none
 of the 256 scoreboard slots
 [Sat Jan 10 13:15:08 2004] [notice] Apache/2.0.48 (Unix) mod_jk2/2.0.3-dev
 configured -- resuming normal operations
 [Sat Jan 10 13:15:24 2004] [error] [client 192.168.0.100] File does not
 exist: /usr/local/apache2/htdocs/examples
 [Sat Jan 10 13:15:24 2004] [error] jk2_init() Can't find child 2095 in
none
 of the 256 scoreboard slots
 [Sat Jan 10 13:15:30 2004] [error] [client 192.168.0.100] File does not
 exist: /usr/local/apache2/htdocs/examples
 [Sat Jan 10 13:15:33 2004] [error] [client 192.168.0.100] File does not
 exist: /usr/local/apache2/htdocs/examples
 [Sat Jan 10 13:15:37 2004] [error] [client 192.168.0.100] File does not
 exist: /usr/local/apache2/htdocs/examples
 [Sat Jan 10 13:15:44 2004] [error] [client 192.168.0.100] File does not
 exist: /usr/local/apache2/htdocs/examples, referer:
 http://sslaptop.gsss.net/examples/
 [Sat Jan 10 13:15:48 2004] [error] [client 192.168.0.100] File does not
 exist: /usr/local/apache2/htdocs/examples, referer:
 http://sslaptop.gsss.net/examples/
 [Sat Jan 10 13:16:03 2004] [error] [client 192.168.0.100] File does not
 exist: /usr/local/apache2/htdocs/jkstatus
 [Sat Jan 10 13:15:08 2004] ( info ) [jk_logger_file.c (224)]  Level WARN 0
 [Sat Jan 10 13:15:08 2004] ( info ) [jk_logger_file.c (224)]  Level WARN 0
 [Sat Jan 10 13:15:08 2004] ( info ) [jk_logger_file.c (224)]  Level WARN 0
 [Sat Jan 10 13:15:08 2004] ( info ) [jk_logger_file.c (224)]  Level WARN 0
 [Sat Jan 10 13:15:08 2004] ( info ) [jk_logger_file.c (224)]  Level WARN 0
 [Sat Jan 10 13:15:08 2004] ( info ) [jk_logger_file.c (224)]  Level WARN 0
 [Sat Jan 10 13:22:47 2004] [notice] caught SIGTERM, shutting down
 [Sat Jan 10 13:15:08 2004] ( info ) [jk_logger_file.c (224)]  Level WARN 0

 Anyway I've managed to rebuild all mod_jk2.so and all relative jar files
 with no issues with the org.apache.coyote.tomcat4.CoyoteConnector.
 Unfortunately I still can't talk to Tomcat directly from Apache via the
 standard socket method.

 Following are:
 snippet httpd.con
 snippet server.xml
 workers2.properties
 jk2.properties

 Any help would be greatly appreciated as I've spent far too much time on
 this with no real results is very frustrating.
 Apologies for any previous stupid questions as I'm now unfortunately up to
 speed with using mod_jk2, Apache2 and Tomcat 4.1.29 - just an aside this
is
 far too hard it should be made simpler as many of us out here don't want
to
 become C and Web Servlet Container Gurus. Also any reference to binaries
is
 really bytecode that's the price you pay  when your developing across
 various platforms and languages.

 If I'm able to get things working I will publish a HOWTO Apache2.0.48
 Tomcat4.1.29

Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots

2004-01-10 Thread George Shafik
Hi All its me again,

Every thing works fine but you have to manually map every URL servlet -  I'm
sure this is not correct.

I'm posting this last e-mail on this subject unless someone can address the
jk2_init() issue.
Rest assured for all concerned I'm not even dreaming of looking at jkini
in-process implementation.
However I find it a bit strange that the Apache and Tomcat group couldn't
dream up a better way of transferring data than a shared flat file.

Anyway its been fun hacking at a solution even though these days I really
don't have the time or money for such indulgences :-(

This e-mail has all the relevant information you need to get things working.

What I did in summary:
OS: Linux 9 Red Had
JDK: j2sdk1.4.1_02
Httpd-2.0.48 - Apache 2 built from Source
Tomcat-4.1.29 - Tomcat 4.1.29 built from Source
Jakarta-Tomcat-Connectors-4.1.29 - Jakarta-Tomcat-Connectors-4.1.29 built
from ant native from the JK directory remember you need to build all the
relevant Jar files that you will update in Tomcat. Just follow the readme
files and ignore everything else. APR version from Apache 2 above WORKS
however if your building mod_webapp module you must download the latest
version.


Bellow are the relevant files to get things happening, I've always found
these files poorly documented. Its more an exercise in luck and patience
until the next release when you have to go through the process again. :-(
.
snippet httpd.conf
jk2.properties
worker2.properties

** httpd.conf file

LoadModule jk2_module modules/mod_jk2.so

IfModule mod_jk2.c
  JkSet config:file
/usr/local/jakarta-tomcat-4.1.29/conf/workers2.properties
/IfModule

Alias /examples /usr/local/jakarta-tomcat-4.1.29/webapps/examples
Location /examples
Options Indexes FollowSymLinks
/Location

Location /examples/WEB-INF/
AllowOverride None
deny from all
/Location

**

** jk2.properties file
shm.file=/temp/jk2.shm

# list of needed handlers.
handler.list=apr,request,channelJni

# Dynamic library needs to be defined only if Tomcat is used
# out of process
# apr.NativeSo=/usr/local/apache2/modules/libjkjni.so
# Or you can use the mod_jk2 directly
apr.jniModeSo=/usr/local/apache2/modules/mod_jk2.so

# If you wish to start the Tomcat from inside web server then
# you don't need any above directive. Here is shown the default
# value for the apr that you can ommit
# apr.jniModeSo=inprocess
**

** workers2.properties file
[logger]
level=WARN
#INFO

#/web_ci/
[config:]
file=/usr/local/jakarta-tomcat-4.1.29/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

# Alternate file logger
[logger.file:0]
level=WARN
file=/usr/local/jakarta-tomcat-4.1.29/logs/jk2.log

# Cache for activity
# Must point to a writeable path
[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=/temp/jk2.shm
size=100
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=99
# Default Native Logger (apache2 or win32 )
# can be overriden to a file logger, useful
# when tracing win32 related issues
logger=logger.file:0

# Communication channel to use
[channel.socket:sslaptop.gsss.net:8001]
info=Ajp13 forwarding over socket
debug=0
tomcatId=sslaptop.gsss.net:8001

# Connector as in conf/server.xml
[ajp13:sslaptop.gsss.net:8001]
channel=channel.socket:sslaptop.gsss.net:8001

# Tomcat load balancing
[lb:lb]
info=Default load balancer.
debug=0

[status:status]
info=Status worker, displays runtime informations

# Monitor for requests and config http://sslaptop.gsss.net:8057/jkstatus
[uri:/jkstatus]
info=Display status information and checks the config file for changes.
worker=ajp13:sslaptop.gsss.net:8001
context=/jkstatus
group=status:status
tomcatId=sslaptop.gsss.net:8001

[uri:/examples]
info=Display status information and checks the config file for changes.
worker=ajp13:sslaptop.gsss.net:8001
context=/examples
group=status:status
tomcatId=sslaptop.gsss.net:8001

[uri:/examples/*.jsp]
info=jsp files map always

[uri:/examples/servlet/RequestInfoExample]
info=servlet - see what I mean for every servlet

[uri:/examples/servlet/HelloWorldExample]
info=servlet- see what I mean for every servlet

[uri:/examples/servlet/RequestHeaderExample]
info=servlet- see what I mean for every servlet

[uri:/examples/servlet/JndiServlet]
info=servlet- see what I mean for every servlet
**

many many many thanks to all
George





- Original Message - 
From: George Shafik [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, January 10, 2004 6:31 PM
Subject: Re: jk2_init() Can't find child  in none of the 1024 scoreboard
slots


 Hi All,

 Well after going back to Yahoo! I found a page that at least got Tomcat
 4.1.29 talking to Apache 2 though mod_jk2

YES

Re: Mapping in workers2.properties

2004-01-10 Thread George Shafik
Magic stuff Mark


*** updated httpd.conf file snippet ***
LoadModule jk2_module modules/mod_jk2.so

IfModule mod_jk2.c
  JkSet config:file
/usr/local/jakarta-tomcat-4.1.29/conf/workers2.properties
/IfModule

Alias /examples /usr/local/jakarta-tomcat-4.1.29/webapps/examples
Location /examples
  JkUriSet worker ajp13:sslaptop.gsss.net:8001
/Location

Location /examples/WEB-INF/
AllowOverride None
deny from all
/Location


*** updated worker2.properties file 
[uri:/examples]
info=Display status information and checks the config file for changes.
worker=ajp13:sslaptop.gsss.net:8001
context=/examples
group=status:status
tomcatId=sslaptop.gsss.net:8001

[uri:/examples/*.jsp]
info=jsp files

[uri:/examples/servlet/*]
info=servlet
*

take care,
George



- Original Message - 
From: Mark Eggers [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Cc: George Shafik [EMAIL PROTECTED]
Sent: Sunday, January 11, 2004 6:16 AM
Subject: Mapping in workers2.properties


 There are actually several ways to map between Apache
 and Tomcat via mod_jk2.

 The first is using workers2.properties.  If you've
 compiled with -pcre, then perl regular expressions
 should work as well as individual names.

 Also, remember that servlets traditionally live in
 /app-name/servlet/servlet-name.  This is
 controlled by the web.xml for the particular
 application (context) and is found in:

 $TOMCAT_HOME/webapps/app-name/WEB-INF/web.xml

 The example context is especially confusing, primarily
 due to the name.  In Tomcat 4.1.29, you have the
 following:

 /examples/jsp/index.html
 /examples/servlets/index.html

 However, the actual location of the servlets according
 to web.xml would be:

 /examples/servlet/servlet-name

 So, in your workers2.properties file you will need to
 have the following in order to map all servlets in the
 examples:

 [uri:/examples/servlet/*]
 worker=ajp13:unixsocket

 or whatever you called your worker name.

 While workers2.properties works well for a small
 number of sites, it does not scale very well since the
 match lookup is linear.  Another way to manage mod_jk2
 mapping is detailed in the source of mod_jk2.

 I know, I know, reading the source is not supposed to
 be a requirement, but then again this is open source
 so you do have the opportunity.

 Anyway, in jk/native2/server/apache2/mod_jk2.c, there
 is a little documentation concerning JkUriSet.

 Basically, you use Apache constructs to map the
 location and within that you use the JkUriSet
 directive to map the location to the appropriate
 worker.

 I've tried both ways, and they both work well.
 According to the source, using JkUriSet is the
 preferred method.

 As for in-process, there has been some discussion on
 this mailing list about why in-process does not work
 with the current MPM (multi-processor modules)
 available for Apache httpd.  The real problem seems to
 be that there is currently no MPM that runs all of
 apache within one process in UNIX, using threads
 exclusively to handle separate requests.

 Actually, this is not quite true since there is an
 experimental MPM that accomplishes this.  However,
 according to the documentation this is slower than the
 current worker model (multi-process, multi-thread) and
 not recommended for production work.

 The problem is that when multiple processes get
 started, each process attempts to start its own Tomcat
 (if in-process is being used).  This can't be done
 using the same server,xml.

 In recent kernels (Redhat 2.4.2x, generic 2.6.0,
 2.6.1) there has been a new implementation of threads.
  It might be possible to build a new MPM that takes
 advantage of this.  As far as I know, this is not
 being done (yet).  This sounds like a great
 opportunity to make a contribution :-).

 Hope this has been helpful.

 /mde/
 just my two cents . . .

 __
 Do you Yahoo!?
 Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
 http://hotjobs.sweepstakes.yahoo.com/signingbonus


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



Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots

2004-01-09 Thread George Shafik
   clientAuth=false protocol=TLS /
/Connector
--

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8001 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8001 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=2
   useURIValidationHack=false

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

!-- Define an AJP 1.3 Connector on port 8009 --
!--
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/
--

!-- Define a Proxied HTTP/1.1 Connector on port 8082 --
!-- See proxy documentation for more information about using this. --
!--
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8082 minProcessors=5 maxProcessors=75
   enableLookups=true
   acceptCount=100 debug=0 connectionTimeout=2
   proxyPort=80 useURIValidationHack=false
   disableUploadTimeout=true /
--

!-- Define a non-SSL legacy HTTP/1.1 Test Connector on port 8083 --
!--
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8083 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 /
--

!-- Define a non-SSL HTTP/1.0 Test Connector on port 8084 --
!--
Connector
className=org.apache.catalina.connector.http10.HttpConnector
   port=8084 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 /
--
 snippet server.xml *

 workers2.properties *
[logger]
level=WARN
#INFO

#/web_ci/
[config:]
file=/usr/local/jakarta-tomcat-4.1.29/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

# Alternate file logger
[logger.file:0]
level=WARN
file=/usr/local/jakarta-tomcat-4.1.29/logs/jk2.log

# Cache for activity
# Must point to a writeable path
[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=/usr/local/jakarta-tomcat-4.1.29/logs/jk2.shm
size=100
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=99
# Default Native Logger (apache2 or win32 )
# can be overriden to a file logger, useful
# when tracing win32 related issues
logger=logger.file:0

# Communication channel to use
[channel.socket:sslaptop.gsss.net:8001]
info=Ajp13 forwarding over socket
debug=0
tomcatId=sslaptop.gsss.net:8001

# Connector as in conf/server.xml
[ajp13:sslaptop.gsss.net:8001]
channel=channel.socket:sslaptop.gsss.net:8001

# Tomcat load balancing
[lb:lb]
info=Default load balancer.
debug=0

[status:status]
info=Status worker, displays runtime informations

# Monitor for requests and config http://sslaptop.gsss.net:8057/jkstatus
[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
worker=ajp13:sslaptop.gsss.net:8001
context=/jkstatus
group=status:status
tomcatId=sslaptop.gsss.net:8001

[uri:/examples/*]
info=Display status information and checks the config file for changes.
worker=ajp13:sslaptop.gsss.net:8001
context=/examples
group=status:status
tomcatId=sslaptop.gsss.net:8001
 workers2.properties *


* jk2.properties 
# list of needed handlers.
handler.list=apr,request,channelJni

# Dynamic library needs to be defined only if Tomcat is used
# out of process
# apr.NativeSo=/usr/local/apache2/modules/libjkjni.so
# Or you can use the mod_jk2 directly
apr.jniModeSo=/usr/local/apache2/modules/mod_jk2.so

# If you wish to start the Tomcat from inside web server then
# you don't need any above directive. Here is shown the default
# value for the apr that you can ommit
# apr.jniModeSo=inprocess
* jk2.properties 

Kind Regards,
George Shafik


In completing one discovery we never fail to get an imperfect knowledge of
others of which we could have no idea before, so that we cannot solve one
doubt without creating several new ones.
-Joseph Priestly, 1786















- Original Message - 
From: Nikola Milutinovic [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, January 04, 2004 11:01 PM
Subject: Re: jk2_init() Can't find child  in none of the 1024 scoreboard
slots


 Subject: Fw: jk2_init() Can't find child  in none of the 1024
scoreboard
 slots


  Hi Peter,
 
  I'm using Apache 2.0.48, Tomcat 4.1.29, Jakarta-Tomcat-Connectors
4.1.29.
  I'm hoping the problem it is not the mod_jk2.so module as I went to
great
  trouble in order to generate it on my RH9 Linux Kernal Version 2.4.20-8
  platform. I had to recompile apr, apr-util code and only ant native
  managed to build mod_jk2.so

  ### error.log file in Apache2.0.48 log

Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots

2004-01-06 Thread George Shafik
 this. This isn't exact: it is checked periodically.

-1 means sessions won't be swapped out for this reason,

although they may be swapped out for maxActiveSessions.

If set to = 0, guarantees that all sessions found in the

Store will be loaded on startup.

maxIdleBackup: Sessions will be backed up (saved to the Store,

but left in active memory) if idle for this long (in seconds),

and all sessions found in the Store will be loaded on startup.

If set to -1 sessions will not be backed up, 0 means they

should be backed up shortly after being used.

To clear sessions from the Store, set maxActiveSessions, maxIdleSwap,

and minIdleBackup all to -1, saveOnRestart to false, then restart

Catalina.

--

!--

Manager className=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

parameternameusername/namevaluesa/value/parameter

parameternamepassword/namevalue/value/parameter

parameternamedriverClassName/name

valueorg.hsql.jdbcDriver/value/parameter

parameternameurl/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

ResourceLink name=linkToGlobalResource

global=simpleValue

type=java.lang.Integer/

/Context

/Host

/Engine

/Service



/Server


Great effort if only to commend you on getting to the end of this e-mail!

Kind Regards,
George Shafik


In completing one discovery we never fail to get an imperfect knowledge of
others of which we could have no idea before, so that we cannot solve one
doubt without creating several new ones.
-Joseph Priestly, 1786











- Original Message - 
From: Nikola Milutinovic [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]Hi
Sent: Sunday, January 04, 2004 11:01 PM
Subject: Re: jk2_init() Can't find child  in none of the 1024 scoreboard
slots


 Subject: Fw: jk2_init() Can't find child  in none of the 1024
scoreboard
 slots


  Hi Peter,
 
  I'm using Apache 2.0.48, Tomcat 4.1.29, Jakarta-Tomcat-Connectors
4.1.29.
  I'm hoping the problem it is not the mod_jk2.so module as I went to
great
  trouble in order to generate it on my RH9 Linux Kernal Version 2.4.20-8
  platform. I had to recompile apr, apr-util code and only ant native
  managed to build mod_jk2.so

  ### error.log file in Apache2.0.48 log
  ###
  [Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7398 in
 none
  of the 256 scoreboard slots
  [Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7399 in
 none
  of the 256 scoreboard slots
  [Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7400 in
 none
  of the 256 scoreboard slots
  [Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7402 in
 none
  of the 256 scoreboard slots
  [Sat Jan 03 23:01:48 2004] [notice] Apache/2.0.48 (Unix)
mod_jk2/2.0.3-dev
  configured -- resuming normal operations

 These are mostly harmless messages. The only way I found to avoid them was
a
 rather long one.

 In order for Apache + mod_jk2 to find neighbour children is to configure
 shared memory for mod_jk2. And it must be configured on both Apache and
 Tomcat side. If you drop Tomcat side, then it will complain. :-)

 For shared memory in Coyote-jk2 handler, you need to build jkjni.so (you
may
 screem in agony :-)). JK-JNI gives you Java Native Interface
 functionality, which includes UNIX SHM and UNIX file sockets.

 In order for jkjni.so to function correctly, it must have an environment
 variable serverRoot defined on the process level, or it will not be able
 to locate workers2.properties (it is in Apache's config dir). To be
honest,
 jkjni.so was designed for another purpose - running Tomcat from within
 Apache process (in-process). This environment variable is provided by
 Apache. All of us who wish to run a standalone Tomcat and still use
jkjni.so
 must emulate this. The only way I found to do that was to place

 export serverRoot=/etc/httpd/2.0

 in Tomcat's config/startup scripts. Like I said - it is long one.

  [Sun Jan 04 12:08:37 2004] [notice] caught SIGTERM, shutting down

 Normal shutdown, I'd say.

  ### jk2.prorperties ###
  ## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
  ## WHEN YOU EDIT THE FILE.
  ## COMMENTS WILL BE _LOST_
  ## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
  # Set the desired handler list
  # handler.list=apr,request,channelJni

 Why

Fw: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots

2004-01-03 Thread George Shafik
Hi Peter,

I'm using Apache 2.0.48, Tomcat 4.1.29, Jakarta-Tomcat-Connectors 4.1.29.
I'm hoping the problem it is not the mod_jk2.so module as I went to great
trouble in order to generate it on my RH9 Linux Kernal Version 2.4.20-8
platform. I had to recompile apr, apr-util code and only ant native
managed to build mod_jk2.so

Below are the following files:
error.log from Apache 2.0.48
jk2.properties
workers.properties
snippet from httpd.conf
snippet from server.xml

Many thanks for any help you may be able to give.

Cheers,
George


### error.log file in Apache2.0.48 log
###
[Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7398 in none
of the 256 scoreboard slots
[Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7399 in none
of the 256 scoreboard slots
[Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7400 in none
of the 256 scoreboard slots
[Sat Jan 03 23:01:48 2004] [error] jk2_init() Can't find child 7402 in none
of the 256 scoreboard slots
[Sat Jan 03 23:01:48 2004] [notice] Apache/2.0.48 (Unix) mod_jk2/2.0.3-dev
configured -- resuming normal operations
[Sun Jan 04 12:08:37 2004] [notice] caught SIGTERM, shutting down
#

### jk2.prorperties ###
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.
## COMMENTS WILL BE _LOST_
## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
# Set the desired handler list
# handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config is working
# shm.file=${jkHome}/work/jk2.shm
# In order to enable jni use any channelJni directive
# channelJni.disabled = 0
# And one of the following directives:
apr.jniModeSo=/usr/local/apache2/modules/mod_jk2.so
# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
# apr.jniModeSo=inprocess
##

## workers.properties 
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13


snippet from httpd.conf - reset of file is unchanged
#
LoadModule jk2_module modules/mod_jk2.so


 snippet from server.xml ###
# PLEASE NOTE: I've alternated between both connectors still same error
in error.log Apache2 file and this is automatically built for # me
when I built Tomcat 4.1.29 from source.

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8009 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=0
useURIValidationHack=false
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/


!-- Define an AJP 1.3 Connector on port 8009 --
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/

 Original Message - 

From: Peter O'Reilly [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 05, 2003 1:49 PM
Subject: Re: jk2_init() Can't find child  in none of the 1024 scoreboard
slots


 The quickest way to do this is,

 ( assumes testing with http://localhost )

 1) copy the /WEB-INF/classes directory from the /examples/WEB-INF/classes
 to your directory.

 2) Add the html code to call one of the servlets.

 If you can call one of the example servlets then you can backtrack and get
 ride of the example servlets and JSP and add your own.

 If testing on localhost make sure you have workers.properies,
property.host
 =localhost
 AND
 make sure the servlet.xml Context = localhost

 When that's complete you'll want to clean up the web.xml file also.

 -Peter



 At 09:35 PM 11/4/2003, you wrote:
 I'm having the same problems, Tony. I got mod_jk2 compiled and tried to
 setup the connection between Apache 2.0.47 and Tomcat 4.1.29. I get the
 missing child (children ? ;)) errors,  but I was able to get the
 servlets and JSPs working, though they spit out errors occasionally. Can
 you post your jk2.properties and workers2.properties? I'm trying to
 update my HOWTO (http://cymulacrum.net/tomcat/tomcat_toc.html) because
 it is obviously unusable now.
 
 Regards,
 pascal chong
 
 
 
 Tony F. White wrote:
 
  Hello,
  
  
  
  I am hoping someone might be able to help me work out what on earth is
  going on here, we have just updated tomcat to 4.1.29 and we are having
  problems getting the connectors from 

Re: MOD_JK2 also Fails aaaggggg@###!!!

2004-01-02 Thread George Shafik
Yep,

without going into too much detail IT DOESN'T WORK ITS REALLY BROKE.

Over the past 4 weeks I've made 8 REAL attempts, spent around 30 hours of my time and 
short of writing the whole thing myself I went with mod_webapp.so, tomcat-warp.jar for 
Apache 1.3.29 Tomcat 4.1.29. The build is stuffed and its not the version of libtool 
or anything else something is broke when you try to build on RH9 exactly what is up to 
the many lib, builds scripts between Ant and Make - if I have enough time over the 
next decade I may be able to solve it however apache 1.3.29 can talk to Tomcat 4.1.29 
for now through webapp connector, 

Now if through some miracle someone out there has managed to REALLY build this on 
current vanilla install of RH9 (not enterprise) I want a copy of mod_jk2.so file,  
httpd.conf, serer.xml, copy of the SOURCE jakarta-tomcat -connector used, a README 
file with exactly what you did and the best part for last I want a dump of your system 
output from the build of the mod_jk2.so in order to make me a believer. Keep in mind I 
want to build from source no binaries and Apache 2.0.48 connecting to Tomcat 4.1.29 
through mod_jk2.so - all built from source just in case you mist my point. 

Greatest apologies but like many out there I'm very frustrate when stuff that I really 
don't want to know much about stops working because of compromises in testing on the 
various platforms or the Readme files aren't updated along side the respective release 
even though this is after all open source.

Cheers,
George


Excellence is not an act, but a habit.
- Aristotle -







- Original Message - 
From: Suneel [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, January 02, 2004 6:24 PM
Subject: MOD_JK2 also Fails [EMAIL PROTECTED]


Hi 
since runing mod_jk is throwing me only jsp source instead of jsp..i am trying 
mod_jk2. Now when i start apache i get error ../native2/server/mod_jk2.c is not the 
correct version. So i got the source and compiled it using buildconf.sh and configure, 
but in my native2/server/apache2 there is no mod_jk2.so  my config is rh9,tomcat 
4.1.29  apache 2.0.48. At this point i want to take a shotgun and blow my comp. What 
is wrong here?

regards
suneel


Re: MOD_JK2 also Fails aaaggggg@###!!!

2004-01-02 Thread George Shafik
Yep - didn't get past first base - no make file generated!

In professional circles we classify this as CRAP - Can't Release Application
into Production  Config log file is below this e-mail.

In the case of a previous e-mail mod_jk works only on each second HTTP
request as the session is LOOPING in the connector. I have consistently
reproduced this on 3 separate builds.

Again I'm sticking with what works - my request remains as STATED below -
nothing more or less EXACTLY as stated. A bit like HOW README  FILES SHOULD
work in the real world.

AS STATED


Now if through some miracle someone out there has managed to REALLY build
this on current vanilla install of RH9 (not enterprise) I want a copy of
mod_jk2.so file,  httpd.conf, serer.xml, copy of the SOURCE
jakarta-tomcat -connector used, a README file with exactly what you did and
the best part for last I want a dump of your system output from the build of
the mod_jk2.so in order to make me a believer. Keep in mind I want to build
from source no binaries and Apache 2.0.48 connecting to Tomcat 4.1.29
through mod_jk2.so - all built from source just in case you mist my point.



WARNING: PLEASE DO NOT GIVE ME A ONE LINE RESPONSE

***

Real APOLOGIES to those of you who really get the message


George



***
This file contains any messages produced by compilers while

running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was

generated by GNU Autoconf 2.57. Invocation command line was

$
./configure --with-apx2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/loc
al/jakarta-tomcat-4.1.29 --with-java-home=/usr/local/j2sdk1.4.1_02 --with-jn
i --with-pcre

## - ##

## Platform. ##

## - ##

hostname = sslaptop.gsss.net

uname -m = i686

uname -r = 2.4.20-8

uname -s = Linux

uname -v = #1 Thu Mar 13 17:54:28 EST 2003

/usr/bin/uname -p = unknown

/bin/uname -X = unknown

/bin/arch = i686

/usr/bin/arch -k = unknown

/usr/convex/getsysinfo = unknown

hostinfo = unknown

/bin/machine = unknown

/usr/bin/oslevel = unknown

/bin/universe = unknown

PATH: /usr/kerberos/sbin

PATH: /usr/kerberos/bin

PATH: /usr/local/j2sdk1.4.1_02/bin

PATH: /usr/local/jakarta-tomcat-4.1.29/server/lib

PATH: /usr/local/apache/bin

PATH: /usr/local/apache2/bin

PATH: /usr/local/jakarta-ant-1.5.1/bootstrap/bin

PATH: /usr/X11R6/bin

PATH: /usr/local/sbin

PATH: /usr/local/bin

PATH: /sbin

PATH: /bin

PATH: /usr/sbin

PATH: /usr/bin

PATH: /usr/X11R6/bin

PATH: /root/bin



## --- ##

## Core tests. ##

## --- ##

configure:1507: checking for a BSD-compatible install

configure:1561: result: /usr/bin/install -c

configure:1572: checking whether build environment is sane

configure:1615: result: yes

configure:1648: checking for gawk

configure:1664: found /bin/gawk

configure:1674: result: gawk

configure:1684: checking whether make sets $(MAKE)

configure:1704: result: yes

configure:1896: checking for gcc

configure:1912: found /usr/bin/gcc

configure:1922: result: gcc

configure:2166: checking for C compiler version

configure:2169: gcc --version /dev/null 5

gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

Copyright (C) 2002 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2172: $? = 0

configure:2174: gcc -v /dev/null 5

Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/specs

Configured with:
../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
 --enable-shared --enable-threads=posix --disable-checking --with-system-zli
b --enable-__cxa_atexit --host=i386-redhat-linux

Thread model: posix

gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

configure:2177: $? = 0

configure:2179: gcc -V /dev/null 5

gcc: argument to `-V' is missing

configure:2182: $? = 1

configure:2206: checking for C compiler default output

configure:2209: gcc -L/usr/kerberos/lib conftest.c 5

configure:2212: $? = 0

configure:2258: result: a.out

configure:2263: checking whether the C compiler works

configure:2269: ./a.out

configure:2272: $? = 0

configure:2289: result: yes

configure:2296: checking whether we are cross compiling

configure:2298: result: no

configure:2301: checking for suffix of executables

configure:2303: gcc -o conftest -L/usr/kerberos/lib conftest.c 5

configure:2306: $? = 0

configure:2331: result:

configure:2337: checking for suffix of object files

configure:2359: gcc -c conftest.c 5

configure:2362: $? = 0

configure:2384: result: o

configure:2388: checking whether we are using the GNU C compiler

configure:2413: gcc -c conftest.c 5

configure:2416: $? = 0

configure:2419: test -s conftest.o

configure:2422: $? = 0


Re: LAN Access

2003-12-30 Thread George Shafik
Yep,

You need to modify your local host (lives in etc directory - map your
machine's name to your local ip address - OS will resolve it and you get to
keep your document/context path names consistent) file on all the local
machines in order to access your web server in your local area as if your
from the outside world (don't use ip address in your path as your relative
pages will revert to the appropriate context path once you jump to the next
link ) -- I'm assuming things work from the outside and your main problem is
entirely a url resolution problem because your doc path is incorrect.

George



- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 31, 2003 5:04 PM
Subject: LAN Access


 Hi all,

I have created a Web Online exam as per tthe procedure as well
and it was working fine now i want to access the web in difeerent mechine
(ie in Lan) i can acess the html page by giving
192.168.1.32:8080/OnlineExam/html/loginpage.htm after that i ma not able to
proceed .i tried to change the local host to 192.168.1.32 nothing to browse
the web (online Exam) if any one know pls help me to solve (is to change the
localhost in servel.xml file if so please reply me imm...

 Thanks
 Dhayalan

 -
 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]



jk connector Apache 1.3.29 Tomcat 4.1.29 too slow

2003-12-20 Thread George Shafik
Things that I'm using 

Platform: Linux 9
Apache 1.3.29 - built from source
Tomcat 4.1.29 - built from source
jakarta-tomcat-connectors-4.1.29 - yep also built from source - built my own mod_jk.so

Everything works but its very very very strange - its too slow to load the 
jsps/servlets on every second request.
If I make a request in the browser, every second request I need to hit STOP in the 
browser and make the request again -  that way things get loaded in the usual time.
Its particularly slow on loading images irrespective if its a second request or not. 
When I look into the mod_jk.log file apache is doing its job of passing the requested 
to tomcat to process however tomcat is not responding (as if some termination of a 
previous requested is still resolving!).

hope someone can help as I've spent the last 3 weeks on this :-(

many thanks in advance for any help,
George


Not everything that counts can be counted, and not everything that can be counted 
counts. (Sign hanging in Einstein's office at Princeton) 
Albert Einstein

Re: Urgent : Can we restrict access to a directory in tomcat

2003-06-10 Thread George Shafik
Hi Dean,

Apologies if I'm missing the point, but why can't you store/retrieve your
image from a blob field in your database ?

Cheers,
George


- Original Message - 
From: Dean Fantham [EMAIL PROTECTED]
To: Syed Nayyer Kamran [EMAIL PROTECTED]
Cc: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 3:29 AM
Subject: Re: Urgent : Can we restrict access to a directory in tomcat


 There is no guaranteed way to stop someone directly access a gif image
 via a browser url, because this is how an image is accessed by the
 browser itself anyways.  The browser just makes a HTTP get request to
 the web-server (in this case tomcat) requesting the URL of the image to
 be included in the web page.

 i.e. in a standard jsp/servlet response to a web request the image
 request is embedded in a img src=.../somedir/some-img.gif.  This is
 going to cause a browser request directory to the directory containing
 the image, which can also be duplicated in the browser.

 The only potential method that can catch most (but not all) of these
 would be to create a separate image handling jsp/servlet, say
 imageHandler.  When imageHanlder servlet recieves an image request it
 can check the http-referrer header and ensure that the referrer is the
 url of the page to which the images are supposed to load, i.e. is the
 page containing the images in /servlet/somepage then the http-referrer
 that imageHandler see should be able to checked that it is
 /servlet/somepage.  Someone can circumvent this control by the Internet,
 but just manually setting this header themselves (via a program or the
 like) and then having access directly to the images

 You would then have to update all image referrences on the somepage
 servelt/jsp however to something like img
 src=/servlet/imagehandler?gif=somerefernce.



 On Mon, 2003-06-09 at 18:32, Syed Nayyer Kamran wrote:

  hi there,
 
  I want to restrict the user to access the images directly through the
web. They should be able to access these images through web pages developed
as jsp/servlet but should not be able to access these images displayed on
page by copying the image url to the address bar. Is tomcat directly support
this functionality. or any other solution.
 
  Thanks in advance for any solution of the problem.
 
 
  Nayyer Kamran
 



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



Converting an Applet to gif, jpg to load into servlet

2002-06-03 Thread George Shafik

Hi All,

Does anyone know how to convert a simple applet (AWT) to gif, jpg file. Our main goal 
is to run the applet in the background (server side) and load the respective images 
into a servlet/JSP page. We have had some success with this but for some unknown 
reason much of the color in the applet like background is lost and we get a gif, jpg 
file with all the text but a black background. 

Any thoughts on this subject would be greatly appreciated. 

Regards,
George Shafik



Re: NIGHTMARE

2002-04-08 Thread George Shafik

Hi Arni,

About three years ago we went through many web servers in the market and found Tomcat 
simple to install.
We found it simple because we had a lot of exposure to different web servers that run 
in a number if different environments and an extensive background in the various 
programming and scripting languages targeting the web development especially in the 
area of java. 

What we did find was a lack of documentation beyond the out of the box install 
type.The way we resolved this was to use this great e-mail list and constructed our 
own internal knowledge base in addressing the various issues we encounter on a day to 
day basis.(we now do this as a standard procedure with all our open source projects, 
I'm sure there is a similar archive maintained by the apache/tomcat group ) Till this 
day I think I've only ever had to post two e-mails, this is my third - thanks for the 
opportunity :-)   

Regards,
George Shafik


Great works are performed, not by strength, but by perseverance; yonder palace was 
raised by single stones, yet you see its height and spaciousness. He that shall walk 
with vigour three hours a day, will pass in seven years a space equal to the 
circumference of the globe.
Johnson: Rasselas [Imlac]


- Original Message - 
From: Árni Arent [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 08, 2002 11:22 PM
Subject: NIGHTMARE


 Your software, Tomcat, is a nightmare to install. I've spent 2 WHOLE days
 trying to make it work without success.
 
 Endless configuration files, paths, etc. making this a impossible software
 to use. I doubt I'm the only one who has complaint.
 
 I won't use this crap, I'm switching to PHP, took me 5 minutes to figure
 that out.
 
  || |||  
 
Árni Arent Guðlaugsson
Forritari og Autonomy sérfræðingur
Íslandsvefir ehf.
Thorvaldsensstræti 4
101 Reykjavík / Iceland
--
Tel: +354 552 6300
Fax: +354 552 6302
E-mail: [EMAIL PROTECTED]
http://www.islandsvefir.is/
http://www.ha.is/
 
Bættu ha.is á vefsíðuna þína:
http://www.ha.is/almennt/tenging.asp
 
 || |||  
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 



J2EE SDK 1.3.1 and Apache 1.3.12

2002-02-25 Thread George Shafik

Hi All,

Dose anyone know how to configure J2EE SDK 1.3.1 so that its integrated into
Apache 1.3.12, JSP/SERVLET calls are automatically directed to the
respective port without the port number 8000 or 8080 appearing in the URL
request.

Under Tomcat/Apache I do this by adding mod_jk.so to Apache, add the path
to tomcat_apache.conf file in Apache's httpd.conf file.

Many thanks in advance.

Regards,
George Shafik



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: J2EE SDK 1.3.1 and Apache 1.3.12

2002-02-25 Thread George Shafik


Thanks János for the advice but all our environments are beta testing sites
when it comes to any of the free products like Apache, Tomcat ... etc.

Our commercial sites run WebSphere, WebLogic or  Oracle 8i/9i AS as the
webserver. What we are trying to do is bench mark Tomcat against the J2EE
SDK version and see how they compare in areas of stability,  scalability,
...  etc.

So it would be nice if someone can answer my contradiction:
 |Dose anyone know how to configure J2EE SDK 1.3.1 so that its
 |integrated into
 |Apache 1.3.12, JSP/SERVLET calls are automatically directed to the
 |respective port without the port number 8000 or 8080 appearing in the URL
 |request.

Regards,
George Shafik

- Original Message -
From: Jarecsni János [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, February 26, 2002 8:45 AM
Subject: RE: J2EE SDK 1.3.1 and Apache 1.3.12


 Hi,

 I feel there's a slight contradiction here. Apache in front of a Java
 Webserver is usual in production environments. Sun OTOS discourages anyone
 from using the J2EE Reference (!) Implementation in production. Why would
 you use Apache with SunRI?

 Cheers,
 János

 |-Original Message-
 |From: George Shafik [mailto:[EMAIL PROTECTED]]
 |Sent: Monday, February 25, 2002 9:42 PM
 |To: [EMAIL PROTECTED]
 |Subject: J2EE SDK 1.3.1 and Apache 1.3.12
 |
 |
 |Hi All,
 |
 |Dose anyone know how to configure J2EE SDK 1.3.1 so that its
 |integrated into
 |Apache 1.3.12, JSP/SERVLET calls are automatically directed to the
 |respective port without the port number 8000 or 8080 appearing in the URL
 |request.
 |
 |Under Tomcat/Apache I do this by adding mod_jk.so to Apache, add the
path
 |to tomcat_apache.conf file in Apache's httpd.conf file.
 |
 |Many thanks in advance.
 |
 |Regards,
 |George Shafik
 |
 |
 |
 |--
 |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]




ASP and JSP with no redirection

2002-02-14 Thread George Shafik

Hi All,

Just wondering if there is another way to integrate both JSP and ASP
together in the one page without redirection through a specific port.

Is it possible to combine both an ASP and JSP page together thus giving you
the ability to access a COM and EJB object on the same page ?

I know this sounds crazy but if it is possible then I would imagine its
something that needs to  be configured at the web server level such that
each Object method request is handled by its respective web server.

foo.JSP
%

 ... myEJBBean.Method() ...
 ...myASPObj.Method()...

%

Lets say our example is implemented on a JSP page then Tomcat/Apache will
need to know about IIS such that it passes the processing of
myASPObj.Method()  to IIS. (no redirection)

Many thanks in advance for any feedback.

Regards,
George Shafik






--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: TC 4.0.1/SAXParserFactory.newInstance() error

2002-01-12 Thread George Shafik


I encountered something similar with building Tomcat 3.2.4. It appears that
it used relative paths to find jar files. Keep in mind these relative
paths are based on what you have set the following environment variables to
JAKARTA_HOME, JAVA_HOME and ANT_HOME. You will find the CRIMSON.jar and
JAXP.jar created for you when you use Jakart-ant. Copy these files to the
location its looking for them when you do your Tomcat build.


- Original Message -
From: Mark [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, January 13, 2002 8:30 AM
Subject: Re: TC 4.0.1/SAXParserFactory.newInstance() error


 I thought CLASSPATH isn't used for locating jars in TC 4.0?  In any case,
I
 do use the startup scripts that come with Tomcat and was already through
 step 3 of your suggestions when I originally posted the question (eg. no
 jaxp/crimson available in any Tomcat or $JAVA_HOME directories, and The TC
 version of xerces.jar in common/lib).  To answer your question, no my app
 isn't bundling xerces or crimson.

 I'm not sure why this exception is being thrown to begin with...


 At 12:09 AM 1/13/2002 +0530, you wrote:
 Hi,
 
 Looks like there's may be another copy of the Jaxp classes somewhere in
 the classpath..Please try the following:
 
 1. Use the startup scripts that come with tomcat 4.0.1. These unset the
 CLASSPATH environment variables and crete custom variables for
 Tomcat's startup.
 
 2.Check to see if you're having any older Xerces or (Crimson+Jaxp) jars
 files in $JAVA_HOME/lib/ext
 
 3. Remove all instances of the files xerces.jar, parser.jar, crimson.jar
 and jaxp.jar from where ever you have placed them in the $CATALINA_HOME
 sub directories.
  Having done that, place a copy of xerces.jar in
$CATALINA_HOME/common/lib
  The xerces.jar file that comes with tomcat 4.0.1 is 1.72 MB in size
 (1,808,883 bytes)
 
 4. Just a question, is your app also bundling Xerces/crimson ? Look for
 the jars in the WIB-INF/lib sub-directory.
 
 
 Sriram
 
 1/12/02 11:17:36 PM, Mark [EMAIL PROTECTED] wrote:
 
 I'm attempting to port a working application to Tomcat 4.0.1 and hit a
 problem with SAX parsing.  When this line of code is executed
 
   SAXParserFactory factory = SAXParserFactory.newInstance();
 
 I got a ClassCastException error:
 
 java.lang.ClassCastException:
 org.apache.crimson.jaxp.SAXParserFactoryImpl
  at
 javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:148)
 
 I looked at the Tomcat archives and tried what the Tomcat documentation
 says to do, eg. move xerces.jar into my WEB-INF directory or into the
 $CATALINA_HOME/lib directory and move crimson.jar and jaxp.jar out.
 Documentation located at

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html#To
mc
 at%204%20and%20XML%20Parsers   After doing that however, I get the same
 error but from xerces (org.apache.xerces.jaxp.SAXParserFactoryImpl) vs.
 crimson.
 
 Has someone slayed this dragon before?  If so, any help would be greatly
 appreciated.
 
 Mark
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 
 
 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.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]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Redirection and Load Balancing

2001-08-09 Thread George Shafik

Magic Paul!

Just a correction on the version of Apache we are running - 1.3.12 and still
trialing 1.3.19.


 worker.worker1.host=localhost  # never tried a remote machine, but you
Point of confusion
Are you running your tomcats (JVMs) on separate servers ?
If so how do you determine when load balancing kicks in and its
effectiveness ?
Or do you do what most of us do and wait for bitter complaints about
performance ?


 # duplicate these lines for every worker... (not lbworker)
 worker.worker1.port=number   # matching the port number from this
Our main gateway machine is a Linux box (sits behind our firewall) and we
use port mapping to resolve respective URL calls to the appropriate Web
Server. This is the only way we found in order to integrate IIS4/5 into our
Web Site alongside tomcat.  My main concern is how are you resolving the URL
calls to the appropriate server. Its clear you will have duplicate document
structures on each of the JVMs but is this where things get resolved ?


George

- Original Message -
From: Paul Nock [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 10, 2001 7:31 AM
Subject: RE: Redirection and Load Balancing


 We're running Linux, Tomcat 3.n (currently 3.2.2), and Apache 1.3.19 (and
 also 1.3.12).

 We did rebuild binaries, but didn't really need to.  The only weird thing
we
 did was so the hardware load balancer in front of our servers kept cookie
 and/or jsessionid sessions on the same physical hardware so mod_jk
 loadbalancing could do its thing.

 Tomcat:
 server*.xml: one for each tomcat JVM, then in your startup script do
 something like:
 java -Dtomcat.home=${TOMCAT_HOME} org.apache.tomcat.startup.Tomcat -f
 ${TOMCAT_HOME}/conf/server1.xml $@
 so you can run everythint out of the same tomcat home.

 workers.properties:
 worker.list=lbworker, worker1, worker2,...

 # duplicate these lines for every worker... (not lbworker)
 worker.worker1.port=number   # matching the port number from this
 instances server*.xml file
 worker.worker1.host=localhost  # never tried a remote machine, but you
 could
 worker.worker1.type=ajp13  # or ajp12 if you're using it
 worker.worker1.lbfactor=2  # we don't use this
 worker.w1a.cachesize=1 # or this

 worker.lbworker.type=lb
 worker.lbworker.balanced_workers=worker1, worker2,...

 ModJk.conf: use the auto-generated file as a template and mount the
contexts
 you want to balance on the lb worker...
 JkMount /servlet/* lbworker

 Apache: append the ModJk.conf file to httpd.conf

 Paul

 -Original Message-
 From: George Shafik [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 08, 2001 5:10 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Redirection and Load Balancing



 Sounds great Paul.

 What sort of environment are you using mod_jk in  ?
 - OS platform
 - Version of Apache, Tomcat
 - How many versions of Apache and Tomcat are you running in parallel in
 order to mirror your Web Site so you can perform your load balancing.
 - Are all your binaries custom built ?

 Can you please e-mail me directly all relevant Apache/Tomcat configuration
 files that I need to alter in order to use mod_jk in the manner you
 describe. If this is too difficult cut and past the relevant pieces
 commenting on where they are from into one file.

 Regards,
 George Shafik
 [EMAIL PROTECTED]


 - Original Message -
 From: Paul Nock [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 09, 2001 8:44 AM
 Subject: RE: Redirection and Load Balancing


  You can use mod_jk to load balance between different JVMs running
Tomcat.
  Works well, we use it.
 
  The JVMs could then also be on remote machines to either each other,
 and/or
  the machine running Apache.
 
  mod_jk will preserve sessions for you so that subsequent request go to
the
  right JVM.
 
  You'll need to configure the workers.properties, etc. to use the
  'loadbalancer' worker.
 
  Paul
 
  -Original Message-
  From: George Shafik [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, August 08, 2001 3:40 PM
  To: [EMAIL PROTECTED]
  Subject: Redirection and Load Balancing
 
 
  Hi All,
 
  Current System Architecture
  Apache : 3.17 (Custom Build)
  Tomcat : 3.2.2 (Custom Build)
  Deployment : war files.
  Platform : Red Hat Linux 6.2
 
  We are after a method to redirect based on a limit on the number of page
  hits or the load on the current Web Server.
 
  The redirection needs to be performed by Apache or Tomcat not by the web
  page itself. Currently we are redirecting the user to another Web Server
  from the current page as the page hits reach a certain limit or the load
 is
  too much on the current box. A better way to conduct this is to redirect
 the
  call to another Web Server at the Web Server or Servlet Engine level, in
 our
  case that's Apache or Tomcat. Its not clear to us where in Apache or
 Tomcat
  we can configure things based on page hits or load if its possible to do
 at
  all

Redirection and Load Balancing

2001-08-08 Thread George Shafik

Hi All,

Current System Architecture
Apache : 3.17 (Custom Build)
Tomcat : 3.2.2 (Custom Build)
Deployment : war files.
Platform : Red Hat Linux 6.2

We are after a method to redirect based on a limit on the number of page
hits or the load on the current Web Server.

The redirection needs to be performed by Apache or Tomcat not by the web
page itself. Currently we are redirecting the user to another Web Server
from the current page as the page hits reach a certain limit or the load is
too much on the current box. A better way to conduct this is to redirect the
call to another Web Server at the Web Server or Servlet Engine level, in our
case that's Apache or Tomcat. Its not clear to us where in Apache or Tomcat
we can configure things based on page hits or load if its possible to do at
all.

Many thanks in advance for any help in this area.

Regards,
George Shafik







Re: Redirection and Load Balancing

2001-08-08 Thread George Shafik


Sounds great Paul.

What sort of environment are you using mod_jk in  ?
- OS platform
- Version of Apache, Tomcat
- How many versions of Apache and Tomcat are you running in parallel in
order to mirror your Web Site so you can perform your load balancing.
- Are all your binaries custom built ?

Can you please e-mail me directly all relevant Apache/Tomcat configuration
files that I need to alter in order to use mod_jk in the manner you
describe. If this is too difficult cut and past the relevant pieces
commenting on where they are from into one file.

Regards,
George Shafik
[EMAIL PROTECTED]


- Original Message -
From: Paul Nock [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 8:44 AM
Subject: RE: Redirection and Load Balancing


 You can use mod_jk to load balance between different JVMs running Tomcat.
 Works well, we use it.

 The JVMs could then also be on remote machines to either each other,
and/or
 the machine running Apache.

 mod_jk will preserve sessions for you so that subsequent request go to the
 right JVM.

 You'll need to configure the workers.properties, etc. to use the
 'loadbalancer' worker.

 Paul

 -Original Message-
 From: George Shafik [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 08, 2001 3:40 PM
 To: [EMAIL PROTECTED]
 Subject: Redirection and Load Balancing


 Hi All,

 Current System Architecture
 Apache : 3.17 (Custom Build)
 Tomcat : 3.2.2 (Custom Build)
 Deployment : war files.
 Platform : Red Hat Linux 6.2

 We are after a method to redirect based on a limit on the number of page
 hits or the load on the current Web Server.

 The redirection needs to be performed by Apache or Tomcat not by the web
 page itself. Currently we are redirecting the user to another Web Server
 from the current page as the page hits reach a certain limit or the load
is
 too much on the current box. A better way to conduct this is to redirect
the
 call to another Web Server at the Web Server or Servlet Engine level, in
our
 case that's Apache or Tomcat. Its not clear to us where in Apache or
Tomcat
 we can configure things based on page hits or load if its possible to do
at
 all.

 Many thanks in advance for any help in this area.

 Regards,
 George Shafik









Concurrent VMs accessing the one Connection Pool

2001-05-31 Thread George Shafik



Hi All,

Has anyone implemented a connection pool using more than one 
VM machine (Tomcat) or put it another way, has anyone been 
able to get concurrent servlet engines (Tomcat) accessing the one common 
connection pool ?

Any examples using Apache with multiple versions of Tomcat 
running "in-process" on dedicated linux serverswithan Oracle backend 
will be greatly appreciated.

Cheers,
George


Profile tool for Apache/Tomcat

2001-02-27 Thread George Shafik



Hi,

We are looking for a profiling tool for Apache/Tomcat and if 
that is not possible a class library that implements a framework thatwe 
can incorporate intoour development environment that willaid us in 
locating possible bottle neck in our code and thustarget these areas for 
JNI.

Greatly appreciative of any help as this is an issue that has 
been raisedon this "list" on several occasions withno 
realinput.

Regards,
George


Re: SSL Help

2001-02-05 Thread George Shafik

Hi All,

After server months of development we are ready to implement security part
of the system and are very confused on how to go about it and hopefully
someone in this mailing list has tackled this issue successfully.
...

Our systems are:
 Linux Red Hat 6.2
Apache 1.12.? - Compiled/Built in our environment
Tomcat 3.2.1 - Compiled/Built in our environment
JDK 1.2.2
Oracle 8.1.6

As far as we understand you can apply SSL at:
1) OS level with a product like OpenSSL
2) Application Level with Sun's JSSE 1.0.2

Our main concern is performance, then portability of code between different
systems.

Performance
Do you get better system performance by applying SSL at the OS or at an
application layer ?
I would think at the OS level as the Security Software will be written in a
language like C making it very fast as it will be native to the process used
the target machine.

Code
IF you decided to use JSSE 1.0.2 implementation of SSL what impact will it
have when you port your code to a system that implements SSL at the OS level
?
If SSL Code is introduced correctly into the Framework then the impact will
be minimal between system implementations as it only should involve rippling
out a base class.

As mentioned performance is a very important issue and having several layers
of security from the firewall against the web server to the firewall against
the database to security sitting at the socket level encrypting and
decrypting everything that comes in its path not to mention getting Java to
do its magic through the interpreted bytecode!

At this stage in our development cycle we have a very superficial
understanding of the impact and possible solutions when it comes to
successfully implementing security and welcome any advise in this area.

Regards,
George


- Original Message -
From: "John Golubenko" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 06, 2001 3:14 AM
Subject: RE: SSL Help


 Hello,

 I have configured with OpenSSL (to Tomcat directly), made a key, etc. Now
 I can have a secure connections to my server, but browsers complains that
 my
 certificate isn't good, not signed, not knows, etc. Seems that browsers
 have to problems with Verisign or RSA (?) certificates, which cost
 600-1000 dollars
 per each one. I'm don't have those kind of money to spend. So, how do I
 get my certificate, so the browser wouldn't ask to install it, or
 approval from the user.

 Thank you,
 John.



  Original Message 

 On 2/5/01, 4:59:46 AM, "Coetmeur, Alain"
 [EMAIL PROTECTED] wrote regarding RE: SSL Help:


  browse the archive those recent days/weeks

  the secret are:

  it is advised to use apache with openssl (mod_ssl or apache+ssl)
  as the SSL processor and just configure it
  to delegate servlet and JSP to tomcat...
  look at http://www.modssl.org/
  or http://www.apache-ssl.org/
  for explanations, install doc, binaries, advices...

  anyway you can make tomcat able to serve SSL directly.
  install JSSE from SUN as documented
  (detail in some of my former messages here)
  this include putting the.jar in a lib or lib/ext directory
  as explaine, and twickle some security.properties

  create private key in the java keystore, produce a
  certificate (externaly or auto-certifies) with
 CN=the.dns.name.of.my.tomcat
  and add the certificate to the java keystore...

  modify the server.xml as explained
  in come comments... (I've send here a working server.xml)

  add some options in TOMCAT_OPTS (in tomcat.bat) so that URL Factory
  supports SSL, and JSSE can find the truststore...
  set TOMCAT_OPTS=%TOMCAT_OPTS%
-Djavax.net.ssl.trustStore="%TOMCAT_HOME%/../openssl/maui/cacerts"
-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol

  may the force be with you.
  you can do it!
  this can work, I've tested !

   -Message d'origine-
   De: venkatesan [mailto:[EMAIL PROTECTED]]
   Date: lundi 5 fvrier 2001 12:50
   : [EMAIL PROTECTED]
   Objet: SSL Help
  
  
   Hi All,
I am developing web applications using servlets,
   Rmi, Sql-server and
   Tomcat in Apache web server under Linux platform. I would
   like to use SSL. Can
   any body tell that where can i get SSL for tomcat. How can i
   do it using
   Tomcat..
   Thanks in advance...
  
   cheers
   Venkateh
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: [EMAIL PROTECTED]
  

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

 NOTICE:  This communication may contain confidential or other privileged
information.  If you are not the intended recipient, or believe that you
have received this communication in error, please do not print, copy,
retransmit, disseminate, or otherwise use the information.  Also, please
indicate to the sender that you have received this 

Re: JDBC connectivity - java.sql.SQLException: No suitable driver

2001-02-04 Thread George Shafik



Check your "classpath".Make sure that the JDBC jar file 
specified in your "classpath" is one in the same as that used by the development 
tool you are using to develop your Java app.

Cheers,
George

  - Original Message - 
  From: 
  Dipankar Sinha 
  To: [EMAIL PROTECTED] 
  Cc: Ignacio J. Ortega 
  Sent: Monday, February 05, 2001 10:22 
  AM
  Subject: JDBC connectivity - 
  java.sql.SQLException: No suitable driver
  
  I am trying tohost some webpages using Tomcat and when my webpage 
  is being accessed, I am getting an error message on the linux console as: 
  
  
  java.sql.SQLException: No suitable driverI have setup 
  Tomcat-3.2.1 and Apache_1.3.14 with MySQL-3.23.31 under RedHatLinux 6.2. 

  jdk1.3 is installed under /usr/java. 

  Tomcat, Apache and MySQL are basically working fine
  I have to setup login authentication from the webpages accessing data 
  from MySQL (name of database is test, no user, no password). 
  I am trying to use MM.MySQL for JDBC connectivity to MySQL
  
  As indicated in Tomcat/MM.MySQL documentation, I have tried as 
  follows:1. Modified $TOMCAT_HOME/conf/server.xml to add following 
  lines: 
  RequestInterceptor 
  className="org.apache.tomcat.request.JDBCRealm" 
  debug="99" 
  driverName="org.gjt.mm.mysql.Driver" 
  connectionURL="jdbc:mysql://localhost/test''" 
  /2. I tried dropping mm.mysql-2.0.4-bin without un jaring under 
  $TOMCAT_HOME/lib
  
  Tomcat starts without any error but does not confirm Database 
  connection.
  Further when I am trying to stop Tomcat, I am getting additional 
  error message as:java.lang.NullPointerExceptionIn a separate 
  environment, I have used NT4.0, JavaWebserver, MySQL and ODBCdriver. Every 
  thing is working over there including database access from the 
  sameWebPages etc.Can somebody help?Thanks a million in 
  advance.Dipankar