Re: Multilingual usernames and passwords does not works.

2005-12-15 Thread Jon Wingfield

Your html isn't correct:
http://www.w3.org/TR/html4/interact/forms.html#h-17.3

I would remove the enctype attribute, correct the accept-charset name 
and see if you get any further.


HTH,

Jon

Manish Dalakoti wrote:

Hi,

I'm using form-based authentication.
Although i'm able to create multilingual user names and passwords, 
tomcat is not able to authenticate using the same.
I'm not able to make out if this is a problem related to 
j_security_check or what, because the username and password which my 
Authenticator receives from

j_security_check is all garbage.

*At JSP level, in my login.jsp page i'm using  :*
**
  /%@ page errorPage=/jspError.jsp pageEncoding=UTF-8 
contentType=text/html; charset=UTF-8 %

.
.
.
  form name=login method=post action=j_security_check 
acceptCharset=UTF-8 encType=UTF-8 onKeyPress=return 
submitOnEnter(event, login)

.
./
  * *,  *to make sure UTF-8 support is there, but to no avail. 
Otherwise, the rest of my application is fully internationalized and 
localized too in few languages.*


Thanx,
Manish



-
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: Multilingual usernames and passwords does not works.

2005-12-15 Thread Manish Dalakoti
Thanx Jon for the speedy reply. I tried doing what you suggested, but 
still the problem remains the same.
I wonder, why do I nedd to supply things like ... accept-charset=UTF-8 
etc. in my login JSP page when all my other JSP pages works well 
without any

such entry.

Details related to my application and the environment -
Servlet engine - Tomcat 4.1
Framework : Struts.

Any help would be highly appreciated.



Jon Wingfield wrote:


Your html isn't correct:
http://www.w3.org/TR/html4/interact/forms.html#h-17.3

I would remove the enctype attribute, correct the accept-charset name 
and see if you get any further.


HTH,

Jon

Manish Dalakoti wrote:


Hi,

I'm using form-based authentication.
Although i'm able to create multilingual user names and passwords, 
tomcat is not able to authenticate using the same.
I'm not able to make out if this is a problem related to 
j_security_check or what, because the username and password which my 
Authenticator receives from

j_security_check is all garbage.

*At JSP level, in my login.jsp page i'm using  :*
**
  /%@ page errorPage=/jspError.jsp pageEncoding=UTF-8 
contentType=text/html; charset=UTF-8 %

.
.
.
  form name=login method=post action=j_security_check 
acceptCharset=UTF-8 encType=UTF-8 onKeyPress=return 
submitOnEnter(event, login)

.
./
  * *,  *to make sure UTF-8 support is there, but to no avail. 
Otherwise, the rest of my application is fully internationalized and 
localized too in few languages.*


Thanx,
Manish



-
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: Re: starting and stopping Tomcat from Java code

2005-12-15 Thread andy gordon
Oleg, 
   
  Have you looked into managing the tomcat instance with MBeans. All you need 
to do is establish a connection to the other JVM with an MBeanServerConnection 
instance. This does require a port to be exposed from Tomcat for remote 
monitoring. But once you have the connection you can do what you want with the 
remote Tomcat. Just look at how JConsole monitors/manages remote JVM 
applications for an example.
   
  HTH 
   
  - andy

Oleg Lebedev [EMAIL PROTECTED] wrote:
  Yes, that would work if I had a handle to the embedded instance. The thing is 
that embedded tomcat is running in a separate VM and I need to be able to shut 
it down. I don't really need to use Embedded class if only I could get 
Bootstrap or Catalina classes to work without having to have the whole tomcat 
directory on disk.


-Original Message-
From: news on behalf of Bill Barker
Sent: Wed 12/14/2005 8:14 PM
To: users@tomcat.apache.org
Subject: Re: starting and stopping Tomcat from Java code

Urm, something like:
tomcat.stop();

where 'tomcat' is your Embedded instance?

Oleg Lebedev wrote in message 
news:[EMAIL PROTECTED]
Hello,

I am trying to configure, start and then shutdown Tomcat from my Java
class. I am planning to have all the jars required by Tomcat on the
classpath and I would like to be able to specify the port number and
host using method calls. I would prefer not to ship Tomcat configuration
files, such as server.xml with my application and be able to configure
Tomcat from code before starting it.

I tried using Boostrap class, but it requires catalina.home and
catalina.base, which I would like to avoid using.
I tried using Embed class and it worked, but I still had to set
catalina.home so that it can find tomcat-users.xml. But, this is
acceptable.

I have not been able to shut Tomcat down from my Java code. Note that I
won't have a handle to the Catalina instance started, because Tomcat
needs to be started before my application starts in a separate VM, and
then killed when my application exists.

I would appreciate any feedback on how to do this or what Tomcat classes
I should take a look at.

Thanks.

Oleg





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


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
If you have questions about this email, please
contact the IT Help Desk.

Mail



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

  



-
Yahoo! Shopping
 Find Great Deals on Holiday Gifts at Yahoo! Shopping 

Re: Problem with mod_jk Connector

2005-12-15 Thread Martin Gainty

Good Afternoon Michael

The Tomcat ajp connector configuration available at
http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html
states that when the attribute forwardAll=true ALL requests go to tomcat
to quote the doc
a.. forwardAll - If true, forward all requests to Tomcat. This helps ensure
that all the behavior configured in the web.xml file functions correctly.
If false, let Apache serve static resources.
The default is true.
Warning: When false, some configuration in the web.xml may not be duplicated
in Apache.
Review the mod_jk conf file to see what configuration is actually being set
in Apache. 

so in the event that forwardAll=true then all your requests will go to
Tomcat
then we can look at the tomcat and specifically the connector directives
available at
http://tomcat.apache.org/connectors-doc/config/apache.html which states
JKUnmount takes precedence over JKMount statement and blocks access to the
url specified in the JkUnMount directive
to quote
JkUnmount directive acts as an opposite to JkMount and blocks access to a
particular URL. The purpose is to be able to filter out the particular
content types from mounted context. The following example mounts /servlet/*
context, but all .gif files that belongs to that context are not served.

 # send all requests ending with /servlet to worker1
 JkMount /servlet/* worker1
 # do not send requests ending with .gif to worker1
 JkUnMount /servlet/*.gif worker1
#JkUnMount takes precedence over JkMount directives, meaning that the JK
will first look for unmount and then for mount directives. The following
example will #block all .gif files.

 # do not send requests ending with .gif to worker1
 JkUnMount /*.gif worker1
 # The .gif files will not be mounted cause JkUnMount takes
 # precedence over JkMount directive
 JkMount /servlet/*.gif worker1
To my understanding forwardAll acts as the
gatekeeper to tomcat
Once tomcat has the request tomcat (and specifically
tomcat connectors) directives JKUnMount would then block access to that URL
Anyone else ?
Martin-

- Original Message - 
From: Michael Andreas Omerou [EMAIL PROTECTED]

To: 'Martin Gainty' [EMAIL PROTECTED]
Cc: 'Tomcat Users List' users@tomcat.apache.org
Sent: Wednesday, December 14, 2005 10:09 AM
Subject: RE: Problem with mod_jk Connector



Hi Martin,

Thanks for your message and I apologise for the late reply but I have been
so busy with so many other things.

Before I proceed with using forwardAll as you suggested I would like to 
ask

you whether using forwardAll will still allow me to use JkUnmount.

Thanks,
Michael


-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: 11 December 2005 16:11
To: [EMAIL PROTECTED]
Cc: Tomcat Users List
Subject: Re: Problem with mod_jk Connector

Straight from the doc available at
http://tomcat.apache.org/connectors-doc/config/apache.html

forwardAll=true
in your httpd.conf forwards ALL requests to tomcat


JkUnMount takes precedence over JkMount directives, meaning
that the JK will first look for unmount and then for mount
directives. The following example will block all .gif files.

 # do not send requests ending with .gif to worker1
 JkUnMount /*.gif worker1
 # The .gif files will not be mounted cause JkUnMount takes
 # precedence over JkMount directive
 JkMount /servlet/*.gif worker1so in effect your JkUnmount
statement is blocking access to the parameter following
JkUnmount commandMartin-


- Original Message - 
From: Michael Andreas Omerou [EMAIL PROTECTED]

To: 'Tomcat Users List' users@tomcat.apache.org; 'Martin Gainty'
[EMAIL PROTECTED]
Sent: Sunday, December 11, 2005 3:57 AM
Subject: RE: Problem with mod_jk Connector



Hi Martin,

Below is my entire workers.properties file:

workers.tomcat_home=/usr/local/jakarta/jakarta-tomcat
workers.java_home=/usr/local/j2sdk
ps=/
worker.list=ajp13
worker.ajp13.type=ajp13
worker.ajp13.host=localhost
worker.ajp13.port=8009
worker.ajp13.lbfactor=50
worker.ajp13.cachesize=10
worker.ajp13.cache_timeout=600
worker.ajp13.socket_keepalive=1
worker.ajp13.socket_timeout=300

I have set JKLogLevel to info but although the problem

occurs nothing goes

there.  In fact even for requests forwarded from Apache to

Tomcat there

are
no entries in mod_jk.log.

Regarding forwardAll I am not aware of this option, where does it go?
Please note that eventually I need to have the JKUnmount in

my httpd.conf.


Thanks,
Michael




-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: 10 December 2005 23:02
To: [EMAIL PROTECTED]
Cc: 'Tomcat Users List'
Subject: Re: Problem with mod_jk Connector

what this says is that all requests goto ajp13 worker I will
need to see worker.properties file and the value of forwardAll
set JkLogLevel info

Martin-
- Original Message -
From: Michael Andreas Omerou [EMAIL PROTECTED]
To: 'Tomcat Users List' users@tomcat.apache.org;

'Martin Gainty'

[EMAIL PROTECTED]
Sent: Saturday, December 10, 2005 2:33 PM
Subject: RE: Problem 

Re: URL rewriting best practice?

2005-12-15 Thread Bruno Georges
Kristian

you can write a servlet filter for this. It will be easier that way.
mod_rewrite is one way of doing it , but if you are going to target only
your JSP I would recommend to go to the servlet filter way.
You could also use valves, but you can do almost the same things with
servlet filter.

Example of  class is:

public final class URLRewriteFilter implements Filter {

  // you have to implement this method
  public void doFilter(ServletRequest request, ServletResponse
response, FilterChain chain)
throws IOException, ServletException {

// you code goes here
chain.doFilter(request, response);
}
}

If you need help implementing it, just let me know.

With Best Regards

Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   Kristian Rink   |
| |   [EMAIL PROTECTED]|
| |   428.net|
| |   |
| |   15.12.05 11:37  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
--|
  | 
 |
  |To:  Tomcat Users List users@tomcat.apache.org 
 |
  |cc:  
 |
  |Subject: URL rewiting best practise? 
 |
  | 
 |
  |Distribute:  
 |
  |Personal?   |---|
 |
  || [ ] x |
 |
  ||---|
 |
  | 
 |
  
--|





Hi all;

currently I'm into deploying a small jsp/servlet based application which
more or less utilizes a dispatcher servlet to provide .jsp-based
content. For that, I'm into using URLs like

http://foobar:8080/Site?path=home/users

to, in example, show the site section home - users. For now, I'd like
to do URL rewriting in order to provide users with an URL like

http://foobar:8080/home/users or maybe
http://foobar:8080/Site/home/users


to see the same content. My initial idea was to use apache, mod_jk and
mod_rewrite to do right this, but don't feel too good about that idea
because sooner or later the site URL will also have to carry around a
session ID and in that I am afraid that URL rewriting will get me into
trouble. So, my question: What is the best way of doing URL rewriting in
such a situation? Does tomcat provide any ways of achieving what I want?

TIA and bye,
Kris

--
Kristian Rink *  http://zimmer428.net * jab: [EMAIL PROTECTED]
icq: 48874445 *  fon: ++49 176 2447 2771

Be yourself the kind of change you want to see in this world. (Gandhi)

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




LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: Multilingual usernames and passwords does not works.

2005-12-15 Thread Seak, Teng-Fong
   If I were you, I'd use Tomcat 5.5.  No, I don't know if your i18n 
problem is related to version, but using the latest version could avoid 
other not so obvious problems.


   As mentioned by other, your encType is wrongly used.  It's for 
MIME-TYPE.  And you don't need to specify acceptCharset is you're using 
one encoding for the whole page.  OTOH, not all browsers support these 
attributes.


   Your problem probably comes from j_security_check.  I've never used 
it, so I'm not sure if it is i18n-aware, or at least utf8-aware.  
You have to know that data are encoded in UTF-8 during the submission to 
server.  If the server (strictly speaking, the programme specified by 
the action attribute) thinks it's ISO-8859-1, your data are screwed.


   So, check the doc on j_security_check to see how to make it read 
data as UTF-8.


   HTH

Manish Dalakoti wrote:


Hi,

I'm using form-based authentication.
Although i'm able to create multilingual user names and passwords, 
tomcat is not able to authenticate using the same.
I'm not able to make out if this is a problem related to 
j_security_check or what, because the username and password which my 
Authenticator receives from

j_security_check is all garbage.

*At JSP level, in my login.jsp page i'm using  :*
**
  /%@ page errorPage=/jspError.jsp pageEncoding=UTF-8 
contentType=text/html; charset=UTF-8 %

.
.
.
  form name=login method=post action=j_security_check 
acceptCharset=UTF-8 encType=UTF-8 onKeyPress=return 
submitOnEnter(event, login)

.
./
  * *,  *to make sure UTF-8 support is there, but to no avail. 
Otherwise, the rest of my application is fully internationalized and 
localized too in few languages.*


Thanx,
Manish




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



Re: URL rewriting best practise?

2005-12-15 Thread Bruno Georges
Kristian

I forgot to ask if you want the user to see the new URL or not, is this
important in your application? If this is the case then you will have to
consider looking into the HTTP response codes.
Also, do you always plan to have apache in front? If you use IE, you will
have to write an ISAPI Filter to duplicate the mod_rewrite functioanlity
[you can buy one too] as it doesn't come with IIS.

Hope this helps.

Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   Kristian Rink   |
| |   [EMAIL PROTECTED]|
| |   428.net|
| |   |
| |   15.12.05 11:37  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
--|
  | 
 |
  |To:  Tomcat Users List users@tomcat.apache.org 
 |
  |cc:  
 |
  |Subject: URL rewiting best practise? 
 |
  | 
 |
  |Distribute:  
 |
  |Personal?   |---|
 |
  || [ ] x |
 |
  ||---|
 |
  | 
 |
  
--|





Hi all;

currently I'm into deploying a small jsp/servlet based application which
more or less utilizes a dispatcher servlet to provide .jsp-based
content. For that, I'm into using URLs like

http://foobar:8080/Site?path=home/users

to, in example, show the site section home - users. For now, I'd like
to do URL rewriting in order to provide users with an URL like

http://foobar:8080/home/users or maybe
http://foobar:8080/Site/home/users


to see the same content. My initial idea was to use apache, mod_jk and
mod_rewrite to do right this, but don't feel too good about that idea
because sooner or later the site URL will also have to carry around a
session ID and in that I am afraid that URL rewriting will get me into
trouble. So, my question: What is the best way of doing URL rewriting in
such a situation? Does tomcat provide any ways of achieving what I want?

TIA and bye,
Kris

--
Kristian Rink *  http://zimmer428.net * jab: [EMAIL PROTECTED]
icq: 48874445 *  fon: ++49 176 2447 2771

Be yourself the kind of change you want to see in this world. (Gandhi)

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




LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



implementation difference between Cookie and HttpSession

2005-12-15 Thread marju jalloh
 I want to  track the last time a user  visited my website and publish it.I 
don`t know the implementation  difference between java Cookies and HttpSession 
or is it possible to  use both.
  
  Byfour
  


-
Yahoo! Shopping
 Find Great Deals on Holiday Gifts at Yahoo! Shopping 

Re: implementation difference between Cookie and HttpSession

2005-12-15 Thread Bruno Georges
HttpSession expires after the timeout period you set in your servlet
conatiner. for example if a user is shopping and leave its PC to go for a
walk , when he comes back the session will likely expires.
A cookie on the other end can be set to expire later or never, or always.
when you track user access, you will have to differentiate both, depends on
what you want to achieve.

You can set a specific cookie for the trackingn purpose and use apache log
format to log it. then use normal weblog analyser.
Have a look there for more info:
http://webdesign.about.com/cs/loganalysistools/a/aaloganalysis.htm

You may have to do log it to a database if you want to cross reference with
other things and have nicer reports and better querying facility.
For this you can use a Servlet Filter.



Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   marju jalloh|
| |   [EMAIL PROTECTED]|
| |   oo.com |
| |   |
| |   15.12.05 14:28  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
--|
  | 
 |
  |To:  Tomcat Users List users@tomcat.apache.org 
 |
  |cc:  
 |
  |Subject: implementation difference between Cookie and HttpSession
 |
  | 
 |
  |Distribute:  
 |
  |Personal?   |---|
 |
  || [ ] x |
 |
  ||---|
 |
  | 
 |
  
--|




 I want to  track the last time a user  visited my website and publish it.I
don`t know the implementation  difference between java Cookies and
HttpSession or is it possible to  use both.

  Byfour



-
Yahoo! Shopping
 Find Great Deals on Holiday Gifts at Yahoo! Shopping



LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: URL rewriting best practice?

2005-12-15 Thread Bruno Georges
Yes it will work that way. The servlet filter process the request it gets
from apache the same way it will without it. Also with mod_jk or mod_proxy
Make sure you don't already have some mod_rewrite rules set in your apache,
they will take precedance over the filter [if applicable of course].


Bruno Georges

Glencore International AG
Tel. +41 41 709 3204
Fax +41 41 709 3000


|-+---
| |   Kristian Rink   |
| |   [EMAIL PROTECTED]|
| |   428.net|
| |   |
| |   15.12.05 14:41  |
| |   Please respond  |
| |   to Tomcat Users|
| |   List   |
| |   |
|-+---
  
--|
  | 
 |
  |To:  Tomcat Users List users@tomcat.apache.org 
 |
  |cc:  
 |
  |Subject: Re: URL rewriting best practise?
 |
  | 
 |
  |Distribute:  
 |
  |Personal?   |---|
 |
  || [ ] x |
 |
  ||---|
 |
  | 
 |
  
--|





Hi Bruno;

Bruno Georges schrieb:
 I forgot to ask if you want the user to see the new URL or not, is this
 important in your application? If this is the case then you will have to

No, that's not really important. Just want to expose the site using a
more human-readable URL format than one filled up with ='s and
's... ;)


 Also, do you always plan to have apache in front? If you use IE, you will
 have to write an ISAPI Filter to duplicate the mod_rewrite functioanlity
 [you can buy one too] as it doesn't come with IIS.

There'll probably be an apache in front because it's already there being
reverse-proxy for the web client applications of our document management
system, and I'm about to place the tomcat right behind this apache, as
well. Should work this way, shouldn't it?

Cheers,
Kris

--
Kristian Rink *  http://zimmer428.net * jab: [EMAIL PROTECTED]
icq: 48874445 *  fon: ++49 176 2447 2771

Be yourself the kind of change you want to see in this world. (Gandhi)

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




LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly
confidential and they may not be used or disclosed by someone who is not a
named recipient.
If you have received this email in error please notify the sender by replying
to this email inserting the word misdirected as the message and delete this
e-mail from your system.


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



Re: URL rewriting best practice?

2005-12-15 Thread Hassan Schroeder
Bruno Georges wrote:

 you can write a servlet filter for this. 

... or use an existing one:  http://tuckey.org/urlrewrite/

FWIW!
-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



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



Re: URL rewiting best practise?

2005-12-15 Thread Chris Birch

Hi Kris,

I found that I couldn't use mod_rewrite infront of mod_jk on apache.  
It seems that mod_jk handles matching requests before mod_rewrite, 
therefore a transformed request never gets the chance to be processed 
by mod_jk again and a 404 is always thrown.


To get around this, I wrote my own (very simple) web application filter 
which you can download and use as you wish:


http://www.axonbirch.com/java/SearchEngineFriendlyFilter.java

This means that the java application does the rewriting.  It's not 
terribly efficient, I'm sure many improvements could be made and if you 
have some feedback or improvements to make, they would be gratefully 
received.


Kind Regards,
Chris.

On 15 Dec 2005, at 10:37, Kristian Rink wrote:



Hi all;

currently I'm into deploying a small jsp/servlet based application 
which

more or less utilizes a dispatcher servlet to provide .jsp-based
content. For that, I'm into using URLs like

http://foobar:8080/Site?path=home/users

to, in example, show the site section home - users. For now, I'd 
like

to do URL rewriting in order to provide users with an URL like

http://foobar:8080/home/users or maybe
http://foobar:8080/Site/home/users


to see the same content. My initial idea was to use apache, mod_jk and
mod_rewrite to do right this, but don't feel too good about that idea
because sooner or later the site URL will also have to carry around a
session ID and in that I am afraid that URL rewriting will get me into
trouble. So, my question: What is the best way of doing URL rewriting 
in
such a situation? Does tomcat provide any ways of achieving what I 
want?


TIA and bye,
Kris

--
Kristian Rink *  http://zimmer428.net * jab: [EMAIL PROTECTED]
icq: 48874445 *  fon: ++49 176 2447 2771

Be yourself the kind of change you want to see in this world. 
(Gandhi)


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



rc file for tomcat startup under FreeBSD?

2005-12-15 Thread Christoph Kukulies


How do I usually start tomcat on FreeBSD (6.0)?
Do I put startup.sh in /usr/local/etc/rc.d?
--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org

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



ContextManager in Tomcat 5.5?

2005-12-15 Thread Michael Neel
I'm trying to figure out ways of running Tomcat behind IIS, and area
where documentation is very lacking :/

I found the IISConfig directive here at:
http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/jk/config/IISConfig.html

it says:

Generates automatic IIS isapi_redirect configurations based on the
Tomcat server.xml settings and the war contexts initialized during
startup.

This config interceptor is enabled by inserting an IISConfig element
in the ContextManager tag body inside the server.xml file like so:

  ContextManager ... 
   ...
   IISConfig options /
   ...
  /ContextManager 


...but I have no ContextManager tag in my server.xml and searching the
list and tomcat docs hasn't pointed to what happened to it.  Where do
I need to place the IISConfig tag?

Thanks,
Mike

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



RE: Re: starting and stopping Tomcat from Java code

2005-12-15 Thread Oleg Lebedev
Andy, thanks for the hint. It seems like the right solution for our
problem.

We had to get this working by today, so we ended up extending Embedded
class and provided shutdown hooks just like Catalina class does, but
without requiring server.xml configuration. Using the new class we can
start a tomcat instance and shutdown a remote tomcat instance by sending
a shutdown command to a certain host and port.
Thanks everybody for your help.

Regards.

Oleg

-Original Message-
From: andy gordon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 15, 2005 5:16 AM
To: Tomcat Users List
Subject: RE: Re: starting and stopping Tomcat from Java code

Oleg, 
   
  Have you looked into managing the tomcat instance with MBeans. All you
need to do is establish a connection to the other JVM with an
MBeanServerConnection instance. This does require a port to be exposed
from Tomcat for remote monitoring. But once you have the connection you
can do what you want with the remote Tomcat. Just look at how JConsole
monitors/manages remote JVM applications for an example.
   
  HTH 
   
  - andy

Oleg Lebedev [EMAIL PROTECTED] wrote:
  Yes, that would work if I had a handle to the embedded instance. The
thing is that embedded tomcat is running in a separate VM and I need to
be able to shut it down. I don't really need to use Embedded class if
only I could get Bootstrap or Catalina classes to work without having to
have the whole tomcat directory on disk.


-Original Message-
From: news on behalf of Bill Barker
Sent: Wed 12/14/2005 8:14 PM
To: users@tomcat.apache.org
Subject: Re: starting and stopping Tomcat from Java code

Urm, something like:
tomcat.stop();

where 'tomcat' is your Embedded instance?

Oleg Lebedev wrote in message
news:[EMAIL PROTECTED]
Hello,

I am trying to configure, start and then shutdown Tomcat from my Java
class. I am planning to have all the jars required by Tomcat on the
classpath and I would like to be able to specify the port number and
host using method calls. I would prefer not to ship Tomcat configuration
files, such as server.xml with my application and be able to configure
Tomcat from code before starting it.

I tried using Boostrap class, but it requires catalina.home and
catalina.base, which I would like to avoid using.
I tried using Embed class and it worked, but I still had to set
catalina.home so that it can find tomcat-users.xml. But, this is
acceptable.

I have not been able to shut Tomcat down from my Java code. Note that I
won't have a handle to the Catalina instance started, because Tomcat
needs to be started before my application starts in a separate VM, and
then killed when my application exists.

I would appreciate any feedback on how to do this or what Tomcat classes
I should take a look at.

Thanks.

Oleg





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


--
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.
If you have questions about this email, please contact the IT Help Desk.

Mail



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

  



-
Yahoo! Shopping
 Find Great Deals on Holiday Gifts at Yahoo! Shopping
--
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.
If you have questions about this email, please contact the IT Help Desk.

Mail


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



Re: rc file for tomcat startup under FreeBSD?

2005-12-15 Thread Martin Gainty

Good Morning Christoph-

You will need the JDK port for FreeBSD take a look at
http://www.freebsd.org/java/dists/15.html
Once the JRE/JDK is 'fully operational'

It appears that you will need to build tomcat on your freebsd box with GNU 
make (gmake)

http://tomcat.apache.org/tomcat-5.5-doc/setup.html
Anyone else?
Martin-
- Original Message - 
From: Christoph Kukulies [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Thursday, December 15, 2005 11:05 AM
Subject: rc file for tomcat startup under FreeBSD?





How do I usually start tomcat on FreeBSD (6.0)?
Do I put startup.sh in /usr/local/etc/rc.d?
--
Chris Christoph P. U. Kukulies kuku_at_kukulies.org

-
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: rc file for tomcat startup under FreeBSD?

2005-12-15 Thread Caldarale, Charles R
 From: Martin Gainty [mailto:[EMAIL PROTECTED] 
 Subject: Re: rc file for tomcat startup under FreeBSD?
 
 It appears that you will need to build tomcat on your freebsd 
 box with GNU make (gmake)
 http://tomcat.apache.org/tomcat-5.5-doc/setup.html

Clarification:  you shouldn't need to build Tomcat proper (it's pure
Java), just jsvc and, optionally, APR.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with Context configuration!

2005-12-15 Thread John Maine
Hello Folks:

I am currently upgrading from Tomcat 5.0.28 to 5.5.12.

I have built my application using Jetspeed 1.5 and I am having problems
with Context configuration.

On Tomcat 5.0.28, the servlet mappings work fine! For e.g.,
The URL http://localhost:8080 would automatically resolve to the
jetspeed servlet.

After migration to 5.5.12, I am not able to do the same. But, If I
alter the URL to http://localhost:8080/jetspeed, it works fine!

I know something is screwed up because of some setting and I would
appreciate a fresh pair of eyes helping me on this!

I haven't altered anything related to Tomcat 5.5.12. I downloaded it
and unzipped it.
Exploded my WAR in ${CATALINA_HOME}/webapps/jetspeed. Copied the
jetspeed.xml configuration file to
${CATALINA_HOME}/conf/Catalina/localhost/

Jetspeed.xml

snip

context path=/ docBase=jetspeed debug=0 reloadable=true
crossContext=true
...
...
/context

/snip

Relevant configuration from my application's web.xml is:

snip

.
   servlet-mapping
   servlet-name
  jetspeed
   /servlet-name
   url-pattern
 /portal/*
   /url-pattern
/servlet-mapping
servlet-mapping
   servlet-name
  jetspeed
   /servlet-name
   url-pattern
 /jetspeed/*
   /url-pattern
/servlet-mapping

.

/snip

The web.xml under ${CATALINA_HOME}/conf has the following servlet
mapping:

snip
...

   servlet-mapping
servlet-namedefault/servlet-name
url-pattern//url-pattern
/servlet-mapping

...

/snip

I also have the manager app which is bundled with Tomcat 5.5.12 and
whose context info does not define the path attribute.

I am not sure if the manager/host-manager app configuration is
interfering with my configuration.
Would appreciate all help in this regard!




 John


[CONFIGURATION] Problem with Context configuration!

2005-12-15 Thread John Maine
Hello Folks:

I am currently upgrading from Tomcat 5.0.28 to 5.5.12.

I have built my application using Jetspeed 1.5 and I am having problems
with Context configuration.

On Tomcat 5.0.28, the servlet mappings work fine! For e.g.,
The URL http://localhost:8080 would automatically resolve to the
jetspeed servlet.

After migration to 5.5.12, I am not able to do the same. But, If I
alter the URL to http://localhost:8080/jetspeed, it works fine!

I know something is screwed up because of some setting and I would
appreciate a fresh pair of eyes helping me on this!


I haven't altered anything related to Tomcat 5.5.12. I downloaded it
and unzipped it.
Exploded my WAR in ${CATALINA_HOME}/webapps/jetspeed. Copied the
jetspeed.xml configuration file to
${CATALINA_HOME}/conf/Catalina/localhost/

Jetspeed.xml

snip

context path=/ docBase=jetspeed debug=0 reloadable=true
crossContext=true
...
...
/context

/snip



Relevant configuration from my application's web.xml is:

snip

.
  servlet-mapping
  servlet-name
 jetspeed
  /servlet-name
  url-pattern
/portal/*
  /url-pattern
   /servlet-mapping
   servlet-mapping
  servlet-name
 jetspeed
  /servlet-name
  url-pattern
/jetspeed/*
  /url-pattern
   /servlet-mapping

.

/snip


The web.xml under ${CATALINA_HOME}/conf has the following servlet
mapping:

snip
...

  servlet-mapping
   servlet-namedefault/servlet-name
   url-pattern//url-pattern
   /servlet-mapping

...

/snip

I also have the manager app which is bundled with Tomcat 5.5.12 and
whose context info does not define the path attribute.

I am not sure if the manager/host-manager app configuration is
interfering with my configuration.


Would appreciate all help in this regard!


Fw: administration applications install instructions

2005-12-15 Thread James T. Studebaker
The admin app now resides in the folder: 
/usr/local/jakarta/jakarta-tomcat-5.5.9/server/webapps/admin.  Homever the 
admin app does not run after I reboot the tomcat server.

Thank you
James T. Studebaker

- Original Message - 
From: James T. Studebaker [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, December 14, 2005 8:17 PM
Subject: Re: administration applications install instructions


I use Fedora Linux core 2 os.
I used the tar command with jakarta-tomcat-5.5.9-admin.tar file both in the
home directory for tomcat (tomcat install directory).
The verbose output listed all the files in the
jakarta-tomcat-5.5.9-admin.tar file.

I just discovered the problem:
I untared the file in the jakarta-tomcat-5.5.9 directory.  The untar created
a new jakarta-tomcat-5.5.9 directory within the jakarta-tomcat-5.5.9
directory I was currently in.  The untar created a server directory there
and untared the admin there.  In other words my directory structure where
the admin app was placed was
../jakarta/jakarta-tomcat-5.5.9/jakarta-tomcat-5.5.9/server/webapps/admin.
Obviously I should have placed the jakarta-tomcat-5.5.9-admin.tar file in
the ../jakarta directory instead of the ../jakarta/jakarta-tomcat-5.5.9
directory and untared it there.  Light dawns over marble head.  Thanks for
your help.  I will redo this and let you know how it went.

Thank you
James T. Studebaker

- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, December 14, 2005 2:53 PM
Subject: RE: administration applications install instructions


 From: James T. Studebaker [mailto:[EMAIL PROTECTED]
 Subject: Re: administration applications install instructions

 Used command tar -xvf jakarta-tomcat-5.5.9-admin.tar
 to untar the archive file. No files were created on the
 server/webapps directory.  Admin app did not install.

Did you see this note in the README?

NOTE: The tar files in this distribution use GNU tar extensions, and
must be untarred with a GNU compatible version of tar. The version of
tar on Solaris and Mac OS X will not work with these files.

What did the verbose mode display?  What directory were you in when you
did the tar command?  You should be positioned at the Tomcat install
directory.

 - 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 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: administration applications install instructions

2005-12-15 Thread Caldarale, Charles R
 From: James T. Studebaker [mailto:[EMAIL PROTECTED] 
 Subject: Fw: administration applications install instructions
 
 Homever the admin app does not run after I reboot the 
 tomcat server.

When you say does not run, what specific error message or status do
you mean?

Is admin.xml 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Antwort: RE: Tomcat JDBC connection with Mysql

2005-12-15 Thread ALEX HYDE
Hi All,
  
  I have been developing a system using Tomcat on my Windows box at home.  I am 
now ready to deploy it to a server. I was thinking of using Fedora  Core 
because it is cheaper and I heard it has a fiarly good reputation.  Could 
anyone pass on any experiences of running Tomcat 4 on Linux or  even Fedora? I 
am starting with a clean box and will need to add java  and tomcat. COUld 
anyone point me in the dircetion of nay good  tutorials on this?
  
  Thanks all

Jan Behrens [EMAIL PROTECTED] wrote:  look here -- 
http://dev.mysql.com/doc/refman/4.1/en/connection-access.html

rtfm ;)

marju jalloh  schrieb am 12.12.2005 13:33:54:

 But how to Grant permission to an ip host
 
 
 Karthik  wrote:  hI
 
 tHE PROBLEMS IS PRESENT WITHIN THE mysql SERVER,U NEED TO GIVE 
PERMISSION TO
 THE ip HOST U ARE USING
 
 TRY USING THE GRANT PERMISSION AND USE THE SAME,BUT U HAVE TO FLUSH OUT 
ALL
 acl PREVELIAGES AVALIABEL IN MYSQL DB
 
USE A FRONT END LIKE MYSQL FRONT TO DO THIS
 
 
 
 HOPE THIS HELPS.
 
 
 
 
 WITH REGARS
 kARTHIK
 
 
 
 -Original Message-
 From: marju jalloh [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 12, 2005 4:53 PM
 To: Tomcat Users List
 Subject: Tomcat JDBC connection with Mysql
 
 
  I can`connect to my database with via  servlet. The connection works 
well
 in PHP but not with servlet. I have  googled but no solution.
 
   this is my error page I got
 
   java.sql.SQLException: Data source rejected establishment of 
connection,
 message from server: Host 'localhost.localdomain' is  not allowed to
 connect to this MySQL server
   at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:650)
   at com.mysql.jdbc.Connection.createNewIO(Connection.java:1808)
   at com.mysql.jdbc.Connection.(Connection.java:452)
   at
 
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411)
   at java.sql.DriverManager.getConnection(DriverManager.java:525)
   at java.sql.DriverManager.getConnection(DriverManager.java:171)
   at Liep.doGet(Liep.java:30)
   ...
   ...
   Can anyone help or give me a pointer to a website
 
   Byfour
 
 
 
 -
 Yahoo! Shopping
  Find Great Deals on Holiday Gifts at Yahoo! Shopping
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 Yahoo! Shopping
  Find Great Deals on Holiday Gifts at Yahoo! Shopping 

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





-
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre.

RE: ContextManager in Tomcat 5.5?

2005-12-15 Thread JT Neville
In summary:

1) Edit the isapi_reg file (part of Tomcat or make your own) to and replace
$tomcat_home with the local path (ie.
d:\test\t4\webapps\tomCat_webApp_subfolder...)
2) Run that reg file.
3) Create a virtual folder in your root website named
tomCat_webApp_subfolder, point it to the tomcat webapp subfolder. Default
security.
4) Create a virtual folder named jakarta and point it to the bin directory
with the isapi_redirect dll file in it. Give this item execute rights.
5) For 2003 only, add a web service called 'jakarta', set it to allow and
point it to the isapi dll above.
6) For 2003 only, add the mime types (.class, .properties, .tmp) to the
virtual or web folder.
7) Restart the IIS admin service.

As a side note (resolved last week here) for additional servlets under IIS:

These are two files located in (or somewhere else if you changed the
isapi_redirect reg file)

\$TomcatRoot$\WEB-INF\config\jk\iis\

uriworkermap.properties
workers.properties

In the uriworkermap.properties file you add your custom servlets.

In example (/virtualRoot/pathToServlet/servletName/=workerThread):

/webapp_subfolder/servlets/yourCustomServlet=$(default.worker)

or (for a more generic approach)

/webapp_subfolder/servlets/*=main

If you were hosting multiple virtual containers all using the same servlets
or working in the root containers you would create and edit these two files
in the $tomcatHome$\conf\ folder.

This is above and beyond installing the servlet itself in Tomcat, copying
any files over and editing the web.xml file.

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 15, 2005 9:11 AM
To: Tomcat Users List
Subject: Re: ContextManager in Tomcat 5.5?

Good Morning Michael

have you seen IISConfig doc?
http://piglet.uccs.edu/~cs526/jwsdp/docs/tomcat/config/jk.html

HTH,
M-

- Original Message - 
From: Michael Neel [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, December 15, 2005 11:30 AM
Subject: ContextManager in Tomcat 5.5?


I'm trying to figure out ways of running Tomcat behind IIS, and area
where documentation is very lacking :/

I found the IISConfig directive here at:
http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/jk/conf
ig/IISConfig.html

it says:

Generates automatic IIS isapi_redirect configurations based on the
Tomcat server.xml settings and the war contexts initialized during
startup.

This config interceptor is enabled by inserting an IISConfig element
in the ContextManager tag body inside the server.xml file like so:

  ContextManager ... 
   ...
   IISConfig options /
   ...
  /ContextManager 


..but I have no ContextManager tag in my server.xml and searching the
list and tomcat docs hasn't pointed to what happened to it.  Where do
I need to place the IISConfig tag?

Thanks,
Mike

-
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: Antwort: RE: Tomcat JDBC connection with Mysql

2005-12-15 Thread Richard Mixon
Jan,

Tomcat runs just fine on Linux. Use the most recent version (Fedora Core 4
is fine, or OpenSuse 10, or ...). These should come with a fairly recent
version of Tomcat (5.x or 5.5.x) or the packages should be available.

I prefer to install Tomcat myself on Linux, from a downloaded binary (tar.gz
file) as some of the Linux distributions break things up in various ways,
that I find a bit confusing (though I can also usually see the logic of it
too).

However, why in the world would you be developing with Tomcat 4 - it is two
major versions behind. If you had an existing production version to support,
that would be more understandable.  But you are starting out clean it seems
- there are many security and performance fixes are in Tomcat 5.5.

HTH - Richard


-Original Message-
From: ALEX HYDE [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 15, 2005 10:46 AM
To: Tomcat Users List
Subject: Re: Antwort: RE: Tomcat JDBC connection with Mysql

Hi All,
  
  I have been developing a system using Tomcat on my Windows box at home.  I
am now ready to deploy it to a server. I was thinking of using Fedora  Core
because it is cheaper and I heard it has a fiarly good reputation.  Could
anyone pass on any experiences of running Tomcat 4 on Linux or  even Fedora?
I am starting with a clean box and will need to add java  and tomcat. COUld
anyone point me in the dircetion of nay good  tutorials on this?
  
  Thanks all

Jan Behrens [EMAIL PROTECTED] wrote:  look here --
http://dev.mysql.com/doc/refman/4.1/en/connection-access.html

rtfm ;)

marju jalloh  schrieb am 12.12.2005 13:33:54:

 But how to Grant permission to an ip host
 
 
 Karthik  wrote:  hI
 
 tHE PROBLEMS IS PRESENT WITHIN THE mysql SERVER,U NEED TO GIVE
PERMISSION TO
 THE ip HOST U ARE USING
 
 TRY USING THE GRANT PERMISSION AND USE THE SAME,BUT U HAVE TO FLUSH 
 OUT
ALL
 acl PREVELIAGES AVALIABEL IN MYSQL DB
 
USE A FRONT END LIKE MYSQL FRONT TO DO THIS
 
 
 
 HOPE THIS HELPS.
 
 
 
 
 WITH REGARS
 kARTHIK
 
 
 
 -Original Message-
 From: marju jalloh [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 12, 2005 4:53 PM
 To: Tomcat Users List
 Subject: Tomcat JDBC connection with Mysql
 
 
  I can`connect to my database with via  servlet. The connection works
well
 in PHP but not with servlet. I have  googled but no solution.
 
   this is my error page I got
 
   java.sql.SQLException: Data source rejected establishment of
connection,
 message from server: Host 'localhost.localdomain' is  not allowed to 
 connect to this MySQL server
   at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:650)
   at com.mysql.jdbc.Connection.createNewIO(Connection.java:1808)
   at com.mysql.jdbc.Connection.(Connection.java:452)
   at
 
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411)
   at java.sql.DriverManager.getConnection(DriverManager.java:525)
   at java.sql.DriverManager.getConnection(DriverManager.java:171)
   at Liep.doGet(Liep.java:30)
   ...
   ...
   Can anyone help or give me a pointer to a website
 
   Byfour
 
 
 
 -
 Yahoo! Shopping
  Find Great Deals on Holiday Gifts at Yahoo! Shopping
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 Yahoo! Shopping
  Find Great Deals on Holiday Gifts at Yahoo! Shopping

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





-
To help you stay safe and secure online, we've developed the all new Yahoo!
Security Centre.


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



RE: Antwort: RE: Tomcat JDBC connection with Mysql

2005-12-15 Thread ALEX HYDE
Thanks for that Richard,
  
  I have to use fedora core 3 but I can use Tomcat 5 and probably should! 
Cheers for the heads up.
  
  Alex

Richard Mixon [EMAIL PROTECTED] wrote:  Jan,

Tomcat runs just fine on Linux. Use the most recent version (Fedora Core 4
is fine, or OpenSuse 10, or ...). These should come with a fairly recent
version of Tomcat (5.x or 5.5.x) or the packages should be available.

I prefer to install Tomcat myself on Linux, from a downloaded binary (tar.gz
file) as some of the Linux distributions break things up in various ways,
that I find a bit confusing (though I can also usually see the logic of it
too).

However, why in the world would you be developing with Tomcat 4 - it is two
major versions behind. If you had an existing production version to support,
that would be more understandable.  But you are starting out clean it seems
- there are many security and performance fixes are in Tomcat 5.5.

HTH - Richard


-Original Message-
From: ALEX HYDE [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 15, 2005 10:46 AM
To: Tomcat Users List
Subject: Re: Antwort: RE: Tomcat JDBC connection with Mysql

Hi All,
  
  I have been developing a system using Tomcat on my Windows box at home.  I
am now ready to deploy it to a server. I was thinking of using Fedora  Core
because it is cheaper and I heard it has a fiarly good reputation.  Could
anyone pass on any experiences of running Tomcat 4 on Linux or  even Fedora?
I am starting with a clean box and will need to add java  and tomcat. COUld
anyone point me in the dircetion of nay good  tutorials on this?
  
  Thanks all

Jan Behrens  wrote:  look here --
http://dev.mysql.com/doc/refman/4.1/en/connection-access.html

rtfm ;)

marju jalloh  schrieb am 12.12.2005 13:33:54:

 But how to Grant permission to an ip host
 
 
 Karthik  wrote:  hI
 
 tHE PROBLEMS IS PRESENT WITHIN THE mysql SERVER,U NEED TO GIVE
PERMISSION TO
 THE ip HOST U ARE USING
 
 TRY USING THE GRANT PERMISSION AND USE THE SAME,BUT U HAVE TO FLUSH 
 OUT
ALL
 acl PREVELIAGES AVALIABEL IN MYSQL DB
 
USE A FRONT END LIKE MYSQL FRONT TO DO THIS
 
 
 
 HOPE THIS HELPS.
 
 
 
 
 WITH REGARS
 kARTHIK
 
 
 
 -Original Message-
 From: marju jalloh [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 12, 2005 4:53 PM
 To: Tomcat Users List
 Subject: Tomcat JDBC connection with Mysql
 
 
  I can`connect to my database with via  servlet. The connection works
well
 in PHP but not with servlet. I have  googled but no solution.
 
   this is my error page I got
 
   java.sql.SQLException: Data source rejected establishment of
connection,
 message from server: Host 'localhost.localdomain' is  not allowed to 
 connect to this MySQL server
   at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:650)
   at com.mysql.jdbc.Connection.createNewIO(Connection.java:1808)
   at com.mysql.jdbc.Connection.(Connection.java:452)
   at
 
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411)
   at java.sql.DriverManager.getConnection(DriverManager.java:525)
   at java.sql.DriverManager.getConnection(DriverManager.java:171)
   at Liep.doGet(Liep.java:30)
   ...
   ...
   Can anyone help or give me a pointer to a website
 
   Byfour
 
 
 
 -
 Yahoo! Shopping
  Find Great Deals on Holiday Gifts at Yahoo! Shopping
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 Yahoo! Shopping
  Find Great Deals on Holiday Gifts at Yahoo! Shopping

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




  
-
To help you stay safe and secure online, we've developed the all new Yahoo!
Security Centre.


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





-
How much free photo storage do you get? Store your holiday snaps for FREE with 
Yahoo! Photos. Get Yahoo! Photos

Re: ContextManager in Tomcat 5.5?

2005-12-15 Thread Michael Neel
I'm sorry, I guess I wasn't clear... I already have IIS connecting to
Tomcat; I'm trying now to auto config IIS (uriworkermap.properties)
from tomcat.

Mike

On 12/15/05, JT Neville [EMAIL PROTECTED] wrote:
 In summary:

 1) Edit the isapi_reg file (part of Tomcat or make your own) to and replace
 $tomcat_home with the local path (ie.
 d:\test\t4\webapps\tomCat_webApp_subfolder...)
 2) Run that reg file.
 3) Create a virtual folder in your root website named
 tomCat_webApp_subfolder, point it to the tomcat webapp subfolder. Default
 security.
 4) Create a virtual folder named jakarta and point it to the bin directory
 with the isapi_redirect dll file in it. Give this item execute rights.
 5) For 2003 only, add a web service called 'jakarta', set it to allow and
 point it to the isapi dll above.
 6) For 2003 only, add the mime types (.class, .properties, .tmp) to the
 virtual or web folder.
 7) Restart the IIS admin service.

 As a side note (resolved last week here) for additional servlets under IIS:

 These are two files located in (or somewhere else if you changed the
 isapi_redirect reg file)

 \$TomcatRoot$\WEB-INF\config\jk\iis\

 uriworkermap.properties
 workers.properties

 In the uriworkermap.properties file you add your custom servlets.

 In example (/virtualRoot/pathToServlet/servletName/=workerThread):

 /webapp_subfolder/servlets/yourCustomServlet=$(default.worker)

 or (for a more generic approach)

 /webapp_subfolder/servlets/*=main

 If you were hosting multiple virtual containers all using the same servlets
 or working in the root containers you would create and edit these two files
 in the $tomcatHome$\conf\ folder.

 This is above and beyond installing the servlet itself in Tomcat, copying
 any files over and editing the web.xml file.

 -Original Message-
 From: Martin Gainty [mailto:[EMAIL PROTECTED]
 Sent: Thursday, December 15, 2005 9:11 AM
 To: Tomcat Users List
 Subject: Re: ContextManager in Tomcat 5.5?

 Good Morning Michael

 have you seen IISConfig doc?
 http://piglet.uccs.edu/~cs526/jwsdp/docs/tomcat/config/jk.html

 HTH,
 M-

 - Original Message -
 From: Michael Neel [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Thursday, December 15, 2005 11:30 AM
 Subject: ContextManager in Tomcat 5.5?


 I'm trying to figure out ways of running Tomcat behind IIS, and area
 where documentation is very lacking :/

 I found the IISConfig directive here at:
 http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/jk/conf
 ig/IISConfig.html

 it says:

 Generates automatic IIS isapi_redirect configurations based on the
 Tomcat server.xml settings and the war contexts initialized during
 startup.

 This config interceptor is enabled by inserting an IISConfig element
 in the ContextManager tag body inside the server.xml file like so:

   ContextManager ... 
...
IISConfig options /
...
   /ContextManager 


 ..but I have no ContextManager tag in my server.xml and searching the
 list and tomcat docs hasn't pointed to what happened to it.  Where do
 I need to place the IISConfig tag?

 Thanks,
 Mike

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



Tomcat 5.5.12: Stopping webapp doesn't seem to kill everything?

2005-12-15 Thread Kevin Roll
I'm using Tomcat 5.5.12 on a Linux box. My web application uses a  
third-party library which opens up a port to listen for incoming  
connections. What I am confused about is that even after I shut down  
the web application (via the Stop link on the manager application)  
the library appears to still be active and the port is held open.  
Executing 'lsof -i' shows a whole bunch of threads still listening on  
the port. I am trying to restart my application after it gets into a  
bad state, but it doesn't appear to be completely terminating. Thanks  
in advance for any insight.



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



Re: ContextManager in Tomcat 5.5?

2005-12-15 Thread Michael Neel
Yes, I've seen those but they are Tomcat 4 docs.  Tomcat 5 does have
the IISConfig still, but it has been moved to
org.apache.jk.config.IISConfig and the javadocs talk of a IISConfig
tag that I can't find in Tomcat 5.5 Docs.  Are the javadocs wrong, and
this class should be configured as a Listener?  The current version of
the IIS doc (http://tomcat.apache.org/connectors-doc/howto/iis.html)
makes no mention of IISConfig, so I'm trying to figure out what the
changes were beyond moving the class.

Mike


On 12/15/05, Martin Gainty [EMAIL PROTECTED] wrote:
 Good Morning Michael

 have you seen IISConfig doc?
 http://piglet.uccs.edu/~cs526/jwsdp/docs/tomcat/config/jk.html

 HTH,
 M-

 - Original Message -
 From: Michael Neel [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Thursday, December 15, 2005 11:30 AM
 Subject: ContextManager in Tomcat 5.5?


 I'm trying to figure out ways of running Tomcat behind IIS, and area
 where documentation is very lacking :/

 I found the IISConfig directive here at:
 http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/jk/config/IISConfig.html

 it says:

 Generates automatic IIS isapi_redirect configurations based on the
 Tomcat server.xml settings and the war contexts initialized during
 startup.

 This config interceptor is enabled by inserting an IISConfig element
 in the ContextManager tag body inside the server.xml file like so:

   ContextManager ... 
...
IISConfig options /
...
   /ContextManager 


 ..but I have no ContextManager tag in my server.xml and searching the
 list and tomcat docs hasn't pointed to what happened to it.  Where do
 I need to place the IISConfig tag?

 Thanks,
 Mike

 -
 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: administration applications install instructions

2005-12-15 Thread James T. Studebaker
When you say does not run, what specific error message or status do
you mean?
 I get a web page saying:   Tomcat's administration web application is no 
 longer installed by default.
Download and install the 
admin package to use it.

Is admin.xml in conf/Catalina/localhost?
 Yes it is.



Thank you
James T. Studebaker

- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, December 15, 2005 12:21 PM
Subject: RE: administration applications install instructions


 From: James T. Studebaker [mailto:[EMAIL PROTECTED]
 Subject: Fw: administration applications install instructions

 Homever the admin app does not run after I reboot the
 tomcat server.

When you say does not run, what specific error message or status do
you mean?
 I get a web page saying:   Tomcat's administration web application is no 
 longer installed by default.
Download and install the 
admin package to use it.

Is admin.xml in conf/Catalina/localhost?
 Yes it is.

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



Submit, refresh frames problem.

2005-12-15 Thread Darek Czarkowski
Hello,

Sometimes when a requested web page has two or more frames, loading
source into the frames may fail. It has happened to me couple times, not
every time. I know that there is a possible solution, does anyone know
how to solve this issue?
Server is running tomcat 4.27, apache 2 mod_jk 1.2.14.
This is related to the fact that single request in fact includes
multiple requests.

Darek Cz


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



IIS Tomcat integration question.

2005-12-15 Thread Steven Bell
Silly question I guess, but... How do I map the ROOT and Manager pages 
in the urimapworker.properties files?
I added /ROOT/*=worker
But that didn't work.

Thanks!

This email message and any files transmitted with it contain information
which is confidential and intended only for the addressee(s). If you are
not the intended recipient(s), any usage,  dissemination, disclosure, or
action taken in  reliance on it is prohibited.  The reliability of  this
method of communication cannot be guaranteed.  Email can be intercepted,
corrupted, delayed, incompletely transmitted, virus-laden,  or otherwise
affected during transmission. Reasonable steps have been taken to reduce
the risk of viruses, but we cannot accept liability for damage sustained
as a result of this message. If you have received this message in error,
please immediately delete it and all copies of it and notify the sender.

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



RE: administration applications install instructions

2005-12-15 Thread Caldarale, Charles R
 From: James T. Studebaker [mailto:[EMAIL PROTECTED] 
 Subject: Re: administration applications install instructions
 
 Is admin.xml in conf/Catalina/localhost?
  Yes it is.

Last month, we had somebody mistakenly put index.html from
webapps/ROOT/admin into server/webapps/admin, which caused this same
kind of grief.  The presence of the welcome page somehow takes
precedence over the servlet mapping, resulting in the no longer
installed by default message (that's what that particular .html file
contains).

Would it be possible to start over here?  Can you take a clean system,
install Tomcat and the admin download, and see what happens?  Don't
forget to edit conf/tomcat-users.xml to put in a userid with the role of
admin.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multilingual usernames and passwords does not works.

2005-12-15 Thread Mark Thomas
Manish Dalakoti wrote:
 Thanx Jon for the speedy reply. I tried doing what you suggested, but
 still the problem remains the same.
 I wonder, why do I nedd to supply things like ... accept-charset=UTF-8
 etc. in my login JSP page when all my other JSP pages works well
 without any
 such entry.
 
 Details related to my application and the environment -
 Servlet engine - Tomcat 4.1
 Framework : Struts.

Can you be more precise in your Tomcat version? A number of i18n
issues have been fixed in later versions.

Mark



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



Most recent timestamp value of files in folder in UNIX

2005-12-15 Thread Saha Rabindra N
Hi All,
 Can anyone give me some idea about following ::
I have two source code folders in Unix for a tomcat webapps. I need to pick up 
the most recent timestamp of the files out of those two folders.

I need the most recent timestamp value in form of Date which will be shown in a 
web page as 
Last Update On : timestamp value

Can you tell me how do I do it in Java.

Thanks for help.

Regards,
RNS
 
The information contained in this e-mail may be confidential and is intended 
solely for the use of the named addressee.
Access, copying or re-use of the e-mail or any information contained therein by 
any other person is not authorized.
If you are not the intended recipient please notify us immediately by returning 
the e-mail to the originator.(17b)

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



Re: administration applications install instructions

2005-12-15 Thread James T. Studebaker
Last month, we had somebody mistakenly put index.html from
webapps/ROOT/admin into server/webapps/admin, which caused this same
kind of grief.  The presence of the welcome page somehow takes
precedence over the servlet mapping, resulting in the no longer
installed by default message (that's what that particular .html file
contains).
  webapps/ROOT/admin/index.html does exist on the server.  I have not 
 touched this.  How about I
delete the file index.html from webapps/ROOT/admin/.

Would it be possible to start over here?  Can you take a clean system,
install Tomcat and the admin download, and see what happens?  Don't
forget to edit conf/tomcat-users.xml to put in a userid with the role of
admin.
  I do not have another system to try this on and it would be impossible 
 to rebuild the current
system.

  Here is where I find the admin.xml file:
${catalina.home}/conf/Catalina/localhost/admin.xml

The contents are:
 Context docBase=${catalina.home}/server/webapps/admin 
privileged=true
 antiResourceLocking=false antiJARLocking=false

Thank you
James T. Studebaker

- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, December 15, 2005 3:27 PM
Subject: RE: administration applications install instructions


 From: James T. Studebaker [mailto:[EMAIL PROTECTED]
 Subject: Re: administration applications install instructions

 Is admin.xml in conf/Catalina/localhost?
  Yes it is.

Last month, we had somebody mistakenly put index.html from
webapps/ROOT/admin into server/webapps/admin, which caused this same
kind of grief.  The presence of the welcome page somehow takes
precedence over the servlet mapping, resulting in the no longer
installed by default message (that's what that particular .html file
contains).

Would it be possible to start over here?  Can you take a clean system,
install Tomcat and the admin download, and see what happens?  Don't
forget to edit conf/tomcat-users.xml to put in a userid with the role of
admin.

 - 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 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: administration applications install instructions

2005-12-15 Thread Caldarale, Charles R
 From: James T. Studebaker [mailto:[EMAIL PROTECTED] 
 Subject: Re: administration applications install instructions
 
 webapps/ROOT/admin/index.html does exist on the server.  
 I have not touched this.  How about I delete the file 
 index.html from webapps/ROOT/admin/.

Shouldn't be necessary, but it would eliminate the source of the message
- and replace it with a 404 or directory listing if the real admin app
still can't be found.  Look around to see if that particular .html file
happens to be someplace else as well.

 Here is where I find the admin.xml file:

That looks correct, as do the contents.

You don't have more than one Tomcat running, do you?  Also, clear the
cache in your browser, and make sure you have restarted Tomcat after the
installation of the admin app.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: administration applications install instructions

2005-12-15 Thread James T. Studebaker
Shouldn't be necessary, but it would eliminate the source of the message
- and replace it with a 404 or directory listing if the real admin app
still can't be found.  Look around to see if that particular .html file
happens to be someplace else as well.
  I do not find another copy of the index.html

You don't have more than one Tomcat running, do you?  Also, clear the
cache in your browser, and make sure you have restarted Tomcat after the
installation of the admin app.
  One tomcat server is running.


Thank you
James T. Studebaker

- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, December 15, 2005 5:15 PM
Subject: RE: administration applications install instructions


 From: James T. Studebaker [mailto:[EMAIL PROTECTED] 
 Subject: Re: administration applications install instructions
 
 webapps/ROOT/admin/index.html does exist on the server.  
 I have not touched this.  How about I delete the file 
 index.html from webapps/ROOT/admin/.

Shouldn't be necessary, but it would eliminate the source of the message
- and replace it with a 404 or directory listing if the real admin app
still can't be found.  Look around to see if that particular .html file
happens to be someplace else as well.

 Here is where I find the admin.xml file:

That looks correct, as do the contents.

You don't have more than one Tomcat running, do you?  Also, clear the
cache in your browser, and make sure you have restarted Tomcat after the
installation of the admin app.

 - 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 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: administration applications install instructions

2005-12-15 Thread James T. Studebaker
Here is what the admin directory looks like:

${catalina.home}/jakarta-tomcat-5.5.9/server/webapps/admin/
ls
./   admin.css  connector/  host/realm/  server/ 
tree-control-test.css  valve/
../  admin.xml  context/images/  resources/  service/  users/ 
WEB-INF/

I do not find an index.html or index.jsp anywhere in this directory 
structure.  I am suspicious that the app did not install properly.

Thank you
James T. Studebaker

- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, December 15, 2005 5:15 PM
Subject: RE: administration applications install instructions


 From: James T. Studebaker [mailto:[EMAIL PROTECTED]
 Subject: Re: administration applications install instructions

 webapps/ROOT/admin/index.html does exist on the server.
 I have not touched this.  How about I delete the file
 index.html from webapps/ROOT/admin/.

Shouldn't be necessary, but it would eliminate the source of the message
- and replace it with a 404 or directory listing if the real admin app
still can't be found.  Look around to see if that particular .html file
happens to be someplace else as well.

 Here is where I find the admin.xml file:

That looks correct, as do the contents.

You don't have more than one Tomcat running, do you?  Also, clear the
cache in your browser, and make sure you have restarted Tomcat after the
installation of the admin app.

 - 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 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: administration applications install instructions

2005-12-15 Thread Caldarale, Charles R
 From: James T. Studebaker [mailto:[EMAIL PROTECTED] 
 Subject: Re: administration applications install instructions
 
 I do not find an index.html or index.jsp anywhere in this directory 
 structure.  I am suspicious that the app did not install properly.

Sorry if I gave the wrong impression - there should not be an index.* in
that directory; the only admin-associated index.html file is the one in
webapps/ROOT/admin that displays the no longer installed by default
message.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: MultipartRequest problem

2005-12-15 Thread Hassan Schroeder
Franklin Phan wrote:
 I have an old servlet that I need to recompile but cannot because it
 references MultipartRequest class.  
/
 I nothing about a MultipartRequest class in anyone of the above.  I can
 venture a guess that it was a class in the javax.servlet package back in
 the Servlet 2.2 days, but there are no Javadocs for Servlet 2.2
 implementation on the Jakarta site for me to confirm my guess.

Nope, I still have the 2.2 Javadocs on my doc server (!! -- spring
cleaning time approaching, methinks), and there's no such class there.

 Can someone give me a hint here?

google 'MultipartRequest' -- first hit :-)

-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



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



Re: Most recent timestamp value of files in folder in UNIX

2005-12-15 Thread David Rickard


You can retrieve the timestamp via File.lastModified(): pass that to a Date 
object to get a human-readable value:


new java.util.Date( new java.io.File(/path/to/file).lastModified()))

Output that in a scriptlet to see it on the page (there may be tags to 
handle the file lookup and date conversion/formatting to avoid scriptlets);


At 01:24 PM 12/15/2005, Saha Rabindra N wrote:

Hi All,
 Can anyone give me some idea about following ::
I have two source code folders in Unix for a tomcat webapps. I need to 
pick up the most recent timestamp of the files out of those two folders.


I need the most recent timestamp value in form of Date which will be shown 
in a web page as

Last Update On : timestamp value

Can you tell me how do I do it in Java.

Thanks for help.

Regards,
RNS

The information contained in this e-mail may be confidential and is 
intended solely for the use of the named addressee.
Access, copying or re-use of the e-mail or any information contained 
therein by any other person is not authorized.
If you are not the intended recipient please notify us immediately by 
returning the e-mail to the originator.(17b)


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



--

David Rickard
Software Engineer

TechBooks/GTS
Your Single Source Solution!
Los Angeles CA * York, PA * Boston,MA * New Delhi, India
Visit us on the World Wide Web 
http://www.techbooks.comhttp://www.techbooks.com


[EMAIL PROTECTED]
5650 Jillson St., Los Angeles, CA 90040
(323) 888-8889 x331
(323) 888-1849 (Fax)



Performance degradation under load

2005-12-15 Thread Marc Richards
I have a performance issue that I'm having trouble
with - perhaps somebody has seen this sort of thing
before and can help me out.

Problem:
Under no load my page responses average about 1.2
seconds (according to jmeter tests), which is pretty
good considering the heavy jdbc useage of my
applications.  However, once I begin to ramp up the
load to 30 or 40 consecutive users the performance
quickly degrades down to about 4 seconds average
response time.  While this takes place, the machines
are only showing about 5% cpu utilization and have
3.5gb of memory freely available.  Network resources
also appear to be free.  So I definitely don't have a
hardware issue, especially considering that there are
two balanced machines and neither are showing more
than 5% busy.  I seem to have a bottle neck somewhere
in the system, but am unsure how to track it down.

Setup background:
This is a new setup that's not in production yet.  I'm
running Apache 2.05x and Tomcat 5.5x using mod_jk. 
Apache and Tomcat reside together on both machines
(Win 2003), so there should be virtually no latency
between them.  The machines are balanced on the front
end by Coyote Point Equalizers.  

Tomcat is handling connection pooling to our iSeries
database server (db2, jdbc), but I'm not sure it's
working correctly because when I do netstat I see
several thousand db connections sitting at TIME_WAIT
(presumably abandoned and waiting to be cleaned up by
the pool manager).  This could be one of my problems,
but I don't think it's the whole problem and I don't
know how to verify.  The call to the pool manager is
actually coming from the Spring Framework, which
possibly has a bug in it, but I suspect instead that
Tomcat is not returning the connections to the pool
(unless I'm interpreting the existance of so many
connections entirely wrong to begin with).
I'm also using Tomcat to persist my sessions
occasionally (every 2 minutes) to the same iSeries.

I see several possible bottle neck points; the http
forward from the load balancer to the server machine
(very unlikely), the tcp communication between Tomcat
and Apache (maybe), the jdbc connections to the
iSeries (this is my top suspect at the moment) or some
sort of db collusion occuring on the sessions
persistance table.

The big question:  Anybody know a slick way to find
out what it is?

Thanks,

-marc





__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Displaying PDF's within a servlet

2005-12-15 Thread Khawaja Shams
Is this a command line utility or does it have some libraries that I can
call from within my java code? If I can call it from within java to render
images, this would be a life saver.  Thanks for your help so far.


Best Regards,
Khawaja Shams

On 11/25/05, Mark [EMAIL PROTECTED] wrote:

 Check out either PDFBox, it allows you to convert PDF pages into JPG.


 On 11/23/05, Caldarale, Charles R [EMAIL PROTECTED] wrote:
 
   From: Khawaja Shams [mailto:[EMAIL PROTECTED]
   Subject: Displaying PDF's within a servlet
  
   However, starting Acrobat for this purpose
   everytime could be rather slow and inconvenient.
 
  It appears that, at least with IE on XP, Acrobat Reader stays loaded as
  long as the browser is active.  Consequently, a new process is not
  started with each download; all that happens is a new document window is
  opened by the already active .  Don't know if it works that way with
  Firefox.
 
  - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 




Adjusting Memory

2005-12-15 Thread Stephen Caine

All,

One of our customers has recently purchased a Quad Processor Mac OS X  
(v10.4 Server) for their Tomcat server.  The machine has 8 gigabytes  
of RAM.  The application they are running is very large and extremely  
complex, containing well over 100 pages.  They are using Tomcat  
v5.5.7.  The JVM is version 1.4.2.


I need a bit of assistance with how to set the Java OPTS so that the  
memory is fully optimized and all processors are used.  I have done  
some reading, but the advice is, honestly, all over the map.  My  
current settings are:


JAVA_OPTS=-Djava.awt.headless=true -XX:+UseParallelGC -Xms512m - 
Xmx2048m -server


Using Apple's Activity Monitor, the maximum amount of 'real' memory I  
could see was 700 megabytes; while the maximum amount of virtual  
memory was 2.3 gigs.  In fact, once I reached 700 megabytes of 'real'  
memory, the 'out of memory' error was returned.


Thank you in advance.

Stephen Caine
CommonGround Softworks, Inc.

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



Fw: Performance degradation under load

2005-12-15 Thread Martin Gainty

Marc-
what types of Coyote Point Equalizers are you using?
What does the Doc say about configuring the CPE for 30-40 consecutive users?
Martin-
- Original Message - 
From: Marc Richards [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, December 15, 2005 7:57 PM
Subject: Performance degradation under load



I have a performance issue that I'm having trouble
with - perhaps somebody has seen this sort of thing
before and can help me out.

Problem:
Under no load my page responses average about 1.2
seconds (according to jmeter tests), which is pretty
good considering the heavy jdbc useage of my
applications.  However, once I begin to ramp up the
load to 30 or 40 consecutive users the performance
quickly degrades down to about 4 seconds average
response time.  While this takes place, the machines
are only showing about 5% cpu utilization and have
3.5gb of memory freely available.  Network resources
also appear to be free.  So I definitely don't have a
hardware issue, especially considering that there are
two balanced machines and neither are showing more
than 5% busy.  I seem to have a bottle neck somewhere
in the system, but am unsure how to track it down.

Setup background:
This is a new setup that's not in production yet.  I'm
running Apache 2.05x and Tomcat 5.5x using mod_jk.
Apache and Tomcat reside together on both machines
(Win 2003), so there should be virtually no latency
between them.  The machines are balanced on the front
end by Coyote Point Equalizers.

Tomcat is handling connection pooling to our iSeries
database server (db2, jdbc), but I'm not sure it's
working correctly because when I do netstat I see
several thousand db connections sitting at TIME_WAIT
(presumably abandoned and waiting to be cleaned up by
the pool manager).  This could be one of my problems,
but I don't think it's the whole problem and I don't
know how to verify.  The call to the pool manager is
actually coming from the Spring Framework, which
possibly has a bug in it, but I suspect instead that
Tomcat is not returning the connections to the pool
(unless I'm interpreting the existance of so many
connections entirely wrong to begin with).
I'm also using Tomcat to persist my sessions
occasionally (every 2 minutes) to the same iSeries.

I see several possible bottle neck points; the http
forward from the load balancer to the server machine
(very unlikely), the tcp communication between Tomcat
and Apache (maybe), the jdbc connections to the
iSeries (this is my top suspect at the moment) or some
sort of db collusion occuring on the sessions
persistance table.

The big question:  Anybody know a slick way to find
out what it is?

Thanks,

-marc





__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.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: Fw: Performance degradation under load

2005-12-15 Thread Peter Lin
under normal conditions, a single webserver shouldn't have several thousand
DB connections.  that seems a bit odd to me.

peter lin


On 12/15/05, Martin Gainty [EMAIL PROTECTED] wrote:

 Marc-
 what types of Coyote Point Equalizers are you using?
 What does the Doc say about configuring the CPE for 30-40 consecutive
 users?
 Martin-
 - Original Message -
 From: Marc Richards [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Thursday, December 15, 2005 7:57 PM
 Subject: Performance degradation under load


 I have a performance issue that I'm having trouble
  with - perhaps somebody has seen this sort of thing
  before and can help me out.
 
  Problem:
  Under no load my page responses average about 1.2
  seconds (according to jmeter tests), which is pretty
  good considering the heavy jdbc useage of my
  applications.  However, once I begin to ramp up the
  load to 30 or 40 consecutive users the performance
  quickly degrades down to about 4 seconds average
  response time.  While this takes place, the machines
  are only showing about 5% cpu utilization and have
  3.5gb of memory freely available.  Network resources
  also appear to be free.  So I definitely don't have a
  hardware issue, especially considering that there are
  two balanced machines and neither are showing more
  than 5% busy.  I seem to have a bottle neck somewhere
  in the system, but am unsure how to track it down.
 
  Setup background:
  This is a new setup that's not in production yet.  I'm
  running Apache 2.05x and Tomcat 5.5x using mod_jk.
  Apache and Tomcat reside together on both machines
  (Win 2003), so there should be virtually no latency
  between them.  The machines are balanced on the front
  end by Coyote Point Equalizers.
 
  Tomcat is handling connection pooling to our iSeries
  database server (db2, jdbc), but I'm not sure it's
  working correctly because when I do netstat I see
  several thousand db connections sitting at TIME_WAIT
  (presumably abandoned and waiting to be cleaned up by
  the pool manager).  This could be one of my problems,
  but I don't think it's the whole problem and I don't
  know how to verify.  The call to the pool manager is
  actually coming from the Spring Framework, which
  possibly has a bug in it, but I suspect instead that
  Tomcat is not returning the connections to the pool
  (unless I'm interpreting the existance of so many
  connections entirely wrong to begin with).
  I'm also using Tomcat to persist my sessions
  occasionally (every 2 minutes) to the same iSeries.
 
  I see several possible bottle neck points; the http
  forward from the load balancer to the server machine
  (very unlikely), the tcp communication between Tomcat
  and Apache (maybe), the jdbc connections to the
  iSeries (this is my top suspect at the moment) or some
  sort of db collusion occuring on the sessions
  persistance table.
 
  The big question:  Anybody know a slick way to find
  out what it is?
 
  Thanks,
 
  -marc
 
 
 
 
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam protection around
  http://mail.yahoo.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: Fw: Performance degradation under load

2005-12-15 Thread Marc Richards
Agreed.  We are doing quite a bit of database access
per app call though - we run JD Edwards OneWorld on
the backend and our web apps are using those tables
entirely.  JDE wasn't exactly created on the premise
of efficiency - it's made entirely for flexability,
which (in my mind) is the exact opposite of
efficiency.  That means that there are a real lot of
tables and that each call to the web app will cause
many table accesses at once.

When I kill all db connections and start with a clean
slate, I can hit the web app one time (just log in)
and see 5 new connections start up.  Well guess what? 
In order to build a user session I need to read from 5
db tables.  When I move to another screen, I also see
the same number of connections open up as there are
tables to be read from that app.  I do believe that
I'm opening one connection per table, doing a single
read and then abandoning the connection.  But I was
under the impression that Tomcat's pool manager would
calm this effect a bit, though it doesn't appear to be
helping at all.  

You can see that if you have a really heavy database
and that if you are opening one connection per table
per app read (per user) and have 30 or 40 users
pounding away simutaneously, you would end up with a
whole lot of open connections really quick.

But my servers have more than enough cpu capacity to
deal with cleaning up the open connections and my
iSeries is a monster - I couldn't make the cpu's even
blink if I tried (and it has 6 active gygabit ports,
so I'm not worried about tying up ethernet).  So,
while I'm sure this isn't ideal chat behaviour between
two machines, I don't really know that it is what is
causing my performance issue.  I think I'll need to
solve this particular problem, and perhaps when I do
I'll have licked my degradation issue as well, but I'm
not really sure where to begin with either at the
moment.

-marc




--- Peter Lin [EMAIL PROTECTED] wrote:

 under normal conditions, a single webserver
 shouldn't have several thousand
 DB connections.  that seems a bit odd to me.
 
 peter lin
 
 
 On 12/15/05, Martin Gainty [EMAIL PROTECTED]
 wrote:
 
  Marc-
  what types of Coyote Point Equalizers are you
 using?
  What does the Doc say about configuring the CPE
 for 30-40 consecutive
  users?
  Martin-
  - Original Message -
  From: Marc Richards [EMAIL PROTECTED]
  To: Tomcat Users List users@tomcat.apache.org
  Sent: Thursday, December 15, 2005 7:57 PM
  Subject: Performance degradation under load
 
 
  I have a performance issue that I'm having
 trouble
   with - perhaps somebody has seen this sort of
 thing
   before and can help me out.
  
   Problem:
   Under no load my page responses average about
 1.2
   seconds (according to jmeter tests), which is
 pretty
   good considering the heavy jdbc useage of my
   applications.  However, once I begin to ramp up
 the
   load to 30 or 40 consecutive users the
 performance
   quickly degrades down to about 4 seconds average
   response time.  While this takes place, the
 machines
   are only showing about 5% cpu utilization and
 have
   3.5gb of memory freely available.  Network
 resources
   also appear to be free.  So I definitely don't
 have a
   hardware issue, especially considering that
 there are
   two balanced machines and neither are showing
 more
   than 5% busy.  I seem to have a bottle neck
 somewhere
   in the system, but am unsure how to track it
 down.
  
   Setup background:
   This is a new setup that's not in production
 yet.  I'm
   running Apache 2.05x and Tomcat 5.5x using
 mod_jk.
   Apache and Tomcat reside together on both
 machines
   (Win 2003), so there should be virtually no
 latency
   between them.  The machines are balanced on the
 front
   end by Coyote Point Equalizers.
  
   Tomcat is handling connection pooling to our
 iSeries
   database server (db2, jdbc), but I'm not sure
 it's
   working correctly because when I do netstat I
 see
   several thousand db connections sitting at
 TIME_WAIT
   (presumably abandoned and waiting to be cleaned
 up by
   the pool manager).  This could be one of my
 problems,
   but I don't think it's the whole problem and I
 don't
   know how to verify.  The call to the pool
 manager is
   actually coming from the Spring Framework, which
   possibly has a bug in it, but I suspect instead
 that
   Tomcat is not returning the connections to the
 pool
   (unless I'm interpreting the existance of so
 many
   connections entirely wrong to begin with).
   I'm also using Tomcat to persist my sessions
   occasionally (every 2 minutes) to the same
 iSeries.
  
   I see several possible bottle neck points; the
 http
   forward from the load balancer to the server
 machine
   (very unlikely), the tcp communication between
 Tomcat
   and Apache (maybe), the jdbc connections to the
   iSeries (this is my top suspect at the moment)
 or some
   sort of db collusion occuring on the sessions
   persistance table.
  
   The big question:  Anybody know a 

Re: Performance degradation under load

2005-12-15 Thread Dov Rosenberg
While you are running how many database connections does your database
report having open? You might want to use the tomcat manager status app to
see how many threads you are using, how many sessions are being created,
etc. Lots of sessions can eat up memory as well if they are not being killed
off quickly enough. If you have lots of threads coming in, make sure to set
your maxThreads and associated parameters to handle the load. Also check
your queue depth, once the queue fills up no more requests are going to come
thru.

Is your database reporting any core dumps, or alerts, or deadlocks?


On 12/15/05 11:01 PM, Peter Lin [EMAIL PROTECTED] wrote:

 under normal conditions, a single webserver shouldn't have several thousand
 DB connections.  that seems a bit odd to me.
 
 peter lin
 
 
 On 12/15/05, Martin Gainty [EMAIL PROTECTED] wrote:
 
 Marc-
 what types of Coyote Point Equalizers are you using?
 What does the Doc say about configuring the CPE for 30-40 consecutive
 users?
 Martin-
 - Original Message -
 From: Marc Richards [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Thursday, December 15, 2005 7:57 PM
 Subject: Performance degradation under load
 
 
 I have a performance issue that I'm having trouble
 with - perhaps somebody has seen this sort of thing
 before and can help me out.
 
 Problem:
 Under no load my page responses average about 1.2
 seconds (according to jmeter tests), which is pretty
 good considering the heavy jdbc useage of my
 applications.  However, once I begin to ramp up the
 load to 30 or 40 consecutive users the performance
 quickly degrades down to about 4 seconds average
 response time.  While this takes place, the machines
 are only showing about 5% cpu utilization and have
 3.5gb of memory freely available.  Network resources
 also appear to be free.  So I definitely don't have a
 hardware issue, especially considering that there are
 two balanced machines and neither are showing more
 than 5% busy.  I seem to have a bottle neck somewhere
 in the system, but am unsure how to track it down.
 
 Setup background:
 This is a new setup that's not in production yet.  I'm
 running Apache 2.05x and Tomcat 5.5x using mod_jk.
 Apache and Tomcat reside together on both machines
 (Win 2003), so there should be virtually no latency
 between them.  The machines are balanced on the front
 end by Coyote Point Equalizers.
 
 Tomcat is handling connection pooling to our iSeries
 database server (db2, jdbc), but I'm not sure it's
 working correctly because when I do netstat I see
 several thousand db connections sitting at TIME_WAIT
 (presumably abandoned and waiting to be cleaned up by
 the pool manager).  This could be one of my problems,
 but I don't think it's the whole problem and I don't
 know how to verify.  The call to the pool manager is
 actually coming from the Spring Framework, which
 possibly has a bug in it, but I suspect instead that
 Tomcat is not returning the connections to the pool
 (unless I'm interpreting the existance of so many
 connections entirely wrong to begin with).
 I'm also using Tomcat to persist my sessions
 occasionally (every 2 minutes) to the same iSeries.
 
 I see several possible bottle neck points; the http
 forward from the load balancer to the server machine
 (very unlikely), the tcp communication between Tomcat
 and Apache (maybe), the jdbc connections to the
 iSeries (this is my top suspect at the moment) or some
 sort of db collusion occuring on the sessions
 persistance table.
 
 The big question:  Anybody know a slick way to find
 out what it is?
 
 Thanks,
 
 -marc
 
 
 
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.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: Performance degradation under load

2005-12-15 Thread Caldarale, Charles R
 From: Marc Richards [EMAIL PROTECTED]
 Subject: Performance degradation under load

 Tomcat is handling connection pooling to our iSeries
 database server (db2, jdbc), but I'm not sure it's
 working correctly because when I do netstat I see
 several thousand db connections sitting at TIME_WAIT
 (presumably abandoned and waiting to be cleaned up by
 the pool manager).

This really sounds like you're not using connection pooling, but instead
are opening a new connection for each request.  How many do you have
configured in the pool?  If it's less than the number you see with
netstat, that would be another indication that your app is getting its
own connections rather than ones from the pool.

Is your app closing the connections (and statements and result sets)
properly?  This usualy requires putting the close statements in finally
blocks, just to make sure that exceptions don't cause them to be
skipped.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Performance degradation under load

2005-12-15 Thread Peter Lin
sounds like you have a big big mainframe, so I also doubt the database
server is an issue. Is there any firewall between tomcat and the database
server?  it could be the firewall is limiting the number of connections and
therefore forcing the db connection pool to wait longer than it should to
create a new connection.

beyond that, about the only way would be to start tomcat using a profiler
and see exactly what is blocking.

peter


On 12/15/05, Marc Richards [EMAIL PROTECTED] wrote:

 No, the db is actually our world-wide enterprise
 server.  It's got plenty of capacity for handling many
 hundreds of thousands of daily transactions.  When I'm
 pounding the web app I literally can not even see my
 activity on the machine and the disk arms are all
 calm.  It's made for tougher stuff than I'll ever be
 able to throw at it (due to JDE client programs being
 so chatty, it's necessary to have a very powerful db
 when you run OneWorld).

 It's kind of hard to track how many open db
 connections there are from the db end because normally
 there are many thousands to begin with and the number
 fluctuates by leaps and bounds just as a course of
 doing regular business.

 I'm not sure that my sessions are of too much concern
 at the moment either because when I check the server
 boxes I'm seeing that Tomcat is only using between 200
 and 400 mg of RAM and there is 4gb available.  I don't
 have a short session kill time (I think it's two hours
 at the moment), but I am failing them out to disk
 every few minutes, so inactive sessions should be
 staying out of physical memory.  And by the low memory
 consumption of Tomcat under load, I'd say that part is
 probably working ok (and also because I can see all of
 the db records in the session table).

 I haven't gotten any complaints from the db on the
 session table itself, but that doesn't mean that there
 isn't collusion because there could be some locking
 issues taking place that would cause session backups
 and restores to take on some latency.  The db won't
 complain about a locking issue and I haven't been able
 to find any myself, but due to the fact that each
 connection appears to open, read/write and then
 abandon, locks would come and go so quickly that I
 probably wouldn't be able to see them anyway.

 I did notice that the db performance optimizer was
 spending some extra time analyzing the sessions table,
 but I think that's because it regularly gets a bunch
 of records pumped to it and then it clears out as
 sessions become invalidated.  It's really quite
 under-used compared to most of the JDE tables on the
 system.

 I was concerned about the maxThreads for a time (and
 actually did have a problem because Apache's was set
 higher and puking when it over-ran).  But I got tired
 of tweaking for this and just set it at 5000 to see
 what would happen.  I think the default is only 50, so
 I thought 10x would represent a 'big' site.  Am I
 wrong?  It didn't change a thing by setting it that
 high.  How do you check the queue depth?  I'm not sure
 I'm familiar with that one...

 -


RE: Performance degradation under load

2005-12-15 Thread Marc Richards
Yes, I agree - I thought that too, but didn't really
know what I was suppose to be seeing.  I have Tomcat
configured to open 500 (because I was mucking around
trying to make it work, not because I think that's the
right setting) connections on startup and maintain a
minimum of 100 idle at any time.  But when I start
Tomcat I only see a single ESTABLISHED connection to
the db.  Then I start jmeter and this list explodes.

I thought I might be bypassing the connection pool
too, but didn't know how to check that either.  We use
the Spring Framework and it has a method for calling
the JNDI pool manager.  So you just configure Spring
to obtain new connections from Tomcat and it does the
actual access to the db when an sql is used.  The apps
never actually close any connections because Spring is
suppose to do that for you too.  There just doesn't
seem to be a way to check that everything is being
done correctly (that I can tell).  I can tell you this
though - when I changed the Spring configuration
initially, I forgot to save my changes to the Tomcat
config.  Immediately all database connections from the
apps began to fail because the pool manager wasn't
turned on.  Then I configured Tomcat and checked in my
changes - it began working again.  So I can tell that
Spring is relying on Tomcat's ability to connect to
the db, but I can't tell that it's using it correctly.

It seems to me that Spring is using JNDI to obtain a
connection, doing a read and then leaving the line for
dead.  The first 500 get used up and then either
Tomcat or the apps themselves begin firing off more.  

Here is a question I probably should have asked first:
 When I configure Tomcat to pool connections (let's
say to start up with an initial 50), what should I see
when I run netstat directly after starting Tomcat and
before I make any calls to the web app?  Should I see
50 connections (I don't)?

-marc




--- Caldarale, Charles R
[EMAIL PROTECTED] wrote:

  From: Marc Richards [EMAIL PROTECTED]
  Subject: Performance degradation under load
 
  Tomcat is handling connection pooling to our
 iSeries
  database server (db2, jdbc), but I'm not sure it's
  working correctly because when I do netstat I see
  several thousand db connections sitting at
 TIME_WAIT
  (presumably abandoned and waiting to be cleaned up
 by
  the pool manager).
 
 This really sounds like you're not using connection
 pooling, but instead
 are opening a new connection for each request.  How
 many do you have
 configured in the pool?  If it's less than the
 number you see with
 netstat, that would be another indication that your
 app is getting its
 own connections rather than ones from the pool.
 
 Is your app closing the connections (and statements
 and result sets)
 properly?  This usualy requires putting the close
 statements in finally
 blocks, just to make sure that exceptions don't
 cause them to be
 skipped.
 
  - 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 unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Performance degradation under load

2005-12-15 Thread Marc Richards
No, the firewall is in front of the load balancers and
the servers are separated from the network by the dmz.
 At some point there will be a reverse proxy in there
somewhere (they tell me - I'm not a network engineer),
but at the moment it's not open to the internet so I
just have it directly opened to the db.

Thanks for the chat anyway.  I have not used a
profiler for a Win32 web server before.  Do you have
any recommendation?

-marc

--- Peter Lin [EMAIL PROTECTED] wrote:

 sounds like you have a big big mainframe, so I also
 doubt the database
 server is an issue. Is there any firewall between
 tomcat and the database
 server?  it could be the firewall is limiting the
 number of connections and
 therefore forcing the db connection pool to wait
 longer than it should to
 create a new connection.
 
 beyond that, about the only way would be to start
 tomcat using a profiler
 and see exactly what is blocking.
 
 peter
 
 
 On 12/15/05, Marc Richards [EMAIL PROTECTED] wrote:
 
  No, the db is actually our world-wide enterprise
  server.  It's got plenty of capacity for handling
 many
  hundreds of thousands of daily transactions.  When
 I'm
  pounding the web app I literally can not even see
 my
  activity on the machine and the disk arms are all
  calm.  It's made for tougher stuff than I'll ever
 be
  able to throw at it (due to JDE client programs
 being
  so chatty, it's necessary to have a very powerful
 db
  when you run OneWorld).
 
  It's kind of hard to track how many open db
  connections there are from the db end because
 normally
  there are many thousands to begin with and the
 number
  fluctuates by leaps and bounds just as a course of
  doing regular business.
 
  I'm not sure that my sessions are of too much
 concern
  at the moment either because when I check the
 server
  boxes I'm seeing that Tomcat is only using between
 200
  and 400 mg of RAM and there is 4gb available.  I
 don't
  have a short session kill time (I think it's two
 hours
  at the moment), but I am failing them out to disk
  every few minutes, so inactive sessions should be
  staying out of physical memory.  And by the low
 memory
  consumption of Tomcat under load, I'd say that
 part is
  probably working ok (and also because I can see
 all of
  the db records in the session table).
 
  I haven't gotten any complaints from the db on the
  session table itself, but that doesn't mean that
 there
  isn't collusion because there could be some
 locking
  issues taking place that would cause session
 backups
  and restores to take on some latency.  The db
 won't
  complain about a locking issue and I haven't been
 able
  to find any myself, but due to the fact that each
  connection appears to open, read/write and then
  abandon, locks would come and go so quickly that I
  probably wouldn't be able to see them anyway.
 
  I did notice that the db performance optimizer was
  spending some extra time analyzing the sessions
 table,
  but I think that's because it regularly gets a
 bunch
  of records pumped to it and then it clears out as
  sessions become invalidated.  It's really quite
  under-used compared to most of the JDE tables on
 the
  system.
 
  I was concerned about the maxThreads for a time
 (and
  actually did have a problem because Apache's was
 set
  higher and puking when it over-ran).  But I got
 tired
  of tweaking for this and just set it at 5000 to
 see
  what would happen.  I think the default is only
 50, so
  I thought 10x would represent a 'big' site.  Am I
  wrong?  It didn't change a thing by setting it
 that
  high.  How do you check the queue depth?  I'm not
 sure
  I'm familiar with that one...
 
  -
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Performance degradation under load

2005-12-15 Thread Peter Lin
I hear YourKit is good.  I've mainly used OptimizeIt the last 4 years and it
works well for me.

something odd is definitely happening.  at this point, it sounds you've
exhausted all the obvious and not so obvious options, so it's probably most
fruitful to profile it.

peter


On 12/16/05, Marc Richards [EMAIL PROTECTED] wrote:

 No, the firewall is in front of the load balancers and
 the servers are separated from the network by the dmz.
 At some point there will be a reverse proxy in there
 somewhere (they tell me - I'm not a network engineer),
 but at the moment it's not open to the internet so I
 just have it directly opened to the db.

 Thanks for the chat anyway.  I have not used a
 profiler for a Win32 web server before.  Do you have
 any recommendation?

 -marc

 --- Peter Lin [EMAIL PROTECTED] wrote:

  sounds like you have a big big mainframe, so I also
  doubt the database
  server is an issue. Is there any firewall between
  tomcat and the database
  server?  it could be the firewall is limiting the
  number of connections and
  therefore forcing the db connection pool to wait
  longer than it should to
  create a new connection.
 
  beyond that, about the only way would be to start
  tomcat using a profiler
  and see exactly what is blocking.
 
  peter
 
 
  On 12/15/05, Marc Richards [EMAIL PROTECTED] wrote:
  
   No, the db is actually our world-wide enterprise
   server.  It's got plenty of capacity for handling
  many
   hundreds of thousands of daily transactions.  When
  I'm
   pounding the web app I literally can not even see
  my
   activity on the machine and the disk arms are all
   calm.  It's made for tougher stuff than I'll ever
  be
   able to throw at it (due to JDE client programs
  being
   so chatty, it's necessary to have a very powerful
  db
   when you run OneWorld).
  
   It's kind of hard to track how many open db
   connections there are from the db end because
  normally
   there are many thousands to begin with and the
  number
   fluctuates by leaps and bounds just as a course of
   doing regular business.
  
   I'm not sure that my sessions are of too much
  concern
   at the moment either because when I check the
  server
   boxes I'm seeing that Tomcat is only using between
  200
   and 400 mg of RAM and there is 4gb available.  I
  don't
   have a short session kill time (I think it's two
  hours
   at the moment), but I am failing them out to disk
   every few minutes, so inactive sessions should be
   staying out of physical memory.  And by the low
  memory
   consumption of Tomcat under load, I'd say that
  part is
   probably working ok (and also because I can see
  all of
   the db records in the session table).
  
   I haven't gotten any complaints from the db on the
   session table itself, but that doesn't mean that
  there
   isn't collusion because there could be some
  locking
   issues taking place that would cause session
  backups
   and restores to take on some latency.  The db
  won't
   complain about a locking issue and I haven't been
  able
   to find any myself, but due to the fact that each
   connection appears to open, read/write and then
   abandon, locks would come and go so quickly that I
   probably wouldn't be able to see them anyway.
  
   I did notice that the db performance optimizer was
   spending some extra time analyzing the sessions
  table,
   but I think that's because it regularly gets a
  bunch
   of records pumped to it and then it clears out as
   sessions become invalidated.  It's really quite
   under-used compared to most of the JDE tables on
  the
   system.
  
   I was concerned about the maxThreads for a time
  (and
   actually did have a problem because Apache's was
  set
   higher and puking when it over-ran).  But I got
  tired
   of tweaking for this and just set it at 5000 to
  see
   what would happen.  I think the default is only
  50, so
   I thought 10x would represent a 'big' site.  Am I
   wrong?  It didn't change a thing by setting it
  that
   high.  How do you check the queue depth?  I'm not
  sure
   I'm familiar with that one...
  
   -
 


 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

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




Re: Performance degradation under load

2005-12-15 Thread Marc Richards
Thanks, I'll check into that.  Maybe I can get an eval
license right away and update if I find anything.

Thanks,

-marc

--- Peter Lin [EMAIL PROTECTED] wrote:

 I hear YourKit is good.  I've mainly used OptimizeIt
 the last 4 years and it
 works well for me.
 
 something odd is definitely happening.  at this
 point, it sounds you've
 exhausted all the obvious and not so obvious
 options, so it's probably most
 fruitful to profile it.
 
 peter
 
 
 On 12/16/05, Marc Richards [EMAIL PROTECTED] wrote:
 
  No, the firewall is in front of the load balancers
 and
  the servers are separated from the network by the
 dmz.
  At some point there will be a reverse proxy in
 there
  somewhere (they tell me - I'm not a network
 engineer),
  but at the moment it's not open to the internet so
 I
  just have it directly opened to the db.
 
  Thanks for the chat anyway.  I have not used a
  profiler for a Win32 web server before.  Do you
 have
  any recommendation?
 
  -marc
 
  --- Peter Lin [EMAIL PROTECTED] wrote:
 
   sounds like you have a big big mainframe, so I
 also
   doubt the database
   server is an issue. Is there any firewall
 between
   tomcat and the database
   server?  it could be the firewall is limiting
 the
   number of connections and
   therefore forcing the db connection pool to wait
   longer than it should to
   create a new connection.
  
   beyond that, about the only way would be to
 start
   tomcat using a profiler
   and see exactly what is blocking.
  
   peter
  
  
   On 12/15/05, Marc Richards [EMAIL PROTECTED]
 wrote:
   
No, the db is actually our world-wide
 enterprise
server.  It's got plenty of capacity for
 handling
   many
hundreds of thousands of daily transactions. 
 When
   I'm
pounding the web app I literally can not even
 see
   my
activity on the machine and the disk arms are
 all
calm.  It's made for tougher stuff than I'll
 ever
   be
able to throw at it (due to JDE client
 programs
   being
so chatty, it's necessary to have a very
 powerful
   db
when you run OneWorld).
   
It's kind of hard to track how many open db
connections there are from the db end because
   normally
there are many thousands to begin with and the
   number
fluctuates by leaps and bounds just as a
 course of
doing regular business.
   
I'm not sure that my sessions are of too much
   concern
at the moment either because when I check the
   server
boxes I'm seeing that Tomcat is only using
 between
   200
and 400 mg of RAM and there is 4gb available. 
 I
   don't
have a short session kill time (I think it's
 two
   hours
at the moment), but I am failing them out to
 disk
every few minutes, so inactive sessions should
 be
staying out of physical memory.  And by the
 low
   memory
consumption of Tomcat under load, I'd say that
   part is
probably working ok (and also because I can
 see
   all of
the db records in the session table).
   
I haven't gotten any complaints from the db on
 the
session table itself, but that doesn't mean
 that
   there
isn't collusion because there could be some
   locking
issues taking place that would cause session
   backups
and restores to take on some latency.  The db
   won't
complain about a locking issue and I haven't
 been
   able
to find any myself, but due to the fact that
 each
connection appears to open, read/write and
 then
abandon, locks would come and go so quickly
 that I
probably wouldn't be able to see them anyway.
   
I did notice that the db performance optimizer
 was
spending some extra time analyzing the
 sessions
   table,
but I think that's because it regularly gets a
   bunch
of records pumped to it and then it clears out
 as
sessions become invalidated.  It's really
 quite
under-used compared to most of the JDE tables
 on
   the
system.
   
I was concerned about the maxThreads for a
 time
   (and
actually did have a problem because Apache's
 was
   set
higher and puking when it over-ran).  But I
 got
   tired
of tweaking for this and just set it at 5000
 to
   see
what would happen.  I think the default is
 only
   50, so
I thought 10x would represent a 'big' site. 
 Am I
wrong?  It didn't change a thing by setting it
   that
high.  How do you check the queue depth?  I'm
 not
   sure
I'm familiar with that one...
   
-
  
 
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
 protection around
  http://mail.yahoo.com
 
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


RE: Tomcat stops answering requests

2005-12-15 Thread Sondre Engell
No, there are no errors in catalina.out.

We did set the LD_ASSUME_KERNEL=2.2.5 about 10h ago and so far everything looks 
OK. But it's still too early to 
say if it is a fix to our problem.

Sondre

-Original Message-
From: Martin Gainty [EMAIL PROTECTED]
Sent: 15. desember 2005 16:43
To: Tomcat Users List
Subject: Re: Tomcat stops answering requests


my understanding is that the tomcat connectors can be paused
are there any errors showing in catalina.out?
M-
- Original Message - 
From: Dov Rosenberg [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, December 15, 2005 8:26 AM
Subject: Re: Tomcat stops answering requests


I recently have been chasing similar demons. My logs showed something like

 INFO: Paused Coyote HTTP/1.1 on http-7001

 I did some searching and someone suggested upgrading my JVM. We were using
 1.4.2_05 and I have updated to 1.4.2_08. So far so good.


 Any other ideas? I am open for suggestions!!




 On 12/15/05 2:42 AM, Sondre Engell [EMAIL PROTECTED]
 wrote:

 Hi.

 We are experiencing some problems with our Tomcat. We are currently 
 running
 Apache  2.0.54, Tomcat 4.1.30, Axis 1.2.final on RedHat 9.0 with kernel
 2.4.27.

 We have some web-services deployed under Axis and these services become
 unavailable during normal operation. It seems that this occurs because 
 Tomcat
 stops answering requests on port 8080 (the Apache-Axis diagnostic web 
 page
 (http://127.0.0.1:8080/axis) becomes unavailable).

 After examining the Tomcat log files the only suspicious entries we found 
 was
 this exception that occurs regularly:

 2005-12-12 12:47:04 StandardManager[/axis] Session event listener threw
 exception
 java.lang.IllegalStateException: getAttribute: Session already 
 invalidated
 at
 org.apache.catalina.session.StandardSession.getAttribute(StandardSession.java:
 953)
 at
 org.apache.catalina.session.StandardSessionFacade.getAttribute(StandardSession
 Facade.java:171)
 at
 org.apache.axis.transport.http.AxisHTTPSessionListener.destroySession(AxisHTTP
 SessionListener.java:43)
 at
 org.apache.axis.transport.http.AxisHTTPSessionListener.sessionDestroyed(AxisHT
 TPSessionListener.java:72)
 at
 org.apache.catalina.session.StandardSession.expire(StandardSession.java:658)
 at
 org.apache.catalina.session.StandardSession.expire(StandardSession.java:607)
 at
 org.apache.catalina.session.StandardManager.processExpires(StandardManager.jav
 a:793)
 at
 org.apache.catalina.session.StandardManager.run(StandardManager.java:870)
 at java.lang.Thread.run(Thread.java:534)

 It looks like Catalina tries to call getAttribute on a session it has 
 already
 destroyed. Can this bring Tomcat to stop answering requests. Since the
 exception says that the session is already invalidated I would believe 
 that
 the session is indeed destroyed. If not, could this cause a starving of 
 free
 sessions, and thus bring Tomcat to a halt?

 I have seen some posts proposing to use:
 export LD_ASSUME_KERNEL=2.x.x

 Can that be a solution? As stated above we use RedHat 9.0 with kernel 
 2.4.27
 what kernel version should we use in the export?

 We are really lost on this one and if anyone have any idea of what can 
 cause
 Tomcat to stop answering requests we would very much like to hear them.

 Regards

 Sondre


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


 -- 
 Dov Rosenberg
 Conviveon/Inquira
 Knowledge Management Experts
 http://www.conviveon.com
 http://www.inquira.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]



Severe error on Production server (Tomcat) - Help plz , Urgent!

2005-12-15 Thread Prathibha, Bharathi
Hi All,
   I am getting the following error while starting tomcat .. I
couldn't trace it. Will anybody of u plz tell me ... possible cause of
this error!

INFO: Starting Coyote HTTP/1.1 on http-8062
Dec 15, 2005 12:56:58 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8032
Dec 15, 2005 12:56:58 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=2/260 config=null
Dec 15, 2005 12:56:58 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 19458 ms
Dec 15, 2005 12:59:50 PM org.apache.commons.modeler.Registry
registerComponent
SEVERE: Error registering Standalone:type=GlobalRequestProcessor,name=jk
javax.management.InstanceAlreadyExistsException:
Standalone:type=GlobalRequestProcessor,name=jk
at mx4j.server.MBeanServerImpl.register(MBeanServerImpl.java:1123)
at mx4j.server.MBeanServerImpl.registerImpl(MBeanServerImpl.java:1054)
at
mx4j.server.MBeanServerImpl.registerMBeanImpl(MBeanServerImpl.java:1002)
at mx4j.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:978)
at
org.apache.commons.modeler.Registry.registerComponent(Registry.java:871)
at
org.apache.commons.modeler.Registry.registerComponent(Registry.java:1088
)
at
org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:45
6)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:350)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:694)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
626)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:644)
at java.lang.Thread.run(Thread.java:534)
Dec 15, 2005 12:59:50 PM org.apache.jk.common.HandlerRequest
decodeRequest
WARNING: Error registering request

Rgds,
Prathibha.



Re: Performance degradation under load

2005-12-15 Thread Mark Thomas
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.

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.

Mark
tomcat-user-owner


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