Re: [REPOST] Can't get apache and Tomcat to talk

2006-09-15 Thread Rob Tanner




Mark,

Thank you.  That took care of the problem.

-- Rob

On 09/15/2006 05:28 PM, Mark Thomas wrote:

  Rob Tanner wrote:
  
  
Brian,

Adding the  parameter you suggest  generates a
java.lang.ClassNotFoundException: org.apache.jk.config.ApacheConfig. 
Where should I find the jarfile containing that class?  It's new to me
and I know I'm not using that listener in my install of Tomcat-4.1.31 on
another machine.  And when I modify the AJP/1.3 connector to include the
line: protocol="AJP/1.3".  I presume the two errors are related.  Is
this something new in 4.1.32?

  
  
There is a bug in 4.1.32 that breaks the configuration of the AJP
connector. Use 4.1.34 instead. That will work with your 4.1.31 config.

Mark


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

  






smime.p7s
Description: S/MIME Cryptographic Signature


Re: What does this output mean?

2006-09-15 Thread Wade Chandler


--- [EMAIL PROTECTED] wrote:

> When I start tomcat (with catalina.sh), I always get
> the following message
> on one of our machines:
> 
> Warning: unknown VM type on line 21 of
> `/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'
> Warning: unknown VM type on line 27 of
> `/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'
> Warning: unknown VM type on line 28 of
> `/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'
> Warning: unknown VM type on line 29 of
> `/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'
> Warning: unknown VM type on line 21 of
> `/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'
> Warning: unknown VM type on line 27 of
> `/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'
> Warning: unknown VM type on line 28 of
> `/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'
> Warning: unknown VM type on line 29 of
> `/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'
> 
> Appearantly, we are the only person who has ever had
> this problem, because
> google turns up almost nothing (for me). Tomcat
> seems to run fine after
> this, but it would be nice to know and/or fix
> whatever problem I am
> supposedly having.
> 
> Thanks for your advice,
> 
> Daniel Wong

Apparently you have an invalid line in the file or
have it listed as unknown.  Not sure how or why it
happened.Have you changed anything in catalina.sh
or in jvm.cfg?  Maybe post the lines from the .cfg
file and we can compare.

Wade

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



Re: [REPOST] Can't get apache and Tomcat to talk

2006-09-15 Thread Mark Thomas
Rob Tanner wrote:
> Brian,
> 
> Adding the  parameter you suggest  generates a
> java.lang.ClassNotFoundException: org.apache.jk.config.ApacheConfig. 
> Where should I find the jarfile containing that class?  It's new to me
> and I know I'm not using that listener in my install of Tomcat-4.1.31 on
> another machine.  And when I modify the AJP/1.3 connector to include the
> line: protocol="AJP/1.3".  I presume the two errors are related.  Is
> this something new in 4.1.32?

There is a bug in 4.1.32 that breaks the configuration of the AJP
connector. Use 4.1.34 instead. That will work with your 4.1.31 config.

Mark


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



Re: [REPOST] Can't get apache and Tomcat to talk

2006-09-15 Thread Rob Tanner

Brian,

Adding the  parameter you suggest  generates a 
java.lang.ClassNotFoundException: org.apache.jk.config.ApacheConfig.  
Where should I find the jarfile containing that class?  It's new to me 
and I know I'm not using that listener in my install of Tomcat-4.1.31 on 
another machine.  And when I modify the AJP/1.3 connector to include the 
line: protocol="AJP/1.3".  I presume the two errors are related.  Is 
this something new in 4.1.32?


Thanks,
Rob


brian bay wrote:

Do you have a Listener set up in your tomcat server.xml?

Inside of 


 modJk="/usr/lib/apache2/modules/mod_jk.so"
 workersConfig="/etc/apache2/workers.properties"/>



I placed my workers.properties file in the apache dir.

Inside of 

   
port="8080"
redirectPort="8443"
minSpareThreads="25"
connectionTimeout="2"
maxSpareThreads="75"
maxThreads="125">






I assume you have installed mod_jk.so to the modules dir?

- Brian



On 9/15/06, Martin Gainty <[EMAIL PROTECTED]> wrote:


# Defines a worker named "remote" that uses the ajpv13 protocol to 
forward

requests to a Tomcat process in workers.properties
worker.remote.type=ajp13

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13


*
This email message and any files transmitted with it contain 
confidential
information intended only for the person(s) to whom this email 
message is

addressed.  If you have received this email message in error, please
notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message -
From: "Rob Tanner" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Friday, September 15, 2006 2:33 PM
Subject: [REPOST] Can't get apache and Tomcat to talk


> (Grrr!  I hit send when I meant save -- the first posting is 
incomplete)

>
> I'm running a new install Fedora Core 5 and rebuilding my development
> system.  I'm running Apache/2.2.2 (part of the FC5 distro) and
> Tomcat-4.1.32.  I downloaded the version 1.2.18 tomcat connector 
kit and

> followed the instructions in BUILD.txt to compile and install the
> mod_jk.so connector.  I installed one of my development apps and added
> the context configuration to the server.xml file, and when I try to 
get
> to it through apache, the cursor just spins and I get no log 
entries of

> any kind, neither in the apache logs nor the tomcat logs.  I can,
> however, point my browser to port 8009 and bring up the newly 
installed

> app.All the gory details are below.  Any idea what might be wrong?
>
> In the server.xml file, the only change I have made from the
> distribution is to add this context:
>
> docBase="AccountManager"
>path="/accntManager" reloadable="true">
>prefix="localhost_accntmanager_log." suffix=".txt"
>timestamp="true"/>
>>value="/datatel/development/coldev17" 
override="false"/>

>value="[EMAIL PROTECTED]" override="false"/>
> 
>
> I also created this workers.properties file in the tomcat conf
directory:
>
> workers.tomcat_home=/var/apache-tomcat-4.1.32
> workers.java_home=/usr/java/j2sdk1.4.2_12
> ps=/
> worker.list=ajp13
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
>
>
> And finally, the following configuration detail was added to apache's
> httpd.conf file. Tomcat and apache were than both restarted.
>
> LoadModule jk_module modules/mod_jk.so
> JkWorkersFile /var/apache-tomcat-4.1.32/conf/workers.properties
> JkLogFile logs/mod_jk.log
> JkLogLevel info
> JkMount /*.jsp ajp13
> JkMount /accntManager/* ajp13
>
>
>
> Any suggestions here would be greatly appreciated.
>
> Thanks,
>
> Rob Tanner
> Linfield College
>
>
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




smime.p7s
Description: S/MIME Cryptographic Signature


Re: Three hostnames in one instance of tomcat

2006-09-15 Thread Mark Thomas
Eric Berry wrote:
>> This will fail in later versions of Tomcat 5. appBase should not equal
>> docbase. The correct configuration is:
>> 
>>
>> 
> 
> Does this mean that there must be a "ROOT" directory under
> "/opt/projects/www/host1/web"?

Yes.

Mark


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



Re: [REPOST] Can't get apache and Tomcat to talk

2006-09-15 Thread brian bay

Do you have a Listener set up in your tomcat server.xml?

Inside of 


 modJk="/usr/lib/apache2/modules/mod_jk.so"
 workersConfig="/etc/apache2/workers.properties"/>



I placed my workers.properties file in the apache dir.

Inside of 

   
port="8080"
redirectPort="8443"
minSpareThreads="25"
connectionTimeout="2"
maxSpareThreads="75"
maxThreads="125">






I assume you have installed mod_jk.so to the modules dir?

- Brian



On 9/15/06, Martin Gainty <[EMAIL PROTECTED]> wrote:


# Defines a worker named "remote" that uses the ajpv13 protocol to forward
requests to a Tomcat process in workers.properties
worker.remote.type=ajp13

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13


*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please
notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message -
From: "Rob Tanner" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Friday, September 15, 2006 2:33 PM
Subject: [REPOST] Can't get apache and Tomcat to talk


> (Grrr!  I hit send when I meant save -- the first posting is incomplete)
>
> I'm running a new install Fedora Core 5 and rebuilding my development
> system.  I'm running Apache/2.2.2 (part of the FC5 distro) and
> Tomcat-4.1.32.  I downloaded the version 1.2.18 tomcat connector kit and
> followed the instructions in BUILD.txt to compile and install the
> mod_jk.so connector.  I installed one of my development apps and added
> the context configuration to the server.xml file, and when I try to get
> to it through apache, the cursor just spins and I get no log entries of
> any kind, neither in the apache logs nor the tomcat logs.  I can,
> however, point my browser to port 8009 and bring up the newly installed
> app.All the gory details are below.  Any idea what might be wrong?
>
> In the server.xml file, the only change I have made from the
> distribution is to add this context:
>
> docBase="AccountManager"
>path="/accntManager" reloadable="true">
>prefix="localhost_accntmanager_log." suffix=".txt"
>timestamp="true"/>
>value="/datatel/development/coldev17" override="false"/>
>value="[EMAIL PROTECTED]" override="false"/>
> 
>
> I also created this workers.properties file in the tomcat conf
directory:
>
> workers.tomcat_home=/var/apache-tomcat-4.1.32
> workers.java_home=/usr/java/j2sdk1.4.2_12
> ps=/
> worker.list=ajp13
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
>
>
> And finally, the following configuration detail was added to apache's
> httpd.conf file. Tomcat and apache were than both restarted.
>
> LoadModule jk_module modules/mod_jk.so
> JkWorkersFile /var/apache-tomcat-4.1.32/conf/workers.properties
> JkLogFile logs/mod_jk.log
> JkLogLevel info
> JkMount /*.jsp ajp13
> JkMount /accntManager/* ajp13
>
>
>
> Any suggestions here would be greatly appreciated.
>
> Thanks,
>
> Rob Tanner
> Linfield College
>
>
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Perm Gen not being released in GC

2006-09-15 Thread Nikola Milutinovic
> Im a Project Manager, not a techie but we had the same problem and had to
> increase the perm gen to the following:  Tomcat sets it at default at 64MB.
> Perm Gen Memory: 150 MB
> Max Perm Gen: 256 MB

Perm gen is memory reserved for class loading and is directly proportional to 
the number/size of classes you load.

> We where getting perm gen out of memory errors which is why we did this.
> This stabilised the environment but we still have problems with our Heap
> Memory filling up and not been garbage collected properly.

That sounds like a memory leak.

Nix.





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



Re: What does this output mean?

2006-09-15 Thread Martin Gainty
you have an invalid entry in your jvm.cfg on line 21
If you send me the contents of jvm.cfg I can look at it..

M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: <[EMAIL PROTECTED]>
To: 
Sent: Friday, September 15, 2006 4:39 PM
Subject: What does this output mean?


> When I start tomcat (with catalina.sh), I always get the following message
> on one of our machines:
> 
> Warning: unknown VM type on line 21 of
> `/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'
> Warning: unknown VM type on line 27 of
> `/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'
> Warning: unknown VM type on line 28 of
> `/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'
> Warning: unknown VM type on line 29 of
> `/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'
> Warning: unknown VM type on line 21 of
> `/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'
> Warning: unknown VM type on line 27 of
> `/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'
> Warning: unknown VM type on line 28 of
> `/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'
> Warning: unknown VM type on line 29 of
> `/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'
> 
> Appearantly, we are the only person who has ever had this problem, because
> google turns up almost nothing (for me). Tomcat seems to run fine after
> this, but it would be nice to know and/or fix whatever problem I am
> supposedly having.
> 
> Thanks for your advice,
> 
> Daniel Wong
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Re: [REPOST] Can't get apache and Tomcat to talk

2006-09-15 Thread Martin Gainty
# Defines a worker named "remote" that uses the ajpv13 protocol to forward 
requests to a Tomcat process in workers.properties
worker.remote.type=ajp13

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13


*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: "Rob Tanner" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Friday, September 15, 2006 2:33 PM
Subject: [REPOST] Can't get apache and Tomcat to talk


> (Grrr!  I hit send when I meant save -- the first posting is incomplete)
> 
> I'm running a new install Fedora Core 5 and rebuilding my development 
> system.  I'm running Apache/2.2.2 (part of the FC5 distro) and 
> Tomcat-4.1.32.  I downloaded the version 1.2.18 tomcat connector kit and 
> followed the instructions in BUILD.txt to compile and install the 
> mod_jk.so connector.  I installed one of my development apps and added 
> the context configuration to the server.xml file, and when I try to get 
> to it through apache, the cursor just spins and I get no log entries of 
> any kind, neither in the apache logs nor the tomcat logs.  I can, 
> however, point my browser to port 8009 and bring up the newly installed 
> app.All the gory details are below.  Any idea what might be wrong?
> 
> In the server.xml file, the only change I have made from the 
> distribution is to add this context:
> 
> docBase="AccountManager"
>path="/accntManager" reloadable="true">
>prefix="localhost_accntmanager_log." suffix=".txt"
>timestamp="true"/>
>value="/datatel/development/coldev17" override="false"/>
>value="[EMAIL PROTECTED]" override="false"/>
> 
> 
> I also created this workers.properties file in the tomcat conf directory:
> 
> workers.tomcat_home=/var/apache-tomcat-4.1.32
> workers.java_home=/usr/java/j2sdk1.4.2_12
> ps=/
> worker.list=ajp13
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> 
> 
> And finally, the following configuration detail was added to apache's 
> httpd.conf file. Tomcat and apache were than both restarted.
> 
> LoadModule jk_module modules/mod_jk.so
> JkWorkersFile /var/apache-tomcat-4.1.32/conf/workers.properties
> JkLogFile logs/mod_jk.log
> JkLogLevel info
> JkMount /*.jsp ajp13
> JkMount /accntManager/* ajp13
> 
> 
> 
> Any suggestions here would be greatly appreciated.
> 
> Thanks,
> 
> Rob Tanner
> Linfield College
> 
> 
> 
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

What does this output mean?

2006-09-15 Thread danielwong
When I start tomcat (with catalina.sh), I always get the following message
on one of our machines:

Warning: unknown VM type on line 21 of
`/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'
Warning: unknown VM type on line 27 of
`/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'
Warning: unknown VM type on line 28 of
`/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'
Warning: unknown VM type on line 29 of
`/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'
Warning: unknown VM type on line 21 of
`/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'
Warning: unknown VM type on line 27 of
`/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'
Warning: unknown VM type on line 28 of
`/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'
Warning: unknown VM type on line 29 of
`/usr/java/jdk1.5.0_02/jre/lib/i386/jvm.cfg'

Appearantly, we are the only person who has ever had this problem, because
google turns up almost nothing (for me). Tomcat seems to run fine after
this, but it would be nice to know and/or fix whatever problem I am
supposedly having.

Thanks for your advice,

Daniel Wong


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



Large Data Post Problem

2006-09-15 Thread James Grady
I am running Apache 2.0.48 that uses mod_jk 1.2.10 to 
communicate with Tomcat 5.5.7.  When my client posts large 
requests (about 40K) to Apache, I can see where the 
request is sent through mod_jk, but when it gets to Tomcat 
the data has a length of zero.


Is there a way to increase the amount of data that can be 
passed through mod_jk without failure?


My mod_jk log file has this data in it when the data is 
lost:




[Fri Sep 15 16:03:46 2006] [1391:60336] [debug] 
ajp_send_request::jk_ajp_common.c (1240): request body to 
send 40654 - request body to resend 0
[Fri Sep 15 16:03:46 2006] [1391:60336] [trace] 
ajp_read_into_msg_buff::jk_ajp_common.c (1093): enter
[Fri Sep 15 16:03:46 2006] [1391:60336] [trace] 
ajp_read_fully_from_server::jk_ajp_common.c (1047): enter
[Fri Sep 15 16:03:46 2006] [1391:60336] [trace] 
ajp_read_into_msg_buff::jk_ajp_common.c (1129): exit
[Fri Sep 15 16:03:46 2006] [1391:60336] [trace] 
ajp_connection_tcp_send_message::jk_ajp_common.c (894): 
enter
[Fri Sep 15 16:03:46 2006] [1391:60336] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (898): 
sending to ajp13 pos

=4 len=8192 max=8192
[Fri Sep 15 16:03:46 2006] [1391:60336] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (898): 
12 34 1F FC

1F FA 44 61 74 61 3D 30 36 2D 30 30  - .4Data=06-00

Thanks...

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



Re: Sharing Tomcat DBCP connection

2006-09-15 Thread Stanley Bradbury

Foo Shyn wrote:

Hi guys,

Currently i'm using Tomcat 4.1 and my application uses the Tomcat's DBCP to 
connect to a Derby database.

However, since the Derby database only allow one application to connect to it 
at a time, is it possible that i could configure the Tomcat's DBCP connection 
so that other application (not web application) can uses it as well?

Any ideas and hints are welcomed.

Thanx.
Regards,
FooShyn
  

Hi Foo Shyn -
This is a common misconception caused by all the cautions in the Derby 
documentation but, in your context, the warnings do not apply since you 
are working with a Client-Server architecture (Tomcat).  Derby is a 
multi threaded, multi user system that multiple deployed applications 
can safely use when it is embedded in a server architecture such as 
Tomcat. 

The key is to be sure that Derby is loaded by Tomcat in the same 
classloader as the DBCP classes (COMMON) then have all applications 
access Derby via DBCP datasources.  The Derby website has a paper that 
describes setting this up to run the JPetstore program.  The datasource 
created can be access by any program deployed to that server.  Here is 
the link to the Global Datasource setup instructions in the article: 


http://db.apache.org/derby/integrate/DerbyTomcat5512JPetStor.html#Setup+of+Application+with+the+Datasource+in+the+Global+Context%3A

Hope this helps.



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



Re: JAASRealm, Kerberos, and Open Directory

2006-09-15 Thread Wendy Smoak

On 9/15/06, P. Douglas Reeder <[EMAIL PROTECTED]> wrote:

I'd like to set up a Realm which gets it's authentication information
using Kerberos, specifically Open Directory running under OS X Server
10.3.9.

...

After reading the Tomcat docs, _Tomcat: The Definitive Guide_, and
Wendy Smoak's examples at
http://wiki.wsmoak.net/cgi-bin/wiki.pl?TomcatKerberosConfigOnly, I
configured a Realm in server.xml as follows:


This example sounds closer to what you're trying to do:

 http://wiki.wsmoak.net/cgi-bin/wiki.pl?TomcatJAASRealm

The one you linked to is the "do the simplest thing that can possibly
work" version, and does not involve a custom Realm.

HTH,
--
Wendy

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



[REPOST] Can't get apache and Tomcat to talk

2006-09-15 Thread Rob Tanner

(Grrr!  I hit send when I meant save -- the first posting is incomplete)

I'm running a new install Fedora Core 5 and rebuilding my development 
system.  I'm running Apache/2.2.2 (part of the FC5 distro) and 
Tomcat-4.1.32.  I downloaded the version 1.2.18 tomcat connector kit and 
followed the instructions in BUILD.txt to compile and install the 
mod_jk.so connector.  I installed one of my development apps and added 
the context configuration to the server.xml file, and when I try to get 
to it through apache, the cursor just spins and I get no log entries of 
any kind, neither in the apache logs nor the tomcat logs.  I can, 
however, point my browser to port 8009 and bring up the newly installed 
app.All the gory details are below.  Any idea what might be wrong?


In the server.xml file, the only change I have made from the 
distribution is to add this context:



   
   
   


I also created this workers.properties file in the tomcat conf directory:

workers.tomcat_home=/var/apache-tomcat-4.1.32
workers.java_home=/usr/java/j2sdk1.4.2_12
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13


And finally, the following configuration detail was added to apache's 
httpd.conf file. Tomcat and apache were than both restarted.


LoadModule jk_module modules/mod_jk.so
JkWorkersFile /var/apache-tomcat-4.1.32/conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info
JkMount /*.jsp ajp13
JkMount /accntManager/* ajp13



Any suggestions here would be greatly appreciated.

Thanks,

Rob Tanner
Linfield College





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



JAASRealm, Kerberos, and Open Directory

2006-09-15 Thread P. Douglas Reeder
I'd like to set up a Realm which gets it's authentication information  
using Kerberos, specifically Open Directory running under OS X Server  
10.3.9.  For initial testing, I'm running Tomcat 5.5.7 on the same  
machine (the copy the comes with NetBeans 4.1), and setting  
CATALINA_BASE to a directory of mine.  I can run Tomcat fine from my  
CATALINA_BASE, and configuration changes are being seen by Tomcat.
The JAAS Kerberos example  
(http://java.sun.com/j2se/1.5.0/docs/guids/security/jgss/tutorials/ 
AcnONly.html) is able to authorize against my Open Directory server  
with no problems.


After reading the Tomcat docs, _Tomcat: The Definitive Guide_, and  
Wendy Smoak's examples at  
http://wiki.wsmoak.net/cgi-bin/wiki.pl?TomcatKerberosConfigOnly, I  
configured a Realm in server.xml as follows:



userClassNames="javax.security.auth.kerberos.KerberosPrincipal"
  
roleClassNames="javax.security.auth.kerberos.KerberosPrincipal"

 useContextClassLoader="true"
 debug="99"
  />

I created .java.login.config in my home directory:

Tomcat {
com.sun.security.auth.module.Krb5LoginModule required debug=true;
};

my script to start Tomcat is:

#! /bin/bash

export JAVA_HOME=/Library/Java/Home

export  
CATALINA_HOME=/Applications/NetBeans4.1.app/Contents/Resources/ 
NetBeans/enterprise1/jakarta-tomcat-5.5.7


export CATALINA_BASE=$PWD

export JAVA_OPTS=-Djava.security.krb5.realm=TONKUNST.SOM.OHIO-STATE.EDU  
-Djava.security.krb5.kdc=tonkunst.som.ohio-state.edu  
-Djava.security.auth.login.config=$HOME/.java.login.config


$CATALINA_HOME/bin/startup.sh


Tomcat comes up without any errors, but whenever I try to access any  
servlet that requires authentication, the following error shows up in  
Tomcat's output:


javax.security.auth.login.LoginException: No LoginModules configured  
for Catalina


Although the browser puts up a password entry dialog, entering a valid  
username/password combination just results in the dialog coming back,  
signalling a failed authorization.


I get the same results when I try moving .java.login.config to   
CATALINA_HOME/conf and
updating java.security.auth.login.config in the login script  
accordingly.  (if I misspell the file name in setting  
java.security.auth.login.config, Tomcat complains about the missing  
file, so I know it's finding the .java.login.conf file.




Doug Reeder
Cognitive & Systematic Musicology Lab
OSU School of Music


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



Can't get apache and Tomcat to talk

2006-09-15 Thread Rob Tanner
I'm running a new install Fedora Core 5 and rebuilding my development 
system.  I'm running Apache/2.2.2 (part of the FC5 distro) and 
Tomcat-4.1.32.  I downloaded the version 1.2.18 tomcat connector kit and 
followed the instructions in BUILD.txt to compile and install the 
mod_jk.so connector.  I installed one of my development apps and added 
the context configuration to the server.xml file, and when I try to get 
to it through apache, the cursor just spins and I get no log entries of 
any kind, neither in the apache logs nor the tomcat logs.  I can, 
however, point my browser to port 8009 and bring up the newly installed 
app.All the gory details are below.  Other than maybe that's the 
wrong connector, any idea what might be wrong?


In the server.xml file, the only change I have made from the 
distribution is to add this context:


   
 
  value="/datatel/development/coldev17" override="false"/>
  value="[EMAIL PROTECTED]" override="false"/>

   


I also created this workers.properties file in the tomcat conf directory:

workers.tomcat_home=/var/apache-tomcat-4.1.32
workers.java_home=/usr/java/j2sdk1.4.2_12
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13





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



RE: Help please

2006-09-15 Thread Caldarale, Charles R
> From: Robert Harper [mailto:[EMAIL PROTECTED] 
> Subject: RE: Help please
> 
> Does anyone have experience with Tomcat on a mainframe?

Works fine on ours, as does JBoss.  But we're not silly enough to use
EBCDIC...

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



RE: Help please

2006-09-15 Thread Robert Harper
I think the problem has more to do with Tomcat on a mainframe and conversion
from ASCII to EBCDIC. The XML parser is having problems translating the XML
records in the configuration files. Does anyone have experience with Tomcat
on a mainframe?

Robert S. Harper
Information Access Technology, Inc.

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 15, 2006 11:54 AM
To: Tomcat Users List
Subject: Re: Help please

Kevin-

To use CompressionFilter you 
1)override doFilter method to provide filtering response via previously
defined 'FilterChain'
2)wrap your regular response as a CompressionServletResponse before sending
back to client (as in this example from Kief Morris)

public void doFilter(ServletRequest request
 ServletResponse response,

 FilterChain chain)

throws IOException, ServletException 

{ 


long startTime = System.currentTimeMillis();

chain.doFilter(request, response);

long stopTime = System.currentTimeMillis();

System.out.println("Time to execute request: " + (stopTime -
startTime) + 

" milliseconds"); 


}

Later on in the service() doGet() or doPut() methods check the response to
build the appropriate CompressionServletResponseWrapper

if (response instanceof HttpServletResponse) {
CompressionServletResponseWrapper wrappedResponse =

new
CompressionServletResponseWrapper((HttpServletResponse)response);

wrappedResponse.setCompressionThreshold(compressionThreshold);

if (debug > 0) {

System.out.println("doFilter gets called with compression");

}
}

Make SURE the actual class (which is displayed from your web.xml) 
is on your classpath or your class is located in
$TOMCAT_HOME/webapps/NameOfYourWebApp/WEB-INF/classes)

The example $TOMCAT_HOME\webapps\servlets-examples\WEB-INF\web.xml displays


Compression Filter
compressionFilters.CompressionFilter



HTH
Martin--

*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



  - Original Message - 
  From: Kevin Mullin 
  To: users@tomcat.apache.org 
  Sent: Friday, September 15, 2006 11:27 AM
  Subject: Help please



  I've just downloaded Tomcat 5.5.17 and am trying to run it on our
mainframe system that is running z/OS 1.7 operating system.  I am getting a
failure in Tomcat that says: 
  java.lang.ClassNotFoundException: compressionFilters.CompressionFilter 
  Does anyone know what is causing this, and what I can do to correct it?



Kevin Mullin
Sr. Analyst
IBM Corporation
(206) 345-7068
[EMAIL PROTECTED]   




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



loggers no longer working

2006-09-15 Thread gurkan
Hi,
We started using tomcat5.5.17 (used to use tomcat4).
so far, I have moved all webapp/lib/*.jar to tomcat5 webapp/lib
As of now tomcat5 common/lib and tomcat4 common/lib have different jar files.
And also I had to do some changes with server.xml.

It seems like my logger are no longer working anymore. I get cataline.out,
my application logger works fine, but logger on 
  
  
  
  

  



  
  
  






   
  

  

  
  















   

  


   



  

   





  
---

-
This mail sent through IMP: www.resolution.com

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



Re: Help please

2006-09-15 Thread Martin Gainty
Kevin-

To use CompressionFilter you 
1)override doFilter method to provide filtering response via previously defined 
'FilterChain'
2)wrap your regular response as a CompressionServletResponse before sending 
back to client (as in this example from Kief Morris)

public void doFilter(ServletRequest request
 ServletResponse response,

 FilterChain chain)

throws IOException, ServletException 

{ 


long startTime = System.currentTimeMillis();

chain.doFilter(request, response);

long stopTime = System.currentTimeMillis();

System.out.println("Time to execute request: " + (stopTime - startTime) 
+ 

" milliseconds"); 


}

Later on in the service() doGet() or doPut() methods check the response to  
build the appropriate CompressionServletResponseWrapper

if (response instanceof HttpServletResponse) {
CompressionServletResponseWrapper wrappedResponse =

new 
CompressionServletResponseWrapper((HttpServletResponse)response);

wrappedResponse.setCompressionThreshold(compressionThreshold);

if (debug > 0) {

System.out.println("doFilter gets called with compression");

}
}

Make SURE the actual class (which is displayed from your web.xml) 
is on your classpath or your class is located in  
$TOMCAT_HOME/webapps/NameOfYourWebApp/WEB-INF/classes)

The example $TOMCAT_HOME\webapps\servlets-examples\WEB-INF\web.xml displays


Compression Filter
compressionFilters.CompressionFilter



HTH
Martin--

*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



  - Original Message - 
  From: Kevin Mullin 
  To: users@tomcat.apache.org 
  Sent: Friday, September 15, 2006 11:27 AM
  Subject: Help please



  I've just downloaded Tomcat 5.5.17 and am trying to run it on our mainframe 
system that is running z/OS 1.7 operating system.  I am getting a failure in 
Tomcat that says: 
  java.lang.ClassNotFoundException: compressionFilters.CompressionFilter 
  Does anyone know what is causing this, and what I can do to correct it?



Kevin Mullin
Sr. Analyst
IBM Corporation
(206) 345-7068
[EMAIL PROTECTED]   



Re: SimpleTagSupport invalid bodycontent JSP

2006-09-15 Thread Scott Van Wart

Pid wrote:

try "scriptless"
  
That worked wonderfully, thank you so much.  Incidentally, is there an 
updated DTD (or XSL) for the TLD, or are you thinking WTF with the TLAs 
like I am? :)


- Scott

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



Re: SimpleTagSupport invalid bodycontent JSP

2006-09-15 Thread Pid
try "scriptless"



Scott Van Wart wrote:
> This has been bugging me for a few days, so bear with me, I thought I'd
> try the list.  I'm using SimpleTagSupport (I find it much easier than
> the JSP 1.2 interfaces).  In my TLD I put "JSP" as the ,
> and Tomcat gives me an error (invalid body-content type (JSP).). 
> The only other options are tagdependent (I want JSP) and empty (I want a
> body content).
> 
> If I'm not supposed to use SimpleTag[Support] for tags with bodies, why
> do the interface and helper class have JSP body members (setJspBody in
> SimpleTag, and thus getJspBody in SimpleTagSupport)???
> 
> Thanks,
>  Scott
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


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



RE: Tomcat 5.5 won't auto-deploy my web app

2006-09-15 Thread Peter Ries
Sorry - I should have said. We do have the JDK 1.4 Compatibility files
installed within Tomcat 5.5.

So, this should work then?

~Peter


-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 15, 2006 2:09 AM
To: Tomcat Users List
Subject: Re: Tomcat 5.5 won't auto-deploy my web app

Or the compatibility package for use with JDK 1.4

--David

Gregor Schneider wrote:
> Hi Peter,
>
> don't know if this is the reson for your problem, however, afaik
> Tomcat 5.5.17 requires JDK 1.5
>
> Cheers
>
> Gregor


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



RE: Perm Gen not being released in GC

2006-09-15 Thread Tracy Nelson
Are you sure you don't have a memory leak?

FWIW, I had a client with a situation like this, we wound up throwing in
a stopgap that consisted of a thread that checked free space once a
minute and explicitly invoked System.gc() if certain parameters were
met.  Not the solution I originally proposed, but it was something I
could do in one day (the length of my contract) and it was cheaper than
buying a heap analyzer (a la JProbe).

---
Tracy Nelson / Nelnet Business Solutions
402 / 617-9449

| -Original Message-
| From: Darren Kukulka [mailto:[EMAIL PROTECTED]
| Sent: Friday, 15 September, 2006 09:59
| To: Tomcat Users List
| Subject: Perm Gen not being released in GC
| 
| Hi All,
| 
| 
| 
| Throughput Garbage collection on a 5.5.15 Tomcat instance is failing
to
| release Old Gen heap space when it becomes full on one of our Windows
| installations.
| 
| 
| 
| For the most part GC does release memory - in a typical working day
this
| is
| an upward trend in terms of the amount of heap reclaimed, gradually
| becoming
| a downward trend late in the day.
| 
| 
| 
| Every now and then JConsole shows Old Gen as having flat-lined.  Only
a
| Tomcat restart can rectify the problem.  Killing sessions followed by
a
| manual GC does not seem to have an effect.
| 
| 
| 
| Haven't yet determined whether we need to start looking at the young
to
| old
| heap allocation ratios - is this the main area I should be looking
into?
| 
| 
| 
| Any thoughts would be appreciated.
| 
| 
| 
| Cheers,
| 
| Darren Kukulka
| 
| 
| 
| 
| 
| Connaught honoured AIM 'Decade of Excellence' Award
| 
| 
| 
| Connaught awarded Partnering Contractor of the Year 2005
| 
| 
| 
| Connaught wins AIM 'Company of the Year' award 2004
| 
| 
| 
| West of England Business of the Year Award Winner 2003
| 
| 
| 
| Why not visit our website http://www.connaught.plc.uk
| 
| 
| 
| Disclaimer:
| 
| The information transmitted is intended only for the person or entity
to
| which it is addressed and may contain confidential and/or privileged
| material. Any review, retransmission, dissemination or other use of,
or
| taking of any action in reliance upon, this information by persons or
| entities other than the intended recipient is prohibited. If you
received
| this in error, please contact the sender and delete this message.
| 
| 
| 
| Connaught plc, Head Office 01392 444546

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



SimpleTagSupport invalid bodycontent JSP

2006-09-15 Thread Scott Van Wart
This has been bugging me for a few days, so bear with me, I thought I'd 
try the list.  I'm using SimpleTagSupport (I find it much easier than 
the JSP 1.2 interfaces).  In my TLD I put "JSP" as the , 
and Tomcat gives me an error (invalid body-content type (JSP).).  
The only other options are tagdependent (I want JSP) and empty (I want a 
body content).


If I'm not supposed to use SimpleTag[Support] for tags with bodies, why 
do the interface and helper class have JSP body members (setJspBody in 
SimpleTag, and thus getJspBody in SimpleTagSupport)???


Thanks,
 Scott


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



Help with tomcat and windows 2000 server

2006-09-15 Thread alarrea

Help

Im trying to execute tomcat in windows 200 server, it doesnt show any 
problem, and i found nothing in the log file.

Thoes any one knows??

Alberto Larrea

_
Correo libre de virus
EMAAP-Q



Nota importante: La informacion contenida en este e-mail es confidencial y solo 
puede ser utilizada por la persona o la empresa a la cual esta dirigida. 
Cualquier retencion, difusion, distribucion o copia de este mensaje esta 
prohibida.
La Empresa no asume responsabilidad alguna sobre la informacion, opiniones o 
criterios contenidos en este e-mail que no este relacionada con los negocios 
oficiales de la Empresa.
Si usted recibio este mensaje por error, favor notifique al Administrador o a 
quien le envio inmediatamente, eliminelo sin ver su contenido sin hacer copias.
Att
Empresa Metropolitana de Alcantarillado y Agua Potable de Quito, EMAAPQ.

Help with tomcat on z/OS

2006-09-15 Thread Kevin Mullin

I need help from anybody who has placed
Tomcat on a mainframe machine running z/OS 1.7.  I've had to had to
convert the ASCII files to EBCDIC.  I had to follow that up with change
the .xml files to contain "encoding=ebcdic=cp-us" from what it
had which was "encoding=IOS-8859-1".  Did anybody else have
to do these steps when running tomcat on a mainframe running z/OS?






Kevin Mullin
Sr. Analyst
IBM Corporation
(206) 345-7068
[EMAIL PROTECTED]



Re: Perm Gen not being released in GC

2006-09-15 Thread adrena . keating
Hi Stephanie,

Im a Project Manager, not a techie but we had the same problem and had to
increase the perm gen to the following:  Tomcat sets it at default at 64MB.
Perm Gen Memory: 150 MB
Max Perm Gen: 256 MB

We where getting perm gen out of memory errors which is why we did this.
This stabilised the environment but we still have problems with our Heap
Memory filling up and not been garbage collected properly.

Kind Regards
Adrena Keating
EDS Project Manager,
ABN AMRO NL Solution Centre

Tel:  +31-20-6299038
Mobile: +31-6-22574953




   
  Stephen Caine 
   
  <[EMAIL PROTECTED] To:  "Tomcat Users List" 
  
  rnd.com> cc:  
   
   Subject: Re: Perm Gen not being 
released in GC  
  09/15/2006 05:31  
   
  PM
   
  Please respond
   
  to "Tomcat Users  
   
  List" 
   

   




Darren,

> Every now and then JConsole shows Old Gen as having flat-lined.
> Only a Tomcat restart can rectify the problem.  Killing sessions
> followed by a manual GC does not seem to have an effect.
>
> Haven't yet determined whether we need to start looking at the
> young to old heap allocation ratios - is this the main area I
> should be looking into?

We see this same behavior.  I too am interested in comments from
others.  We are running on a OS X Server; JVM v1.5.

Stephen Caine
Soft Breeze Systems, LLC

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




---
This message (including any attachments) is confidential and may be
privileged. If you have received it by mistake please notify the sender by
return e-mail and delete this message from your system. Any unauthorised
use or dissemination of this message in whole or in part is strictly
prohibited. Please note that e-mails are susceptible to change. ABN AMRO
Bank N.V, which has its seat at Amsterdam, the Netherlands, and is
registered in the Commercial Register under number 33002587, including its
group companies, shall not be liable for the improper or incomplete
transmission of the information contained in this communication nor for any
delay in its receipt or damage to your system. ABN AMRO Bank N.V. (or its
group companies) does not guarantee that the integrity of this
communication has been maintained nor that this communication is free of
viruses, interceptions or interference.
---


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



user management with JDBC realm support

2006-09-15 Thread Andre Charbonneau

Greetings,

I know this question has probably been asked many times before, but I 
couldn't find a definite answer to it; so here it is again:


Is there an application (servlet) that I can install on my Tomcat server 
to provide a web interface to perform user management (add/delete/edit 
users and groups), with support for the JDBC realm?  (I would prefer a 
small application that is dedicated to this task, not a bigger 
application that implements this feature among a multitude of other 
features...)




If there is no such product yet, I might create one and contribute back 
to the community.  I just want to double-check to make sure I'm not 
duplicating work that has already been done.



Regards,
Andre
--
Andre Charbonneau

Grid Computing and Applications Specialist
Research Computing Support, IMSB
National Research Council Canada
Ottawa, ON, Canada K1A 0R6

-- Linux uptime: 223 days 20:53 --

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



RE: Help please

2006-09-15 Thread Robert Harper
Check your definition of the servlet in the [app_root]/WEB-INF/web.xml file.
There is a reference to where the filters are located. You probably need to
either create this class or remove the reference from the web.xml file.

 

Robert S. Harper

Information Access Technology, Inc.

  _  

From: Kevin Mullin [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 15, 2006 9:27 AM
To: users@tomcat.apache.org
Subject: Help please

 


I've just downloaded Tomcat 5.5.17 and am trying to run it on our mainframe
system that is running z/OS 1.7 operating system.  I am getting a failure in
Tomcat that says: 
java.lang.ClassNotFoundException: compressionFilters.CompressionFilter 
Does anyone know what is causing this, and what I can do to correct it?





Kevin Mullin
Sr. Analyst
IBM Corporation
(206) 345-7068
[EMAIL PROTECTED] 

  

 



Re: Perm Gen not being released in GC

2006-09-15 Thread Stephen Caine

Darren,

Every now and then JConsole shows Old Gen as having flat-lined.   
Only a Tomcat restart can rectify the problem.  Killing sessions  
followed by a manual GC does not seem to have an effect.


Haven't yet determined whether we need to start looking at the  
young to old heap allocation ratios - is this the main area I  
should be looking into?


We see this same behavior.  I too am interested in comments from  
others.  We are running on a OS X Server; JVM v1.5.


Stephen Caine
Soft Breeze Systems, LLC

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



Help please

2006-09-15 Thread Kevin Mullin

I've just downloaded Tomcat 5.5.17 and
am trying to run it on our mainframe system that is running z/OS 1.7 operating
system.  I am getting a failure in Tomcat that says:
java.lang.ClassNotFoundException: compressionFilters.CompressionFilter

Does anyone know what is causing this,
and what I can do to correct it?






Kevin Mullin
Sr. Analyst
IBM Corporation
(206) 345-7068
[EMAIL PROTECTED]



Perm Gen not being released in GC

2006-09-15 Thread Darren Kukulka
Hi All,

 

Throughput Garbage collection on a 5.5.15 Tomcat instance is failing to
release Old Gen heap space when it becomes full on one of our Windows
installations.

 

For the most part GC does release memory - in a typical working day this is
an upward trend in terms of the amount of heap reclaimed, gradually becoming
a downward trend late in the day.

 

Every now and then JConsole shows Old Gen as having flat-lined.  Only a
Tomcat restart can rectify the problem.  Killing sessions followed by a
manual GC does not seem to have an effect.

 

Haven't yet determined whether we need to start looking at the young to old
heap allocation ratios - is this the main area I should be looking into?

 

Any thoughts would be appreciated.

 

Cheers,

Darren Kukulka





Connaught honoured AIM 'Decade of Excellence' Award 



Connaught awarded Partnering Contractor of the Year 2005 



Connaught wins AIM 'Company of the Year' award 2004 



West of England Business of the Year Award Winner 2003 



Why not visit our website http://www.connaught.plc.uk 



Disclaimer: 

The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. Any 
review, retransmission, dissemination or other use of, or taking of any action 
in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited. If you received this in error, please contact 
the sender and delete this message. 



Connaught plc, Head Office 01392 444546 


javax.management.MalformedObjectNameException: Invalid character '=' in value part of property

2006-09-15 Thread Montilla Markus \(KIUH 43\)

> HI
> 
> does anybody know where this error is coming from? Which config file?
> 
> SEVERE: Exception creating UserDatabase MBeans for UserDatabase
> javax.management.MalformedObjectNameException: Invalid character '='
> in value part of property
> at javax.management.ObjectName.construct(Unknown Source)
> at javax.management.ObjectName.(Unknown Source)
> at
> org.apache.catalina.mbeans.MBeanUtils.createObjectName(MBeanUtils.java
> :1473)
> at
> org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:736)
> at
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBea
> ns(GlobalResourcesLifecycleListener.java:233)
> at
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBea
> ns(GlobalResourcesLifecycleListener.java:163)
> at
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBea
> ns(GlobalResourcesLifecycleListener.java:125)
> at
> org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleE
> vent(GlobalResourcesLifecycleListener.java:97)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycle
> Support.java:119)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:2306
> )
> at
> org.apache.catalina.startup.Catalina.start(Catalina.java:556)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
> 
> greets
> 
> markus
> 


running Tomcat as different user

2006-09-15 Thread Gurganus, Brant L








Forgive me if I already sent this. I thought I had, but I
could not find it in my Sent or deleted items.

 

I am running Tomcat on Windows XP SP2 as a service. I would
like to run Tomcat as a different user that Local System since Local System is
rather over-privileged. I ran tomcat5w and set the user to a newly create user “tomcat”
with, let’s say, “tomcat password” as password. I then
stopped and restarted Tomcat, but it still ran as Local System. I noticed that the
actual service was set to run as Local System, so I tried changing it to use
the “tomcat” account also. Doing so adds the Login as Service privilege
to the user. I then started it, and it appeared to start, however, when I go to
a page on the Tomcat server, nothing ever loads.

 

Does anybody know what privileges or ACLs are needed to
allow the service to run as non-Local System?








smime.p7s
Description: S/MIME cryptographic signature


Re: Three hostnames in one instance of tomcat

2006-09-15 Thread Eric Berry

This will fail in later versions of Tomcat 5. appBase should not equal
docbase. The correct configuration is:

   



Does this mean that there must be a "ROOT" directory under
"/opt/projects/www/host1/web"?

In my current configuration I have
"/opt/projects/www/host1/web/[index.jsp,jsp/,html/,images/,js/,
etc...]". So for future versions of tomcat 5, I'll need
"/opt/projects/www/host1/web/ROOT/[index.jsp,jsp/,html/,ect...]"?

Thanks for correcting me on this, I'm still quite new at this myself.

Thanks again,
Eric

--
Learn from the past. Live in the present. Plan for the future.

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



Re: moving to linux

2006-09-15 Thread Wade Chandler
--- David Rees <[EMAIL PROTECTED]> wrote:
> I doubt that switching to
> Linux from
> Windows will solve your performance problem. Have
> you identified what
> your performance bottleneck is now?
> 
> -Dave

Yes I would have to second that.  I love Linux, but
not knowing where the real issue with your performance
is will just leave you unsatisfied if the issue is
with your application because no matter what you do
outside of the application performance won't be
boosted significantly.  I would profile my application
and see where in my code the application is spending
most of it's time.  If you can't figure out any
metrics that give you any clues try to break down your
dependencies and profile them independently and see
what you get there.  Maybe you have slow database
creation and are not using database pooling.  This can
slow down an application considerably, but don't count
out other factors.

Wade

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



RE: JConsole query

2006-09-15 Thread Darren Kukulka
Thanks Jess.

We suspected this was the case so we'll consolidate to server JVM.

-Original Message-
From: Jess Holle [mailto:[EMAIL PROTECTED] 
Sent: 15 September 2006 13:47
To: Tomcat Users List
Subject: Re: JConsole query

Darren Kukulka wrote:
> HI There, 
>
> Just a quick question regarding the JConsole tool we use to monitor
Tomcat5 instances - 2 to be precise.
>
> We've noticed that within the Memory display window the breakdown of Heap
usage shows three areas and their utilisation.  The descriptions of each
space differs between the servers, even though essentially they are
configured identically.
>
> They are both running Tomcat 5.5.15 on a Windows 2003 Server and differ
slightly with their JVM (one is running the server JVM, the other is running
the client JVM).
>  
> Server 1 - SUN JRE 1.5.0_06-b05 - shows "Eden", "Survivor" and "Tenured"
space names
>
> Server 2 - SUN JRE 1.5.0_06-b05 - shows "PS Survivor", "PS Eden" and "PS
Old Gen" space names.
>
> Can anybody explain this behaviour to me?
>   
You're getting different different generations because Java 5 is 
recognizing Server 2 as a server class machine -- due to heap 
allocation, total memory on the machine and such -- and it's not doing 
this on Server 1.

I must admit I'm a bit confused myself about when each occurs as the 
documented rules don't seem to actually quite be followed.

--
Jess Holle

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





Connaught honoured AIM 'Decade of Excellence' Award 



Connaught awarded Partnering Contractor of the Year 2005 



Connaught wins AIM 'Company of the Year' award 2004 



West of England Business of the Year Award Winner 2003 



Why not visit our website http://www.connaught.plc.uk 



Disclaimer: 

The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. Any 
review, retransmission, dissemination or other use of, or taking of any action 
in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited. If you received this in error, please contact 
the sender and delete this message. 



Connaught plc, Head Office 01392 444546 

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



RE: 408 with virtual host and j_security_check

2006-09-15 Thread Montilla Markus \(KIUH 43\)
Hi George

yes, I can ping it.

I definded it now in $catalina_home/config/web.xml ONLY

still the same.
I also noticed an error when starting in verbose mode. But
I can't imagine an error connected to this issue, because
without dns_alias everything works fine.

error:

java.lang.NullPointerException
at org.apache.jsp.jsp.dashboard.index_jsp._jspService(Unknown Source)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java
:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
COM.freshtech.servlet.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:7
7)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java
:186)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Prot
ocol.java:705)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Unknown Source)
 

Mit freundlichen Grüssen,

Markus Montilla
CREDIT SUISSE
Information Technology
IT Service Monitoring, KIUH 43
Uetlibergstrasse 231
Postfach 600
CH-8070 Zürich
Tel: +41 44 333 29 36
Fax: +41 44 334 55 95
e-Mail: mailto:[EMAIL PROTECTED]
Internet: www.credit-suisse.com

-Original Message-
From: Gregor Schneider [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 15, 2006 2:41 PM
To: Tomcat Users List
Subject: Re: 408 with virtual host and j_security_check

Hm, then I'd check if DNS is able to resolve your hostname. Can you
ping the hostname?

Besides, I'd define the Session-Timeout only in $catalina_home/config/web.xml

OR

only in $catalina_home/webpass/your_app/WEB-INF/web.xml

otherwise you might spent hours searching for a misconfiguration.

If pinging your host (with hostname) works, try specifying
Session-Timeout in $catalina_home/config/web.xml ONLY, end also check
the access-logs: Which url got called?

Cheers

Gregor
-- 
what's puzzlin' you, is the nature of my game

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


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



Re: JConsole query

2006-09-15 Thread Jess Holle

Darren Kukulka wrote:
HI There, 


Just a quick question regarding the JConsole tool we use to monitor Tomcat5 
instances - 2 to be precise.

We've noticed that within the Memory display window the breakdown of Heap usage 
shows three areas and their utilisation.  The descriptions of each space 
differs between the servers, even though essentially they are configured 
identically.

They are both running Tomcat 5.5.15 on a Windows 2003 Server and differ 
slightly with their JVM (one is running the server JVM, the other is running 
the client JVM).
 
Server 1 - SUN JRE 1.5.0_06-b05 - shows "Eden", "Survivor" and "Tenured" space names


Server 2 - SUN JRE 1.5.0_06-b05 - shows "PS Survivor", "PS Eden" and "PS Old 
Gen" space names.

Can anybody explain this behaviour to me?
  
You're getting different different generations because Java 5 is 
recognizing Server 2 as a server class machine -- due to heap 
allocation, total memory on the machine and such -- and it's not doing 
this on Server 1.


I must admit I'm a bit confused myself about when each occurs as the 
documented rules don't seem to actually quite be followed.


--
Jess Holle

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



Re: Two contexts initialized ...

2006-09-15 Thread Velja Radenkovic

Thanks,

It is tom 5. And its OK now.

Velja

On 9/14/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:


> From: Velja Radenkovic [mailto:[EMAIL PROTECTED] ]
> Subject: Two contexts initialized ...
>
> I set the web application directory to be a ROOT
> by creating dirname.xml
> in the  CATLINA_HOME/conf/Catalina/localhost
> with content ' docBase="${catalina.home}/webapps/dirname"
> debug="0"/>' ...

You didn't bother to tell us the Tomcat version you're using, but if
it's 5.5 or newer, remember that the path attribute must not be used
when the  element is in conf/Catalina/localhost.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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




Re: 408 with virtual host and j_security_check

2006-09-15 Thread Gregor Schneider

Hm, then I'd check if DNS is able to resolve your hostname. Can you
ping the hostname?

Besides, I'd define the Session-Timeout only in $catalina_home/config/web.xml

OR

only in $catalina_home/webpass/your_app/WEB-INF/web.xml

otherwise you might spent hours searching for a misconfiguration.

If pinging your host (with hostname) works, try specifying
Session-Timeout in $catalina_home/config/web.xml ONLY, end also check
the access-logs: Which url got called?

Cheers

Gregor
--
what's puzzlin' you, is the nature of my game

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



RE: 408 with virtual host and j_security_check

2006-09-15 Thread Montilla Markus \(KIUH 43\)
Hi Gregor

i changed it now in both config files, the same error occurs.

I think somehow its an error in the session. Can it be that the
hostname has something to do with the session/session id?

It also happens after restart and when I login as first user. 

markus

-Original Message-
From: Gregor Schneider [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 15, 2006 1:56 PM
To: Tomcat Users List
Subject: Re: 408 with virtual host and j_security_check

did you set the session-ttimeout in $catalina_home/config/web.xml or
in $catalina_home/webapps/your_app/WEB-INF/web.xml?

usually this error means that the session has exceed and it happens,
when j_securitycheck display the login-screen and the user is waiting
too long to enter the credentials.

gregor
-- 
what's puzzlin' you, is the nature of my game

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


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



Re: 408 with virtual host and j_security_check

2006-09-15 Thread Gregor Schneider

did you set the session-ttimeout in $catalina_home/config/web.xml or
in $catalina_home/webapps/your_app/WEB-INF/web.xml?

usually this error means that the session has exceed and it happens,
when j_securitycheck display the login-screen and the user is waiting
too long to enter the credentials.

gregor
--
what's puzzlin' you, is the nature of my game

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



Re: tomcat jmx agent question

2006-09-15 Thread Michele Mazzucco
Right, ok, this makes sense. And what about if it runs in another tomcat
instance (or if it's a standalone application)? Is the url something like

service:jmx:rmi:///jndi/rmi://:/jmxrmi,
where port is the value specified by -Dcom.sun.management.jmxremote.port?

Thanks,
Michele


Mikolaj Rydzewski wrote:
> Michele Mazzucco wrote:
>> I understand this. What I don't understand is, how can I access (inside
>> a web application or program) the mbeans exposed by another web
>> application? Do you have any chunk of code to show me?
>>   
> If you want to access another webapp's mbeans (but running in the same
> Tomcat instance) you simply use
> ManagementFactory.getPlatformMBeanServer() and then query for other mbeans.
> 

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



Re: tomcat jmx agent question

2006-09-15 Thread Mikolaj Rydzewski

Michele Mazzucco wrote:

I understand this. What I don't understand is, how can I access (inside
a web application or program) the mbeans exposed by another web
application? Do you have any chunk of code to show me?
  
If you want to access another webapp's mbeans (but running in the same 
Tomcat instance) you simply use 
ManagementFactory.getPlatformMBeanServer() and then query for other mbeans.


--
Mikolaj Rydzewski <[EMAIL PROTECTED]>



smime.p7s
Description: S/MIME Cryptographic Signature


RE: 408 with virtual host and j_security_check

2006-09-15 Thread Montilla Markus \(KIUH 43\)
can't be... when I enter uptime, the time is correctly set... 

Greets
Markus

-Original Message-
From: Pid [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 15, 2006 1:32 PM
To: Tomcat Users List
Subject: Re: 408 with virtual host and j_security_check

Maybe the clock is wrong on the server.



Montilla Markus (KIUH 43) wrote:
> Hi 
> I have an error with my Application using Tomcat 5 and a virtual host.
> When
> I access it using localhost defined as host everything works.
Otherwise
> I can access 
> the login page and then I get an "HTTP Status 408 - The time allowed 
> for the login process has been exceeded."-error. I also use FORM-Based
> Authentication... the 408 is displayed at j_security_check in the url.
> I already tried it with a higher session timeout value without
> success...
> 
> 1000
> 
> Can someone give me a hint... ?
> Greets 
> Markus 
> 
> 


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


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



Re: 408 with virtual host and j_security_check

2006-09-15 Thread Pid
Maybe the clock is wrong on the server.



Montilla Markus (KIUH 43) wrote:
> Hi 
> I have an error with my Application using Tomcat 5 and a virtual host.
> When
> I access it using localhost defined as host everything works. Otherwise
> I can access 
> the login page and then I get an "HTTP Status 408 - The time allowed 
> for the login process has been exceeded."-error. I also use FORM-Based
> Authentication... the 408 is displayed at j_security_check in the url.
> I already tried it with a higher session timeout value without
> success...
> 
> 1000
> 
> Can someone give me a hint... ?
> Greets 
> Markus 
> 
> 


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



Re: tomcat jmx agent question

2006-09-15 Thread Michele Mazzucco
Hi Mikolaj,

I understand this. What I don't understand is, how can I access (inside
a web application or program) the mbeans exposed by another web
application? Do you have any chunk of code to show me?

Thanks,
Michele

Mikolaj Rydzewski wrote:
> Michele Mazzucco wrote:
>> right, that's the response to my question :).
>> Now, I've got a web application exposing some mbeans. How can I access
>> them from outside (another web application deployed on the same machine,
>> for example)?
>>   
> Enable remote JXM access. Just like when working with jconsole.
> 

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



408 with virtual host and j_security_check

2006-09-15 Thread Montilla Markus \(KIUH 43\)
Hi 
I have an error with my Application using Tomcat 5 and a virtual host.
When
I access it using localhost defined as host everything works. Otherwise
I can access 
the login page and then I get an "HTTP Status 408 - The time allowed 
for the login process has been exceeded."-error. I also use FORM-Based
Authentication... the 408 is displayed at j_security_check in the url.
I already tried it with a higher session timeout value without
success...

1000

Can someone give me a hint... ?
Greets 
Markus 



Re: Tomcat 5.5 won't auto-deploy my web app

2006-09-15 Thread David Smith

Or the compatibility package for use with JDK 1.4

--David

Gregor Schneider wrote:

Hi Peter,

don't know if this is the reson for your problem, however, afaik
Tomcat 5.5.17 requires JDK 1.5

Cheers

Gregor



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



Re: tomcat jmx agent question

2006-09-15 Thread Mikolaj Rydzewski

Michele Mazzucco wrote:

right, that's the response to my question :).
Now, I've got a web application exposing some mbeans. How can I access
them from outside (another web application deployed on the same machine,
for example)?
  

Enable remote JXM access. Just like when working with jconsole.

--
Mikolaj Rydzewski <[EMAIL PROTECTED]>



smime.p7s
Description: S/MIME Cryptographic Signature


Re: tomcat jmx agent question

2006-09-15 Thread Michele Mazzucco
Hi Peter,

right, that's the response to my question :).
Now, I've got a web application exposing some mbeans. How can I access
them from outside (another web application deployed on the same machine,
for example)?


Michele

Peter Rossbach wrote:
> HI Michele,
> 
> please, read the sun jmx docs.
> 
> The default jmx server from java 5 starts a rmi registry and starts a
> jmx server socket.
> Currently the jmx server socket port change with every start from your
> jvm. You can't
> control the port or binding an ip address from command line.  Please,
> read the details at jmx api javadocs (javax.management.remote).
> 
> Peter
> 
> 
> Am 14.09.2006 um 18:23 schrieb Michele Mazzucco:
> 
>> I'm sorry Peter, but you didn't reply to my questions ;): with the out
>> of the box configuration, what happens if I want to connect this way:
>>
>> JMXServiceURL url = new JMXServiceURL( 
>> "service:jmx:rmi:///jndi/rmi://localhost:/server");
>> JMXConnector jmxc = JMXConnectorFactory.connect(url, null);
>>
>>
>> what should I punt instead of "service:jmx"? Does tomcat run a rmi
>> registry somewhere? If not, why can I access the MBeans exposed by
>> tomcat, even from remote nodes (from the admin console)?, should I start
>> a rmiregistry in my web application?
>> If yes, which port is it used?
>>
>>
>> Thanks,
>> Michele
>>
>> Peter Rossbach wrote:
>>> Hi,
>>>
>>> Am 14.09.2006 um 16:25 schrieb Michele Mazzucco:
>>>
 Thanks Peter.

 Peter Rossbach wrote:
> Hi,
>
> I don't know about this experiment, but it seems not finished. Please,
> use sun jdk command line args to start your jmx  adapter.

 I though tomcat used mx4j.

>>> Only with JDK 1.4. See JDK 1.4 Compatability package at tomcat 5.5
>>> donwload page.
>>>
> One of the strange things of the current Java 5 JVM is: You can
> only set
> the naming port and not the real communication port :-(
> This is obviously bad for people that use a firewall.
>
>  
> http://java.sun.com/j2se/1.5.0/docs/guide/management/agent.html#properties
>
>
>
> With JMX API you can set the communication port and socket address.
>
> Peter
>
>
 Michele

> Am 14.09.2006 um 12:41 schrieb Michele Mazzucco:
>
>> Hi Peter,
>>
>> thanks. But what about "out of the box" configuration?, the
>> org.apache.tomcat.servlets.jmxremote.JmxRemoteServlet creates a rmi
>> registry on port 1099 and a jmx service url at
>> service:jmx:rmi://rmiHost/jndi/rmi://localhost:1099/jndiPath. So the
>> question is, is rmi the default jmx protocol?
>>
>> Thanks,
>> Michele
>>
>> Peter Rossbach wrote:
>>> Hi,
>>> please read the docs
>>>
>>> http://tomcat.apache.org/tomcat-5.5-doc/monitoring.html
>>>
>>> Regards
>>> Peter
>>>
>>>
>>>
>>> Am 14.09.2006 um 11:23 schrieb Michele Mazzucco:
>>>
 Hi all,

 which kind of JMX connector does tomcat uses, rmi? If it is rmi,
 which
 port is it used? In which class is the JMX agent started?

 Thanks,
 Michele

 -

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


>>>
>>>
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>

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


>>>
>>>
>>> -
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



JConsole query

2006-09-15 Thread Darren Kukulka
HI There,

 

Just a quick question regarding the JConsole tool we use to monitor Tomcat5 
instances - 2 to be precise.

 

We've noticed that within the Memory display window the breakdown of Heap usage 
shows three areas and their utilisation.  The descriptions of each space 
differs between the servers, even though essentially they are configured 
identically.

 

They are both running Tomcat 5.5.15 on a Windows 2003 Server and differ 
slightly with their JVM (one is running the server JVM, the other is running 
the client JVM).

 

Server 1 - SUN JRE 1.5.0_06-b05 - shows "Eden", "Survivor" and "Tenured" space 
names

Server 2 - SUN JRE 1.5.0_06-b05 - shows "PS Survivor", "PS Eden" and "PS Old 
Gen" space names.

 

Can anybody explain this behaviour to me?

 

Cheers,

Darren





Connaught honoured AIM 'Decade of Excellence' Award 



Connaught awarded Partnering Contractor of the Year 2005 



Connaught wins AIM 'Company of the Year' award 2004 



West of England Business of the Year Award Winner 2003 



Why not visit our website http://www.connaught.plc.uk 



Disclaimer: 

The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. Any 
review, retransmission, dissemination or other use of, or taking of any action 
in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited. If you received this in error, please contact 
the sender and delete this message. 



Connaught plc, Head Office 01392 444546 


Re: Single Sign-on Configuration with Apache

2006-09-15 Thread Alex Hepp

Mark,

Mark Thomas schrieb:

When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this  makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.



i am very sorry about this, i just forgot about the message id. I didn't 
mean to 'hijack' a thread...



This is known as thread hijacking and is behaviour that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.


I will remember this for the future, and hope, that noone is offended, 
or angry...


Shall I start a new thread with this question, or shall i leave it now, 
and just remember it for the future?


Sorry again!

Regards. alex

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



Re: Tomcat 5.5 won't auto-deploy my web app

2006-09-15 Thread Gregor Schneider

Hi Peter,

don't know if this is the reson for your problem, however, afaik
Tomcat 5.5.17 requires JDK 1.5

Cheers

Gregor
--
what's puzzlin' you, is the nature of my game

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