RE: How to make tomcat work on a remote server?

2005-06-22 Thread Randall Svancara
 
This might be something to look at, but I know in Fedora Core 3, the
last SE Linux Policy broke mod_jk.  You had to either turn of SELinux or
modify targeted policy.  If you think you may have this problem, look at
/var/log/messages to see if the security policy is logging any errors.

You can also run:

audit2allow -d 

to see if any policy changes needed to be added.   


Randall


-Original Message-
From: Raghupathy,Gurumoorthy
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 21, 2005 7:10 AM
To: 'Tomcat Users List'
Subject: RE: How to make tomcat work on a remote server?

Hey just got it 

Look at : http://www.junlu.com/msg/170819.html 

-Original Message-
From: Raghupathy,Gurumoorthy
[mailto:[EMAIL PROTECTED]

Sent: 21 June 2005 14:04
To: 'Tomcat Users List'
Cc: '[EMAIL PROTECTED]'
Subject: RE: How to make tomcat work on a remote server?


From my experience 
Your DocumentRoot should be different to the appBase of your
virtual host ... 
Set the document root to something else and try 


Regards
Guru


-Original Message-
From: Raghupathy,Gurumoorthy
[mailto:[EMAIL PROTECTED]

Sent: 21 June 2005 13:45
To: 'Tomcat Users List'
Cc: '[EMAIL PROTECTED]'
Subject: RE: How to make tomcat work on a remote server?


Sorry could not get back to you earlier ... 

I think you are worker2.properties ... 

Remove 
LoadModule jk2_module modules/mod_jk2.so
Include /usr/local/tomcat/conf/auto/mod_jk2.conf


Your workers.
Should be somehting like this .. .. 

http://jakarta.apache.org/tomcat/connectors-doc/howto/workers.html

I will look into your problem from home ..  Have emailed my home address
...


Regards
Guru 

-Original Message-
From: sai krishna [mailto:[EMAIL PROTECTED]
Sent: 21 June 2005 13:06
To: Tomcat Users List
Subject: RE: How to make tomcat work on a remote server?


 Can anyone help me out  here??
 Im unable to access my jsp page on the net. I get
internal server error. Im using included both mod_jk
and mod_jk2 module, /var/logs/httpd/log shows that
mod_jk2 starts but down below this module I loaded
mod_jk module so it will support JkMount command in
httpd.conf file. Can any one suggest m e the best
method to access jsp pages on tomcat 4.1.17 either
mod_jk/mod_jk2 connector and 2.0.52 apache on Fedora
box 2.
Today I added JkMount line in httpd.conf and rest
everything is same as my down files 
 
  server.xml is as following
  Server port=8005 shutdown=SHUTDOWN debug=0
!-- Define an Apache-Connector Service --
 Service name=Tomcat-Apache
   !-- 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=2
  useURIValidationHack=false
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
Engine name=Apache
  defaultHost=www.oursitename.com debug=0
  Logger
  className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/
  !-- Access log processes all requests for this
  virtual host. --
  Valve
 
className=org.apache.catalina.valves.AccessLogValve
  directory=logs  prefix=localhost_access_log.
  suffix=.txt
  pattern=common resolveHosts=false/
   Host name=www.oursitename.com debug=0

appBase=/home/httpd/vhosts/oursitename.com/httpdocs/
   unpackWARs=true autoDeploy=true
  Aliaslocalhost/Alias
  Aliaswww/Alias/Host
  AliasOur IP/Alias
  /Engine
   /Service
   /Server
  
  --
  httpd.conf file
LoadModule jk2_module modules/mod_jk2.so
LoadModule jk_module modules/mod_jk.so
Include /usr/local/tomcat/conf/auto/mod_jk2.conf
Include /usr/local/tomcat/conf/auto/mod_jk.conf
VirtualHost Our IP:80
  ServerName   oursite.com:80
  ServerAlias  www.oursite.com
  UseCanonicalName On
  DocumentRoot
   /home/httpd/vhosts/oursite.com/httpdocs
  CustomLog 
/home/httpd/vhosts/oursite.com/statistics/logs/access_log
   combined
  ErrorLog  
/home/httpd/vhosts/oursite.com/statistics/logs/error_log
  Alias /trainer
/home/httpd/vhosts/oursite.com/httpdocs/trainer

JkMount /trainer/*.jsp ajp13
JkMount /trainer/adminjsp/*.jsp ajp13
Directory
/home/httpd/vhosts/oursite.com/httpdocs/trainer/
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory
Location /trainer/WEB-INF/*
AllowOverride None 
deny from all 
/Location 
Location /trainer/META-INF/*
AllowOverride None
deny from all
/Location
Directory /home/httpd/vhosts/oursite.com/httpdocs/
Options None
AllowOverride None
/Directory

  ---
workers.properties
[logger.apache2]
level=DEBUG
  
[shm]
file=/home/httpd/vhosts/oursite.com/tomcatlog
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1

# define the worker
[ajp13:localhost:8009]

RE: mod_jk works as localhost only

2005-06-20 Thread Randall Svancara
Just another side note to this thread.  I was applying the SELinux
Security Policy patch to my fedora core 3 box today and it broke my
apache + mod_jk + tomcat installation.  The fedora team must of changed
the Security Enhanced Linux Policy preventing mod_jk connecting to an
external tomcat server.  Policy.18 is the culprit I am sure of it.  I
will research this some more.  But for right now, you will have to turn
off SELinux for the httpd daemon.  This is easy to do with the GUI tools
provided in the security level settings under the SELinux tab.  

 

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 17, 2005 9:43 AM
To: Tomcat Users List; naidim
Subject: RE: mod_jk works as localhost only

Is it possible for you to send us your mod_jk configuration along with
your workers.properties(if you have one)?

Randall 

-Original Message-
From: naidim [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 16, 2005 12:41 PM
To: Tomcat Users List
Subject: mod_jk works as localhost only

I'm running Apache2.0.52 and Tomcat 5.5.9 on FC3.  Both work fine
locally and remotely.

mod_jk is configured but it only works as localhost.  Browsing by name
or IP fails to find the files in the webapp directory.  What do I need
to change so it finds them when browseing remotely?

Thanks

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


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



RE: mod_jk works as localhost only

2005-06-20 Thread Randall Svancara
Ok, well, I am posting this information to this list in this thread
because we kind of got started down the path of SELinux.  Fedora Core3
comes with a feature called Security Enhanced Linux.  This is a security
feature that you may or may not want to have on your server.  I chose to
enable it, so that is why I am posting this information.  The main
reason for using SELinux is to have finer grain control over what your
processes are doing and how they are doing them.  Also this information
is output to the logs and is great for auditing.  I highly recommend
taking the time to read about SELinux if your distro supports it.  

First of all, I have Apache + Mod_jk on one machine and then tomcat on a
separate machine.  When I upgraded to SELinux Policy 18, I noticed that
apache would not communicate with tomcat using the ajp13 connector.  So
what do you do?  Well you can:

1.  Disable SELinux for apache by going into the gui security level
settings tool.  You have to have a gui installed for this to work.  

2.  Disable SELinux entirely.  Google for this, I can not remember how
to do it.

3.  Configure your SELinux policy to allow Apache+Mod_JK to work.  You
can do this my using the audit2allow tool.  You also need the
selinux-policy-targeted-sources package.  Just do a:

yum install selinux-policy-targeted-sources  

audit2allow -d 

allow httpd_t httpd_log_t:file write;
allow httpd_t self:tcp_socket connect;
allow mysqld_t ld_so_cache_t:file execute;
allow unconfined_t httpd_t:file relabelto;

The content above needs to be placed in 
/etc/selinux/targeted/src/domains/program/apache.te

I had to comment out the last two lines because I was not interested in
enabling them.  The manual on SELinux clearly indicates to analyze the
output of audit2allow carefully.  

Next, cd into the /etc/selinux/targeted/src directory and do:

make policy
make install
make reload

Then restart apache and it may work, or it may not.

Randall





-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 20, 2005 10:29 AM
To: Tomcat Users List
Subject: RE: mod_jk works as localhost only

Just another side note to this thread.  I was applying the SELinux
Security Policy patch to my fedora core 3 box today and it broke my
apache + mod_jk + tomcat installation.  The fedora team must of changed
the Security Enhanced Linux Policy preventing mod_jk connecting to an
external tomcat server.  Policy.18 is the culprit I am sure of it.  I
will research this some more.  But for right now, you will have to turn
off SELinux for the httpd daemon.  This is easy to do with the GUI tools
provided in the security level settings under the SELinux tab.  

 

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Friday, June 17, 2005 9:43 AM
To: Tomcat Users List; naidim
Subject: RE: mod_jk works as localhost only

Is it possible for you to send us your mod_jk configuration along with
your workers.properties(if you have one)?

Randall 

-Original Message-
From: naidim [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 16, 2005 12:41 PM
To: Tomcat Users List
Subject: mod_jk works as localhost only

I'm running Apache2.0.52 and Tomcat 5.5.9 on FC3.  Both work fine
locally and remotely.

mod_jk is configured but it only works as localhost.  Browsing by name
or IP fails to find the files in the webapp directory.  What do I need
to change so it finds them when browseing remotely?

Thanks

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


-
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: mod_jk works as localhost only

2005-06-17 Thread Randall Svancara
Have you turned off iptables.  

/etc/init.d/iptables stop

That will kill the firewall rules that is built in to Fedora Core3. 

Randall 

-Original Message-
From: naidim [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 16, 2005 12:41 PM
To: Tomcat Users List
Subject: mod_jk works as localhost only

I'm running Apache2.0.52 and Tomcat 5.5.9 on FC3.  Both work fine
locally and remotely.

mod_jk is configured but it only works as localhost.  Browsing by name
or IP fails to find the files in the webapp directory.  What do I need
to change so it finds them when browseing remotely?

Thanks

-
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: mod_jk works as localhost only

2005-06-17 Thread Randall Svancara
Is it possible for you to send us your mod_jk configuration along with
your workers.properties(if you have one)?

Randall 

-Original Message-
From: naidim [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 16, 2005 12:41 PM
To: Tomcat Users List
Subject: mod_jk works as localhost only

I'm running Apache2.0.52 and Tomcat 5.5.9 on FC3.  Both work fine
locally and remotely.

mod_jk is configured but it only works as localhost.  Browsing by name
or IP fails to find the files in the webapp directory.  What do I need
to change so it finds them when browseing remotely?

Thanks

-
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: Can't find workers file

2005-06-16 Thread Randall Svancara
You mean Security Enhanced Linux...aka SELinux.  Yes that is true, it will 
prevent you from reading directorys not owned by apache.  You can also turn off 
SELinux, which seems to easy to do.  

Randall 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 16, 2005 11:42 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: Can't find workers file

Fedora Core 3 uses a special security system called [something I've forgot...] 
which runs the Apache process a it's own user name/group and prevents it from 
accessing files that doesn't belong to him. Search in that direction and you 
should find what you are looking for.

Consider placing the workers.properties file in the Apache2/conf/ directory and 
chown and chmod it.

It seems like a good old permission problem...

Luc Boudreau
Universit du Qubec
Canada



-Message d'origine-
De: naidim [mailto:[EMAIL PROTECTED]
Envoy: 16 juin 2005 11:08
: tomcat-user@jakarta.apache.org
Objet: Can't find workers file

I'm running Apache 2.0.52 and Tomcat 5.5.9 on Fedora Core 3.  Both are working 
properly.
I installed mod_jk, but when I edit httpd.conf to add JkWorkersFile I get an 
error starting Apache: Can't find workers file.

I've checked the path, tried changing locations, nothing seems to work.  Anyone 
seen this error before?

Thanks

-
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: Can't find workers file

2005-06-16 Thread Randall Svancara
I am using Fedora Core 3 more my apache/tomcat installation.   Also make
note that I created a separate mod_jk.conf file and put it into the
/etc/httpd/conf.d/ directory, instead of putting it into the httpd.conf
file like you are doing.  

Here is my mod_jk.conf if that helps you.

#
# Mod_jk is a connector that communicates with tomcat using the
# ajp13 protocol.
#

LoadModule jk_module modules/mod_jk.so


#Where to find the workers.properties
JkWorkersFile /etc/httpd/conf/workers.properties

#Where to find the workers.properties
JkWorkersFile /etc/httpd/conf/workers.properties

#Where to put the jk logs
JkLogFile /var/log/httpd/mod_jk.log

#Log File Level
JkLogLevel all

#Log file format
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 

JkRequestLogFormat %w %V %T


JkShmFile /var/log/httpd/jksmfile
JkShmSize 20M

-Original Message-
From: naidim [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 16, 2005 9:08 AM
To: tomcat-user@jakarta.apache.org
Subject: Can't find workers file

I'm running Apache 2.0.52 and Tomcat 5.5.9 on Fedora Core 3.  Both are
working properly.
I installed mod_jk, but when I edit httpd.conf to add JkWorkersFile I
get an error starting Apache: Can't find workers file.

I've checked the path, tried changing locations, nothing seems to work.
Anyone seen this error before?

Thanks

-
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: tomcat load-balancing maintenance strategy?

2005-03-08 Thread Randall Svancara
You need to implement either in memory session replication or persist
the session in a database or a shared file system.  

I have finally got my tomcat cluster working and session replication is
functional. 

Randall 

-Original Message-
From: Sng Wee Jim [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 07, 2005 10:50 PM
To: tomcat-user@jakarta.apache.org
Subject: tomcat load-balancing maintenance strategy?


Hi,




I am load-balancing tomcat 5.0.28 using JK1.2 / AJP1.3.




For discussion, let's assume I have 2 tomcats (TomcatA and TomcatB)
load-balanced. When I shutdown one of the tomcats (Tomcat B), future
requests for TomcatB is correctly redirected and handled by the TomcatA.
However, the original session on TomcatB is not passed over to TomcatA,
and a re-login is required.




My question:


1.  Is it possible to pass the session information to TomcatA before
shutting down TomcatB? For eg. we want to perform servers upgrade, so we
down TomcatB, upgrade it, start TomcatB, before doing the same to
TomcatA.










- Jim








The information in this email is confidential and is intended solely for
the addressee(s).
Access to this email by anyone else is unauthorized. If you are not an
intended recipient, please notify the sender of this email

immediately. You should not copy, use or disseminate the

information contained in the email.
Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of
Capco.

http://www.capco.com/



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



RE: tomcat load-balancing maintenance strategy?

2005-03-08 Thread Randall Svancara
Yeah, but you still need to uncomment the cluster element in the
server.xml.  Also if you have a multi-homed server you need to bind
multicast to a specific ip address.  Not to mention that you need to set
up mod_jk and apache to load balance.  It is not just adding a trivial
/distributable xml element into the  web.xml that makes load balancing
with session replication work.  

Anyway, just my thoughts on the matter

Randall

-Original Message-
From: Ramu, Vinod [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 8:03 AM
To: Tomcat Users List
Subject: RE: tomcat load-balancing maintenance strategy?

I thought 

/distributable 

XML element in web.xml does that automatically.

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 08, 2005 9:40 AM
To: Tomcat Users List
Subject: RE: tomcat load-balancing maintenance strategy?


You need to implement either in memory session replication or persist
the session in a database or a shared file system.  

I have finally got my tomcat cluster working and session replication is
functional. 

Randall 

-Original Message-
From: Sng Wee Jim [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 07, 2005 10:50 PM
To: tomcat-user@jakarta.apache.org
Subject: tomcat load-balancing maintenance strategy?


Hi,




I am load-balancing tomcat 5.0.28 using JK1.2 / AJP1.3.




For discussion, let's assume I have 2 tomcats (TomcatA and TomcatB)
load-balanced. When I shutdown one of the tomcats (Tomcat B), future
requests for TomcatB is correctly redirected and handled by the TomcatA.
However, the original session on TomcatB is not passed over to TomcatA,
and a re-login is required.




My question:


1.  Is it possible to pass the session information to TomcatA before
shutting down TomcatB? For eg. we want to perform servers upgrade, so we
down TomcatB, upgrade it, start TomcatB, before doing the same to
TomcatA.










- Jim








The information in this email is confidential and is intended solely for
the addressee(s). Access to this email by anyone else is unauthorized.
If you are not an intended recipient, please notify the sender of this
email

immediately. You should not copy, use or disseminate the

information contained in the email.
Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of
Capco.

http://www.capco.com/



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


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



RE: tomcat fails on FC3

2005-03-08 Thread Randall Svancara
The reason that this happens is that you are not using the right java.
If you do a:

whereis java

You will see that java is installed in /usr/bin.  This is not the
correct java, you need to use another one.   If you do this:

cat /usr/bin/java  

You will see that this is just a script.  I used J2SDK 1.5 (5.0) rpm
from http://java.sun.com and it is installed into /usr/java/jdk1.5.0_01.


If you have installed your j2sdk correctly, you might try:

export JAVA_HOME=/path/to/java

And then run the startup.sh script.

Randall

-Original Message-
From: David Smithson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 2:10 PM
To: tomcat-user@jakarta.apache.org
Subject: tomcat fails on FC3

Hi all.  I followed the instructions in RUNNING.txt from the binary
distribution of Tomcat 5.  I'm having some trouble and would appreciate
a little help.  What am I doing wrong?

When I run startup.sh, I get this output in the shell:

Using CATALINA_BASE:   /usr/share/tomcat5
Using CATALINA_HOME:   /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:   /usr

And logs/catalina.out shows:

libgcj-java-placeholder.sh

This script is a placeholder for the /usr/bin/java master link required
by jpackage.org conventions.  libgcj's rmiregistry, rmic and jar tools
are now slave symlinks to these masters, and are managed by the
alternatives(8) system.

This change was necessary because the rmiregistry, rmic and jar tools
installed by previous versions of libgcj conflicted with symlinks
installed by jpackage.org JVM packages.
Exception in thread main java.lang.NoClassDefFoundError: while
resolving class: org.apache.catalina.startup.Bootstrap
   at java.lang.VMClassLoader.resolveClass(java.lang.Class)
(/usr/lib/libgcj.so.5.0.0)
   at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
   at java.lang.Class.forName(java.lang.String, boolean,
java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
   at java.lang.Class.forName(java.lang.String)
(/usr/lib/libgcj.so.5.0.0)
   at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
   at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
   at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean)
(/usr/lib/libgcj.so.5.0.0)
   at __gcj_personality_v0
(/usr/share/tomcat5/java.endorsed.dirs=/usr/share/tomcat5/common/endorse
d)
   at __libc_start_main (/lib/tls/libc-2.3.4.so)
   at _Jv_RegisterClasses
(/usr/share/tomcat5/java.endorsed.dirs=/usr/share/tomcat5/common/endorse
d)
Caused by: java.lang.ClassNotFoundException: javax.management.ObjectName
not found in [file:/usr/share/tomcat5/bin/bootstrap.jar,
file:/usr/share/tomcat5/bin/commons-logging-api.jar, core:/]
   at java.net.URLClassLoader.findClass(java.lang.String)
(/usr/lib/libgcj.so.5.0.0)
   at gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String)
(/usr/lib/libgcj.so.5.0.0)
   at java.lang.ClassLoader.loadClass(java.lang.String, boolean)
(/usr/lib/libgcj.so.5.0.0)
   at _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader)
(/usr/lib/libgcj.so.5.0.0)
   at java.lang.Class.forName(java.lang.String, boolean,
java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
   at _Jv_BytecodeVerifier.verify_instructions_0()
(/usr/lib/libgcj.so.5.0.0)
   at _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0)
   at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
   at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
   at java.lang.VMClassLoader.linkClass0(java.lang.Class)
(/usr/lib/libgcj.so.5.0.0)
   at java.lang.VMClassLoader.resolveClass(java.lang.Class)
(/usr/lib/libgcj.so.5.0.0)
   ...9 more

--
David Smithson [EMAIL PROTECTED] Custom Film Effects


-
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: Tomcat at Standalone

2005-03-04 Thread Randall Svancara
I will attempt to answer you questions as best I can.

Your file structure of your site will typically look something like this

$CATALINA_HOME/
  webapps/
(PLACE YOUR WEBAPPS HERE)
 
common/
lib/
  conf/
  Catalina/
  localhost
 (CONTEXT DESCRIPTER GOES HERE)
  bin/
  server/

Now your web application will be placed in the webapp directory.  
This will setup as follows:

webapp/
  someapplication/
 pages/
Place all your jsp's here
 css/
Style sheets
 images/
images
 WEB-INF/
web.xml  --- need to configure this
classes/ 
   --- application specific classes
go here
  lib/
 --- application specific jars go here

Yes you can use tomcat standalone.  If you are using a unix environment,
port 80 is a priviledged port and you must either run tomcat as root (I
do not recommend this), use jscv, or Mod_JK, or Mod_Proxy.  By default,
Tomcat runs on port 8080, but this can be changed to whatever you want.

No more security issues than with any other webserver.  You need to keep
up on your patches/upgrades and monitor the security bulletins.  Don't
run it as root on a Unix box or Local System or Administrator on
Windows.

Sometimes it is easier to use the built in authentication mechanisms.
That is why developers provided this stuffto save you time and
effort.  Tomcat provides a variety of login mechanisms.  I would read up
on them to see if they fit your needs.

I hope that helps you out.  It took me a while to figure all this stuff
out and I still don't know a 1/3 of what I should.  But this list is a
great place to get info from.

Thanks

Randall




  

-Original Message-
From: Anderson, M. Paul [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 04, 2005 6:02 AM
To: Tomcat Users List
Subject: Tomcat at Standalone

This question must have been asked a million times but I can't seem to
find any information on it - any advice would be appreciated.

I need to stand up a web site that will only serve jsp and servlets.  I
suspect the number of concurrent users will be no more than 10, but it
could possibly grow in the future.

Here are my questions:

What is industry best practice for setting up a jsp/servlet site that
will not require any static HTML pages?

Can Tomcat be reliably used as standalone for this purpose?  

Is this the normal configuration for this type of site?

Are there known security issues with using Tomcat in standalone?

The other piece would be Apache, if it is standard practice to use it
even if you don't need to serve HTML pages.  Also, I will be doing all
of my own authentication into the site so no security features of Apache
or Tomcat will be required.

Thanks a lot for any advice or pointers!

Paul

-
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: JDBCStore JTDS

2005-03-02 Thread Randall Svancara
Ok, I am not sure if anyone knows this and the documentation for tomcat does 
not indicate if you can use parameter /parameter for configuring a 
JDBCStore.  Here is an example that I have seen in the tomcat documentation, 
with the modification for jtds that does not work.  
 
Manager className=org.apache.catalina.session.PersistentManager
Store className=org.apache.catalina.session.JDBCStore 
connectionURL=jdbc:jtds:sqlserver://10.113.2.60/propsys;user=webuser;password=password
driverName=net.sourceforge.jtds.jdbc.Driver
sessionIdCol=session_id
sessionValidCol=valid_session
sessionMaxInactiveCol=max_inactive
sessionLastAccessedCol=last_access
sessionTable=tomcat_sessions
sessionAppCol=app_context
sessionDataCol=session_data /
/Manager
 
However, if it would support the same configuration style as dbcp, I would not 
be having these problems. Partial example provided below.
Manager className=org.apache.catalina.session.PersistentManager
Store
  parameter
nameurl/name
   valuejdbc:jtds:sqlserver://10.113.2.60/propsys/value
  /parameter
  parameter
  nameuser/name
  valuesomeuser/value
  
  ...
   
 
 

 
 



From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Tue 3/1/2005 2:22 PM
To: Tomcat Users List; Jason Bainbridge
Subject: RE: JDBCStore JTDS



Sorry to sound like more of an idiot, but can you provide an example of
passing the connectionName and Connection password as parameters.

Thanks,

Randall


-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 01, 2005 1:36 PM
To: Tomcat Users List
Subject: Re: JDBCStore JTDS

Try passing connectionName and connectionPassword as parameters instead
of through the ConnectionURL. It isn't seeing them in the URL and trying
to sign you on with Windows Credentials that you don't have.

It is possibl;e if you change the semicolon after propsys to a ? then it
might also work.


On Wed, 23 Feb 2005 13:00:25 -0700, Randall Svancara
[EMAIL PROTECTED] wrote:
 Anyone have any luck using the JTDS driver for Micro(Caugh..Caugh) SQL

 Server and persistent session management using JDCBStore.  I am
 currently experiencing a problem connecting with jtds.  Here is my
 configuration for my JDBCStore...

 Manager

 className=org.apache.catalina.session.PersistentManager
 Store
className=org.apache.catalina.session.JDBCStore

 connectionURL=jdbc:jtds:sqlserver://10.113.2.60/propsys;user=webuser;
 pa
 ssword=password
 driverName=net.sourceforge.jtds.jdbc.Driver
 sessionIdCol=session_id
 sessionValidCol=valid_session
 sessionMaxInactiveCol=max_inactive
 sessionLastAccessedCol=last_access
 sessionTable=tomcat_sessions
 sessionAppCol=app_context
 sessionDataCol=session_data /
 /Manager

 I recieve this error when trying to use the driver/ConnectionURL to
 connect to the database.

 Feb 23, 2005 7:52:35 AM org.apache.catalina.session.JDBCStore
 getConnection
 SEVERE: A SQL exception occurred java.sql.SQLException: Single-Sign-On

 is only supported on Windows. Please specify a user name.

 Any help/advice/hints would be appreciated.  Of course, my platform is

 Linux and single sign on is not what I want anyway.

 Randall

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




--
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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




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

RE: Tomcat Cluster

2005-03-01 Thread Randall Svancara
Apparently this was too verbose for anyone to read.  I simply just don't
understand why each tomcat instance is failing to recognize any other
instance in the cluster.  Multicast messages are being broadcasted.  Is
there any configuration parameter I can turn on that will verify that
each tomcat instance can see the other instances???

Thanks,

Randall


 

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 23, 2005 9:44 AM
To: Tomcat Users List
Subject: Tomcat Cluster 

I have attempted to configure a tomcat cluster using version 5.5.7 of
tomcat.  
I have configured a simple tcp cluster in the server.xml.  I have two
tomcat instances installed on two different Linux servers (Fedora core
3, IPTAPLES is turned off, there is not firewall).  
I have apache and mod_jk set up on a third server.  Multicast is
enabled!!!  
When I start up each tomcat instance I receive the following message in
the catalina.out file.

--
Feb 23, 2005 9:21:49 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
Feb 23, 2005 9:21:49 AM
org.apache.catalina.cluster.mcast.McastServiceImpl setupSocket
INFO: Setting multihome multicast interface to:/10.111.22.163 Feb 23,
2005 9:21:49 AM org.apache.catalina.cluster.mcast.McastService
start
INFO: Sleeping for 2000 secs to establish cluster membership Feb 23,
2005 9:21:51 AM org.apache.catalina.cluster.deploy.FarmWarDeployer start
INFO: Cluster FarmWarDeployer started.
Feb 23, 2005 9:21:51 AM org.apache.catalina.cluster.session.DeltaManager
start
INFO: Starting clustering manager...:/testapp Feb 23, 2005 9:21:51 AM
org.apache.catalina.cluster.session.DeltaManager
start
INFO: Manager[/testapp], skipping state transfer. No members active in
cluster group.
-

The important thing to note here is that in the last line, I see
INFO: Manager[/testapp], skipping state transfer. No members active in
cluster group.
At first I was thinking that multicast was not working properly.
However, I was researching the
Tomcat mailing list and found another thread discussing the same issue.
I tried to use the tool,
tomcat-replication.jar located on the CVS for tomcat.  I can see the
multicast sessions being generated between both servers using this tool.
I also started up ethereal, the packet sniffer.  I noticed that both
servers are generating multicast packets.

However after careful analysis of the packet information, I noticed that
my servers were looking for 127.0.0.1/4001 for the receiver port.
So I set the tcpListenAddress from auto to 10.111.22.163  This
seemed to fix the problem with the multicast packets sending out the
incorrect listener addresses.  However, I am still getting the same
error...

INFO: Manager[/testapp], skipping state transfer. No members active in
cluster group.

So here are my questions:
1. Is this really an error, or is session replication working and I am
not testing it properly?  

2.What is the proper way to test that session replication is working
properly?  Can anyone provide me with code that works.  I am currently
using a bean that I declare with jsp:usebean
scope=session.Is this wrong, should I use
request.getAttribute(), request.setAttribute()instead.

3.Can session replication replicate things like a class that I implement
as java.io.serializable?


Thanks in advance,

Randall



Cluster configuration from server.xml:

Cluster
className=org.apache.catalina.cluster.tcp.SimpleTcpCluster
 
managerClassName=org.apache.catalina.cluster.session.DeltaManager
 expireSessionsOnShutdown=false
 useDirtyFlag=true
 notifyListenersOnReplication=true

Membership
 
className=org.apache.catalina.cluster.mcast.McastService
mcastAddr=224.0.0.5
mcastPort=45564
mcastFrequency=500
mcastDropTime=3000
mcastBindAddress=10.111.22.163/

Receiver
 
className=org.apache.catalina.cluster.tcp.ReplicationListener
tcpListenAddress=10.111.22.163
tcpListenPort=4001
tcpSelectorTimeout=100
tcpThreadCount=6/

Sender
 
className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
replicationMode=pooled
ackTimeout=15000/

Valve
className=org.apache.catalina.cluster.tcp.ReplicationValve
 
filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;
/

Deployer
className=org.apache.catalina.cluster.deploy.FarmWarDeployer
  tempDir=/tmp/war-temp/
  deployDir=/tmp/war-deploy/
  watchDir=/tmp/war-listen/
  watchEnabled=false/
/Cluster




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

RE: JDBCStore JTDS

2005-03-01 Thread Randall Svancara
Apparently no has had any luck with this.  All I can tell is that the
jdbc connection url is not compatible with tomcat and storing sessions
in a database.  So for anyone else searching this list for answers, you
have come to the wrong place.  Perhaps try the JTDS mailing list.

Thanks,

Randall 

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 23, 2005 1:00 PM
To: Tomcat Users List
Subject: JDBCStore JTDS

Anyone have any luck using the JTDS driver for Micro(Caugh..Caugh) SQL
Server and persistent session management using JDCBStore.  I am
currently experiencing a problem connecting with jtds.  Here is my
configuration for my JDBCStore...


Manager

className=org.apache.catalina.session.PersistentManager
Store className=org.apache.catalina.session.JDBCStore

connectionURL=jdbc:jtds:sqlserver://10.113.2.60/propsys;user=webuser;pa
ssword=password
driverName=net.sourceforge.jtds.jdbc.Driver
sessionIdCol=session_id
sessionValidCol=valid_session
sessionMaxInactiveCol=max_inactive
sessionLastAccessedCol=last_access
sessionTable=tomcat_sessions
sessionAppCol=app_context
sessionDataCol=session_data /
/Manager



I recieve this error when trying to use the driver/ConnectionURL to
connect to the database.  

Feb 23, 2005 7:52:35 AM org.apache.catalina.session.JDBCStore
getConnection
SEVERE: A SQL exception occurred java.sql.SQLException: Single-Sign-On
is only supported on Windows. Please specify a user name.

Any help/advice/hints would be appreciated.  Of course, my platform is
Linux and single sign on is not what I want anyway.

Randall





-
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: skipping state transfer. No members active in cluster group

2005-03-01 Thread Randall Svancara
Apparently no one has had any luck with getting tomcat 5.5.7 to work on
fedora core 3 in a clustered configuration. I am wondering if the
problem is with Linux or with tomcat or a combination of both.  

Randall

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 28, 2005 10:27 AM
To: Tomcat Users List
Subject: skipping state transfer. No members active in cluster group

I have a problem in my tomcat logs.  I am using tomcat 5.5.7 and
whenever I start up tomcat for the first time, I receive this error
message.


INFO: Manager[/testapp], skipping state transfer. No members active in
cluster group.

After the delta manager starts, I receive this error.  Should I be
concerned about this  

I have set distributable/ in my web.xml.  My server.xml has all the
clustering stuff enable. I have provided it below!!  I have started up
ethereal and I can see the multicast packets broadcasting.  The data
portion contains the ip address of the server.  Everything looks like it
should work.

Randall

Cluster
className=org.apache.catalina.cluster.tcp.SimpleTcpCluster
 
managerClassName=org.apache.catalina.cluster.session.DeltaManager
 expireSessionsOnShutdown=false
 useDirtyFlag=false
 notifyListenersOnReplication=true

Membership
 
className=org.apache.catalina.cluster.mcast.McastService
mcastAddr=224.0.0.3
mcastPort=45564
mcastFrequency=500
mcastDropTime=3000
mcastBindAddress=10.111.22.163/

Receiver
 
className=org.apache.catalina.cluster.tcp.ReplicationListener
tcpListenAddress=10.111.22.163
tcpListenPort=4002
tcpSelectorTimeout=200
tcpThreadCount=6/

Sender
 
className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
replicationMode=pooled
ackTimeout=15000/

Valve
className=org.apache.catalina.cluster.tcp.ReplicationValve
 
filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;
/

Deployer
className=org.apache.catalina.cluster.deploy.FarmWarDeployer
  tempDir=/tmp/war-temp/
  deployDir=/tmp/war-deploy/
  watchDir=/tmp/war-listen/
  watchEnabled=false/
/Cluster

-
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: Tomcat Cluster

2005-03-01 Thread Randall Svancara
I used the tools that I downloaded from javagroups as described and I
can send messages back and forth over multicast on  224.0.0.4 on port
45564 just fine.  I am using the private address space of 10.111.22.x.
My servers both contain one network card and each server defined as
device eth0.  Networking is working fine on each machine as I can ping
to anywhere in the world.  The only thing I can deduce is that I have a
configuration issue that I need to figure out.

Just a quick check list

1. Uncomment cluster elements in server.xml
2. Uncomment the replication valve in server.xml.I am assuming this
is the 
   valve that is listed in the cluster element in the server.xml.
3. Set all of you session attributes to implement java.io.seriazable
4. Tomcat instances are not on the same machine, so the tcpListenPort
can be the same?
5. My web xml is set to distributable for my testapp web application.


Possible problems that I have come up with include:

Explicitly defining mcastBindAddress=10.111.22.167 when it is not
necessary.
Explicitly defining tcpListenAddress=10.111.22.167 when it is not
necessary.
I did not uncomment the correct valve??

Any thoughts/opinions on the matter would be appreciated.

Randall



-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 01, 2005 9:16 AM
To: Tomcat Users List
Subject: RE: Tomcat Cluster 

Randall,

Below is the clustering section of my server.xml running under SuSE
Linux (SLES9). Things to check I can think of:

1. Is your server multi-homed (more than one network adapter)? If so you
must (at least from my experience) specify both mcastBindAddr and
tcpListendAddress as shown below. In my case I'm using a dedicated
adapter to connect the cluster over the private address space
192.168.11.x. Obviously the values are different for the Tomcat instance
on each server.
2. If after reviewing this it still does not work you can test that
multicasting is really working by using the utilities included in the
JGroups jars. See:
  http://www.jgroups.org/javagroupsnew/docs/newuser/node15.html#ItDoesnt
Work

HTH - Richard

  SNIP
  Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster
   managerClassName=org.apache.catalina.cluster.session.DeltaMa
nager
   expireSessionsOnShutdown=false
   useDirtyFlag=true
   notifyListenersOnReplication=true

  Membership
  className=org.apache.catalina.cluster.mcast.McastService
  mcastAddr=228.0.0.4
  mcastPort=45564

  mcastBindAddr=192.168.11.3
  mcastFrequency=500
  mcastDropTime=3000/

  Receiver
  className=org.apache.catalina.cluster.tcp.ReplicationListener

  tcpListenAddress=192.168.11.3
  tcpListenPort=4001
  tcpSelectorTimeout=100
  tcpThreadCount=6/

  Sender
  className=org.apache.catalina.cluster.tcp.ReplicationTransmit
ter
  replicationMode=pooled
  ackTimeout=15000/

  Valve
className=org.apache.catalina.cluster.tcp.ReplicationValve
 filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\
.css;.*\.txt;/

  Deployer
className=org.apache.catalina.cluster.deploy.FarmWarDeployer
tempDir=/tmp/war-temp/
deployDir=/home/tomcat1/jakarta-tomcat-5.5.7/webapps
watchDir=/home/tomcat1/jakarta-tomcat-5.5.7-deployer/bu
ild/webapp
watchEnabled=false/
  /Cluster
  SNIP

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 01, 2005 8:47 AM
To: Tomcat Users List
Subject: RE: Tomcat Cluster


Apparently this was too verbose for anyone to read.  I simply just don't
understand why each tomcat instance is failing to recognize any other
instance in the cluster.  Multicast messages are being broadcasted.  Is
there any configuration parameter I can turn on that will verify that
each tomcat instance can see the other instances???

Thanks,

Randall




-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 23, 2005 9:44 AM
To: Tomcat Users List
Subject: Tomcat Cluster

I have attempted to configure a tomcat cluster using version 5.5.7 of
tomcat.
I have configured a simple tcp cluster in the server.xml.  I have two
tomcat instances installed on two different Linux servers (Fedora core
3, IPTAPLES is turned off, there is not firewall).
I have apache and mod_jk set up on a third server.  Multicast is
enabled!!!
When I start up each tomcat instance I receive the following message in
the catalina.out file.

--
Feb 23, 2005 9:21:49 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
Feb 23, 2005 9:21:49 AM
org.apache.catalina.cluster.mcast.McastServiceImpl setupSocket
INFO: Setting multihome multicast interface to:/10.111.22.163 Feb 23,
2005 9:21:49 AM org.apache.catalina.cluster.mcast.McastService
start
INFO

RE: Tomcat Cluster

2005-03-01 Thread Randall Svancara
Ok, I figured this out.  Just so everyone knows in tomcat 5.5.7, the
cluster multicast functionality is a little flaky (no offense to the
developers who spent long hours figuring this stuff out).  IF YOU DO NOT
HAVE A MULTIHOMED NETWORK, YOU DO NOT NEED TO SPECIFY THE PARAMETER
mcastBindAddress=10.111.22.167.  I have found that this only confuses
the instances joining the cluster and as a result, multicast does not
work properly.  So long story short, do not specify
mcastBindAddress=10.111.22.167 if you do not absolutely have to

Randall



-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 01, 2005 12:12 PM
To: Tomcat Users List
Subject: RE: Tomcat Cluster 

I used the tools that I downloaded from javagroups as described and I
can send messages back and forth over multicast on  224.0.0.4 on port
45564 just fine.  I am using the private address space of 10.111.22.x.
My servers both contain one network card and each server defined as
device eth0.  Networking is working fine on each machine as I can ping
to anywhere in the world.  The only thing I can deduce is that I have a
configuration issue that I need to figure out.

Just a quick check list

1. Uncomment cluster elements in server.xml 2. Uncomment the replication
valve in server.xml.I am assuming this is the 
   valve that is listed in the cluster element in the server.xml.
3. Set all of you session attributes to implement java.io.seriazable 4.
Tomcat instances are not on the same machine, so the tcpListenPort can
be the same?
5. My web xml is set to distributable for my testapp web application.


Possible problems that I have come up with include:

Explicitly defining mcastBindAddress=10.111.22.167 when it is not
necessary.
Explicitly defining tcpListenAddress=10.111.22.167 when it is not
necessary.
I did not uncomment the correct valve??

Any thoughts/opinions on the matter would be appreciated.

Randall



-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 01, 2005 9:16 AM
To: Tomcat Users List
Subject: RE: Tomcat Cluster 

Randall,

Below is the clustering section of my server.xml running under SuSE
Linux (SLES9). Things to check I can think of:

1. Is your server multi-homed (more than one network adapter)? If so you
must (at least from my experience) specify both mcastBindAddr and
tcpListendAddress as shown below. In my case I'm using a dedicated
adapter to connect the cluster over the private address space
192.168.11.x. Obviously the values are different for the Tomcat instance
on each server.
2. If after reviewing this it still does not work you can test that
multicasting is really working by using the utilities included in the
JGroups jars. See:
  http://www.jgroups.org/javagroupsnew/docs/newuser/node15.html#ItDoesnt
Work

HTH - Richard

  SNIP
  Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster
   managerClassName=org.apache.catalina.cluster.session.DeltaMa
nager
   expireSessionsOnShutdown=false
   useDirtyFlag=true
   notifyListenersOnReplication=true

  Membership
  className=org.apache.catalina.cluster.mcast.McastService
  mcastAddr=228.0.0.4
  mcastPort=45564

  mcastBindAddr=192.168.11.3
  mcastFrequency=500
  mcastDropTime=3000/

  Receiver
  className=org.apache.catalina.cluster.tcp.ReplicationListener

  tcpListenAddress=192.168.11.3
  tcpListenPort=4001
  tcpSelectorTimeout=100
  tcpThreadCount=6/

  Sender
  className=org.apache.catalina.cluster.tcp.ReplicationTransmit
ter
  replicationMode=pooled
  ackTimeout=15000/

  Valve
className=org.apache.catalina.cluster.tcp.ReplicationValve
 filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\
.css;.*\.txt;/

  Deployer
className=org.apache.catalina.cluster.deploy.FarmWarDeployer
tempDir=/tmp/war-temp/
deployDir=/home/tomcat1/jakarta-tomcat-5.5.7/webapps
watchDir=/home/tomcat1/jakarta-tomcat-5.5.7-deployer/bu
ild/webapp
watchEnabled=false/
  /Cluster
  SNIP

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 01, 2005 8:47 AM
To: Tomcat Users List
Subject: RE: Tomcat Cluster


Apparently this was too verbose for anyone to read.  I simply just don't
understand why each tomcat instance is failing to recognize any other
instance in the cluster.  Multicast messages are being broadcasted.  Is
there any configuration parameter I can turn on that will verify that
each tomcat instance can see the other instances???

Thanks,

Randall




-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 23, 2005 9:44 AM
To: Tomcat Users List
Subject: Tomcat Cluster

I have attempted to configure a tomcat cluster using version 5.5.7 of
tomcat.
I

RE: JDBCStore JTDS

2005-03-01 Thread Randall Svancara
Sorry to sound like more of an idiot, but can you provide an example of
passing the connectionName and Connection password as parameters.

Thanks,

Randall
 

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 01, 2005 1:36 PM
To: Tomcat Users List
Subject: Re: JDBCStore JTDS

Try passing connectionName and connectionPassword as parameters instead
of through the ConnectionURL. It isn't seeing them in the URL and trying
to sign you on with Windows Credentials that you don't have.

It is possibl;e if you change the semicolon after propsys to a ? then it
might also work.


On Wed, 23 Feb 2005 13:00:25 -0700, Randall Svancara
[EMAIL PROTECTED] wrote:
 Anyone have any luck using the JTDS driver for Micro(Caugh..Caugh) SQL

 Server and persistent session management using JDCBStore.  I am 
 currently experiencing a problem connecting with jtds.  Here is my 
 configuration for my JDBCStore...
 
 Manager
 
 className=org.apache.catalina.session.PersistentManager
 Store
className=org.apache.catalina.session.JDBCStore
 
 connectionURL=jdbc:jtds:sqlserver://10.113.2.60/propsys;user=webuser;
 pa
 ssword=password
 driverName=net.sourceforge.jtds.jdbc.Driver
 sessionIdCol=session_id
 sessionValidCol=valid_session
 sessionMaxInactiveCol=max_inactive
 sessionLastAccessedCol=last_access
 sessionTable=tomcat_sessions
 sessionAppCol=app_context
 sessionDataCol=session_data /
 /Manager
 
 I recieve this error when trying to use the driver/ConnectionURL to 
 connect to the database.
 
 Feb 23, 2005 7:52:35 AM org.apache.catalina.session.JDBCStore
 getConnection
 SEVERE: A SQL exception occurred java.sql.SQLException: Single-Sign-On

 is only supported on Windows. Please specify a user name.
 
 Any help/advice/hints would be appreciated.  Of course, my platform is

 Linux and single sign on is not what I want anyway.
 
 Randall
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


--
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

-
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: Tomcat clustering and NotSerializableException

2005-02-28 Thread Randall Svancara
But do those session objects replicate to the other tomcat instances???
I have been testing session objects that implement java.io.serializable
and I have not yet been able to see these objects when fail over occurs
to another instance??

Thanks,

Randall 

-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 28, 2005 8:13 AM
To: Tomcat Users List
Subject: RE: Tomcat clustering and NotSerializableException

As Matt said its probably your applications objects. When we switched to
clustering I was surprised at how many of my session objects I needed to
add serializable to. But it was easy work and quickl done.

HTH - Richard

Dale, Matt wrote:
 I would guess that this means you have an object in your session that 
 does not implement the serializable interface.

 Ta
 Matt

 -Original Message-
 From: Sng Wee Jim [mailto:[EMAIL PROTECTED]
 Sent: 28 February 2005 09:21
 To: tomcat-user@jakarta.apache.org
 Subject: Tomcat clustering and NotSerializableException



 Hi,





 I am using Tomcat 5.0.28 on MS Win2k server.




 After I have uncommented the Cluster element in server.xml, I get 
 the following exceptions on the tomcat console for some actions that 
 are using displaytag.




 Is it a tomcat bug, since
 org.apache.coyote.tomcat5.CoyoteRequestFacade
 is involved?








 (DeltaManager.java:813)- Unable to serialize delta request

 java.io.NotSerializableException:
 org.apache.coyote.tomcat5.CoyoteRequestFacade

 at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)




 at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java

 1332)

 at
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:13

 04)

 at
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav

 a:1247)

 at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)




 at
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)

 at
 org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.writeE

 xternal(DeltaRequest.java:300)

 at
 org.apache.catalina.cluster.session.DeltaRequest.writeExternal(DeltaR

 equest.java:217)

 at
 org.apache.catalina.cluster.session.DeltaManager.unloadDeltaRequest(D

 eltaManager.java:393)

 at
 org.apache.catalina.cluster.session.DeltaManager.requestCompleted(Del

 taManager.java:782)

 at
 org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationVa

 lve.java:203)

 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv

 eContext.java:102)

 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j

 ava:118)

 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv

 eContext.java:102)

 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav

 a:520)

 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal

 ve.java:109)

 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv

 eContext.java:104)

 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav

 a:520)

 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)




 at
 org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16

 0)

 at
 org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)




 at
 org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)

 at
 org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)

 at
 org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja

 va:675)

 at
 org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)

 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP

 ool.java:683)

 at java.lang.Thread.run(Thread.java:534)










 - Jim





 The information in this email is confidential and is intended solely 
 for the addressee(s).
 Access to this email by anyone else is unauthorized. If you are not an

 intended recipient, please notify the sender of this email

 immediately. You should not copy, use or disseminate the

 information contained in the email.
 Any views expressed in this message are those of the individual 
 sender, except where the sender specifically states them to be the 
 views of Capco.

 http://www.capco.com/





-
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 

RE: Tomcat clustering and NotSerializableException

2005-02-28 Thread Randall Svancara
ThanksI will look at 5.5.8.  I know it is in alpha status right now,
but I am just testing and by the time I deploy my application, 5.5.8
will probably be stable.

Thanks

Randall 

-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 28, 2005 8:55 AM
To: Tomcat Users List
Subject: RE: Tomcat clustering and NotSerializableException

Randall,
I know that session replication works in Tomcat 5.5.7 and it may also
works in 5.0.x (no experience). But to get failover restart to work
properly (i.e. restarting a failed node) I had to use Tomcat 5.5.7 with
a developer-supplied patch. This patch will be available with Tomcat
5.5.8.
HTH- Richard

Randall Svancara wrote:
 But do those session objects replicate to the other tomcat 
 instances??? I have been testing session objects that implement 
 java.io.serializable and I have not yet been able to see these objects

 when fail over occurs to another instance??

 Thanks,

 Randall

 -Original Message-
 From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 28, 2005 8:13 AM
 To: Tomcat Users List
 Subject: RE: Tomcat clustering and NotSerializableException

 As Matt said its probably your applications objects. When we switched 
 to clustering I was surprised at how many of my session objects I 
 needed to add serializable to. But it was easy work and quickl done.

 HTH - Richard

 Dale, Matt wrote:
 I would guess that this means you have an object in your session that

 does not implement the serializable interface.

 Ta
 Matt

 -Original Message-
 From: Sng Wee Jim [mailto:[EMAIL PROTECTED]
 Sent: 28 February 2005 09:21
 To: tomcat-user@jakarta.apache.org
 Subject: Tomcat clustering and NotSerializableException



 Hi,





 I am using Tomcat 5.0.28 on MS Win2k server.




 After I have uncommented the Cluster element in server.xml, I get 
 the following exceptions on the tomcat console for some actions that 
 are using displaytag.




 Is it a tomcat bug, since
 org.apache.coyote.tomcat5.CoyoteRequestFacade
 is involved?








 (DeltaManager.java:813)- Unable to serialize delta request

 java.io.NotSerializableException:
 org.apache.coyote.tomcat5.CoyoteRequestFacade

 at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)




 at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java

 1332)

 at
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:13

 04)

 at
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav

 a:1247)

 at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)




 at
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)

 at
 org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.writeE

 xternal(DeltaRequest.java:300)

 at
 org.apache.catalina.cluster.session.DeltaRequest.writeExternal(DeltaR

 equest.java:217)

 at
 org.apache.catalina.cluster.session.DeltaManager.unloadDeltaRequest(D

 eltaManager.java:393)

 at
 org.apache.catalina.cluster.session.DeltaManager.requestCompleted(Del

 taManager.java:782)

 at
 org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationVa

 lve.java:203)

 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv

 eContext.java:102)

 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j

 ava:118)

 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv

 eContext.java:102)

 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav

 a:520)

 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal

 ve.java:109)

 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv

 eContext.java:104)

 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav

 a:520)

 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)




 at
 org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16

 0)

 at
 org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)




 at
 org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)

 at
 org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)

 at
 org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja

 va:675)

 at
 org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)

 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP

 ool.java:683)

 at java.lang.Thread.run(Thread.java:534)










 - Jim






 The information in this email is confidential and is intended solely 
 for the addressee(s). Access to this email by anyone else is 
 unauthorized

skipping state transfer. No members active in cluster group

2005-02-28 Thread Randall Svancara
I have a problem in my tomcat logs.  I am using tomcat 5.5.7 and
whenever I start up tomcat for the first time, I receive this error
message.


INFO: Manager[/testapp], skipping state transfer. No members active in
cluster group.

After the delta manager starts, I receive this error.  Should I be
concerned about this  

I have set distributable/ in my web.xml.  My server.xml has all the
clustering stuff enable. I have provided it below!!  I have started up
ethereal and I can see the multicast packets broadcasting.  The data
portion contains the ip address of the server.  Everything looks like it
should work.

Randall

Cluster
className=org.apache.catalina.cluster.tcp.SimpleTcpCluster
 
managerClassName=org.apache.catalina.cluster.session.DeltaManager
 expireSessionsOnShutdown=false
 useDirtyFlag=false
 notifyListenersOnReplication=true

Membership
 
className=org.apache.catalina.cluster.mcast.McastService
mcastAddr=224.0.0.3
mcastPort=45564
mcastFrequency=500
mcastDropTime=3000
mcastBindAddress=10.111.22.163/

Receiver
 
className=org.apache.catalina.cluster.tcp.ReplicationListener
tcpListenAddress=10.111.22.163
tcpListenPort=4002
tcpSelectorTimeout=200
tcpThreadCount=6/

Sender
 
className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
replicationMode=pooled
ackTimeout=15000/

Valve
className=org.apache.catalina.cluster.tcp.ReplicationValve
 
filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;
/

Deployer
className=org.apache.catalina.cluster.deploy.FarmWarDeployer
  tempDir=/tmp/war-temp/
  deployDir=/tmp/war-deploy/
  watchDir=/tmp/war-listen/
  watchEnabled=false/
/Cluster

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



RE: Tomcat clustering and NotSerializableException

2005-02-28 Thread Randall Svancara
well apparently my problem is that my cluster is not working properly.
I can see the multicast broadcast messages on my network, however the
objects do not seem to be replicating.  The only thing I have in my logs
is:

INFO: Manager[/testapp], skipping state transfer. No members active in
cluster group.

This displays after the delta manager starts in the catalina.out file.
If anyone has any good ideas on why this is happening for me, I would be
willing to try anything at this point.  My NIC supports multicast.  I
have set the distributable element in the web.xml.

Thanks,

Randall 

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 28, 2005 11:04 AM
To: Tomcat Users List
Subject: RE: Tomcat clustering and NotSerializableException


These objects will replicate to other instances when ALL objects in the
session are serializable. I suspect that nothing will be replicated if
there is non serializable objects in there.

Ta
Matt

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: 28 February 2005 15:14
To: Tomcat Users List
Subject: RE: Tomcat clustering and NotSerializableException


But do those session objects replicate to the other tomcat instances???
I have been testing session objects that implement java.io.serializable
and I have not yet been able to see these objects when fail over occurs
to another instance??

Thanks,

Randall 

-Original Message-
From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
Sent: Monday, February 28, 2005 8:13 AM
To: Tomcat Users List
Subject: RE: Tomcat clustering and NotSerializableException

As Matt said its probably your applications objects. When we switched to
clustering I was surprised at how many of my session objects I needed to
add serializable to. But it was easy work and quickl done.

HTH - Richard

Dale, Matt wrote:
 I would guess that this means you have an object in your session that 
 does not implement the serializable interface.

 Ta
 Matt

 -Original Message-
 From: Sng Wee Jim [mailto:[EMAIL PROTECTED]
 Sent: 28 February 2005 09:21
 To: tomcat-user@jakarta.apache.org
 Subject: Tomcat clustering and NotSerializableException



 Hi,





 I am using Tomcat 5.0.28 on MS Win2k server.




 After I have uncommented the Cluster element in server.xml, I get 
 the following exceptions on the tomcat console for some actions that 
 are using displaytag.




 Is it a tomcat bug, since
 org.apache.coyote.tomcat5.CoyoteRequestFacade
 is involved?








 (DeltaManager.java:813)- Unable to serialize delta request

 java.io.NotSerializableException:
 org.apache.coyote.tomcat5.CoyoteRequestFacade

 at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)




 at
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java

 1332)

 at
 java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:13

 04)

 at
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.jav

 a:1247)

 at
 java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)




 at
 java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)

 at
 org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.writeE

 xternal(DeltaRequest.java:300)

 at
 org.apache.catalina.cluster.session.DeltaRequest.writeExternal(DeltaR

 equest.java:217)

 at
 org.apache.catalina.cluster.session.DeltaManager.unloadDeltaRequest(D

 eltaManager.java:393)

 at
 org.apache.catalina.cluster.session.DeltaManager.requestCompleted(Del

 taManager.java:782)

 at
 org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationVa

 lve.java:203)

 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv

 eContext.java:102)

 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j

 ava:118)

 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv

 eContext.java:102)

 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav

 a:520)

 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal

 ve.java:109)

 at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv

 eContext.java:104)

 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav

 a:520)

 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)




 at
 org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16

 0)

 at
 org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)




 at
 org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)

 at
 org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)

 at
 org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja

 va:675

Tomcat Cluster

2005-02-23 Thread Randall Svancara
I have attempted to configure a tomcat cluster using version 5.5.7 of
tomcat.  
I have configured a simple tcp cluster in the server.xml.  I have two 
tomcat instances installed on two different Linux servers 
(Fedora core 3, IPTAPLES is turned off, there is not firewall).  
I have apache and mod_jk set up on a third server.  Multicast is
enabled!!!  
When I start up each tomcat instance I receive the following message in
the catalina.out file.

--
Feb 23, 2005 9:21:49 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
Feb 23, 2005 9:21:49 AM
org.apache.catalina.cluster.mcast.McastServiceImpl setupSocket
INFO: Setting multihome multicast interface to:/10.111.22.163
Feb 23, 2005 9:21:49 AM org.apache.catalina.cluster.mcast.McastService
start
INFO: Sleeping for 2000 secs to establish cluster membership
Feb 23, 2005 9:21:51 AM
org.apache.catalina.cluster.deploy.FarmWarDeployer start
INFO: Cluster FarmWarDeployer started.
Feb 23, 2005 9:21:51 AM org.apache.catalina.cluster.session.DeltaManager
start
INFO: Starting clustering manager...:/testapp
Feb 23, 2005 9:21:51 AM org.apache.catalina.cluster.session.DeltaManager
start
INFO: Manager[/testapp], skipping state transfer. No members active in
cluster group.
-

The important thing to note here is that in the last line, I see 
INFO: Manager[/testapp], skipping state transfer. No members active in
cluster group.
At first I was thinking that multicast was not working properly.
However, I was researching the
Tomcat mailing list and found another thread discussing the same issue.
I tried to use the tool,
tomcat-replication.jar located on the CVS for tomcat.  I can see the
multicast sessions being generated between
both servers using this tool.  I also started up ethereal, the packet
sniffer.  I noticed that both servers are generating multicast packets.

However after careful analysis of the packet information, I noticed that
my servers were looking for 127.0.0.1/4001 for the receiver port.
So I set the tcpListenAddress from auto to 10.111.22.163  This
seemed to fix the problem with the multicast packets sending out
the incorrect listener addresses.  However, I am still getting the same
error...

INFO: Manager[/testapp], skipping state transfer. No members active in
cluster group.

So here are my questions:
1. Is this really an error, or is session replication working and I am
not testing it properly?  

2.What is the proper way to test that session replication is working
properly?  Can anyone provide me with code that works.  I am currently
using a
bean that I declare with jsp:usebean scope=session.Is this
wrong, should I use request.getAttribute(),
request.setAttribute()instead.

3.Can session replication replicate things like a class that I implement
as java.io.serializable?


Thanks in advance,

Randall



Cluster configuration from server.xml:

Cluster
className=org.apache.catalina.cluster.tcp.SimpleTcpCluster
 
managerClassName=org.apache.catalina.cluster.session.DeltaManager
 expireSessionsOnShutdown=false
 useDirtyFlag=true
 notifyListenersOnReplication=true

Membership
 
className=org.apache.catalina.cluster.mcast.McastService
mcastAddr=224.0.0.5
mcastPort=45564
mcastFrequency=500
mcastDropTime=3000
mcastBindAddress=10.111.22.163/

Receiver
 
className=org.apache.catalina.cluster.tcp.ReplicationListener
tcpListenAddress=10.111.22.163
tcpListenPort=4001
tcpSelectorTimeout=100
tcpThreadCount=6/

Sender
 
className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
replicationMode=pooled
ackTimeout=15000/

Valve
className=org.apache.catalina.cluster.tcp.ReplicationValve
 
filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;
/

Deployer
className=org.apache.catalina.cluster.deploy.FarmWarDeployer
  tempDir=/tmp/war-temp/
  deployDir=/tmp/war-deploy/
  watchDir=/tmp/war-listen/
  watchEnabled=false/
/Cluster




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



JDBCStore JTDS

2005-02-23 Thread Randall Svancara
Anyone have any luck using the JTDS driver for Micro(Caugh..Caugh) SQL
Server and persistent session management using JDCBStore.  I am
currently experiencing a problem connecting with jtds.  Here is my
configuration for my JDBCStore...


Manager

className=org.apache.catalina.session.PersistentManager
Store className=org.apache.catalina.session.JDBCStore

connectionURL=jdbc:jtds:sqlserver://10.113.2.60/propsys;user=webuser;pa
ssword=password
driverName=net.sourceforge.jtds.jdbc.Driver
sessionIdCol=session_id
sessionValidCol=valid_session
sessionMaxInactiveCol=max_inactive
sessionLastAccessedCol=last_access
sessionTable=tomcat_sessions
sessionAppCol=app_context
sessionDataCol=session_data /
/Manager



I recieve this error when trying to use the driver/ConnectionURL to
connect to the database.  

Feb 23, 2005 7:52:35 AM org.apache.catalina.session.JDBCStore
getConnection
SEVERE: A SQL exception occurred java.sql.SQLException: Single-Sign-On
is only supported on Windows. Please specify a user name.

Any help/advice/hints would be appreciated.  Of course, my platform is
Linux and single sign on is not what I want anyway.

Randall





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



RE: SocketException: Too many open files

2005-02-02 Thread Randall Svancara
You need to increase the maximum number of open file descriptors for
your platform.

There are lots of documents on how to do this.

Thanks,

Randall 

-Original Message-
From: Stephen Charles Huey [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 01, 2005 4:30 PM
To: Tomcat User
Subject: SocketException: Too many open files

I'm running some simple but fast-pounding test programs against our
Tomcat server from a machine on the same network, and we've been tuning
our database, etc, based on this.  But right now, I'm seeing a new one
coming out of our Java code whenever we try to open a URL:


java.net.SocketException: Too many open files
at java.net.Socket.createImpl(Socket.java:331)
at java.net.Socket.connect(Socket.java:450)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(DashoA12275)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.init(DashoA12275)
at
com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(DashoA122
75)
at sun.net.www.protocol.https.HttpsClient.doConnect(DashoA12275)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
at sun.net.www.protocol.https.HttpsClient.init(DashoA12275)
at sun.net.www.protocol.https.HttpsClient.a(DashoA12275)
at sun.net.www.protocol.https.HttpsClient.a(DashoA12275)
at sun.net.www.protocol.https.HttpsClient.a(DashoA12275)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.plainConne
ct(DashoA12275)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Da
shoA12275)
at
sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(DashoA12275)



We're opening lots of these, and it appears we're opening more than a
maximum number of connections to the internet.  Is there a way to bump
this up?  Or maybe we're just pounding this harder than it will ever get
hit in the real world?  I'm also seeing this as well:





SEVERE: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=80]
ignored exception: java.net.SocketException: Too many open files
java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
at java.net.ServerSocket.implAccept(ServerSocket.java:448)
at java.net.ServerSocket.accept(ServerSocket.java:419)
at
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(Defau
ltServerSocketFactory.java:107)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
java:356)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:52
9)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:619)
at java.lang.Thread.run(Thread.java:534)
Feb 1, 2005 4:53:08 PM org.apache.tomcat.util.net.PoolTcpEndpoint
closeServerSocket
SEVERE: Caught exception trying to unlock accept.
java.net.SocketException: Too many open files
at java.net.Socket.createImpl(Socket.java:331)
at java.net.Socket.init(Socket.java:304)
at java.net.Socket.init(Socket.java:124)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.closeServerSocket(PoolTcpEndp
oint.java:326)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.
java:397)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:52
9)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:619)
at java.lang.Thread.run(Thread.java:534)
Feb 1, 2005 4:53:08 PM org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
WARNING: Reinitializing ServerSocket


-
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: Need your expertise on lb worker

2005-01-07 Thread Randall Svancara
Mod_JK used in conjunction with Apache Web Server will provide you with
load balancing functionality.  You only need two tomcat instances. 

Here is a simple diagram.  This provides a conceptual view of how load
balancing is networked.  See that there are only two tomcat instances
needed.  Of course you could have more, if needed.


Tomcat Instance 1   
  |
Apache and Mod_JK --Router
  |
  Tomcat Instance 2

So the answer is NO.

I would look at this website for documentation on how to configure load
balancing with mod_jk configuration.

http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html


I would also check Google for documentation as well. 

Good luck



-Original Message-
From: Gary Zhu [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 07, 2005 8:03 AM
To: Tomcat Users List
Subject: Need your expertise on lb worker

Hi all, 
 
I am trying to set up loadbalancing and session replication with Tomcat
5.5.4, Apache 2.0.52, and mod_jk1.2.8 on Windows XP. I am puzzled on
things that are related to the load balancer worker. Below are the
questions I have:
1. Do I need to set up a SEPARATE Tomcat instance as the load balancer
worker or is it handled by JK connector? For example, if I want to load
balance TWO Tomcat instances(TC01, TC02) using JK, do I need a third
Tomcat instance whose job is to load balance TC01 and TC02?
 
2. If the answer to question 1 is no, where could I find docs on how
it works?
 
Thanks in advance for your help.
 
Gary

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



RE: Speed issues with SQL Server 2000 and JTDS

2005-01-05 Thread Randall Svancara
Try pinging the server with Microsoft SQL Server from the server running
tomcat.  You might
use a traceroute to see where the network bottleneck may exist.

What are your ping times.  Are you experiencing network latency?  Are
you going through a 
Firewall?  I am using JTDS and I have not experienced any problems with
it.  

Randall



-Original Message-
From: Charles P. Killmer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 05, 2005 11:57 AM
To: Tomcat Users List
Subject: RE: Speed issues with SQL Server 2000 and JTDS

I tried setting that parameter to false and still the same slow issue.
The fields in the database are all char or varchar.  No unicode. 

Charles

-Original Message-
From: Victor Cardona [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 05, 2005 11:44 AM
To: Tomcat Users List
Subject: Re: Speed issues with SQL Server 2000 and JTDS

Charles P. Killmer wrote:

Thanks.  I had already done this but maybe not communicated them as 
concisely.

Thanks
Charles

-Original Message-
From: Parsons Technical Services
[mailto:[EMAIL PROTECTED]

Sent: Tuesday, January 04, 2005 6:23 PM
To: Tomcat Users List
Subject: Re: Speed issues with SQL Server 2000 and JTDS

Trying a few test should help you narrow things down a bit.

1. Run without DB connection. (Done  runs fast)

2. Run with a DB connect but no query. (Done runs slow)

3. Run with a simple query and do nothing with it.

4. Run with a simple query and post results in page. Only move forward 
through result set.

5. Run with a simple query and post results in page. Move around in the

result set (Only if you do this in your page).

At some point in these test you should see a dramatic jump in the 
response time. If it is a steady climb, then you may have multiple 
issues.

Report back what you find and we'll make suggestions from there.

Doug


- Original Message -
From: Charles P. Killmer [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, January 04, 2005 11:23 AM
Subject: RE: Speed issues with SQL Server 2000 and JTDS


Could this speed issue be caused by a poor setup?  When I remove the 
database connection from my code, the pages run fast.  Though I 
obviously need the database portion of the code in there.

Thanks
Charles


-Original Message-
From: David Boyer [mailto:[EMAIL PROTECTED]
Sent: Monday, January 03, 2005 9:05 AM
To: tomcat-user@jakarta.apache.org; Charles P. Killmer
Subject: RE: Speed issues with SQL Server 2000 and JTDS

You could try using something like jProfiler to see where the 
bottleneck is.

I don't see anything unusual in your code example, although it looks 
like the only thing it does is create the connection. I use jTDS and it

works fine without doing anything exceptional.



  

[EMAIL PROTECTED] 01/03 8:55 am 



This is some representative code that is being very slow.


import java.sql.*;


public class SomeClass {

   public Connection conn;

public int ID;

public String Name;

public String Address;

public String City;

public String OtherStuff;


   public SomeClass() throws Exception {

   try {

   Class.forName(net.sourceforge.jtds.jdbc.Driver);

   } catch (ClassNotFoundException ex) {

   }

   try {

   conn =

DriverManager.getConnection(jdbc:jtds:sqlserver://111.222.333.444:1433/

someDB;user=someuser;password=somepassword);

   } catch (Exception e) {

   throw e;

   }

   }


  public int Audit() throws Exception {

 return 5;

  }


  public ResultSet GetData() throws Exception {

 ResultSet rs = null;

 return rs;

  }


  public int DeleteSomething() throws Exception {

 return 2;

  }

}


I don't have anything special in any XML files.  I will try to make my

code work like yours is.  But if someone has an idea why the way I have

it written is slow, I would love to hear it.


Thank You

Charles


-Original Message-

From: Randall Svancara [mailto:[EMAIL PROTECTED]

Sent: Monday, January 03, 2005 8:20 AM

To: Tomcat Users List

Subject: RE: Speed issues with SQL Server 2000 and JTDS


I have been using JTDS with SQL Server 2000 in conjunction with Tomcat

without any problems.  Perhaps if you post some your database 
connection


code, someone could provide you with assistance.  You might also try

posting to the JTDS Mailing list.  Are you using Database Connection

Pooling (DBCP)??


I am including an example the code I use to access a stored procedure 
on


SQL Server 2000 using DBCP.


/*  Here are the things I import */

import java.sql.Connection;

import java.sql.Statement;

import java.sql.ResultSet;

import java.sql.SQLException;

import javax.naming.*;

import javax.sql.*;



Public class SomeClass{



* A public class that returns an Applicant object

* @return the applicant as applicant

*/

public Applicant SomeApplicantMethod(){

   Applicant app = new Applicant();

   Connection conn = null;

   Statement stmt

RE: Speed issues with SQL Server 2000 and JTDS

2005-01-03 Thread Randall Svancara
I have been using JTDS with SQL Server 2000 in conjunction with Tomcat
without any problems.  Perhaps if you post some your database connection
code, someone could provide you with assistance.  You might also try
posting to the JTDS Mailing list.  Are you using Database Connection
Pooling (DBCP)??

I am including an example the code I use to access a stored procedure on
SQL Server 2000 using DBCP.  

/*  Here are the things I import */
import java.sql.Connection;
import java.sql.Statement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.naming.*;
import javax.sql.*;


Public class SomeClass{

/**
 * A public class that returns an Applicant object
 * @return the applicant as applicant
 */
public Applicant SomeApplicantMethod(){
Applicant app = new Applicant();
Connection conn = null;
Statement stmt = null;
ResultSet rst = null;

try{
Context ctx = new InitialContext(); /* Declare initial
context */
if(ctx == null ){
logger.error(Error creating new context for some
reason);
throw new Exception(No context);
}
/* Throw an exception if it is null */
DataSource ds =
(DataSource)ctx.lookup(java:comp/env/jdbc/summitexec);

conn = ds.getConnection();

if(conn != null)  {

stmt = conn.createStatement();

rst = stmt.executeQuery(sp_SelectApplicant  +
canidateid);

while(rst.next()){

// Add result set to applicant object,
NOT SHOWN HERE!!!

}


//Make sure you close everything, else you end up
with object leaks
if(stmt != null){
stmt.close();
}

if(rst != null){
rst.close();
}

if(conn != null){
conn.close();
}
}
}catch(Exception E){
logger.error(EXCEPTION ERROR Getting Applicant:  +
E.toString());
} finally{

// Close out of any open connections if they exist, this is
important
// in order to release resources for connection pooling
try{
if(stmt != null){
stmt.close();
stmt=null;
}
}catch(SQLException E){}

try{
if(rst != null) {
rst.close();
rst = null;
}
}catch(SQLException E){}

try{
if(conn != null) {
conn.close();
conn = null;
}
}catch(SQLException E){}
}   

}
}


This is the quirky part about Tomcat, in version 5.0 or ealier, I have
to use this xml code in my webapp context file for DBCP.

Resource name=jdbc/summitexec auth=Container
type=javax.sql.DataSource /
ResourceParams name=jdbc/summitexec
parameter
namefactory/name
 
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
nameurl/name

valuejdbc:jtds:sqlserver://192.168.0.2:1433/summitexec;User=someuser;P
assword=somepassword/value
/parameter
parameter
namedriverClassName/name
valuenet.sourceforge.jtds.jdbc.Driver/value
/parameter
parameter
nameuser/name
valuesomeuser/value
/parameter
parameter
namepassword/name
valuesomepassword/value
/parameter
/ResourceParams

In 5.5 I have to use this xml for DBCP.  If someone could provide
details why this is, I would appreciate it.

Resource name=jdbc/summitexec 
  auth=Container
  type=javax.sql.DataSource 
  driverClassName=net.sourceforge.jtds.jdbc.Driver
 
url=jdbc:jtds:sqlserver://192.168.0.3:1433/summitexec
  username=someuser 
  password=somepassword 
  maxActive=20 
  maxIdle=10 
  maxWait=10/ 

Thanks,

Randall

-Original Message-
From: Charles P. Killmer [mailto:[EMAIL PROTECTED] 
Sent: Sunday, January 02, 2005 2:13 PM
To: Tomcat Users List
Subject: Speed issues with SQL Server 2000 and JTDS

I bought the Core Servlets and Java Server Pages and read it over the
weekend.  Happy New Year to me.  I did get out to a 

RE: Please help...

2004-11-12 Thread Randall Svancara
Tomcat is organized differently than Apache.  First of all Apache has a
document root, where you can put all of your php and html files in.
With tomcat, the directory structure is different.  If you want to get
started with tomcat, I suggest first creating directory under the
webapps directory of your tomcat installation.  For this example, lets
call it test.  Under test we will create a WEB-INF directory.  The
WEB-INF directory contains basically the configuration file for your web
application you will be creating in the test directory.  In the WEB-INF
folder, create a file called web.xml.  So at this point you should have
directory structure that looks like this.

Test
WEB-INF
web.xml


Now edit the web.xml file to contain the following:

---snip

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app
  display-nameA test web application/display-name
  description
 Your test web application
  /description
/web-app

---snip


Now that you have an empty web application container set up, add some
jsp files.
Keep in mind that everything under the WEB-INF directory is protected by
tomcat.  You would not want someone to browse through your configuration
now would you?

For simplicity sake, lets create a test jsp page now.  Create a file
called index.jsp directly under the directory test.  This is what your
directory structure should look like now under your test directory:

Test
index.jsp
WEB-INF
web.xml



Lets add some content under your test.jsp.  We will combine some html
with java code to demonstrate how things work.

[EMAIL PROTECTED] contentType=text/html% !-- page directive --
[EMAIL PROTECTED] pageEncoding=UTF-8%

html
headtitleYour first cool page/title/head
body
%out.println(Hello world)% !-- jsp code --


/body
/html


Ok, make sure you have tomcat started.  On windows, go to services and
see if the service is running.  On linux, type ps -ef or ps -aux on
unix.  If it is not running, you need to start this service for your
platform.  

Next, browse to the machine where you have tomcat installed.  It might
be on the same machine your programming on.  http://localhost:8080/test/

You should see hello world now.  By default, Tomcat runs on port 8080.
You must specify the port number in your browser.  You can configure
Tomcat to run on port 80 if you wish, but that is out of the scope of
this document.  Oops, I just read you are using fedora core.  I am using
fedora core.  I have apache and tomcat set up to talk to each other
using mod_jk2.  I can send you my configuration files if you wish.  

I hope this was not too basic for you.  


Randall


 

-Original Message-
From: Ken Keefe [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 12, 2004 1:14 PM
To: [EMAIL PROTECTED]
Subject: Please help...

I have been struggling with Tomcat for several days and I am at the end
of my rope. If I come across as irritated, I apologize in advance. 

I simply want to learn how to write JSP. I have a book and I want to
start working through it, but I am having trouble setting up a server to
serve JSP. I currently run Apache to serve HTML and PHP. Ideally, I'd
simply like Apache to start recognizing JSP and handling it
appropriately. Unfortunately that seems to not be an easy task... I have
tried using mod_jk to connect Tomcat and Apache, with no luck.

I finally gave up on trying to use Apache and I was just going to keep
them separate. Now, how do I tell Tomcat to serve my jsp files??? I
tried using the manager web program to add an application pointing to
the correct directory, it accepts the command, but nothing is added to
the application list and it doesn't serve the content like I expected it
to.

Finally I said screw it, I'll simply put my experiment files in the
document root of Tomcat and use that for now. Still no luck, it serves
up the same default stuff, even when I rename the file. 

My environment is the following: Fedora Core 2, Apache 2.0.51, Tomcat
5.5.4, JDK 1.5.0. 

Ideally I'd like to do what I talked about earlier, having Apache
automagically know what to do with *.jsp files. However, I'll take
what I can get!

Thank you very much in advance. I can't explain how damned aggravating
this whole thing has been.

Ken


-
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: address is already in use

2004-07-19 Thread Randall Svancara
I have noticed that sometimes when you shutdown tomcat on linux, it seems to take a 
long time to close down everything. If you restart tomcat while the old instance is 
trying to shut down, you will recieve this error.  So by restarting, you might not be 
aloting enough time for the tomcat instance to completely shut down. 

Does Solaris have netstat, give that a try.  

-Original Message-
From: Damien July [mailto:[EMAIL PROTECTED]
Sent: Monday, July 19, 2004 11:13 AM
To: Tomcat Users List
Subject: Re: address is already in use


how can i do this?
Le lun 19/07/2004  19:09, Aman Raheja a crit :
 Did you check, if you are limited by the number of sockets you can open on 
 this server and that the limit is not exhausted.
 
 Aman Raheja
 http://www.techquotes.com
 
 
 On Mon, 19 Jul 2004 18:56:27 +0200, Damien July [EMAIL PROTECTED]
 securite.org wrote :
 
  Hi,
  i'm under sun solaris 8 sparc
  
  and i had been restart the server.
  and there is no one that listen on port 80 or 8080
  
  Damien
  Le lun 19/07/2004   18:56, Aman Raheja a crit :
   Are you on Windows platform ? Are you restarting it?
   Check your process list and End Task if you find it there.
   
   Also try netstat and see who's using the 8080 port (if that's what you 
   have in server.xml).
   
   Aman Raheja
   http://www.techquotes.com
   
 
 
 -
 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: address is already in use

2004-07-19 Thread Randall Svancara
Try:

yourserver# killall -9 java  -- kills all java processes with extreme 
prejudice
yourserver# /etc/init.d/tomcat start -- assumes you have a startup script for tomcat, 
otherwise use the scripts in the bin directory of your tomcat install.



That will remove all the java processes running on your unix system.  Or you could go 
into task manager in windows stop all the java processes.  Keep in mind this could 
kill other processes that are using java too.  

Anyway, this has worked for me. If there is a better way, I would like to know.

Thanks,

Randall

-Original Message-
From: Michael Currie [mailto:[EMAIL PROTECTED]
Sent: Monday, July 19, 2004 11:27 AM
To: Tomcat Users List
Subject: RE: address is already in use


So,  how do you actually get it running again, reboot?

Mike Currie
Senior Web Developer
New Century Mortgage
Direct 949 743 7037
Mobile 949 279 4358
Fax 866 281 0360

 This electronic message transmission contains information from New Century which may 
 be confidential or privileged. This information is intended for the use of the 
 individuals or entity named in the message. If you are not the intended recipient, 
 be aware that any disclosure, copying, distribution or use of the contents of this 
 transmission is strictly prohibited. If you have received this electronic 
 transmission in error, please notify us immediately by telephone and delete the 
 message from your system. Thank you.


-Original Message-
From: Damien July [mailto:[EMAIL PROTECTED]
Sent: Monday, July 19, 2004 10:23 AM
To: Tomcat Users List
Subject: RE: address is already in use


yes, i see this
when i shutting down tomcat, it take several secondes before to be
completly stopped.

i restart it only all listen port are close.

Damien

Le lun 19/07/2004  19:15, Randall Svancara a crit :
 I have noticed that sometimes when you shutdown tomcat on linux, it seems to take a 
 long time to close down everything. If you restart tomcat while the old instance is 
 trying to shut down, you will recieve this error.  So by restarting, you might not 
 be aloting enough time for the tomcat instance to completely shut down. 
 
 Does Solaris have netstat, give that a try.  
 
 -Original Message-
 From: Damien July [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 19, 2004 11:13 AM
 To: Tomcat Users List
 Subject: Re: address is already in use
 
 
 how can i do this?
 Le lun 19/07/2004  19:09, Aman Raheja a crit :
  Did you check, if you are limited by the number of sockets you can open on 
  this server and that the limit is not exhausted.
  
  Aman Raheja
  http://www.techquotes.com
  
  
  On Mon, 19 Jul 2004 18:56:27 +0200, Damien July [EMAIL PROTECTED]
  securite.org wrote :
  
   Hi,
   i'm under sun solaris 8 sparc
   
   and i had been restart the server.
   and there is no one that listen on port 80 or 8080
   
   Damien
   Le lun 19/07/2004   18:56, Aman Raheja a crit :
Are you on Windows platform ? Are you restarting it?
Check your process list and End Task if you find it there.

Also try netstat and see who's using the 8080 port (if that's what you 
have in server.xml).

Aman Raheja
http://www.techquotes.com

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


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




RE: JNDI / pooling

2004-07-09 Thread Randall Svancara
Most ftp connections time out, so you would have to have an auto-reconnect feature 
right?  This sounds like a kewl idea.

-Original Message-
From: Ryan Lissack [mailto:[EMAIL PROTECTED]
Sent: Friday, July 09, 2004 6:30 AM
To: 'Tomcat Users List'
Subject: RE: JNDI / pooling


http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html

See the 'Adding Custom Resource Factories' section.

Ryan.

-Original Message-
From: Viorel Dragomir [mailto:[EMAIL PROTECTED]
Sent: 09 July 2004 13:12
To: Tomcat Users List
Subject: JNDI / pooling


Hi,

I can't describe exactly the problem because I'm not familiar with all the
terms... But the big picture is that I want to create a pool of ftp
connections to work like a database connection and I want to get the
connection from JNDI.


So far I extended BaseKeyedPoolableObjectFactory and StackKeyedObjectPool
and it works fine like this:

FTPConnectionPool pool = new FTPConnectionPool();
String key = key;
try{
FTPClient ftp = pool.borrowClient(key);
if( ftp.sendNoOp() ){
System.out.println(OK);
}else{
System.out.println(NOPE);
}

pool.returnClient( key, ftp );
}catch(Exception ex){
ex.printStackTrace();
}

But I want to make it work from JNDI almost like a datasource
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)
ctx.lookup(java:comp/env/jdbc/backup);

Anyway I am completely lost if it can be done or not.
So far I get an exception when I try to start Tomcat:

GlobalResourcesLifecycleListener: Exception processing Global JNDI Resources
javax.naming.NamingException: Could not create resource factory instance,
null
at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.
java:146)
at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
at org.apache.naming.NamingContext.lookup(NamingContext.java:834)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
 

regards,
viorel

-
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: Como funciona tomcat en Fedora Core 2

2004-07-02 Thread Randall Svancara
If you have everything set up correctly, you should see the index.html file in the 
ROOT webapp of the tomcat servlet engine.  On fedora core2, look at your firewall 
rules to see if you have port 80 enabled.  

Sorry, my spanish is horribleno hablo espanol, que mal me amigo!!

Later.

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 10:01 AM
To: Tomcat Users List
Subject: RE: Como funciona tomcat en Fedora Core 2



This is an english list, you may have more luck if you can get someone to translate.

Ta
Matt

-Original Message-
From: Sergio E. Triviño I. [mailto:[EMAIL PROTECTED]
Sent: 02 July 2004 16:40
To: Tomcat Users List
Subject: Como funciona tomcat en Fedora Core 2


Hola Lista

Instale Fedora Core 2, veo que viene el servicio tomcat e inclusive sube el servicio 
tomcat OK. Pero como lo acceso? 
Yo pense que era por lo normal http://localhost:8080 pero no funciona. Mi pregunta es 
que tengo que hacer para que funcione o como tengo que hacer la prueba para correr JSP.

Muchas Gracias.

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



RE: Como funciona tomcat en Fedora Core 2

2004-07-02 Thread Randall Svancara
make that port 8080

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 10:06 AM
To: Tomcat Users List
Subject: RE: Como funciona tomcat en Fedora Core 2


If you have everything set up correctly, you should see the index.html file in the 
ROOT webapp of the tomcat servlet engine.  On fedora core2, look at your firewall 
rules to see if you have port 80 enabled.  

Sorry, my spanish is horribleno hablo espanol, que mal me amigo!!

Later.

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 10:01 AM
To: Tomcat Users List
Subject: RE: Como funciona tomcat en Fedora Core 2



This is an english list, you may have more luck if you can get someone to translate.

Ta
Matt

-Original Message-
From: Sergio E. Triviño I. [mailto:[EMAIL PROTECTED]
Sent: 02 July 2004 16:40
To: Tomcat Users List
Subject: Como funciona tomcat en Fedora Core 2


Hola Lista

Instale Fedora Core 2, veo que viene el servicio tomcat e inclusive sube el servicio 
tomcat OK. Pero como lo acceso? 
Yo pense que era por lo normal http://localhost:8080 pero no funciona. Mi pregunta es 
que tengo que hacer para que funcione o como tengo que hacer la prueba para correr JSP.

Muchas Gracias.

-
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: Tomcat 4.1 - 5.0

2004-06-23 Thread Randall Svancara
I believe they go into $catalina_home/conf/Catalina/localhost/somewebapp.xml

Randall

-Original Message-
From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 1:21 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1 - 5.0


I am converting a Struts app from Tomcat 4.1 to 5.0 and don't know how to
establish my context. Under 4.1, I placed a Context entry (at the end of
this email) in server.xml. I gather it should now be in its own xml file
within my application directory. But, where? and by what name? Is it found
automagically?



!-- portal context Chang  Wagers Associates Copyright 2004 --
Context displayName=e-Denton Portal Application
 docBase=e-Denton
 path=/e-Denton
 debug=3
 reloadable=true
 useNaming=true 
Loader checkInterval=1 /

Resource name=jdbc/portal auth=Container
type=javax.sql.DataSource/

ResourceParams name=jdbc/portal
  parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
parameter
nameusername/name
valuefortune/value
/parameter
parameter
namepassword/name
valuex/value
/parameter
parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
/parameter
parameter
nameurl/name
valuejdbc:mysql://127.0.0.1:3306/x?autoReconnect=true/value
/parameter
parameter
namemaxActive/name
value10/value
/parameter
parameter
namemaxIdle/name
value5/value
/parameter
  parameter
   namemaxWait/name
   value1/value
  /parameter

/ResourceParams
/Context



-
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: JDBC

2004-05-25 Thread Randall Svancara
There are some good examples for JDBC connection pooling for a variety of databases 
located at the following URL:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html

Good luck,

Randall

-Original Message-
From: Ram Mahajan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 25, 2004 2:36 PM
To: 'Tomcat Users List'
Subject: JDBC


Hi All,

I am using Tomcat 4.1 in Jbuilder X. Can someone please let me know how to
define JDBC configuration in server.xml ?

I want to define a datasource, user, password, database server name and port
in the configuration.

Thanks in advance.

Ram

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



RE: How to detect tomcat down

2004-05-18 Thread Randall Svancara
Write a perl script using the perl::LWP module from cpan.  You could even get really 
complex and write some output to a web page that tells you how memory is being used, 
store that information into a database for statistical reporting purposes, in addition 
to emailing/paging the system administrator that problems might be occuring.  

You could easily figure out which ones are down by the lack of a response.  No 
request, server must be down, do something!!

Heck, I am going to start writing something tonight.  

-Original Message-
From: Daniel Gibby [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 18, 2004 3:36 PM
To: Tomcat Users List
Subject: Re: How to detect tomcat down


You should know the port/host/IP that each of them are running on. You 
should be able to request them directly if you have the tomcat 
standalone service running, which you may or may not. All of this is 
configured in server.xml

Daniel Gibby

Simon Zeng wrote:

I can come up with a WatchDog to do the monitoring/restart. But We have a
few tomcat instance runing in load balance mode with one Apache dispatching
request to them. How could we figure out if one/more(not all) tomcat
instances down and how to decide which ones they are? Basically the question
is can we bypass Apache to go directly to Tomcat since we know where they
are?

Thanks,
-Simon

-Original Message-
From: QM [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 18, 2004 4:40 PM
To: Tomcat Users List
Subject: Re: How to detect tomcat down


On Tue, May 18, 2004 at 03:04:28PM -0400, Simon Zeng wrote:
: I am running Apache 2.0.47 and Tomcat 4.1.24 on Win2K/NT. I would like to
: monitor the tomcat 
: server and restart it automatically if it is detected down. I did a lot
: research but could not find any convincing way to do it.

Some commercial monitoring products perform a request to an
(unprotected) URI and, in the event of a failure, perform some specified
action. -that is, call the start script.

Otherwise, you could have Tomcat started by a (custom) watchdog, the
idea being that it kicks the start script if the expected process isn't
running.  I recall iPlanet 4 did something similar.

As for free + out-of-the-box solutions, I haven't seen any...

-QM

  



-
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: Question about memory

2004-05-06 Thread Randall Svancara
Just a silly question, but don't you also need to perform some additional production 
configuration in your web.xml by setting fork equal to true and developement equal to 
false.  It explains it on this page here:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html#Production%20Configuration

I made some similar modifications and I noticed that tomcat started to release the 
memory when the server was not as busy.

Randall



-Original Message-
From: Yang Xiao [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 06, 2004 9:07 AM
To: Tomcat Users List
Subject: Question about memory


Hi list,

I have 3 Tomcat 5.0.19 instances running with Apache 2.019 and JK2.

I did a simple load testing with JMeter last night and stopped it just
before I went home, so right now there's no incoming request whatsoever, but
TOP still shows heavy memory usage and swapping, it looks like even though
the load has subsided, Tomcat has not released the memory, what can I do
except restart the Tomcat instances to release the memory?

I'm not sure if this is a valid question, so I apologize if I seem to be
lack of some basic understanding of how things work.

Thanks in advance.

Also the tomcats are started with -Xms64 -Xmx256

 

Yang

 

Here's the top output

 

11:01:35  up 2 days, 15:28,  2 users,  load average: 0.65, 0.20, 0.07

381 processes: 379 sleeping, 2 running, 0 zombie, 0 stopped

CPU states:  cpuusernice  systemirq  softirq  iowaitidle

   total1.0%0.0%   56.1%   0.0% 0.0%0.0%   42.7%

Mem:   513292k av,  505136k used,8156k free,   0k shrd,   64872k
buff

   280548k active, 208500k inactive

Swap: 1044216k av,  52k used,  515328k free7388k
cached

 

  PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND

 8333 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8335 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:03   0 jsvc

 8337 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8338 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc

 8340 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc

 8570 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8571 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8572 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8573 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8589 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8596 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8601 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8604 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8607 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8610 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8612 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8616 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8624 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8631 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8633 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8646 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8684 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8689 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8692 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8695 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8697 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8699 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8700 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8703 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8705 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc

 8707 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8709 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8714 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8717 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8720 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8721 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc

 8726 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8729 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8731 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8734 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8739 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8741 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8744 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8747 tomcat16   0  203M 158M 80744 S 0.0 31.5 

RE: Question about memory

2004-05-06 Thread Randall Svancara
I am out of ideas.  But it took a  little while to release the memory.  Perhaps your 
app has a memory leak??

Anyone else care to comment 

-Original Message-
From: Yang Xiao [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 06, 2004 11:43 AM
To: 'Tomcat Users List'
Subject: RE: Question about memory


Hi,
I have development set to false and fork to true, tomcat still doesn't
release the memory, any ideas?

Thanks,
Yang

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 06, 2004 11:32 AM
To: Tomcat Users List
Subject: RE: Question about memory

Just a silly question, but don't you also need to perform some additional
production configuration in your web.xml by setting fork equal to true and
developement equal to false.  It explains it on this page here:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html#Production
%20Configuration

I made some similar modifications and I noticed that tomcat started to
release the memory when the server was not as busy.

Randall



-Original Message-
From: Yang Xiao [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 06, 2004 9:07 AM
To: Tomcat Users List
Subject: Question about memory


Hi list,

I have 3 Tomcat 5.0.19 instances running with Apache 2.019 and JK2.

I did a simple load testing with JMeter last night and stopped it just
before I went home, so right now there's no incoming request whatsoever, but
TOP still shows heavy memory usage and swapping, it looks like even though
the load has subsided, Tomcat has not released the memory, what can I do
except restart the Tomcat instances to release the memory?

I'm not sure if this is a valid question, so I apologize if I seem to be
lack of some basic understanding of how things work.

Thanks in advance.

Also the tomcats are started with -Xms64 -Xmx256

 

Yang

 

Here's the top output

 

11:01:35  up 2 days, 15:28,  2 users,  load average: 0.65, 0.20, 0.07

381 processes: 379 sleeping, 2 running, 0 zombie, 0 stopped

CPU states:  cpuusernice  systemirq  softirq  iowaitidle

   total1.0%0.0%   56.1%   0.0% 0.0%0.0%   42.7%

Mem:   513292k av,  505136k used,8156k free,   0k shrd,   64872k
buff

   280548k active, 208500k inactive

Swap: 1044216k av,  52k used,  515328k free7388k
cached

 

  PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND

 8333 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8335 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:03   0 jsvc

 8337 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8338 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc

 8340 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc

 8570 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8571 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8572 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8573 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8589 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8596 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8601 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8604 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8607 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8610 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8612 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8616 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8624 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8631 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8633 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8646 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8684 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8689 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8692 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8695 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8697 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8699 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8700 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8703 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8705 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc

 8707 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8709 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8714 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8717 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8720 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8721 tomcat15   0

RE: Question about memory

2004-05-06 Thread Randall Svancara
Ok, I went back an re-read your originaly post.  I think elsewhere in the forum there 
is mention of top not accurately displaying the amount of memory java is using. 

Here  is a blurp i found searching through google for memory top and tomcat:

There is a difference between the total amount of memory used by your Java 
applications (Tomcat + installed apps) and the JVM as a whole. Your applications live 
in the heap. You can write a trivial Java application that prints out the total memory 
used in the heap (Runtime.getRuntime().totalMemory() - 
Runtime.getRuntime().freeMemory()) to verify that your heap doesn't exceed your max 
setting.

The JVM itself has a footprint in memory that adds to the total memory footprint in 
the OS.

Supposedly tomcat 5 has a status page that displays memory usage.  That might be more 
accurate.  

Randall  


-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 06, 2004 11:48 AM
To: Tomcat Users List
Subject: RE: Question about memory


I am out of ideas.  But it took a  little while to release the memory.  Perhaps your 
app has a memory leak??

Anyone else care to comment 

-Original Message-
From: Yang Xiao [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 06, 2004 11:43 AM
To: 'Tomcat Users List'
Subject: RE: Question about memory


Hi,
I have development set to false and fork to true, tomcat still doesn't
release the memory, any ideas?

Thanks,
Yang

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 06, 2004 11:32 AM
To: Tomcat Users List
Subject: RE: Question about memory

Just a silly question, but don't you also need to perform some additional
production configuration in your web.xml by setting fork equal to true and
developement equal to false.  It explains it on this page here:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html#Production
%20Configuration

I made some similar modifications and I noticed that tomcat started to
release the memory when the server was not as busy.

Randall



-Original Message-
From: Yang Xiao [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 06, 2004 9:07 AM
To: Tomcat Users List
Subject: Question about memory


Hi list,

I have 3 Tomcat 5.0.19 instances running with Apache 2.019 and JK2.

I did a simple load testing with JMeter last night and stopped it just
before I went home, so right now there's no incoming request whatsoever, but
TOP still shows heavy memory usage and swapping, it looks like even though
the load has subsided, Tomcat has not released the memory, what can I do
except restart the Tomcat instances to release the memory?

I'm not sure if this is a valid question, so I apologize if I seem to be
lack of some basic understanding of how things work.

Thanks in advance.

Also the tomcats are started with -Xms64 -Xmx256

 

Yang

 

Here's the top output

 

11:01:35  up 2 days, 15:28,  2 users,  load average: 0.65, 0.20, 0.07

381 processes: 379 sleeping, 2 running, 0 zombie, 0 stopped

CPU states:  cpuusernice  systemirq  softirq  iowaitidle

   total1.0%0.0%   56.1%   0.0% 0.0%0.0%   42.7%

Mem:   513292k av,  505136k used,8156k free,   0k shrd,   64872k
buff

   280548k active, 208500k inactive

Swap: 1044216k av,  52k used,  515328k free7388k
cached

 

  PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND

 8333 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8335 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:03   0 jsvc

 8337 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8338 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc

 8340 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:00   0 jsvc

 8570 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8571 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8572 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8573 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8589 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8596 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8601 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8604 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8607 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:02   0 jsvc

 8610 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8612 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8616 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8624 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8631 tomcat16   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8633 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8646 tomcat15   0  203M 158M 80744 S 0.0 31.5   0:01   0 jsvc

 8684

RE: Java VM options

2004-05-06 Thread Randall Svancara
In your catalina.sh (unix) or catalina.bat (window) located on in your bin directory 
of CATALINA_HOME (where tomcat is located) you can add your jvm options to a variable 
called JAVA_OPTS or CATLINA_OPTS.

JAVA_OPTS=your jvm parameters   (unix catalina.sh)





-Original Message-
From: Damon Henderson [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 06, 2004 12:02 PM
To: Tomcat Users List
Subject: Java VM options


How do I specify -X or -XX JVM startup options in 5.0.19 ?

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



RE: Question about memory

2004-05-06 Thread Randall Svancara
Source for information below:

http://www.theserverside.com/discussions/thread.tss?thread_id=24939

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 06, 2004 12:05 PM
To: Tomcat Users List
Subject: RE: Question about memory



Hi,

Here  is a blurp i found searching through google for memory top and
tomcat:

It wouldn't hurt to quote or link to your sources ;)

Supposedly tomcat 5 has a status page that displays memory usage.  That
might be more accurate.

It's http://host:port/manager/status.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
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: Question about memory

2004-05-06 Thread Randall Svancara
I remember you talking about adding that functionality to jmeter.  It sounds really 
kewl.  I need to try it!!

-Original Message-
From: Peter Lin [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 06, 2004 12:13 PM
To: Tomcat Users List
Subject: RE: Question about memory


 
by the way, you can view the performance of Tomcat using JMeter.
 
it will make a request to the status page and then graph the results. 
 
peter


Shapira, Yoav [EMAIL PROTECTED] wrote:

Hi,

Here is a blurp i found searching through google for memory top and
tomcat:

It wouldn't hurt to quote or link to your sources ;)

Supposedly tomcat 5 has a status page that displays memory usage. That
might be more accurate.

It's http://host:port/manager/status.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged. This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else. If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender. Thank you.


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


-
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs 

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



RE: mod_jk hangs

2004-05-05 Thread Randall Svancara
You might want to check to make sure you have enough tomcat threads for
each apache thread. 

I usually give tomcat a few more threads than apache just to make sure I
do not run out.  

---snip

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8009 
   enableLookups=false redirectPort=8443 debug=0
   minSpareThreads=100 maxSpareThreads=300
   protocol=AJP/1.3 /
---snip

So you might want to increase min and max spare threads to accomodate
more requestes from apache to tomcat via mod_jk. 

Randall 



-Original Message-
From: Shawn Wilson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 9:50 AM
To: [EMAIL PROTECTED]
Subject: mod_jk hangs


Just yesterday we started running into problems requesting pages on our 
production website through mod_jk. Previously everything had been 
working fine for months. Essentially what happens is when you request 
the page for the first time (doesn't seem to matter what browser you're 
using) the browser just sits and spins. Then after hitting refresh 
(Ctrl+R) a couple times it finally comes up. Subsequent visits to the 
same page continue to work for me in Mozilla but after closing IE and 
reopening it after a couple more requests it hangs again. In case it 
helps, the site in question is http://www.atmreports.com.

I simply cannot figure out what is going on. I do see many errors in the

mod_jk.log, but these had been there before when everything worked fine
too:

[Wed May 05 09:27:46 2004]  [jk_ajp_common.c (1137)]: Error reading 
reply from tomcat. Tomcat is down or network problems.
[Wed May 05 09:27:46 2004]  [jk_ajp_common.c (1290)]: ERROR: Receiving 
from tomcat failed, recoverable operation. err=0
[Wed May 05 09:27:46 2004]  [jk_ajp_common.c (1309)]: sending request to

tomcat failed in send loop. err=0
[Wed May 05 09:27:46 2004]  [jk_ajp_common.c (738)]: ERROR: can't 
receive the response message from tomcat, network problems or tomcat is 
down. err=-1

A few things to note, any of which may contribute to the problem but for

the life of me I can't figure out how:

1. On Friday we just moved out datacenter to a new location. However we 
see this problem even internally at the location so I don't believe it 
is any sort of routing issue (and the problem didn't start until
Tuesday).

2. The clock on this webserver was many hours off. On Tuesday (yes, the 
day the problems started) the clock was synchronized and the timezone 
correctly set so the machine now has correct time. This seems to be the 
most probable cause simply because it happened around the same time, but

I just can't understand why or how.

3. Yesterday we rebooted the box to see if that would help. It did. We 
didn't have any more problems at all that day until this morning we see 
the problems again. Today we recycled just tomcat and that seems to have

fixed it as well, though I expect that by tomorrow I will see the 
problem again.

4. I wouldn't think this could have anything to do with that new Sasser 
worm, but listing that just in case.

The machine is running Linux kernel 2.4.20-8 with httpd-2.0.40-21 and 
jakarta-tomcat-5.0.18. We are running 4 instances of tomcat on the box, 
each started with the following JVM options:

-Xmn128M -Xmx1024M -Djava.awt.headless=true

Nothing having to do with configuration has changed at all in a long 
time. Here is the relevant configuration sections:


# Mod_jk (Tomcat connector)
LoadModule jk_module modules/mod_jk.so

IfModule mod_jk.c
 JkWorkersFile /etc/httpd/conf/workers.properties
 JkLogFile /var/log/httpd/mod_jk.log
 JkLogLevel info
 JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
 JkRequestLogFormat %w %V %T
/IfModule

...and later (in a VirtualHost section)...

 JKMount /myreports balancer
 JKMount /myreports/* balancer

Here is our workers.properties file (comments removed):

workers.java_home=/usr/java/j2sdk1.4.2_03
ps=/
worker.list=balancer

worker.ajp13_0.port=8090
worker.ajp13_0.host=localhost
worker.ajp13_0.type=ajp13
worker.ajp13_0.lbfactor=1

worker.ajp13_1.port=8091
worker.ajp13_1.host=localhost
worker.ajp13_1.type=ajp13
worker.ajp13_1.lbfactor=1

worker.ajp13_2.port=8092
worker.ajp13_2.host=localhost
worker.ajp13_2.type=ajp13
worker.ajp13_2.lbfactor=1

worker.ajp13_3.port=8093
worker.ajp13_3.host=localhost
worker.ajp13_3.type=ajp13
worker.ajp13_3.lbfactor=1

worker.balancer.type=lb
worker.balancer.balanced_workers=ajp13_0, ajp13_1, ajp13_2, ajp13_3
worker.balancer.sticky_session=1


Any help would be greatly appreciated!

Thanks,
-shawn

-- 

Shawn Wilson [EMAIL PROTECTED]
Software Developer, ATMReports.com
PH: 877-327-0873, FAX: 406-294-5806



-
To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: mod_jk hangs

2004-05-05 Thread Randall Svancara
On tomcat 4.1.30 it is minProcessors and maxProcessors.  And by the look of our 
production box, I could stand to increase the size a little bit too.




!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8009 minProcessors=75 maxProcessors=300
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=0
   useURIValidationHack=false
   protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/


Randall  



-Original Message-
From: Daniel Gibby [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 10:04 AM
To: Tomcat Users List
Subject: Re: mod_jk hangs


Also, do these attributes need to be set on the HttpConnector on 8080 as 
well as the AJP or Coyote connector on 8009?

Daniel Gibby wrote:

 I can understand how that could help, is there a different syntax for 
 maxSpareThreads for tomcat4 than tomcat5?

 I see minProcessors and maxProcessors in my configuration, but nothing 
 about minSpareThreads or maxSpareThreads

 I'm using tomcat 4.1.30

 Daniel

 Randall Svancara wrote:

 You might want to check to make sure you have enough tomcat threads for
 each apache thread.
 I usually give tomcat a few more threads than apache just to make sure I
 do not run out. 
 ---snip

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8009   enableLookups=false 
 redirectPort=8443 debug=0
   minSpareThreads=100 maxSpareThreads=300
   protocol=AJP/1.3 /
 ---snip

 So you might want to increase min and max spare threads to accomodate
 more requestes from apache to tomcat via mod_jk.
 Randall  



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


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



RE: mod_jk hangs

2004-05-05 Thread Randall Svancara
Well, that depends on what platform and how apache was compiled.  As I
understand on windows, apache uses the mpm modules and unix it uses
forking or it can use mpm.  You need to find the section for you
platform and make the ajustments as neccessary.  Below is the section
where you need to look in your apache configuration file, usually called
httpd.conf, but i have seen them named apache.conf (gentoo anyone).  But
you can see the min and max spare servers/threads listed in each
section.  Just adjust accordingly.  

I hope this helps.



IfModule prefork.c
StartServers 75
MinSpareServers  75
MaxSpareServers 300
MaxClients 300
MaxRequestsPerChild  0
/IfModule

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server
process
# MaxRequestsPerChild: maximum number of requests a server process
serves
IfModule worker.c
StartServers 75
MaxClients 300
MinSpareThreads 75
MaxSpareThreads 300
ThreadsPerChild 25
MaxRequestsPerChild  0
/IfModule

# perchild MPM
# NumServers: constant number of server processes
# StartThreads: initial number of worker threads in each server process
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# MaxThreadsPerChild: maximum number of worker threads in each server
process
# MaxRequestsPerChild: maximum number of connections per server process
IfModule perchild.c
NumServers   75
StartThreads 75
MinSpareThreads  75
MaxSpareThreads 300
MaxThreadsPerChild  20
MaxRequestsPerChild  0
/IfModule

# WinNT MPM
# ThreadsPerChild: constant number of worker threads in the server
process
# MaxRequestsPerChild: maximum  number of requests a server process
serves
IfModule mpm_winnt.c
ThreadsPerChild 250
MaxRequestsPerChild  0
/IfModule






-Original Message-
From: Shawn Wilson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 10:21 AM
To: Tomcat Users List
Subject: Re: mod_jk hangs


Okay, here is the section from our server.xml in production:

   Service name=Catalina
 Connector port=8080 /

 !-- This is here for compatibility only, not required --
 Connector port=8090 protocol=AJP/1.3 /

 Engine name=Catalina defaultHost=localhost jvmRoute=ajp13_0
   Logger className=org.apache.catalina.logger.FileLogger /

   Realm className=org.apache.catalina.realm.UserDatabaseRealm
  resourceName=UserDatabase /

   Host name=localhost appBase=webapps /
 /Engine
   /Service

I thought it interesting the comment that this is here for 
compatibility only, not required. It sounds to me that connector is 
required if I want AJP/1.3 isn't it? I can't remember if that comment 
was there or if I (mistakingly) added it. Anyways, I see that I could 
probably do well to add the minSpareThreads and maxSpareThreads 
parameters. Any idea where I should look in my httpd.conf file to see 
what values to set these to?

Thanks,
-shawn

Randall Svancara wrote:

 You might want to check to make sure you have enough tomcat threads
for
 each apache thread. 
 
 I usually give tomcat a few more threads than apache just to make sure
I
 do not run out.  
 
 ---snip
 
 !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
 Connector port=8009 
enableLookups=false redirectPort=8443 debug=0
minSpareThreads=100 maxSpareThreads=300
protocol=AJP/1.3 /
 ---snip
 
 So you might want to increase min and max spare threads to accomodate
 more requestes from apache to tomcat via mod_jk. 
 
 Randall 
 
 
 
 -Original Message-
 From: Shawn Wilson [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 05, 2004 9:50 AM
 To: [EMAIL PROTECTED]
 Subject: mod_jk hangs
 
 
 Just yesterday we started running into problems requesting pages on
our 
 production website through mod_jk. Previously everything had been 
 working fine for months. Essentially what happens is when you request 
 the page for the first time (doesn't seem to matter what browser
you're 
 using) the browser just sits and spins. Then after hitting refresh 
 (Ctrl+R) a couple times it finally comes up. Subsequent visits to the 
 same page continue to work for me in Mozilla but after closing IE and 
 reopening it after a couple more requests it hangs again. In case it 
 helps, the site in question is http://www.atmreports.com.
 
 I simply cannot figure out what is going on. I do see many errors in
the
 
 mod_jk.log, but these had been there before when everything worked
fine
 too:
 
 [Wed May 05 09:27:46 2004]  [jk_ajp_common.c (1137)]: Error reading 
 reply from tomcat

RE: mod_jk hangs

2004-05-05 Thread Randall Svancara
I bet your traffic has increase enough that hitting your limit.  I
implemented a web app at the beginning of this year 
and I eventually had to increase maximum for everything as our usage
increased.  

Randall

-Original Message-
From: Shawn Wilson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 10:46 AM
To: Tomcat Users List
Subject: Re: mod_jk hangs


Looks like the maximum for everyting in my config was 150 so I'll try 
setting maxSpareThreads for Tomcat to 150 as well. If this is indeed the

cause of the problem, any idea why it would just start happening 
yesterday after months without problem? My only guess is that perhaps we

just happened to reach some threshold of traffic yesterday that we never

did before. Actually, that may indeed be the case since we usually get a

surge of traffic during the beginning of a month.

Thanks,
-shawn

Randall Svancara wrote:

 Well, that depends on what platform and how apache was compiled.  As I
 understand on windows, apache uses the mpm modules and unix it uses
 forking or it can use mpm.  You need to find the section for you
 platform and make the ajustments as neccessary.  Below is the section
 where you need to look in your apache configuration file, usually
called
 httpd.conf, but i have seen them named apache.conf (gentoo anyone).
But
 you can see the min and max spare servers/threads listed in each
 section.  Just adjust accordingly.  
 
 I hope this helps.
 
 
 
 IfModule prefork.c
 StartServers 75
 MinSpareServers  75
 MaxSpareServers 300
 MaxClients 300
 MaxRequestsPerChild  0
 /IfModule
 
 # worker MPM
 # StartServers: initial number of server processes to start
 # MaxClients: maximum number of simultaneous client connections
 # MinSpareThreads: minimum number of worker threads which are kept
spare
 # MaxSpareThreads: maximum number of worker threads which are kept
spare
 # ThreadsPerChild: constant number of worker threads in each server
 process
 # MaxRequestsPerChild: maximum number of requests a server process
 serves
 IfModule worker.c
 StartServers 75
 MaxClients 300
 MinSpareThreads 75
 MaxSpareThreads 300
 ThreadsPerChild 25
 MaxRequestsPerChild  0
 /IfModule
 
 # perchild MPM
 # NumServers: constant number of server processes
 # StartThreads: initial number of worker threads in each server
process
 # MinSpareThreads: minimum number of worker threads which are kept
spare
 # MaxSpareThreads: maximum number of worker threads which are kept
spare
 # MaxThreadsPerChild: maximum number of worker threads in each server
 process
 # MaxRequestsPerChild: maximum number of connections per server
process
 IfModule perchild.c
 NumServers   75
 StartThreads 75
 MinSpareThreads  75
 MaxSpareThreads 300
 MaxThreadsPerChild  20
 MaxRequestsPerChild  0
 /IfModule
 
 # WinNT MPM
 # ThreadsPerChild: constant number of worker threads in the server
 process
 # MaxRequestsPerChild: maximum  number of requests a server process
 serves
 IfModule mpm_winnt.c
 ThreadsPerChild 250
 MaxRequestsPerChild  0
 /IfModule
 
 
 
 
 
 
 -Original Message-
 From: Shawn Wilson [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 05, 2004 10:21 AM
 To: Tomcat Users List
 Subject: Re: mod_jk hangs
 
 
 Okay, here is the section from our server.xml in production:
 
Service name=Catalina
  Connector port=8080 /
 
  !-- This is here for compatibility only, not required --
  Connector port=8090 protocol=AJP/1.3 /
 
  Engine name=Catalina defaultHost=localhost
jvmRoute=ajp13_0
Logger className=org.apache.catalina.logger.FileLogger /
 
Realm className=org.apache.catalina.realm.UserDatabaseRealm
   resourceName=UserDatabase /
 
Host name=localhost appBase=webapps /
  /Engine
/Service
 
 I thought it interesting the comment that this is here for 
 compatibility only, not required. It sounds to me that connector is 
 required if I want AJP/1.3 isn't it? I can't remember if that comment 
 was there or if I (mistakingly) added it. Anyways, I see that I could 
 probably do well to add the minSpareThreads and maxSpareThreads 
 parameters. Any idea where I should look in my httpd.conf file to see 
 what values to set these to?
 
 Thanks,
 -shawn
 
 Randall Svancara wrote:
 
 
You might want to check to make sure you have enough tomcat threads
 
 for
 
each apache thread. 

I usually give tomcat a few more threads than apache just to make sure
 
 I
 
do not run out.  

---snip

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8009 
   enableLookups=false redirectPort=8443 debug=0
   minSpareThreads=100 maxSpareThreads=300
   protocol=AJP/1.3 /
---snip

So you might want to increase min and max spare threads to accomodate
more requestes from apache to tomcat via mod_jk. 

Randall 



-Original Message-
From: Shawn Wilson

RE: mod_jk hangs

2004-05-05 Thread Randall Svancara
Dang, my literacy skilz suck today.  Sorry about that everyone.  

Have a good day.

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 10:49 AM
To: Tomcat Users List
Subject: RE: mod_jk hangs


I bet your traffic has increase enough that hitting your limit.  I
implemented a web app at the beginning of this year 
and I eventually had to increase maximum for everything as our usage
increased.  

Randall

-Original Message-
From: Shawn Wilson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 10:46 AM
To: Tomcat Users List
Subject: Re: mod_jk hangs


Looks like the maximum for everyting in my config was 150 so I'll try 
setting maxSpareThreads for Tomcat to 150 as well. If this is indeed the

cause of the problem, any idea why it would just start happening 
yesterday after months without problem? My only guess is that perhaps we

just happened to reach some threshold of traffic yesterday that we never

did before. Actually, that may indeed be the case since we usually get a

surge of traffic during the beginning of a month.

Thanks,
-shawn

Randall Svancara wrote:

 Well, that depends on what platform and how apache was compiled.  As I
 understand on windows, apache uses the mpm modules and unix it uses
 forking or it can use mpm.  You need to find the section for you
 platform and make the ajustments as neccessary.  Below is the section
 where you need to look in your apache configuration file, usually
called
 httpd.conf, but i have seen them named apache.conf (gentoo anyone).
But
 you can see the min and max spare servers/threads listed in each
 section.  Just adjust accordingly.  
 
 I hope this helps.
 
 
 
 IfModule prefork.c
 StartServers 75
 MinSpareServers  75
 MaxSpareServers 300
 MaxClients 300
 MaxRequestsPerChild  0
 /IfModule
 
 # worker MPM
 # StartServers: initial number of server processes to start
 # MaxClients: maximum number of simultaneous client connections
 # MinSpareThreads: minimum number of worker threads which are kept
spare
 # MaxSpareThreads: maximum number of worker threads which are kept
spare
 # ThreadsPerChild: constant number of worker threads in each server
 process
 # MaxRequestsPerChild: maximum number of requests a server process
 serves
 IfModule worker.c
 StartServers 75
 MaxClients 300
 MinSpareThreads 75
 MaxSpareThreads 300
 ThreadsPerChild 25
 MaxRequestsPerChild  0
 /IfModule
 
 # perchild MPM
 # NumServers: constant number of server processes
 # StartThreads: initial number of worker threads in each server
process
 # MinSpareThreads: minimum number of worker threads which are kept
spare
 # MaxSpareThreads: maximum number of worker threads which are kept
spare
 # MaxThreadsPerChild: maximum number of worker threads in each server
 process
 # MaxRequestsPerChild: maximum number of connections per server
process
 IfModule perchild.c
 NumServers   75
 StartThreads 75
 MinSpareThreads  75
 MaxSpareThreads 300
 MaxThreadsPerChild  20
 MaxRequestsPerChild  0
 /IfModule
 
 # WinNT MPM
 # ThreadsPerChild: constant number of worker threads in the server
 process
 # MaxRequestsPerChild: maximum  number of requests a server process
 serves
 IfModule mpm_winnt.c
 ThreadsPerChild 250
 MaxRequestsPerChild  0
 /IfModule
 
 
 
 
 
 
 -Original Message-
 From: Shawn Wilson [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 05, 2004 10:21 AM
 To: Tomcat Users List
 Subject: Re: mod_jk hangs
 
 
 Okay, here is the section from our server.xml in production:
 
Service name=Catalina
  Connector port=8080 /
 
  !-- This is here for compatibility only, not required --
  Connector port=8090 protocol=AJP/1.3 /
 
  Engine name=Catalina defaultHost=localhost
jvmRoute=ajp13_0
Logger className=org.apache.catalina.logger.FileLogger /
 
Realm className=org.apache.catalina.realm.UserDatabaseRealm
   resourceName=UserDatabase /
 
Host name=localhost appBase=webapps /
  /Engine
/Service
 
 I thought it interesting the comment that this is here for 
 compatibility only, not required. It sounds to me that connector is 
 required if I want AJP/1.3 isn't it? I can't remember if that comment 
 was there or if I (mistakingly) added it. Anyways, I see that I could 
 probably do well to add the minSpareThreads and maxSpareThreads 
 parameters. Any idea where I should look in my httpd.conf file to see 
 what values to set these to?
 
 Thanks,
 -shawn
 
 Randall Svancara wrote:
 
 
You might want to check to make sure you have enough tomcat threads
 
 for
 
each apache thread. 

I usually give tomcat a few more threads than apache just to make sure
 
 I
 
do not run out.  

---snip

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8009 
   enableLookups=false redirectPort=8443 debug=0
   minSpareThreads=100 maxSpareThreads

RE: How to set up JAVA_OPTS while running tomcat as a service

2004-04-02 Thread Randall Svancara
Put them in your catalina.bat file located in the bin directory of your tomcat 
installation.



-Original Message-
From: Mandy Joss [mailto:[EMAIL PROTECTED]
Sent: Friday, April 02, 2004 9:54 AM
To: [EMAIL PROTECTED]
Subject: How to set up JAVA_OPTS while running tomcat as a service


I am running Tomcat 4.1.24 as service but under stress I get 
OutOfMemmoryError. To cure this I want to pass JAVA_OPTS=-server -Xms256m 
-Xmx1000m -Xincgc to the Tomcat. Can somebody please tell me where should I 
specify JAVA_OPTS so that Tomcat running as service will look at them.

_
MSN Toolbar provides one-click access to Hotmail from any Web page - FREE 
download! http://toolbar.msn.com/go/onm00200413ave/direct/01/


-
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: Apache+Tomcat + MOD_JK on different machine

2004-04-01 Thread Randall Svancara
No problem. 

Good luck.

-Original Message-
From: Hari Om [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 01, 2004 9:08 AM
To: [EMAIL PROTECTED]; Randall Svancara
Cc: [EMAIL PROTECTED]
Subject: RE: Apache+Tomcat + MOD_JK on different machine


Hi Randall,

I WOULD LIKE TO THANK YOU. My Apache  and Tomcat on different machine are 
working great now. THANK YOU AGAIN for your time and input.

The problem was that in my SERVER.XML File I was referring to LOCALHOST 
instaed of having of actual HOSTNAME.

THANKS AGAIN!

HARI OM



From: Randall Svancara [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: RE: Apache+Tomcat + MOD_JK on different machine
Date: Wed, 24 Mar 2004 15:26:09 -0700

From what I can see, it should work.  So you can browse 
http://someserver:8080/examples on the server where Tomcat is installed, 
right?  Also, there just to be on the safe side, your network allows 
communication from one machine to another on port 8009.  Try using telnet 
to access the server running tomcat from a  seperate computer to see if the 
port is even accessible. Or if you have nmap, scan the tomcat box to see 
what ports are open or accessible. I performed a similar setup on a couple 
of test servers and it worked. One machine was running apache on linux and 
the other was running tomcat on windows.

I am running out of things to tell ya.  Anyone else want to take a stab at 
this???  Of course looking at your logs more closely, these lines here 
would assume that you are connecting the examples context??

[jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (477)]: Attempting to map URI '/examples'
[jk_uri_worker_map.c (491)]: jk_uri_worker_map_t::map_uri_to_worker, Found
an exact match ajp13 - /examples


Randall

-Original Message-
From: Hari Om [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 3:15 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; Randall Svancara
Subject: RE: Apache+Tomcat + MOD_JK on different machine


NO...I am still strugllingwonder why.
Please check the logs 3 files

ERROR_LOG

[Tue Mar 23 15:50:39 2004] [notice] Apache/2.0.47 (Unix) mod_jk/1.2.2
configured -- resuming normal operations

-
ACCESS_LOG
-
[23/Mar/2004:15:51:33 -0700] GET / HTTP/1.1 200 1456
[23/Mar/2004:15:51:40 -0700] GET /examples HTTP/1.1 400 0

---
MOD_JK.LOG
---
[jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc
[jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open
[jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule
map size is 4
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::uri_worker_map_open,
exact rule /examples=ajp13 was added
[jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /examples/=ajp13 was added
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::uri_worker_map_open,
exact rule /abc=ajp13 was added
[jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open,
match rule /abc/=ajp13 was added
[jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open,
there are 4 rules
[jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done
[jk_worker.c (88)]: Into wc_open
[jk_worker.c (222)]: Into build_worker_map, creating 1 workers
[jk_worker.c (228)]: build_worker_map, creating worker ajp13
[jk_worker.c (148)]: Into wc_create_worker
[jk_worker.c (162)]: wc_create_worker, about to create instance ajp13 of
ajp13
[jk_ajp13_worker.c (108)]: Into ajp13_worker_factory
[jk_worker.c (171)]: wc_create_worker, about to validate and init ajp13
[jk_ajp_common.c (1219)]: Into jk_worker_t::validate
[jk_ajp_common.c (1239)]: In jk_worker_t::validate for worker ajp13 contact
is utahdiseasereport.utah.gov:8009
[jk_ajp_common.c (1267)]: Into jk_worker_t::init
[jk_ajp_common.c (1287)]: In jk_worker_t::init, setting socket timeout to 0
[jk_worker.c (187)]: wc_create_worker, done
[jk_worker.c (238)]: build_worker_map, removing old ajp13 worker
[jk_worker.c (250)]: build_worker_map, done
[jk_worker.c (111)]: wc_open, done 1
[jk_worker.c (118)]: Into wc_close
[jk_worker.c (199)]: close_workers got 1 workers to destroy
[jk_worker.c (206)]: close_workers will destroy worker ajp13
[jk_ajp_common.c (1324)]: Into jk_worker_t::destroy
[jk_ajp_common.c (1331)]: Into jk_worker_t::destroy up to 1 endpoint to
close
[jk_worker.c (120)]: wc_close, done
[jk_uri_worker_map.c (190)]: Into jk_uri_worker_map_t::uri_worker_map_free
[jk_uri_worker_map.c (441)]: Into jk_uri_worker_map_t::uri_worker_map_close
[jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc
[jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open
[jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule
map size is 4

RE: How difficult is it to upgrade from 4.1.24 to 5.0.19?

2004-04-01 Thread Randall Svancara
It is almost the same, except I had context xml configuration files stored in the 
webapp directory for the webapps.  I had to move these to conf/Catalina/localhost 
where the contexts xml configuration files for Admin and manager are installed.  Come 
to think of it, maybe this is the way you were supposed to do it all along.

Anyway, that is all I had to do.  

Randall

-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 01, 2004 12:31 PM
To: Tomcat Users List
Subject: How difficult is it to upgrade from 4.1.24 to 5.0.19?



Can I *just*:

1. copy my existing contexts into the 5.0.19 webapps directory
2. copy my existing jk2.properties into the 5.0.19 conf directory
3. change my $TOMCAT_HOME env variable to point to the new 5.0.19 directory
4. contunue to use my existing workers2.properties in httpd/conf/

In other words...
Is it just like upgrading 4.1.24 to 4.1.27 ?

Thanks,

-- 
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
* http://www.aitsupport.com   *
***

-
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: Apache+Tomcat + MOD_JK on different machine

2004-03-24 Thread Randall Svancara
So, did you ever get this working then??


-Original Message-
From: Hari Om [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 7:52 AM
To: [EMAIL PROTECTED]; Randall Svancara;
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: Apache+Tomcat + MOD_JK on different machine


Thanks again Randall and Henry for your reply... appreciate that!

When I try http://my_web_server/abc, it shows HTTP 400-Bad Request
BUT when I try http://my_web_server/pqr, it shows HTTP 404 - File Not 
Found
BUT when I try http://my_web_server, it works fine...which means that APACHE 
IS NOT SENDING THE REQUEST to TOMCATwonder why.

I've added workers.properties in my conf directory on Web Server.
I also have MOD_JK.CONF file there.


WORKERS.PROPERTIES

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=102.103.103.1
#the above is IP of my App Server
worker.ajp13.type=ajp13


mod_jk.conf

  Include conf/mod_jk.conf
  JkWorkersFile conf/workers.properties
  Include conf/mod_jk.conf
  JkLogFile logs/mod_jk.log
  JkLogLevel debug
  JkMount /examples ajp13
  JkMount /examples/* ajp13
  JkMount /abc ajp13
  JkMount /abc/* ajp13


HTTPD.CONF

  JkWorkersFile conf/workers.properties
  JkLogFile logs/mod_jk.log
  JkLogLevel debug
  JkMount /examples ajp13
  JkMount /examples/* ajp13
  JkMount /abc ajp13
  JkMount /abc/* ajp13



From: Randall Svancara [EMAIL PROTECTED]
To: Hari Om [EMAIL PROTECTED],Tomcat Users List 
[EMAIL PROTECTED]
Subject: RE: Apache+Tomcat + MOD_JK on different machine
Date: Tue, 23 Mar 2004 09:21:36 -0700

Your workers.properties should be on your webserver where apache is located. 
  I typically place the workers.properties in the same directory where 
httpd.conf is located.

workers.properties is needed for mod_jk so it makes sense that it needs to 
be in the same machine where mod_jk and apache are installed.  At least far 
as I know anyways. Sometimes apache has a difficult time finding it.  I have 
used this line to tell apache where to find the workers.properties.  You 
might try
including a line like this in your apache configuration file:


IfModule mod_jk.c
  JkSet config.file /etc/apache2/conf/workers.properties
  Include /etc/apache2/conf/mod_jk2.conf
/IfModule

If anyone else has anything to add to this or correct me on, please feel 
free because I am still learning to, but then again who isn't??
I hope that helps.

-Original Message-
From: Hari Om [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 8:56 AM
To: [EMAIL PROTECTED]
Cc: Randall Svancara
Subject: RE: Apache+Tomcat + MOD_JK on different machine


Thanks Randall for your reply... appreciate that!

My MOD_JK.CONF file is AUTOGENERATED on my AppServer. I start my App Server
FIRST which AUTOGENERATES mod_jk.conf file. So, how can I reference this
file on my HTTPD.CONF (Include conf/mod_jk.conf) - which is indeed located
on a different machine?

Where should I place my workers.properties? should it be on App Server or
Web Server?

Should I first start App Server or Web Server or it does'nt matter?

In my HTTPD.CONF I have different mount points (example 'abc') so when I
type http://IPADDRESS/abc it shows HTTP 400 Bad Request on my browser
Howevere, when I type http://IPADDRESS/lmn it shows HTTP 404 Page Not
Found (Note: lmn is not added a JKMount in my Httpd.conf)

My MOD_JK.log file shows it added all the JKMounts.
My ACCESS_LOG file shows:
[23/Mar/2004:08:44:05 -0700] GET /abc HTTP/1.1 400 0
[23/Mar/2004:08:50:24 -0700] GET /lmn HTTP/1.1 404 301


My ERROR_LOG file shows:
[Tue Mar 23 08:41:46 2004] [notice] Apache/2.0.47 (Unix) mod_jk/1.2.2
configured -- resuming normal operations

Any related information on above is appreciated.

THANKS again!

HARI OM



From: Randall Svancara [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: Apache+Tomcat + MOD_JK on different machine Date: Tue, 23 Mar
2004 08:15:40 -0700

I would leave your httpd.conf file the same as  you have it shown below.  I
would also confirm in you logs that everything is working ok.  However,
Apache should not even startup if the included configuration file,
mod_jk.conf is not present.

--
httpd.conf (on Web Server)
--
LoadModule jk_module modules/mod_jk.so
ServerName xyz.com

Include conf/mod_jk.conf

JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log

JkLogLevel debug

JkMount /examples ajp13
JkMount /examples/* ajp13


The trick here is to make some changes to your workers.properties in order
to connect to another box.
It looks as if your are trying to configure a load balancer.  If you are
connecting to only one instance
of tomcat this is not necessary.  Also you need to look in your server.xml
and see that you have the coyote connector
running on port 8009.  I would exclude

RE: Apache+Tomcat + MOD_JK on different machine

2004-03-24 Thread Randall Svancara
From what I can see, it should work.  So you can browse 
http://someserver:8080/examples on the server where Tomcat is installed, right?  
Also, there just to be on the safe side, your network allows communication from one 
machine to another on port 8009.  Try using telnet to access the server running 
tomcat from a  seperate computer to see if the port is even accessible. Or if you 
have nmap, scan the tomcat box to see what ports are open or accessible. I performed 
a similar setup on a couple of test servers and it worked. One machine was running 
apache on linux and the other was running tomcat on windows.   

I am running out of things to tell ya.  Anyone else want to take a stab at this???  Of 
course looking at your logs more closely, these lines here would assume that you are 
connecting the examples context??

[jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (477)]: Attempting to map URI '/examples'
[jk_uri_worker_map.c (491)]: jk_uri_worker_map_t::map_uri_to_worker, Found 
an exact match ajp13 - /examples


Randall

-Original Message-
From: Hari Om [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 3:15 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; Randall Svancara
Subject: RE: Apache+Tomcat + MOD_JK on different machine


NO...I am still strugllingwonder why.
Please check the logs 3 files

ERROR_LOG

[Tue Mar 23 15:50:39 2004] [notice] Apache/2.0.47 (Unix) mod_jk/1.2.2 
configured -- resuming normal operations

-
ACCESS_LOG
-
[23/Mar/2004:15:51:33 -0700] GET / HTTP/1.1 200 1456
[23/Mar/2004:15:51:40 -0700] GET /examples HTTP/1.1 400 0

---
MOD_JK.LOG
---
[jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc
[jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open
[jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule 
map size is 4
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::uri_worker_map_open, 
exact rule /examples=ajp13 was added
[jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, 
match rule /examples/=ajp13 was added
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::uri_worker_map_open, 
exact rule /abc=ajp13 was added
[jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, 
match rule /abc/=ajp13 was added
[jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, 
there are 4 rules
[jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done
[jk_worker.c (88)]: Into wc_open
[jk_worker.c (222)]: Into build_worker_map, creating 1 workers
[jk_worker.c (228)]: build_worker_map, creating worker ajp13
[jk_worker.c (148)]: Into wc_create_worker
[jk_worker.c (162)]: wc_create_worker, about to create instance ajp13 of 
ajp13
[jk_ajp13_worker.c (108)]: Into ajp13_worker_factory
[jk_worker.c (171)]: wc_create_worker, about to validate and init ajp13
[jk_ajp_common.c (1219)]: Into jk_worker_t::validate
[jk_ajp_common.c (1239)]: In jk_worker_t::validate for worker ajp13 contact 
is utahdiseasereport.utah.gov:8009
[jk_ajp_common.c (1267)]: Into jk_worker_t::init
[jk_ajp_common.c (1287)]: In jk_worker_t::init, setting socket timeout to 0
[jk_worker.c (187)]: wc_create_worker, done
[jk_worker.c (238)]: build_worker_map, removing old ajp13 worker
[jk_worker.c (250)]: build_worker_map, done
[jk_worker.c (111)]: wc_open, done 1
[jk_worker.c (118)]: Into wc_close
[jk_worker.c (199)]: close_workers got 1 workers to destroy
[jk_worker.c (206)]: close_workers will destroy worker ajp13
[jk_ajp_common.c (1324)]: Into jk_worker_t::destroy
[jk_ajp_common.c (1331)]: Into jk_worker_t::destroy up to 1 endpoint to 
close
[jk_worker.c (120)]: wc_close, done
[jk_uri_worker_map.c (190)]: Into jk_uri_worker_map_t::uri_worker_map_free
[jk_uri_worker_map.c (441)]: Into jk_uri_worker_map_t::uri_worker_map_close
[jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc
[jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open
[jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule 
map size is 4
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::uri_worker_map_open, 
exact rule /examples=ajp13 was added
[jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, 
match rule /examples/=ajp13 was added
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::uri_worker_map_open, 
exact rule /abc=ajp13 was added
[jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, 
match rule /abc/=ajp13 was added
[jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, 
there are 4 rules
[jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done
[jk_worker.c (88)]: Into wc_open
[jk_worker.c (222)]: Into build_worker_map, creating 1 workers
[jk_worker.c (228)]: build_worker_map, creating worker

RE: Apache+Tomcat + MOD_JK on different machine

2004-03-23 Thread Randall Svancara
I would leave your httpd.conf file the same as  you have it shown below.  I would also 
confirm in you logs that everything is working ok.  However, Apache should not even 
startup if the included configuration file, mod_jk.conf is not present.  

--
httpd.conf (on Web Server)
--
LoadModule jk_module modules/mod_jk.so
ServerName xyz.com

Include conf/mod_jk.conf

JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log

JkLogLevel debug

JkMount /examples ajp13
JkMount /examples/* ajp13


The trick here is to make some changes to your workers.properties in order to connect 
to another box.
It looks as if your are trying to configure a load balancer.  If you are connecting to 
only one instance 
of tomcat this is not necessary.  Also you need to look in your server.xml and see 
that you have the coyote connector 
running on port 8009.  I would exclude the line: worker.ajp13.lbfactor=5 from this 
configuration.  Besides, you have not defined
a worker for load balancer, so i believe this line is not necessary.  
I would probably write your workers.properties files the following way:


workers.properties (on Web Server)


workers.CATALINA_HOME=/usr/local/tomcat4
workers.java_home=$(JAVA_HOME)
ps=/

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=101.102.103.104
#above is IP address of abc.com
worker.ajp13.type=ajp13
#Remove the following line.
#worker.ajp13.lbfactor=5



I am going to send you my workers.properties for reference.  IF AND ONLY IF you do 
configure a load balancer, then make sure in your server.xml to 
change following line from:
 Engine name=Standalone defaultHost=localhost debug=0

to

 Engine name=Standalone defaultHost=localhost debug=0 jvmRoute=worker2 
This is necessary for load balancing.  The value of jvmRoute should be equal to the 
worker that you want to connect to that particular instance of tomcat.  


#*Begin worker.properties*
#
worker.worker2.type=ajp13
worker.worker1.type=ajp13
#
#Specifies the load balance factor when used with a load balancing worker.
#Note:
#- lbfactor must be  0
#- Low lbfactor means less work done by the worker.
#
worker.worker1.lbfactor=1
worker.worker2.lbfactor=10
#
#Specify the size of the open connection cache.
#worker.ajp13.cachesize
#
#--DEFAULT LOAD BALANCER WORKER DEFINITION---
#
#The loadbalancer (type lb) worker perform weighted round-robin
#load balancing with sticky sessions.
#Note:
#--- If a worker dies, the load balancer will check its state once
#in a while. Until then all work is redirected to peer worker.
#
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=worker2,worker1
#
#worker.tomcat_home should point to the location where you installed
#tomcat. This is where you have your conf, webapps and lib directories.
#Note: Please make sure to enter the appropriate path from your machine.
#
worker.tomcat_home=/usr/local/tomcat
#
#worker.java_home should point to your Java installation.
#Normally you should have a bin and lib directories beneath it.
#Note: Please make sure to enter the appropriate path from your machine.
#
worker.java_home=/usr/local/java
#
#You should configure your environment slash...ps=\on NT and / on UNIX
#and may be different elsewhere.
#
ps=/
#---ADVANCED MODE---
#--
#
#
#---DEFAULT worker list--
#--
#
#The worker that your plugins should create and work with
#
worker.list=worker2,loadbalancer, worker1
#
#DEFAULT ajp13 WORKER DEFINITION-
#
#Defining a worker named ajp13 and of type ajp13
#Note that the name and the type do not have to match.
#
worker.worker2.port=8009
worker.worker2.host=localhost
worker.worker2.cachesize=100
worker.worker2.cache_timeout=1000
worker.worker2.socket_keepalive=3
worker.worker2.socket_timeout=1000

worker.worker1.port=8019
worker.worker1.host=216.222.102.252
worker.worker1.cachesize=100
worker.worker1.cache_timeout=1000
worker.worker1.socket_keepalive=3
worker.worker1.socket_timeout=1000

#
#*End worker.properties*









workers.properties (on Web Server)


workers.CATALINA_HOME=/usr/local/tomcat4
workers.java_home=$(JAVA_HOME)
ps=/

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=101.102.103.104
#above is IP address of abc.com
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=5



-Original Message-
From: Hari Om [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 7:58 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Apache+Tomcat + MOD_JK on different machine 


SUBJECT: Apache+Tomcat + MOD_JK on different machine

I am using Apache 2.0.47 and Tomcat 4.1.27 on my SuSE Linux. I had 
configured my mod_jk and it works just great! (My Web and App Server were on 
same box)

Now I have a Web Server and App Server on a 

RE: Apache+Tomcat + MOD_JK on different machine

2004-03-23 Thread Randall Svancara
Your workers.properties should be on your webserver where apache is located.  I 
typically place the workers.properties in the same directory where httpd.conf is 
located. 

workers.properties is needed for mod_jk so it makes sense that it needs to be in the 
same machine where mod_jk and apache are installed.  At least far as I know anyways. 
Sometimes apache has a difficult time finding it.  I have used this line to tell 
apache where to find the workers.properties.  You might try
including a line like this in your apache configuration file:


IfModule mod_jk.c
  JkSet config.file /etc/apache2/conf/workers.properties
  Include /etc/apache2/conf/mod_jk2.conf
/IfModule

If anyone else has anything to add to this or correct me on, please feel free because 
I am still learning to, but then again who isn't??
I hope that helps.  

-Original Message-
From: Hari Om [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 8:56 AM
To: [EMAIL PROTECTED]
Cc: Randall Svancara
Subject: RE: Apache+Tomcat + MOD_JK on different machine


Thanks Randall for your reply... appreciate that!

My MOD_JK.CONF file is AUTOGENERATED on my AppServer. I start my App Server 
FIRST which AUTOGENERATES mod_jk.conf file. So, how can I reference this 
file on my HTTPD.CONF (Include conf/mod_jk.conf) - which is indeed located 
on a different machine?

Where should I place my workers.properties? should it be on App Server or 
Web Server?

Should I first start App Server or Web Server or it does'nt matter?

In my HTTPD.CONF I have different mount points (example 'abc') so when I 
type http://IPADDRESS/abc it shows HTTP 400 Bad Request on my browser 
Howevere, when I type http://IPADDRESS/lmn it shows HTTP 404 Page Not 
Found (Note: lmn is not added a JKMount in my Httpd.conf)

My MOD_JK.log file shows it added all the JKMounts.
My ACCESS_LOG file shows:
[23/Mar/2004:08:44:05 -0700] GET /abc HTTP/1.1 400 0
[23/Mar/2004:08:50:24 -0700] GET /lmn HTTP/1.1 404 301


My ERROR_LOG file shows:
[Tue Mar 23 08:41:46 2004] [notice] Apache/2.0.47 (Unix) mod_jk/1.2.2 
configured -- resuming normal operations

Any related information on above is appreciated.

THANKS again!

HARI OM



From: Randall Svancara [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: Apache+Tomcat + MOD_JK on different machine Date: Tue, 23 Mar 
2004 08:15:40 -0700

I would leave your httpd.conf file the same as  you have it shown below.  I 
would also confirm in you logs that everything is working ok.  However, 
Apache should not even startup if the included configuration file, 
mod_jk.conf is not present.

--
httpd.conf (on Web Server)
--
LoadModule jk_module modules/mod_jk.so
ServerName xyz.com

Include conf/mod_jk.conf

JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log

JkLogLevel debug

JkMount /examples ajp13
JkMount /examples/* ajp13


The trick here is to make some changes to your workers.properties in order 
to connect to another box.
It looks as if your are trying to configure a load balancer.  If you are 
connecting to only one instance
of tomcat this is not necessary.  Also you need to look in your server.xml 
and see that you have the coyote connector
running on port 8009.  I would exclude the line: worker.ajp13.lbfactor=5 
from this configuration.  Besides, you have not defined
a worker for load balancer, so i believe this line is not necessary.
I would probably write your workers.properties files the following way:


workers.properties (on Web Server)


workers.CATALINA_HOME=/usr/local/tomcat4
workers.java_home=$(JAVA_HOME)
ps=/

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=101.102.103.104
#above is IP address of abc.com
worker.ajp13.type=ajp13
#Remove the following line.
#worker.ajp13.lbfactor=5



I am going to send you my workers.properties for reference.  IF AND ONLY IF 
you do configure a load balancer, then make sure in your server.xml to
change following line from:
  Engine name=Standalone defaultHost=localhost debug=0

to

  Engine name=Standalone defaultHost=localhost debug=0 
jvmRoute=worker2 
This is necessary for load balancing.  The value of jvmRoute should be 
equal to the worker that you want to connect to that particular instance of 
tomcat.


#*Begin worker.properties*
#
worker.worker2.type=ajp13
worker.worker1.type=ajp13
#
#Specifies the load balance factor when used with a load balancing worker.
#Note:
#- lbfactor must be  0
#- Low lbfactor means less work done by the worker.
#
worker.worker1.lbfactor=1
worker.worker2.lbfactor=10
#
#Specify the size of the open connection cache.
#worker.ajp13.cachesize
#
#--DEFAULT LOAD BALANCER WORKER DEFINITION---
#
#The loadbalancer (type lb) worker perform weighted round-robin
#load balancing with sticky sessions.
#Note:
#--- If a worker dies, the load

RE: Apache+Tomcat + MOD_JK on different machine

2004-03-23 Thread Randall Svancara
Sorry about the blank reply.  Ok, I tried to mock up your configuration as best I 
could with the examples webapp of tomocat.  So here are the configuration files that I 
am using.  
---
httpd.conf -- very last line add this:
---
#This line includes the configuration file mod_jk.conf into your httpd.conf 
configuration
#It is a great way to seperate out parts of the httpd.conf file
Include /etc/httpd/conf/mod_jk.conf


Ok, in your conf directory for apache which I am assuming is /etc/httpd/conf, add your 
mod_jk.conf file.

---
mod_jk.conf
---
#If mod_jk exists, load it.  
IfModule !mod_jk.c
 LoadModule jk_module modules/mod_jk.so
/IfModule

#Location of the workers.properties, I hate using relative paths as you never 
#know what you are getting sometimes!!!
JkWorkersFile /etc/httpd/conf/workers.properties
#Ok path to logging directory
JkLogFile /var/log/httpd/mod_jk.log
#Lets debug so we can find problems
JkLogLevel debug

#Ok, mount the examples webapp
JkMount /examples ajp13
JkMount /examples/* ajp13


Now, lets create your workers.properties file in /etc/httpd/conf directory

-
Workers.properties
-
worker.list=ajp13
worker.ajp13.port=8019
worker.ajp13.host=192.168.0.200
#the above is IP of my App Server
worker.ajp13.type=ajp13


Now, try to browse to the examples webapp on through apache like this 
http://someservername_OR_IP/examples
If you can browse to this directory, then you should be up and going.  

I hope this helps.  This is about as basic as it gets...I think.  





-Original Message-
From: Hari Om [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 2:59 PM
To: Randall Svancara
Subject: RE: Apache+Tomcat + MOD_JK on different machine


Hi Randall,

the reply u sent was blankwondering if u replied my last query? THANKS a 
LOT


From: Randall Svancara [EMAIL PROTECTED]
To: Hari Om [EMAIL PROTECTED]
Subject: RE: Apache+Tomcat + MOD_JK on different machine
Date: Tue, 23 Mar 2004 14:49:24 -0700



-Original Message-
From: Hari Om [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 2:42 PM
To: Randall Svancara; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: Apache+Tomcat + MOD_JK on different machine


Thanks again Randall and Henry for your reply... appreciate that!

When I try http://my_web_server/abc, it shows HTTP 400-Bad Request
BUT when I try http://my_web_server/pqr, it shows HTTP 404 - File Not
Found
BUT when I try http://my_web_server, it works fine...which means that 
APACHE
IS NOT SENDING THE REQUEST to TOMCATwonder why.

I've added workers.properties in my conf directory on Web Server.
I also have MOD_JK.CONF file there.


WORKERS.PROPERTIES

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=102.103.103.1
#the above is IP of my App Server
worker.ajp13.type=ajp13


mod_jk.conf

Include conf/mod_jk.conf
JkWorkersFile conf/workers.properties
Include conf/mod_jk.conf
JkLogFile logs/mod_jk.log
JkLogLevel debug
JkMount /examples ajp13
JkMount /examples/* ajp13
JkMount /abc ajp13
JkMount /abc/* ajp13


HTTPD.CONF

JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel debug
JkMount /examples ajp13
JkMount /examples/* ajp13
JkMount /abc ajp13
JkMount /abc/* ajp13



 From: Randall Svancara [EMAIL PROTECTED]
 To: Hari Om [EMAIL PROTECTED],Tomcat Users List
 [EMAIL PROTECTED]
 Subject: RE: Apache+Tomcat + MOD_JK on different machine
 Date: Tue, 23 Mar 2004 09:21:36 -0700
 
 Your workers.properties should be on your webserver where apache is
 located.  I typically place the workers.properties in the same directory
 where httpd.conf is located.
 
 workers.properties is needed for mod_jk so it makes sense that it needs 
to
 be in the same machine where mod_jk and apache are installed.  At least 
far
 as I know anyways. Sometimes apache has a difficult time finding it.  I
 have used this line to tell apache where to find the workers.properties.
 You might try
 including a line like this in your apache configuration file:
 
 
 IfModule mod_jk.c
JkSet config.file /etc/apache2/conf/workers.properties
Include /etc/apache2/conf/mod_jk2.conf
 /IfModule
 
 If anyone else has anything to add to this or correct me on, please feel
 free because I am still learning to, but then again who isn't??
 I hope that helps.
 
 -Original Message-
 From: Hari Om [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 23, 2004 8:56 AM
 To: [EMAIL PROTECTED]
 Cc: Randall Svancara
 Subject: RE: Apache+Tomcat + MOD_JK on different machine
 
 
 Thanks Randall for your reply... appreciate that!
 
 My MOD_JK.CONF file

RE: Apache+Tomcat + MOD_JK on different machine

2004-03-23 Thread Randall Svancara
Oh, one other thing, make sure your workers.properties file, your ajp13.port is 
pointing to port 8009.

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 3:23 PM
To: Hari Om; Tomcat Users List
Subject: RE: Apache+Tomcat + MOD_JK on different machine


Sorry about the blank reply.  Ok, I tried to mock up your configuration as best I 
could with the examples webapp of tomocat.  So here are the configuration files that I 
am using.  
---
httpd.conf -- very last line add this:
---
#This line includes the configuration file mod_jk.conf into your httpd.conf 
configuration
#It is a great way to seperate out parts of the httpd.conf file
Include /etc/httpd/conf/mod_jk.conf


Ok, in your conf directory for apache which I am assuming is /etc/httpd/conf, add your 
mod_jk.conf file.

---
mod_jk.conf
---
#If mod_jk exists, load it.  
IfModule !mod_jk.c
 LoadModule jk_module modules/mod_jk.so
/IfModule

#Location of the workers.properties, I hate using relative paths as you never 
#know what you are getting sometimes!!!
JkWorkersFile /etc/httpd/conf/workers.properties
#Ok path to logging directory
JkLogFile /var/log/httpd/mod_jk.log
#Lets debug so we can find problems
JkLogLevel debug

#Ok, mount the examples webapp
JkMount /examples ajp13
JkMount /examples/* ajp13


Now, lets create your workers.properties file in /etc/httpd/conf directory

-
Workers.properties
-
worker.list=ajp13
worker.ajp13.port=8019
worker.ajp13.host=192.168.0.200
#the above is IP of my App Server
worker.ajp13.type=ajp13


Now, try to browse to the examples webapp on through apache like this 
http://someservername_OR_IP/examples
If you can browse to this directory, then you should be up and going.  

I hope this helps.  This is about as basic as it gets...I think.  





-Original Message-
From: Hari Om [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 2:59 PM
To: Randall Svancara
Subject: RE: Apache+Tomcat + MOD_JK on different machine


Hi Randall,

the reply u sent was blankwondering if u replied my last query? THANKS a 
LOT


From: Randall Svancara [EMAIL PROTECTED]
To: Hari Om [EMAIL PROTECTED]
Subject: RE: Apache+Tomcat + MOD_JK on different machine
Date: Tue, 23 Mar 2004 14:49:24 -0700



-Original Message-
From: Hari Om [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 2:42 PM
To: Randall Svancara; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: Apache+Tomcat + MOD_JK on different machine


Thanks again Randall and Henry for your reply... appreciate that!

When I try http://my_web_server/abc, it shows HTTP 400-Bad Request
BUT when I try http://my_web_server/pqr, it shows HTTP 404 - File Not
Found
BUT when I try http://my_web_server, it works fine...which means that 
APACHE
IS NOT SENDING THE REQUEST to TOMCATwonder why.

I've added workers.properties in my conf directory on Web Server.
I also have MOD_JK.CONF file there.


WORKERS.PROPERTIES

worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=102.103.103.1
#the above is IP of my App Server
worker.ajp13.type=ajp13


mod_jk.conf

Include conf/mod_jk.conf
JkWorkersFile conf/workers.properties
Include conf/mod_jk.conf
JkLogFile logs/mod_jk.log
JkLogLevel debug
JkMount /examples ajp13
JkMount /examples/* ajp13
JkMount /abc ajp13
JkMount /abc/* ajp13


HTTPD.CONF

JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel debug
JkMount /examples ajp13
JkMount /examples/* ajp13
JkMount /abc ajp13
JkMount /abc/* ajp13



 From: Randall Svancara [EMAIL PROTECTED]
 To: Hari Om [EMAIL PROTECTED],Tomcat Users List
 [EMAIL PROTECTED]
 Subject: RE: Apache+Tomcat + MOD_JK on different machine
 Date: Tue, 23 Mar 2004 09:21:36 -0700
 
 Your workers.properties should be on your webserver where apache is
 located.  I typically place the workers.properties in the same directory
 where httpd.conf is located.
 
 workers.properties is needed for mod_jk so it makes sense that it needs 
to
 be in the same machine where mod_jk and apache are installed.  At least 
far
 as I know anyways. Sometimes apache has a difficult time finding it.  I
 have used this line to tell apache where to find the workers.properties.
 You might try
 including a line like this in your apache configuration file:
 
 
 IfModule mod_jk.c
JkSet config.file /etc/apache2/conf/workers.properties
Include /etc/apache2/conf/mod_jk2.conf
 /IfModule
 
 If anyone else has anything to add to this or correct me on, please feel
 free because I am still learning to, but then again who isn't??
 I hope

RE: Apache+Tomcat + MOD_JK on different machine

2004-03-23 Thread Randall Svancara
Hmmm...I did not even configure any virtual hosts, although I know you can but I 
rarely do for my implementations.  
Look in your /var/log/httpd/ directory and send a snippet of your logs so we can see 
what apache is chocking on. Also might send
a snippet of your mod_jk.log.

I know it is just some little thing we have over looked.  But then again it is always 
the little things that causes so many problems.

Thanks,

Randall

-Original Message-
From: Hari Om [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 3:37 PM
To: [EMAIL PROTECTED]
Cc: Randall Svancara
Subject: RE: Apache+Tomcat + MOD_JK on different machine


Thanks Randall again I tried that but in vain.
I am still getting the same error... HTTP 400 Bad Request error...wonder 
why? It is even NOT working for examples application.

Does is have to do something with Virtual Host?

Thanks again!

HARI OM



From: Randall Svancara [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Hari Om [EMAIL PROTECTED],Tomcat Users List 
[EMAIL PROTECTED]
Subject: RE: Apache+Tomcat + MOD_JK on different machine
Date: Tue, 23 Mar 2004 15:23:13 -0700

Sorry about the blank reply.  Ok, I tried to mock up your configuration as 
best I could with the examples webapp of tomocat.  So here are the 
configuration files that I am using.
---
httpd.conf -- very last line add this:
---
#This line includes the configuration file mod_jk.conf into your httpd.conf 
configuration
#It is a great way to seperate out parts of the httpd.conf file
Include /etc/httpd/conf/mod_jk.conf


Ok, in your conf directory for apache which I am assuming is 
/etc/httpd/conf, add your mod_jk.conf file.

---
mod_jk.conf
---
#If mod_jk exists, load it.
IfModule !mod_jk.c
  LoadModule jk_module modules/mod_jk.so
/IfModule

#Location of the workers.properties, I hate using relative paths as you 
never
#know what you are getting sometimes!!!
JkWorkersFile /etc/httpd/conf/workers.properties
#Ok path to logging directory
JkLogFile /var/log/httpd/mod_jk.log
#Lets debug so we can find problems
JkLogLevel debug

#Ok, mount the examples webapp
JkMount /examples ajp13
JkMount /examples/* ajp13


Now, lets create your workers.properties file in /etc/httpd/conf directory

-
Workers.properties
-
worker.list=ajp13
worker.ajp13.port=8019
worker.ajp13.host=192.168.0.200
#the above is IP of my App Server
worker.ajp13.type=ajp13


Now, try to browse to the examples webapp on through apache like this 
http://someservername_OR_IP/examples
If you can browse to this directory, then you should be up and going.

I hope this helps.  This is about as basic as it gets...I think.





-Original Message-
From: Hari Om [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 2:59 PM
To: Randall Svancara
Subject: RE: Apache+Tomcat + MOD_JK on different machine


Hi Randall,

the reply u sent was blankwondering if u replied my last query? THANKS 
a
LOT


 From: Randall Svancara [EMAIL PROTECTED]
 To: Hari Om [EMAIL PROTECTED]
 Subject: RE: Apache+Tomcat + MOD_JK on different machine
 Date: Tue, 23 Mar 2004 14:49:24 -0700
 
 
 
 -Original Message-
 From: Hari Om [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 23, 2004 2:42 PM
 To: Randall Svancara; [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: RE: Apache+Tomcat + MOD_JK on different machine
 
 
 Thanks again Randall and Henry for your reply... appreciate that!
 
 When I try http://my_web_server/abc, it shows HTTP 400-Bad Request
 BUT when I try http://my_web_server/pqr, it shows HTTP 404 - File Not
 Found
 BUT when I try http://my_web_server, it works fine...which means that
 APACHE
 IS NOT SENDING THE REQUEST to TOMCATwonder why.
 
 I've added workers.properties in my conf directory on Web Server.
 I also have MOD_JK.CONF file there.
 
 
 WORKERS.PROPERTIES
 
 worker.list=ajp13
 worker.ajp13.port=8009
 worker.ajp13.host=102.103.103.1
 #the above is IP of my App Server
 worker.ajp13.type=ajp13
 
 
 mod_jk.conf
 
 Include conf/mod_jk.conf
 JkWorkersFile conf/workers.properties
 Include conf/mod_jk.conf
 JkLogFile logs/mod_jk.log
 JkLogLevel debug
 JkMount /examples ajp13
 JkMount /examples/* ajp13
 JkMount /abc ajp13
 JkMount /abc/* ajp13
 
 
 HTTPD.CONF
 
 JkWorkersFile conf/workers.properties
 JkLogFile logs/mod_jk.log
 JkLogLevel debug
 JkMount /examples ajp13
 JkMount /examples/* ajp13
 JkMount /abc ajp13
 JkMount /abc/* ajp13
 
 
 
  From: Randall Svancara [EMAIL PROTECTED]
  To: Hari Om [EMAIL PROTECTED],Tomcat Users List
  [EMAIL PROTECTED]
  Subject: RE: Apache+Tomcat + MOD_JK

RE: where to find mod_jk2 for linux?

2004-03-15 Thread Randall Svancara
You can download the source and build it.  It is pretty easy to do.  

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/vhosthowto.html

-Original Message-
From: Márcio Roberto [mailto:[EMAIL PROTECTED]
Sent: Monday, March 15, 2004 12:25 PM
To: [EMAIL PROTECTED]
Subject: where to find mod_jk2 for linux?


Hello,

  I cant find the jk2 connector for Linux. I am running tomcat 4.1.30 
and Apache 2.0.48. In the binaries page of mod_jk2 there are only 
directories for solaris and win32.
  Anyone knows where I can find it

Thanks!


-
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: Tomcat 4.1.29 CoyoteAdapter Exception

2004-02-25 Thread Randall Svancara
Thanks,

I have had a difficult time reproducing this error on a predictable basis.  All I can 
say is that it happens once per day, and I have temporarily wrote a perl script that 
checks the service to see if it is working properly, and if not, it shuts down tomcat 
and restarts it...A bandaid fix at best.  

I will give you a little more background on the webapp I have deployed.  It is just a 
basic webapp with several jsp pages and a couple of servlets.  I am using Database 
Connection Pooling with Mysql Connector J.  The problem does not appear to happen on 
any one particular jsp or servlet, but I will keep digging further to see if it is or 
not.  If I can create a reproducable test case, I will post it here.  

I will keep on researching the problem to see if I can pin point the exact error.  
Thanks for the advice on using news groups.  It is my first experience with them.

Thanks, 

Randall

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 25, 2004 2:47 AM
To: Tomcat Users List
Subject: Re: Tomcat 4.1.29 CoyoteAdapter Exception


Randall,
I've often had issues that cause major problems, and my experience is 
that user groups and mailing lists are normally unable to help without 
there being an easily reproducible error.

For instance, are you able to nail it down to a particular page or 
servlet? Does it happen regularly or at random? Can you make a test case?

Sorry I can't be any help, but good luck finding it.

Adam

On 02/25/2004 12:03 AM Randall Svancara wrote:
 What would cause the coyote connector to return a null pointer
 exception.  Every time this happens, mod_jk is unable to communicate
 with tomcat and as a result our web service is unusable. Is this a
 tomcat bug, or a problem with running tomcat on Windows XP.
 
 Anyway, I have looked through this user group and found some other
 people with this problem on Solaris, but no real answers.
 
 Thanks.
 
 
 
 
 I am running tomcat 4.1.29, apache 2.0.48, with mod_jk configured on
 Windows XP.  Occasionally, I will receive the following error:
 
 2004-02-23 15:40:07 CoyoteAdapter  Requested cookie session id is
 A02AD09BF242D0D916799B2EBB0FCC92.worker1 2004-02-23 15:40:07
 CoyoteAdapter An exception or error occurred in the container during
 the request processing java.lang.NullPointerException at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:164)
  at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
 org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
  at
 org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:309)
  at
 org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387) 
 at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673) 
 at
 org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
  at
 org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786) 
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
  at java.lang.Thread.run(Thread.java:534)
 
 
 
 
 
 
 -Original Message- From: Randall Svancara Sent: Tuesday,
 February 24, 2004 11:34 AM To: Tomcat Users List Subject: RE: Tomcat
 4.1.29 CoyoteAdapter Exception
 
 
 Here is my server.xml in full for anyone interested.  It is at the
 end of this email.
 
 
 
 -Original Message- From: Randall Svancara Sent: Tuesday,
 February 24, 2004 11:14 AM To: Tomcat Users List Subject: RE: Tomcat
 4.1.29 CoyoteAdapter Exception
 
 
 Hmm...I am unable to find anything in google regarding this error.
 
 -Original Message- From: Randall Svancara Sent: Tuesday,
 February 24, 2004 8:48 AM To: [EMAIL PROTECTED] Subject:
 Tomcat 4.1.29 CoyoteAdapter Exception
 
 
 Hi,
 
 I am running tomcat 4.1.29, apache 2.0.48, with mod_jk configured on
 Windows XP.  Occasionally, I will receive the following error:
 
 2004-02-23 15:40:07 CoyoteAdapter  Requested cookie session id is
 A02AD09BF242D0D916799B2EBB0FCC92.worker1 2004-02-23 15:40:07
 CoyoteAdapter An exception or error occurred in the container during
 the request processing java.lang.NullPointerException at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:164)
  at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
 org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
  at
 org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:309)
  at
 org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387

RE: Tomcat 4.1.29 CoyoteAdapter Exception

2004-02-25 Thread Randall Svancara
Ok, now I am thinking this error might be caused by Database Connection pooling.  I 
increased Mysql's max connection limit from the default to 500.  I hope this enough to 
satify my hungry application.  Also I adjusted the apps xml configuration option 
maxActive to a value of 400 which is 100 less than the max.  We will see if this 
works.  

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 25, 2004 7:47 AM
To: Tomcat Users List
Subject: RE: Tomcat 4.1.29 CoyoteAdapter Exception


Thanks,

I have had a difficult time reproducing this error on a predictable basis.  All I can 
say is that it happens once per day, and I have temporarily wrote a perl script that 
checks the service to see if it is working properly, and if not, it shuts down tomcat 
and restarts it...A bandaid fix at best.  

I will give you a little more background on the webapp I have deployed.  It is just a 
basic webapp with several jsp pages and a couple of servlets.  I am using Database 
Connection Pooling with Mysql Connector J.  The problem does not appear to happen on 
any one particular jsp or servlet, but I will keep digging further to see if it is or 
not.  If I can create a reproducable test case, I will post it here.  

I will keep on researching the problem to see if I can pin point the exact error.  
Thanks for the advice on using news groups.  It is my first experience with them.

Thanks, 

Randall

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 25, 2004 2:47 AM
To: Tomcat Users List
Subject: Re: Tomcat 4.1.29 CoyoteAdapter Exception


Randall,
I've often had issues that cause major problems, and my experience is 
that user groups and mailing lists are normally unable to help without 
there being an easily reproducible error.

For instance, are you able to nail it down to a particular page or 
servlet? Does it happen regularly or at random? Can you make a test case?

Sorry I can't be any help, but good luck finding it.

Adam

On 02/25/2004 12:03 AM Randall Svancara wrote:
 What would cause the coyote connector to return a null pointer
 exception.  Every time this happens, mod_jk is unable to communicate
 with tomcat and as a result our web service is unusable. Is this a
 tomcat bug, or a problem with running tomcat on Windows XP.
 
 Anyway, I have looked through this user group and found some other
 people with this problem on Solaris, but no real answers.
 
 Thanks.
 
 
 
 
 I am running tomcat 4.1.29, apache 2.0.48, with mod_jk configured on
 Windows XP.  Occasionally, I will receive the following error:
 
 2004-02-23 15:40:07 CoyoteAdapter  Requested cookie session id is
 A02AD09BF242D0D916799B2EBB0FCC92.worker1 2004-02-23 15:40:07
 CoyoteAdapter An exception or error occurred in the container during
 the request processing java.lang.NullPointerException at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:164)
  at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
 org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
  at
 org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:309)
  at
 org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387) 
 at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673) 
 at
 org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
  at
 org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786) 
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
  at java.lang.Thread.run(Thread.java:534)
 
 
 
 
 
 
 -Original Message- From: Randall Svancara Sent: Tuesday,
 February 24, 2004 11:34 AM To: Tomcat Users List Subject: RE: Tomcat
 4.1.29 CoyoteAdapter Exception
 
 
 Here is my server.xml in full for anyone interested.  It is at the
 end of this email.
 
 
 
 -Original Message- From: Randall Svancara Sent: Tuesday,
 February 24, 2004 11:14 AM To: Tomcat Users List Subject: RE: Tomcat
 4.1.29 CoyoteAdapter Exception
 
 
 Hmm...I am unable to find anything in google regarding this error.
 
 -Original Message- From: Randall Svancara Sent: Tuesday,
 February 24, 2004 8:48 AM To: [EMAIL PROTECTED] Subject:
 Tomcat 4.1.29 CoyoteAdapter Exception
 
 
 Hi,
 
 I am running tomcat 4.1.29, apache 2.0.48, with mod_jk configured on
 Windows XP.  Occasionally, I will receive the following error:
 
 2004-02-23 15:40:07 CoyoteAdapter  Requested cookie session id is
 A02AD09BF242D0D916799B2EBB0FCC92.worker1 2004-02-23 15:40:07
 CoyoteAdapter An exception or error occurred in the container during
 the request processing java.lang.NullPointerException at
 org.apache.catalina.core.StandardEngineValve.invoke

RE: Tomcat 4.1.29 CoyoteAdapter Exception

2004-02-25 Thread Randall Svancara
After further investigation, I am just going to chalk this one up as a stability issue 
with windows XP. The same version of tomcat running with same configuration on linux 
can sustain well over 1+++ hits using jmeter while the same configuration on 
windows barely handles 2000 hits before tomcat fails.

Anyone know of a stable version of tomcat that works with windows.  Do I need to 
downgrade to 4.0.x or upgrade to 5.0.x versions of tomcat for better stability on 
windowsor do I need to convince my boss what I have know all along, linux is 
superior to windows.  

Thanks.

Randall

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 25, 2004 8:05 AM
To: Tomcat Users List
Subject: RE: Tomcat 4.1.29 CoyoteAdapter Exception


Ok, now I am thinking this error might be caused by Database Connection pooling.  I 
increased Mysql's max connection limit from the default to 500.  I hope this enough to 
satify my hungry application.  Also I adjusted the apps xml configuration option 
maxActive to a value of 400 which is 100 less than the max.  We will see if this 
works.  

-Original Message-
From: Randall Svancara [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 25, 2004 7:47 AM
To: Tomcat Users List
Subject: RE: Tomcat 4.1.29 CoyoteAdapter Exception


Thanks,

I have had a difficult time reproducing this error on a predictable basis.  All I can 
say is that it happens once per day, and I have temporarily wrote a perl script that 
checks the service to see if it is working properly, and if not, it shuts down tomcat 
and restarts it...A bandaid fix at best.  

I will give you a little more background on the webapp I have deployed.  It is just a 
basic webapp with several jsp pages and a couple of servlets.  I am using Database 
Connection Pooling with Mysql Connector J.  The problem does not appear to happen on 
any one particular jsp or servlet, but I will keep digging further to see if it is or 
not.  If I can create a reproducable test case, I will post it here.  

I will keep on researching the problem to see if I can pin point the exact error.  
Thanks for the advice on using news groups.  It is my first experience with them.

Thanks, 

Randall

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 25, 2004 2:47 AM
To: Tomcat Users List
Subject: Re: Tomcat 4.1.29 CoyoteAdapter Exception


Randall,
I've often had issues that cause major problems, and my experience is 
that user groups and mailing lists are normally unable to help without 
there being an easily reproducible error.

For instance, are you able to nail it down to a particular page or 
servlet? Does it happen regularly or at random? Can you make a test case?

Sorry I can't be any help, but good luck finding it.

Adam

On 02/25/2004 12:03 AM Randall Svancara wrote:
 What would cause the coyote connector to return a null pointer
 exception.  Every time this happens, mod_jk is unable to communicate
 with tomcat and as a result our web service is unusable. Is this a
 tomcat bug, or a problem with running tomcat on Windows XP.
 
 Anyway, I have looked through this user group and found some other
 people with this problem on Solaris, but no real answers.
 
 Thanks.
 
 
 
 
 I am running tomcat 4.1.29, apache 2.0.48, with mod_jk configured on
 Windows XP.  Occasionally, I will receive the following error:
 
 2004-02-23 15:40:07 CoyoteAdapter  Requested cookie session id is
 A02AD09BF242D0D916799B2EBB0FCC92.worker1 2004-02-23 15:40:07
 CoyoteAdapter An exception or error occurred in the container during
 the request processing java.lang.NullPointerException at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:164)
  at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
  at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
  at
 org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
  at
 org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:309)
  at
 org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387) 
 at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673) 
 at
 org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
  at
 org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786) 
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
  at java.lang.Thread.run(Thread.java:534)
 
 
 
 
 
 
 -Original Message- From: Randall Svancara Sent: Tuesday,
 February 24, 2004 11:34 AM To: Tomcat Users List Subject: RE: Tomcat
 4.1.29 CoyoteAdapter Exception
 
 
 Here is my server.xml in full for anyone interested.  It is at the
 end of this email.
 
 
 
 -Original Message- From: Randall Svancara Sent: Tuesday,
 February 24

RE: Tomcat 4.1.29 CoyoteAdapter Exception

2004-02-25 Thread Randall Svancara
Adam, thanks for the response, I will try your suggestions.  

Thanks again, 

Randall

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 25, 2004 3:50 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.1.29 CoyoteAdapter Exception


I had an issue with tomcat 4.1.x (don't remember which - but it was Feb. 
last year) and sun java 1.4

Tomcat would just hang at random times and require a restart. I 
downgraded to java 1.3 to solve it.

Try another Java - perhaps from IBM. Or check bugzilla.

Adam

On 02/25/2004 07:39 PM Randall Svancara wrote:
 After further investigation, I am just going to chalk this one up as a stability 
 issue with windows XP. The same version of tomcat running with same configuration on 
 linux can sustain well over 1+++ hits using jmeter while the same configuration 
 on windows barely handles 2000 hits before tomcat fails.
 
 Anyone know of a stable version of tomcat that works with windows.  Do I need to 
 downgrade to 4.0.x or upgrade to 5.0.x versions of tomcat for better stability on 
 windowsor do I need to convince my boss what I have know all along, linux is 
 superior to windows.  
 
 Thanks.
 
 Randall
 
 -Original Message-
 From: Randall Svancara [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 25, 2004 8:05 AM
 To: Tomcat Users List
 Subject: RE: Tomcat 4.1.29 CoyoteAdapter Exception
 
 
 Ok, now I am thinking this error might be caused by Database Connection pooling.  I 
 increased Mysql's max connection limit from the default to 500.  I hope this enough 
 to satify my hungry application.  Also I adjusted the apps xml configuration option 
 maxActive to a value of 400 which is 100 less than the max.  We will see if this 
 works.  
 
 -Original Message-
 From: Randall Svancara [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 25, 2004 7:47 AM
 To: Tomcat Users List
 Subject: RE: Tomcat 4.1.29 CoyoteAdapter Exception
 
 
 Thanks,
 
 I have had a difficult time reproducing this error on a predictable basis.  All I 
 can say is that it happens once per day, and I have temporarily wrote a perl script 
 that checks the service to see if it is working properly, and if not, it shuts down 
 tomcat and restarts it...A bandaid fix at best.  
 
 I will give you a little more background on the webapp I have deployed.  It is just 
 a basic webapp with several jsp pages and a couple of servlets.  I am using Database 
 Connection Pooling with Mysql Connector J.  The problem does not appear to happen on 
 any one particular jsp or servlet, but I will keep digging further to see if it is 
 or not.  If I can create a reproducable test case, I will post it here.  
 
 I will keep on researching the problem to see if I can pin point the exact error.  
 Thanks for the advice on using news groups.  It is my first experience with them.
 
 Thanks, 
 
 Randall
 
 -Original Message-
 From: Adam Hardy [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 25, 2004 2:47 AM
 To: Tomcat Users List
 Subject: Re: Tomcat 4.1.29 CoyoteAdapter Exception
 
 
 Randall,
 I've often had issues that cause major problems, and my experience is 
 that user groups and mailing lists are normally unable to help without 
 there being an easily reproducible error.
 
 For instance, are you able to nail it down to a particular page or 
 servlet? Does it happen regularly or at random? Can you make a test case?
 
 Sorry I can't be any help, but good luck finding it.
 
 Adam
 
 On 02/25/2004 12:03 AM Randall Svancara wrote:
 
What would cause the coyote connector to return a null pointer
exception.  Every time this happens, mod_jk is unable to communicate
with tomcat and as a result our web service is unusable. Is this a
tomcat bug, or a problem with running tomcat on Windows XP.

Anyway, I have looked through this user group and found some other
people with this problem on Solaris, but no real answers.

Thanks.




I am running tomcat 4.1.29, apache 2.0.48, with mod_jk configured on
Windows XP.  Occasionally, I will receive the following error:

2004-02-23 15:40:07 CoyoteAdapter  Requested cookie session id is
A02AD09BF242D0D916799B2EBB0FCC92.worker1 2004-02-23 15:40:07
CoyoteAdapter An exception or error occurred in the container during
the request processing java.lang.NullPointerException at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:164)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
 at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:309)
 at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387) 
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673

Tomcat 4.1.29 CoyoteAdapter Exception

2004-02-24 Thread Randall Svancara
Hi,

I am running tomcat 4.1.29, apache 2.0.48, with mod_jk configured on Windows XP.  
Occasionally, I will receive the following error:

2004-02-23 15:40:07 CoyoteAdapter  Requested cookie session id is 
A02AD09BF242D0D916799B2EBB0FCC92.worker1
2004-02-23 15:40:07 CoyoteAdapter An exception or error occurred in the container 
during the request processing
java.lang.NullPointerException
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:164)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:309)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
at java.lang.Thread.run(Thread.java:534)

At which point the web service becomes UNAVAILABLE on port 80 through apache which 
forwards the requests via mod_jk to
the tomcat 4.1.29 servlet engine.  I am including some snippets from my server.xml 
below for the coyote connector.  

  Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8019 minProcessors=100 maxProcessors=600
   enableLookups=false redirectPort=8443
   acceptCount=10 debug=10 connectionTimeout=6
   useURIValidationHack=false
   protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/


I have also configured apache with 600 max threads, see snippet below.  

# WinNT MPM
# ThreadsPerChild: constant number of worker threads in the server process
# MaxRequestsPerChild: maximum  number of requests a server process serves
IfModule mpm_winnt.c
ThreadsPerChild 600
MaxRequestsPerChild  0
/IfModule

If someone has any idea what I have misconfigured or if you need more information, let 
me know.  
I am desperate at this point to find the root of this problem that has been plaguing 
our website since its
release January.

Thank you,

Randall Svancara

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



RE: Tomcat 4.1.29 CoyoteAdapter Exception

2004-02-24 Thread Randall Svancara
Hmm...I am unable to find anything in google regarding this error.  

-Original Message-
From: Randall Svancara 
Sent: Tuesday, February 24, 2004 8:48 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1.29 CoyoteAdapter Exception 


Hi,

I am running tomcat 4.1.29, apache 2.0.48, with mod_jk configured on Windows XP.  
Occasionally, I will receive the following error:

2004-02-23 15:40:07 CoyoteAdapter  Requested cookie session id is 
A02AD09BF242D0D916799B2EBB0FCC92.worker1
2004-02-23 15:40:07 CoyoteAdapter An exception or error occurred in the container 
during the request processing
java.lang.NullPointerException
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:164)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:309)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
at java.lang.Thread.run(Thread.java:534)

At which point the web service becomes UNAVAILABLE on port 80 through apache which 
forwards the requests via mod_jk to
the tomcat 4.1.29 servlet engine.  I am including some snippets from my server.xml 
below for the coyote connector.  

  Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8019 minProcessors=100 maxProcessors=600
   enableLookups=false redirectPort=8443
   acceptCount=10 debug=10 connectionTimeout=6
   useURIValidationHack=false
   protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/


I have also configured apache with 600 max threads, see snippet below.  

# WinNT MPM
# ThreadsPerChild: constant number of worker threads in the server process
# MaxRequestsPerChild: maximum  number of requests a server process serves
IfModule mpm_winnt.c
ThreadsPerChild 600
MaxRequestsPerChild  0
/IfModule

If someone has any idea what I have misconfigured or if you need more information, let 
me know.  
I am desperate at this point to find the root of this problem that has been plaguing 
our website since its
release January.

Thank you,

Randall Svancara

-
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: Tomcat 4.1.29 CoyoteAdapter Exception

2004-02-24 Thread Randall Svancara
Here is my server.xml in full for anyone interested.  It is at the end of this email.



-Original Message-
From: Randall Svancara 
Sent: Tuesday, February 24, 2004 11:14 AM
To: Tomcat Users List
Subject: RE: Tomcat 4.1.29 CoyoteAdapter Exception 


Hmm...I am unable to find anything in google regarding this error.  

-Original Message-
From: Randall Svancara 
Sent: Tuesday, February 24, 2004 8:48 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1.29 CoyoteAdapter Exception 


Hi,

I am running tomcat 4.1.29, apache 2.0.48, with mod_jk configured on Windows XP.  
Occasionally, I will receive the following error:

2004-02-23 15:40:07 CoyoteAdapter  Requested cookie session id is 
A02AD09BF242D0D916799B2EBB0FCC92.worker1
2004-02-23 15:40:07 CoyoteAdapter An exception or error occurred in the container 
during the request processing
java.lang.NullPointerException
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:164)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:309)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
at java.lang.Thread.run(Thread.java:534)

At which point the web service becomes UNAVAILABLE on port 80 through apache which 
forwards the requests via mod_jk to
the tomcat 4.1.29 servlet engine.  I am including some snippets from my server.xml 
below for the coyote connector.  

  Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8019 minProcessors=100 maxProcessors=600
   enableLookups=false redirectPort=8443
   acceptCount=10 debug=10 connectionTimeout=6
   useURIValidationHack=false
   protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/


I have also configured apache with 600 max threads, see snippet below.  

# WinNT MPM
# ThreadsPerChild: constant number of worker threads in the server process
# MaxRequestsPerChild: maximum  number of requests a server process serves
IfModule mpm_winnt.c
ThreadsPerChild 600
MaxRequestsPerChild  0
/IfModule

If someone has any idea what I have misconfigured or if you need more information, let 
me know.  
I am desperate at this point to find the root of this problem that has been plaguing 
our website since its
release January.

Thank you,

Randall Svancara

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


!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN debug=0


  !-- Uncomment these entries to enable JMX MBeans support --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

  !-- A Service

RE: Tomcat 4.1.29 CoyoteAdapter Exception

2004-02-24 Thread Randall Svancara
What would cause the coyote connector to return a null pointer exception.  Every time 
this happens,
mod_jk is unable to communicate with tomcat and as a result our web service is 
unusable. Is this a tomcat bug, or a problem with
running tomcat on Windows XP.

Anyway, I have looked through this user group and found some other people with this 
problem on Solaris, but no real answers.

Thanks.

   


I am running tomcat 4.1.29, apache 2.0.48, with mod_jk configured on Windows XP.  
Occasionally, I will receive the following error:

2004-02-23 15:40:07 CoyoteAdapter  Requested cookie session id is 
A02AD09BF242D0D916799B2EBB0FCC92.worker1
2004-02-23 15:40:07 CoyoteAdapter An exception or error occurred in the container 
during the request processing
java.lang.NullPointerException
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:164)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:309)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
at java.lang.Thread.run(Thread.java:534)






-Original Message-
From: Randall Svancara 
Sent: Tuesday, February 24, 2004 11:34 AM
To: Tomcat Users List
Subject: RE: Tomcat 4.1.29 CoyoteAdapter Exception 


Here is my server.xml in full for anyone interested.  It is at the end of this email.



-Original Message-
From: Randall Svancara 
Sent: Tuesday, February 24, 2004 11:14 AM
To: Tomcat Users List
Subject: RE: Tomcat 4.1.29 CoyoteAdapter Exception 


Hmm...I am unable to find anything in google regarding this error.  

-Original Message-
From: Randall Svancara 
Sent: Tuesday, February 24, 2004 8:48 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1.29 CoyoteAdapter Exception 


Hi,

I am running tomcat 4.1.29, apache 2.0.48, with mod_jk configured on Windows XP.  
Occasionally, I will receive the following error:

2004-02-23 15:40:07 CoyoteAdapter  Requested cookie session id is 
A02AD09BF242D0D916799B2EBB0FCC92.worker1
2004-02-23 15:40:07 CoyoteAdapter An exception or error occurred in the container 
during the request processing
java.lang.NullPointerException
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:164)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:309)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
at java.lang.Thread.run(Thread.java:534)

At which point the web service becomes UNAVAILABLE on port 80 through apache which 
forwards the requests via mod_jk to
the tomcat 4.1.29 servlet engine.  I am including some snippets from my server.xml 
below for the coyote connector.  

  Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8019 minProcessors=100 maxProcessors=600
   enableLookups=false redirectPort=8443
   acceptCount=10 debug=10 connectionTimeout=6
   useURIValidationHack=false
   protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/


I have also configured apache with 600 max threads, see snippet below.  

# WinNT MPM
# ThreadsPerChild: constant number of worker threads in the server process
# MaxRequestsPerChild: maximum  number of requests a server process serves
IfModule mpm_winnt.c
ThreadsPerChild 600
MaxRequestsPerChild  0
/IfModule

If someone has any idea what I have misconfigured or if you need more information, let 
me know.  
I am desperate at this point to find the root of this problem that has been plaguing 
our

RE: Apache/Tomcat/Struts Certification Proposal

2004-02-20 Thread Randall Svancara
I found your comment on certifications insightful.

What if you had two experienced engineers, but only one of them had a ASF 
certification??
Which one would you hire?

Thanks,

Randall


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, February 20, 2004 11:12 AM
To: Tomcat Users List
Subject: RE: Apache/Tomcat/Struts Certification Proposal



Howdy,
My person view on most of these certification is that they're BS.  They
mostly tell you someone knows the nomenclature and has read some books.


They're no substitute for experience, and when (this is not an if, I've
actually been in this situation) I have to choose between a less
experienced but certified engineer and a more experienced non-certified
one, I go with the latter.  I've been happy with my choices in this area
so far ;)

Most certifications also require the certified person to renew/retest
periodically, which is a pain, albeit required otherwise the certificate
certifies out-of-date/obsolete knowledge.  But this hassle has been
enough to keep my from getting certified in the past, and is likely to
do the same in the future, including for ASF certification if one were
offered.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Friday, February 20, 2004 12:59 PM
To: 'Tomcat Users List'
Subject: RE: Apache/Tomcat/Struts Certification Proposal

I just thought it would help people with real knowledge to stand out
and
have a
better chance.  It's just not fair for people with better understanding
of
the
software(I believe you can get a IIS certification, why not Apache).
And
it
would help the Apache Foundation as well.  With the money they get from
people
taking the exams, they can have way better support as a whole.  After
all,
software programming is not only about working in front of a computer
all
day
anymore.

The real challenge is how the whole process can be administrated.  Ah,
I
don't
think it's possible anyways with current open source development
structure.
But
just thought it would be an interesting idea.
-Yan

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 1:35 PM
To: Tomcat Users List
Subject: Re: Apache/Tomcat/Struts Certification Proposal

FWIW, I think certification is a waste in terms of the amount of
learning that it forces on the developer.

Perhaps in many cases it does help the recruiter, but firstly I think
that recruiters who need to see certification of something in an IT
candidate are not doing their job properly, and secondly I think the
whole process is a waste of resources, siphoning off money and time
from
people who usually have better things to do.

So please, no to Apache certifications!


Adam

--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Configuration file help

2004-02-05 Thread Randall Svancara
I am wondering what the following configuration directive accomplishes for tomcat 
4.1.29 in the server XML file when added right below the line with Server 
port=8005 shutdown=SHUTDOWN debug=0. 

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig 
modJk=C:/ApacheGroup/Apache2/modules/mod_jk.dll / 

 

Also I am currious to know what the following configuration directive accomplishes 
under the host container in the server.xml file.  

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true 
forwardAll=false modJk=C:/ApacheGroup/Apache2/modules/mod_jk.dll / 



These configuration directives are posted at 
http://johnturner.com/howto/apache2-tomcat4129-jk-winxp-howto.html and I was just 
trying to understand what they accomplish, since I have never seen them before when 
configuring mod_jk with Apache Http server and Tomcat 4.1.29.

Thank you,

Randall


RE: Configuration file help

2004-02-05 Thread Randall Svancara
Milt,

Thank you for your assistance.  

-Original Message-
From: Milt Epstein [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 05, 2004 8:13 AM
To: Tomcat Users List
Subject: Re: Configuration file help


On Thu, 5 Feb 2004, Randall Svancara wrote:

 I am wondering what the following configuration directive
 accomplishes for tomcat 4.1.29 in the server XML file when added
 right below the line with Server port=8005 shutdown=SHUTDOWN
 debug=0.

 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=C:/ApacheGroup/Apache2/modules/mod_jk.dll /

 Also I am currious to know what the following configuration
 directive accomplishes under the host container in the server.xml
 file.

 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true forwardAll=false
 modJk=C:/ApacheGroup/Apache2/modules/mod_jk.dll /

 These configuration directives are posted at
 http://johnturner.com/howto/apache2-tomcat4129-jk-winxp-howto.html
 and I was just trying to understand what they accomplish, since I
 have never seen them before when configuring mod_jk with Apache Http
 server and Tomcat 4.1.29.

 Thank you,

 Randall

If memory serves, those directives are to help automatically generate
the necessary apache-related JK config stuff.  (When using mod_jk to
connect tomcat to apache, you need to add some stuff to the apache
config file.)  You might notice an extra file there, perhaps called
something like mod-jk.conf (and not sure if it generates the
workers.properties), which supposedly can be included (directly or
indirectly) in the apache config file.  I say supposedly because I
seem to recall that the config stuff it generated, while certainly
helpful, wasn't always 100% complete/correct, and usually needed to be
modified a bit to work.

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]

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