RE: JNDI frustration

2004-06-18 Thread Benson Margulies
Patches submitted. 

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



RE: Configuring JNDI for tomcat

2004-06-18 Thread Benson Margulies
It would seem a lot less work to fill up a hashtable with parameters and
get a vanilla JNDI context for your external nameserver independent of
the internal context used for web-app resources. What's the point of
looking up web-app resources in an external directory when they can't be
shared anyhow?

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



Re: Multiple Tomcat Instances with Linux

2004-06-18 Thread Dan Barron
Jon,
I run multiple tomcat services on a Linux box with Apache for various 
development and distributions.  The way I went about it is to setup 
multiple  configurations within the server.xml file. Each service 
has it own port for connectivity and its own worker for mod_jk.  I create a 
virtual host entry in mod_jk.conf file which mounts the assigned worker 
which in turn points to the specific tomcat service.  Here's the three 
files I touch to make it work and an example entry.  My environment is 
Tomcat 4.1.29, mod_jk, and Apache 1.3.27.

Hope this helps.
Dan
*FILE:mod_jk.conf
#~~~
# domain.com Virtual Host Definition
#~~~

ServerName www.domain.com
DocumentRoot /usr/www/domain.com
ErrorLog logs/domain.com/error_log
CustomLog logs/domain.com/access_log common
   ScriptAlias /cgi-bin/ "/usr/www/domain.com/cgi-bin/"
   
AllowOverride None
Options None
Order allow,deny
Allow from all

   JkMount /servlet/* domain_worker
   JkMount /alpha/*.jsp domain_worker
   JkMount /*.jsp domain_worker

**FILE: workers.properties
worker.list=ajp13, domain_worker
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=20
worker.ajp13.cachesize=20
worker.domain_worker.port=8010
worker.domain_worker.host=localhost
worker.domain_worker.type=ajp13
worker.domain_worker.lbfactor=20
worker.domain_worker.cachesize=20
*FILE:server.xml

...
  
 



   

  
  
  
  
  
  




  

  

At 05:26 PM 6/18/2004, Jon Feauto wrote:
I see this question posted quite often, but rarely
answers abound.  Is it because this is too complex a
topic to explain in a user group?
I would think it is fairly common, anyone have ideas?
Jon
--- Jon Feauto <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm certain I am behind the curve on this one, but
> I've been looking around for several days now and
> haven't found the answers I need.
>
> I'm looking to setup multiple environments for
> Tomcat
> 4x on a single linux server.  One for each developer
> and several others for different versions of test.
>
> From the mail list archives I've come to understand
> that CATALINA_BASE can be used to configure multiple
> instances.  However, most examples I've seen use
> this
> in coordination with multiple server.xml files.
>
> I'm hoping there is a trick to this that I'm
> missing.
> I don't mind the extra configuration as long as that
> is the recommended approach.
>
> For an installation supporting a linux service, does
> the /etc/init.d/tomcat4 script need to be modified
> to
> set the CATALINA_BASE for each instance started?
>
> Do I need to use different port numbers to access
> those instances?
>
> Is the CATALINA_HOME/shared/lib actually "shared"
> across instances or can it be unique to an instance
> according to CATALINA_BASE?
>
> Is virtual hosting required to support this type of
> environment?
>
> Any help is appreciated.
>
> Thanks,
> Jon
>
> __
> 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!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
-
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: Multiple Tomcat Instances with Linux

2004-06-18 Thread Jon Feauto
I see this question posted quite often, but rarely
answers abound.  Is it because this is too complex a
topic to explain in a user group?

I would think it is fairly common, anyone have ideas?

Jon


--- Jon Feauto <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I'm certain I am behind the curve on this one, but
> I've been looking around for several days now and
> haven't found the answers I need.
> 
> I'm looking to setup multiple environments for
> Tomcat
> 4x on a single linux server.  One for each developer
> and several others for different versions of test.
> 
> From the mail list archives I've come to understand
> that CATALINA_BASE can be used to configure multiple
> instances.  However, most examples I've seen use
> this
> in coordination with multiple server.xml files.
> 
> I'm hoping there is a trick to this that I'm
> missing. 
> I don't mind the extra configuration as long as that
> is the recommended approach.
> 
> For an installation supporting a linux service, does
> the /etc/init.d/tomcat4 script need to be modified
> to
> set the CATALINA_BASE for each instance started?
> 
> Do I need to use different port numbers to access
> those instances?
> 
> Is the CATALINA_HOME/shared/lib actually "shared"
> across instances or can it be unique to an instance
> according to CATALINA_BASE?
> 
> Is virtual hosting required to support this type of
> environment?
> 
> Any help is appreciated.
> 
> Thanks,
> Jon
> 
> __
> 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!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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



Re: sleepy tomcat

2004-06-18 Thread Wade Chandler
Yana Begun wrote:
Hi,
I have stand alone version of our web application running with Tomcat. 

Everything is fine, but after displaying 5-6 pages it starts to work
VERY slowly. Like 30 minutes for one page.
CPU is not busy at this moment. It seems like nothing happen or tomcat
falling asleep.
I thought that the problem is the cheap database that we use for this
version, but when I tried to connect to the MSSQL, result was the same. 

Any recommendations, what I can check or how I can test this stuff?
 

Thanks, Yana
 


Sounds like you need to debug your standalone application.  Do you have 
 an environment you can debug with?  Using Netbeans you can easily do 
this.  Don't use tomcat as a service and where the jvm is started add 
these parameters (assuming windows):
-Xdebug -Xrunjdwp:transport=dt_shmem,server=n,address=mywebapp

Now in netbeans 3.6 you would click Debug->Start Session->Attach
in the drop down choose shared memory (windows only is shared memory 
debugand I think maybe Solaris).

in the name text field type in mywebapp
Now press ok.
In your app code you should now be able to set some break points and try 
to track down where the slow points are.

It's better to first try to locate an area before debugging though. 
Good time logging should allow you to do something like that.  You could 
make a database table and a class to use with it for logging.  Then 
write out some timed logs to thisyou use a table so you can query 
your log and you can put different flags and descriptions in the logged 
info so you can match up enter/exit to the start and end times.

Another simple scheme that works is to write a class you can use to time 
operations and then just scatter timed log statements over your 
codenot too many just enough to give you an idea where the issue is 
then start narrowing in.

Once you see the general problem you should be able to debug and have ab 
better idea of where the issue is.

Hope that helps you out.
Wade
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Allow user to change password in JDBCRealm

2004-06-18 Thread Robert Harper
I think this is all kept in the server's beans. To access this you need to us
the JMX mess.

I have finally figured out how to do it using the normal tomcat-users.xml
database. To load the bean server try this:

MBeanServer m_BeanServer;

if(MBeanServerFactory.findMBeanServer(null).size() > 0)
{
   m_BeanServer = (MBeanServer)BeanServerFactory.findMBeanServer(null).get(0);
}
else
{
   m_BeanServer = MBeanServerFactory.createMBeanServer();
}

then to add a user:

// build the initial name of the bean to act upon
ObjectName oname = 
  new ObjectName("Users:type=UserDatabase,database=UserDatabase" );
// next call one of the methods of the bean. I'll show how to add one
// set up the parameters
String params[] = new String[3];
String types[] = new String[3];

params[0] = strID;
params[1] = strPassword;
params[2] = strName;
types[0] = "java.lang.String";
types[1] = "java.lang.String";
types[2] = "java.lang.String";

// invoke the method
m_BeanServer.invoke( oname, "createUser", params, types );
// note this does not return the user bean as the docs say

// find the user and add a role to the user
String param[] = new String[1];
String type[] = new String[1];
param[0] = strID;
type[0] = "java.lang.String";

String userBean = (String)m_BeanServer.invoke( oname, "findUser", param, type );
// now if you have the user
if( userBean != null )
{
String param[] = new String[1];
String type[] = new String[1];
param[0] = strRole;
type[0] = "java.lang.Sring";
ObjectName oname = new ObjectName( userBean );
m_BeanServer.invoke( oname, "addRole", param, type );
}

You will have to add some exception handling but this should get you on your way
if you are using Tomcat's user authentication. I hope this helps.


Robert S. Harper

> -Original Message-
> From: Dan Barron [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 18, 2004 4:46 PM
> To: Tomcat Users List
> Subject: Allow user to change password in JDBCRealm
> 
> Hello,
> 
> I've looked around for some time now for a clear answer on this topic, but
> have not had much luck.
> 
> I have user authentication setup using JDBCRealm w/ MySQL and am able to
> login/logout and authenticate users just fine.  My question is, once a user
> is logged in, is the user's login information (uname/pass) available
> somewhere where I can easily grab it and modify it so I can allow my users
> to change their password?
> 
> Thanks,
> 
> Dan
> 
> 
> -
> 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]



Allow user to change password in JDBCRealm

2004-06-18 Thread Dan Barron
Hello,
I've looked around for some time now for a clear answer on this topic, but 
have not had much luck.

I have user authentication setup using JDBCRealm w/ MySQL and am able to 
login/logout and authenticate users just fine.  My question is, once a user 
is logged in, is the user's login information (uname/pass) available 
somewhere where I can easily grab it and modify it so I can allow my users 
to change their password?

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


How to recover from a database server restart when using connection pools?

2004-06-18 Thread Tim Freeman

I am using database connection pooling and I would like my Tomcat
server to be able to cope gracefully with the database server being
stopped and restarting.  This creates a confusing situation because
the connections in the pool all become invalid in that case.

Is there a standard way to deal with this?  Googling around didn't
turn up anything, but it's surely a common situation.  I must have
searched for the wrong keywords.

-- 
Tim Freeman  [EMAIL PROTECTED]
GPG public key fingerprint ECDF 46F8 3B80 BB9E 575D  7180 76DF FE00 34B1 5C78 

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



Re: Reading the servlet input stream twice

2004-06-18 Thread Justin Ruthenbeck
The cleanest, most standards-compliant way of doing what you're asking is 
through the HttpServletRequestWrapper.

Make sure you've duely considered QM's comments about the getParameter() 
methods.

justin
At 01:41 PM 6/18/2004, you wrote:
Dear All,
I use Tomcat 4.1.xx
I am implementing page tracking on a project.
I am coming across a problem, when I want to write a copy of the 
parameters
or contents of a POST request to the database.
I have tried using HttpServletRequest.getInputStream () but this cleans 
out
the input stream and means that no parameters
or content is available to be passed on to the logic that processes the
parameters or post content.

Is there anyway of getting a copy of a POST request content without
cleaning out the input stream and stuffing up the suceeding logic?
Regards,
Phil Hewitt

mail2web - Check your email from the web at
http://mail2web.com/ .

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

__
Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php
__
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Reading the servlet input stream twice

2004-06-18 Thread Erik Earle

look at the org.apache.catalina.valve.RequestDumperValve

Original Message Follows
From: QM <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>,[EMAIL PROTECTED]
Subject: Re: Reading the servlet input stream twice
Date: Fri, 18 Jun 2004 15:45:18 -0500
On Fri, Jun 18, 2004 at 04:41:54PM -0400, [EMAIL PROTECTED] wrote:
: I am implementing page tracking on a project.
: I am coming across a problem, when I want to write a copy of the 
parameters
: or contents of a POST request to the database.
:  [snip]
: Is there anyway of getting a copy of a POST request content without
: cleaning out the input stream and stuffing up the suceeding logic?

Servlet Filter, maybe?
Aren't both POST and GET params available via request.getParameter()
or am I not correct?
-QM
--
software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Check out the coupons and bargains on MSN Offers! http://youroffers.msn.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Reading the servlet input stream twice

2004-06-18 Thread QM
On Fri, Jun 18, 2004 at 04:41:54PM -0400, [EMAIL PROTECTED] wrote:
: I am implementing page tracking on a project.
: I am coming across a problem, when I want to write a copy of the parameters
: or contents of a POST request to the database.
:  [snip]
: Is there anyway of getting a copy of a POST request content without
: cleaning out the input stream and stuffing up the suceeding logic?

Servlet Filter, maybe?
Aren't both POST and GET params available via request.getParameter()
or am I not correct?

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



re: auto-generating jk2.properties for tomcat5

2004-06-18 Thread James Black
Hello,
 I don't remember how I got this to work under tomcat4, but how would I 
auto-generate the jk2.properties file for tomcat5?

 Thank you.
--
"Love is mutual self-giving that ends in self-recovery." Fulton Sheen
James Black[EMAIL PROTECTED]

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


Reading the servlet input stream twice

2004-06-18 Thread [EMAIL PROTECTED]
Dear All,

I use Tomcat 4.1.xx
I am implementing page tracking on a project.
I am coming across a problem, when I want to write a copy of the parameters
or contents of a POST request to the database.
I have tried using HttpServletRequest.getInputStream () but this cleans out
the input stream and means that no parameters
or content is available to be passed on to the logic that processes the
parameters or post content.

Is there anyway of getting a copy of a POST request content without
cleaning out the input stream and stuffing up the suceeding logic?

Regards,

Phil Hewitt


mail2web - Check your email from the web at
http://mail2web.com/ .



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



Re: three problems

2004-06-18 Thread QM
On Fri, Jun 18, 2004 at 12:30:26PM -0600, Casas, Claudia wrote:
: Thanks QM! This works now! :) yuppiii!

Excellent -- and thank you for posting what you did.  That'll help
someone else in the archives.


: But I would like to be able to access this file with no 8080 port at
: all, like this: http://my.domain.com/~dln/myfile.jsp
: Does anybody know how to accomplish this?

You once mentioned, Apache is in front of Tomcat, correct?
This will involve a tweak to the JK config, and (perhaps) Apache's
mod_userdir (or whatever it's called) to pass requests for /~user to
Tomcat.

I'm vague on the details, because I'm short on time today.
Good luck,

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: sleepy tomcat

2004-06-18 Thread John Najarian
The CPU I never thought was a problem & the Page File should be more than
enough.  I'd look at the code but if it runs on JRun fine I don' really know.

-Original Message-
From: Yana Begun <[EMAIL PROTECTED]>
Sent: Jun 18, 2004 1:12 PM
To: Tomcat Users List <[EMAIL PROTECTED]>, 
John Najarian <[EMAIL PROTECTED]>
Subject: RE: sleepy tomcat

CPU Usage 2%   Page File Usage 380/1249 -  should be enough?


-Original Message-
From: John Najarian [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 18, 2004 3:59 PM
To: Tomcat Users List
Subject: RE: sleepy tomcat

What else is running?  Check your page file size or just increase it.

-Original Message-
From: Yana Begun <[EMAIL PROTECTED]>
Sent: Jun 18, 2004 12:36 PM
To: Tomcat Users List <[EMAIL PROTECTED]>
Subject: RE: sleepy tomcat

But the web version with JRun works OK.

Everything runs on XP 2002 + Service Pack 1. 512MB of RAM

-Original Message-
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 18, 2004 3:29 PM
To: Tomcat Users List
Subject: Re: sleepy tomcat

look in your code, that is where it happens,
most likely your code is super slow, and the other requests are just
being queued until your current requests are completing.

Filip

- Original Message - 
From: "Yana Begun" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 18, 2004 2:23 PM
Subject: sleepy tomcat


Hi,

I have stand alone version of our web application running with Tomcat. 

Everything is fine, but after displaying 5-6 pages it starts to work
VERY slowly. Like 30 minutes for one page.

CPU is not busy at this moment. It seems like nothing happen or tomcat
falling asleep.

I thought that the problem is the cheap database that we use for this
version, but when I tried to connect to the MSSQL, result was the same. 

Any recommendations, what I can check or how I can test this stuff?

 

Thanks, Yana

 




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



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



Re: JK2: lb_factor

2004-06-18 Thread Michael Echerer

Kommuru, Bhaskar wrote:
Thanks for you comments Michael, 
So mod_jk2.0.4 does not still seem to be a production quality software. It
doesnot work the way it is supposed to work as the documentation. I have
spent already a lot of time on this. 
Actually the 10 Tomcat scenario I mentioned was with mod_jk1.x.y and 
Apache 2.0.46 (also prefork). I did it merely to verify a new mod_jk2 
setup vs. an existing one. Finally I found out that the old setup with 
mod_jk1 didn't work either. ;-) Why did I start digging...
I just want to confirm one thing here that it works and no matter what your
settings are :--(
By the way... The issue with remote and local workers, can be solved.
You have to set the level attribute for each channel in your 
workers2.properties:

take for local workers:
level=0
for remote workers:
level=1
Usually you will set this for all your channels vice versa on e.g. two 
Apache machines (each with e.g. 2 local Tomcats and 2 remote Tomcats).
In front of the 2 Apaches you could have a hardware lb.

The effect is that (each) Apache will only serve its local workers 
according to its workers2.properties until (here: both!) all local 
Tomcats are offline. So in this respect to mod_jk2 docu is quite okay. 
At least this part of the config works for me. I did't that any 
lb_factor for the channels, only level to achieve this local/remote 
distribution.

If you don't like this you have to set the level equally for all your 
Tomcat channels. Guess the local/remote levels are mainly to save some 
bandwith.

Michael
P.S. Until now I still think, that the best approach would be to try the 
 MPM worker, instead prefork and check whether this has really a 
positve effect. Any volunteers for compiling Apache 2.x 
"--with-mpm=worker" and trying this?

If you know any links which tells more details on this, Please let me know.
Regards,
Bhaskar
-Original Message-
From: Michael Echerer [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 9:08 PM
To: Tomcat Users List
Subject: Re: JK2: lb_factor
I measured similar effects using "The Grinder".
Under maximum load with long running requests it can be even that worse 
that one Apache 2.x (default compile: prefork) with 2 Tomcats 
5.x/mod_jk2 only distributes to the first Tomcat at all.
This is true as long as Apache runs out of MaxClients because of the 
concurrent requests. Then, for some reason, Apache starts to distribute 
also some load to the second Apache.
So it might help if you lower MaxClients (this seems the only thing that 
has an direct effect, not lb_factor, not ajp13 threads or anything else) 
to force this earlier, but be aware that this might produce errors if 
you get much more requests that then can't be queued anymore.

I suppose Apache prefork and worker communication via shared memory by 
mod_jk2 don't work well together, or the don't work at all for true 
round robin. Putting more than 2 Tomcats won't help with high load. I 
once had 10 Tomcats, but in the end only the first few got most of the 
load, Tomcat No 7-10 almost nothing.

I also heard that Apache MPM may help, but didn't try yet. So either I 
forget something in my config, I have to use MPM (although nothing is 
really mentioned about those issues in the docu), or mod_jk2 is really 
not too good in this area.

Last advice: If you have that option to use a hardware router than I'd 
suggest to use more Apaches with only one Tomcat behind each of them. 
This will definitely work best as those routers do a true round robin.

Ralph Einfeldt wrote:
The quality of the distribution depends on the worker type 
of apache. (AFAIK only the 'worker' MPM will work)

Nevertheless AFAIK the load balancing in mod_jk is not 
complete in this area, so I'm not shure if you will get 
the desired distribution (but it should be closer).


-Original Message-
From: Weseloh, Nicole [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 11:48 AM
To: [EMAIL PROTECTED]
Subject: JK2: lb_factor
I've got a cluster with 2 tomcat 2.0.25 on different 
machines, on one of them also running Apache 2.0.49 with JK2 
as a loadbalancer. Requests get redirected to both tomcat instances, 
but it always ends up with around 1/3 of all requests at the local 
server and about 2/3 at the remote one, no matter what value the 
lb_factors are.

So, could anyone tell me which values I should use to make 
the lb_factor work correctly? All information I found was that 
"a lower value means more requests" (official JK2-documentation 
at jakarta.apache.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: sleepy tomcat

2004-06-18 Thread Yana Begun
CPU Usage 2%   Page File Usage 380/1249 -  should be enough?


-Original Message-
From: John Najarian [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 18, 2004 3:59 PM
To: Tomcat Users List
Subject: RE: sleepy tomcat

What else is running?  Check your page file size or just increase it.

-Original Message-
From: Yana Begun <[EMAIL PROTECTED]>
Sent: Jun 18, 2004 12:36 PM
To: Tomcat Users List <[EMAIL PROTECTED]>
Subject: RE: sleepy tomcat

But the web version with JRun works OK.

Everything runs on XP 2002 + Service Pack 1. 512MB of RAM

-Original Message-
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 18, 2004 3:29 PM
To: Tomcat Users List
Subject: Re: sleepy tomcat

look in your code, that is where it happens,
most likely your code is super slow, and the other requests are just
being queued until your current requests are completing.

Filip

- Original Message - 
From: "Yana Begun" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 18, 2004 2:23 PM
Subject: sleepy tomcat


Hi,

I have stand alone version of our web application running with Tomcat. 

Everything is fine, but after displaying 5-6 pages it starts to work
VERY slowly. Like 30 minutes for one page.

CPU is not busy at this moment. It seems like nothing happen or tomcat
falling asleep.

I thought that the problem is the cheap database that we use for this
version, but when I tried to connect to the MSSQL, result was the same. 

Any recommendations, what I can check or how I can test this stuff?

 

Thanks, Yana

 




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



SSL Config Issue

2004-06-18 Thread pradeep pasupuleti
Hi, 
I did the SSL configuration with Tomcat Successfully.
I saw the opening page when I entered the URL
https://localhost:8443. But when I ran my application
I ran into an exception
"org.apache.jasper.JasperException: Framework binding
failed". 

1. I counter the same problem when I run my
application on 8080 with http (after I configured SSL)
2. But my application works perfectly fine (with http
and 8080) if I disable the SSL configuration.(set the
server.xml back to the default).

Please assist me on how o get around with this
problem.

Thank you,
Pradeep





__
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 

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



RE: sleepy tomcat

2004-06-18 Thread John Najarian
What else is running?  Check your page file size or just increase it.

-Original Message-
From: Yana Begun <[EMAIL PROTECTED]>
Sent: Jun 18, 2004 12:36 PM
To: Tomcat Users List <[EMAIL PROTECTED]>
Subject: RE: sleepy tomcat

But the web version with JRun works OK.

Everything runs on XP 2002 + Service Pack 1. 512MB of RAM

-Original Message-
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 18, 2004 3:29 PM
To: Tomcat Users List
Subject: Re: sleepy tomcat

look in your code, that is where it happens,
most likely your code is super slow, and the other requests are just
being queued until your current requests are completing.

Filip

- Original Message - 
From: "Yana Begun" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 18, 2004 2:23 PM
Subject: sleepy tomcat


Hi,

I have stand alone version of our web application running with Tomcat. 

Everything is fine, but after displaying 5-6 pages it starts to work
VERY slowly. Like 30 minutes for one page.

CPU is not busy at this moment. It seems like nothing happen or tomcat
falling asleep.

I thought that the problem is the cheap database that we use for this
version, but when I tried to connect to the MSSQL, result was the same. 

Any recommendations, what I can check or how I can test this stuff?

 

Thanks, Yana

 




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



Fwd: A application level cache Issue in the newest TC 5

2004-06-18 Thread Vernon
Anyone?

Note: forwarded message attached.





__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail --- Begin Message ---

I have the following debugging code in one
region/section (of a page) of JSP files.

pageContext.getRequest().getLocale()
pageContext.getResponse().getLocale()

On the TC 4.1.29 (and up to 5.0.19 I believe), the
values are the followings:

en_CA
en_CA

But, on TC 5.0.25,

en_CA
zh

The first request was from a browser with Chinese on
the top of the accepted-language list. It seems to me
that it is due to application level cache.  It is only
applied for the header and footer of a page, but not
the body. The tagPool in the server.xml is off.

How to resolve this unexpected problem?

Thanks,

v.



__
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 

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


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

RE: sleepy tomcat

2004-06-18 Thread Yana Begun
But the web version with JRun works OK.

Everything runs on XP 2002 + Service Pack 1. 512MB of RAM

-Original Message-
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 18, 2004 3:29 PM
To: Tomcat Users List
Subject: Re: sleepy tomcat

look in your code, that is where it happens,
most likely your code is super slow, and the other requests are just
being queued until your current requests are completing.

Filip

- Original Message - 
From: "Yana Begun" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 18, 2004 2:23 PM
Subject: sleepy tomcat


Hi,

I have stand alone version of our web application running with Tomcat. 

Everything is fine, but after displaying 5-6 pages it starts to work
VERY slowly. Like 30 minutes for one page.

CPU is not busy at this moment. It seems like nothing happen or tomcat
falling asleep.

I thought that the problem is the cheap database that we use for this
version, but when I tried to connect to the MSSQL, result was the same. 

Any recommendations, what I can check or how I can test this stuff?

 

Thanks, Yana

 




-
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: sleepy tomcat

2004-06-18 Thread Filip Hanik - Dev
look in your code, that is where it happens,
most likely your code is super slow, and the other requests are just being queued 
until your current requests are completing.

Filip

- Original Message - 
From: "Yana Begun" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 18, 2004 2:23 PM
Subject: sleepy tomcat


Hi,

I have stand alone version of our web application running with Tomcat. 

Everything is fine, but after displaying 5-6 pages it starts to work
VERY slowly. Like 30 minutes for one page.

CPU is not busy at this moment. It seems like nothing happen or tomcat
falling asleep.

I thought that the problem is the cheap database that we use for this
version, but when I tried to connect to the MSSQL, result was the same. 

Any recommendations, what I can check or how I can test this stuff?

 

Thanks, Yana

 




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



Re: sleepy tomcat

2004-06-18 Thread John Najarian
What's the RAM?  What platform?

-Original Message-
From: Yana Begun <[EMAIL PROTECTED]>
Sent: Jun 18, 2004 12:23 PM
To: [EMAIL PROTECTED]
Subject: sleepy tomcat

Hi,

I have stand alone version of our web application running with Tomcat. 

Everything is fine, but after displaying 5-6 pages it starts to work
VERY slowly. Like 30 minutes for one page.

CPU is not busy at this moment. It seems like nothing happen or tomcat
falling asleep.

I thought that the problem is the cheap database that we use for this
version, but when I tried to connect to the MSSQL, result was the same. 

Any recommendations, what I can check or how I can test this stuff?

 

Thanks, Yana

 



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



sleepy tomcat

2004-06-18 Thread Yana Begun
Hi,

I have stand alone version of our web application running with Tomcat. 

Everything is fine, but after displaying 5-6 pages it starts to work
VERY slowly. Like 30 minutes for one page.

CPU is not busy at this moment. It seems like nothing happen or tomcat
falling asleep.

I thought that the problem is the cheap database that we use for this
version, but when I tried to connect to the MSSQL, result was the same. 

Any recommendations, what I can check or how I can test this stuff?

 

Thanks, Yana

 



Tomcat sporadic errors

2004-06-18 Thread HIRODE,KARTHEEK (HP-Boise,ex1)
Hello all,

We are running Tomcat as the backend servlet engine in conjunction with
Apache as the webserver. The configuration is so that they are inline
processes. The connector between Apache and Tomcat is the "Coyote/JK2 AJP
1.3 Connector"

When we access the servlets through Apache on port 80, everything works
fine. But when we access the servlets directly on Tomcat using port 8080, we
get blank pages sporadically. It does not occur all the time, but one in 10
requests. 

Could anyone throw light on what may be causing these blank pages to be
built from Tomcat?

The blank page that is generated from Tomcat has the following HTML tags:





Best Regards
-- Kartheek Hirode
   HP.com Hub Services

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



RE: three problems

2004-06-18 Thread Casas, Claudia
Thanks QM! This works now! :) yuppiii!
I run the same command for the iptables with a bit change:

>iptables -t filter -I RH-Firewall-1-INPUT 7\
-p tcp --dport 8080 \
-m state --state NEW -j ACCEPT

>service iptables save
the -I option to insert this rule in a specific line number, in my case
7.
And it works. My tomcat can be seen from the outside now.

By the way, I managed to run tomcat from a user tomcat and not from
root. :)


Also, I added the following lines in the server.xml file at the very
end. 
After the last  tag and before the last  tag:

  


This allows me to now see the jsp's located in /home/dln/wwwdocs as
http://my.domain.com:8080/~dln/myfile.jsp

But I would like to be able to access this file with no 8080 port at
all, like this: http://my.domain.com/~dln/myfile.jsp

Does anybody know how to accomplish this?


I tested the following : http://localhost:8080/examples and
http://localhost/examples and they both work fine.
If I try to reach from the outside http://my.domain.com:8080/examples it
works fine, but I cannot see the http://my.domain.com/examples





-Original Message-
From: QM [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 18, 2004 6:18 AM
To: Tomcat Users List
Subject: Re: three problems


Clearly, my eyes aren't as sharp when I'm half-awake. 

Here's the culprit:

: REJECT all  --  0.0.0.0/00.0.0.0/0
reject-with
: icmp-host-prohibited

That's the tail end of the chain, so any rules appended to that chain
(like the Tomcat rule I showed you) will never be reached.

Rerun the "iptables --list" command, but use the switch to show rule
numbers.  You can then run the other iptables command I showed you, but
use *insert* instead of *append*.  Be sure to insert above that last
reject rule.

See the iptables docs/manpage for more info, commandline switches, etc.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.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]



running error page through filter?

2004-06-18 Thread Seth Ladd
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello,
I'm having a difficult time running Tomcat managed error-pages through a
filter.  I'm hoping someone might be able to lend a tip.  I've been
reassured that this is not a bug, so it gives me hope this is possible. :)
from web.xml:

sitemesh
/*
FORWARD 
REQUEST
ERROR


404
/WEB-INF/jsp/error404.jsp

I've placed debug logic in the sitemesh filter to print out when it gets
a request, and I don't receive any print out when the error page is
displayed.  So I'm fairly certain the filter is not being run.
Any other configuration items required to wrap an error in a filter?
Thanks very much!  Your help is greatly appreciated,
Seth
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3-nr1 (Windows XP)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFA0zRRKZsFSwtW+wIRAvPXAJ9r++ebUZs78jh68963UVskC1d16QCfTCRx
3Wj8dBXYeErS2KELrTn6pdo=
=zc5j
-END PGP SIGNATURE-
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Multiple Tomcat Instances with Linux

2004-06-18 Thread Jon Feauto
Hello,

I'm certain I am behind the curve on this one, but
I've been looking around for several days now and
haven't found the answers I need.

I'm looking to setup multiple environments for Tomcat
4x on a single linux server.  One for each developer
and several others for different versions of test.

>From the mail list archives I've come to understand
that CATALINA_BASE can be used to configure multiple
instances.  However, most examples I've seen use this
in coordination with multiple server.xml files.

I'm hoping there is a trick to this that I'm missing. 
I don't mind the extra configuration as long as that
is the recommended approach.

For an installation supporting a linux service, does
the /etc/init.d/tomcat4 script need to be modified to
set the CATALINA_BASE for each instance started?

Do I need to use different port numbers to access
those instances?

Is the CATALINA_HOME/shared/lib actually "shared"
across instances or can it be unique to an instance
according to CATALINA_BASE?

Is virtual hosting required to support this type of
environment?

Any help is appreciated.

Thanks,
Jon

__
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: Tomcat 4.1.30 does not respect Date header

2004-06-18 Thread Chris Rossi
Shapira, Yoav wrote:
Hola,

Hello.  I am using Tomcat 4.1.30, with java 1.4.2 on a Readhat linux
server.  I was going to submit a bug report, but I noticed the bug
tracker only goes through version 4.1.9.  Is that bug tracker still
being used?  Should I still submit bugs to it?

Look again ;)  The bug tracker goes through 4.1.30, it's just a string
sort so 4.1.30 is in the middle and 4.1.9 is at the end.
doh!

Anyway, I am implementing an HTTP Cache filter using the Java Servlet

You can save yourself some effort and use an existing free filter such
as those in http://www.onjava.com/pub/a/onjava/2004/03/03/filters.html
or http://www.servletsuite.com/servlets/responseflt.htm (there are many
others, you can just google).
I looked at the onjava cache before starting, and it didn't work quite 
like I want.  I want something that works essentially like an HTTP cache 
proxy.  So it caches based on the headers of the outgoing response.  The 
second link simply adds headers to your response.  My preference, for 
setting cache headers, is to set them inside the servlet, since only it 
should know whether a response can/should be cached.  At any rate, it's 
not a super complicated filter and I'm just about finished with it anyway.


When I look at the actual HTTP generated response I'm finding that my
attempt to set the "Date" header is being ignored and the date of the
header always reflects the time "now".  So when my filter returns a

Are you sure you're not setting it to "now" ? ;)
Yeah, I'm pretty sure. ;)
I can see only one place in the tomcat code that sets this header: the
Coyote Http11Processor (org.apache.coyote.http11.Http11Processor in the
jakarta-tomcat-connectors CVS module).  That code does a check to make
sure it's not overwriting an existing header with the same name.
Furthermore, even if this code sets the header, you second call would
overwrite the currently set value.  You're setting it in your filter
after the doChain call, right?
Actually, I only set it if I'm not calling doChain: the filter has 
decided the cached response is fresh so it sends that rather than 
working up the chain.

As an experiment I used setHeader( "Date", dateString ) intead of 
setDateHeader( "Date", timestamp ).  The setHeader() call is actually 
respected, so the problem seems to be only with the setDateHeader() 
method.  I guess the headers set via setHeader() and via setDateHeader() 
must live in seperate data structures and only the one is getting 
checked.  For obvious reasons it's preferable to just use the 
setDateHeader() method but I can always use a SimpleDateFormat object to 
do the string conversion myself.

(Actually, my above paragraph is looking at the 5.0.27 source code, but
I think 4.1.30 is the same in this area).
Uh oh.  You're going to make me download the 4.1.30 source aren't you.  ;)
thanks for your help,
rossi
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat 5 Database Connections

2004-06-18 Thread Shapira, Yoav

Hi,
A few notes:

First, I see on your other thread that you now have this working and
suspect something else was the cause, like a tag error.  I'm glad it's
working, and as you noted in the same message it's "rock solid."

Second, I just did a clean tomcat install and followed the JDBC
DataSource how-to *to the letter* to set up a connection pool for an
existing Oracle database.  I didn't run into any problems, including the
"cannot locate driver 'null' for url 'null' type of problem.  It works
exactly as expected.  This is obviously not my first time doing this,
but it's the first time I've done it manually from scratch in more than
a year, and I'm pleased to discover the document is complete and
accurate.

Third, and this is a bit superfluous but I'll mention it anyway: you
can't conclude that most users are finding it difficult from the
archives of this list.  The reason is that you don't hear from people
who succeed, because they have nothing to brag about, they just followed
the documentation.  All you hear from are those who are having problems,
which even if we heard about this once a day would still be a small
minority of tomcat users judging from the tomcat download counts.  Of
course this is an analysis that's hard to do precisely because we don't
know what percentage of downloaders use the connection pooling, but the
bottom line is still that you only hear problems and not good
experienced.

Finally, as to your point that this should be simpler: most of these
elements, specifically the Resource/ResourceParams declaration in a
server configuration file and matching resource link in web.xml, as well
as the JNDI environment namespace, are mandated by the J2EE
Specification.  It's not our choice to declare and configure things this
way.  The specific parameters, such as
maxActive/maxIdle/maxWait/username are mandated by the connection pool
implementation: even though we bundle DBCP and offer documentation for
it, we by no means require the user to use it.  It's trivial to swap
another DataSource pool provider and use that with tomcat instead.  So
most of this is out of our hands, and if you have a good idea for a
simpler mechanism the place to bring it up is the J2EE expert groups.

Yoav Shapira


Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Jeff Sexton [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 16, 2004 2:21 PM
>To: [EMAIL PROTECTED]
>Subject: Tomcat 5 Database Connections
>
>This is part question and part observation regarding database
>connectivity under Tomcat (5.0.24).
>
>My application normally runs in production at my company on a
>Tomcat 4.0.4 server.  The applications includes Cocoon and access
>to several databases (Sybase) via both Tomcat connections from
>servlets and from Cocoon XSP pages.  I've been at this for awhile
>now and I'm a huge fan of Tomcat (and Cocoon).
>
>On a new test server I setup Tomcat 5.0.24 and installed my
>applications.  For sometime I thought all was well because
>most of my stuff is Cocoon driven, and it's fine, including
>database connectivity.
>
>This week I realized that my servlets are getting:
>
>org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver
of
>class ''
>for connect URL 'null', cause: null
>
>I've spent several days now trying to fix this.  I've read verious
posts
>from this list's archive, and several other places.  I've studied
>many examples, and done google after google on it.
>
>My conclusion is that for whatever reason *a lot* of people have
>this trouble with TC 5x.  However there are very few solutions.
>
>Yes, my jdbc jar file is in common/lib (and WEB-INF/lib, both).
>Yes, I've tried declarations in  and in the apps
>, either.  Yes web.xml contains a  with the
>same .  The only thing I have not done is to create
>a META-INF/context.xml (is defining these resources in server.xml
>simply broken?).
>
>I'm dead stopped on this - yet I have no trouble at all with Tomcat
>4.0.4.
>
>It seems like some people do get this to work.  It seems like many,
>many people do not.  Is there a bug at play in all this?
>
>Here's my question - Why is it so hard?
>
>--
>The ODS Companies
>Jeff Sexton
>Information Services
>(503) 228-6554   x1026
>http://www.odscompanies.com
>
>This message is intended for the sole use of the individual and entity
>to whom it is addressed, and may contain information that is
privileged,
>confidential and exempt from disclosure under applicable law. If you
are
>not the intended addressee, nor authorized to receive for the intended
>addressee, you are hereby notified that you may not use, copy, disclose
>or distribute to anyone the message or any information contained in the
>message. If you have received this message in error, please immediately
>advise the sender by reply email and delete the message.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

Re: Sybase and Tomcat 5, Possible Problem

2004-06-18 Thread Jeff Sexton
Shapira, Yoav wrote:
Hi,
Hmm... It's good you can verify the login on the DB side.  You should
try to debug this in tomcat 5 rather than rolling back, if possible.
Where is the driver jar located in your server?
I've been trying to stick with common/lib.  That seems to work.
Since I was able to get a version 4.1.30 to work, I started over,
using those elements, on the 5.0.24 server.  I was able to get the
5.0.24 server to work this time!  Not sure why, however.
I imagine that the original exception was a red herring and my problem
was really some misplaced tags or typo.  I guess.  It all still
seems much harder than it should be.  But once it works, it's rock
solid.
--
The ODS Companies
Jeff Sexton
Information Services
(503) 228-6554   x1026
http://www.odscompanies.com
This message is intended for the sole use of the individual and entity
to whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose
or distribute to anyone the message or any information contained in the
message. If you have received this message in error, please immediately
advise the sender by reply email and delete the message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat 5 Database Connections

2004-06-18 Thread Jeff Sexton
This is part question and part observation regarding database
connectivity under Tomcat (5.0.24).
My application normally runs in production at my company on a
Tomcat 4.0.4 server.  The applications includes Cocoon and access
to several databases (Sybase) via both Tomcat connections from
servlets and from Cocoon XSP pages.  I've been at this for awhile
now and I'm a huge fan of Tomcat (and Cocoon).
On a new test server I setup Tomcat 5.0.24 and installed my
applications.  For sometime I thought all was well because
most of my stuff is Cocoon driven, and it's fine, including
database connectivity.
This week I realized that my servlets are getting:
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of 
class ''
for connect URL 'null', cause: null

I've spent several days now trying to fix this.  I've read verious posts
from this list's archive, and several other places.  I've studied
many examples, and done google after google on it.
My conclusion is that for whatever reason *a lot* of people have
this trouble with TC 5x.  However there are very few solutions.
Yes, my jdbc jar file is in common/lib (and WEB-INF/lib, both).
Yes, I've tried declarations in  and in the apps
, either.  Yes web.xml contains a  with the
same .  The only thing I have not done is to create
a META-INF/context.xml (is defining these resources in server.xml
simply broken?).
I'm dead stopped on this - yet I have no trouble at all with Tomcat
4.0.4.
It seems like some people do get this to work.  It seems like many,
many people do not.  Is there a bug at play in all this?
Here's my question - Why is it so hard?
--
The ODS Companies
Jeff Sexton
Information Services
(503) 228-6554   x1026
http://www.odscompanies.com
This message is intended for the sole use of the individual and entity
to whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose
or distribute to anyone the message or any information contained in the
message. If you have received this message in error, please immediately
advise the sender by reply email and delete the message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Sybase and Tomcat 5, Possible Problem

2004-06-18 Thread Jeff Sexton
After a lot of effort, I feel there may be some reason that the Sybase
JConnect JDBC driver doesn't work in Tomcat 5.0.24 (I use Tomcat 4 for my
Sybase driven apps quite a bit).
The exception is:
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of 
class '' for connect URL 'null', cause: null

META-INF/context.xml is:
  
  
  
From conf/server.xml contains:
  


  
factory
org.apache.commons.dbcp.BasicDataSourceFactory
  
  
username
excalibur
  
  
password
mypassword
  
  
driverClassName
com.sybase.jdbc2.jdbc.SybDriver
  
   
 driverName
 jdbc:sybase:Tds:pdxax12:4100
   
  
url
jdbc:sybase:Tds:pdxax12:4100
  
  
maxActive
5
  

  
web.xml contains:



ProvCICS


com.ods.forte.cics.servlet.ProvCICS

1


  ProvCICS
  /ProvCICS


  odsdb03 Connection Pool
  jdbc/odsdb03
  javax.sql.DataSource
  Container


I have also tried working with the  placed in server.xml
and with the  defined in the context, all combinations
yield the same behavior.
*Tomcat does actually log into the database server when it starts*
I can see it from the database side.  Therefore I know the jdbc
jar file is loaded and the connection specification correct and working.
In addition, the stack trace in catalina.out includes a point
in Sybase code:
Cannot create JDBC driver of class '' for connect URL 'null'
java.lang.NullPointerException
at com.sybase.jdbc2.jdbc.SybDriver.acceptsURL(SybDriver.java:197)
at java.sql.DriverManager.getDriver(DriverManager.java:249)
at 
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:743)
...

So can I conclude that the app is actually linked to the resource?  If
so then the problem seems to be that the information required somehow
does not reach down the driver?
Ideas?
Should I rollback to TC 4x for awhile?
--
The ODS Companies
Jeff Sexton
Information Services
(503) 228-6554   x1026
http://www.odscompanies.com
This message is intended for the sole use of the individual and entity
to whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law. If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose
or distribute to anyone the message or any information contained in the
message. If you have received this message in error, please immediately
advise the sender by reply email and delete the message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Bizarre parse error

2004-06-18 Thread Jonathan Melhuish
I've got a rather bizarre problem which I can't quite get my head
around, and was wondering if anybody might be able to help.
I'm using Xalan to transform XML into HTML4 using an XSLT stylesheet.
The page appears to be generated correctly, from looking at the source
code.  However, upon loading, Internet Explorer (5 and 6) gives the error:
   The character '>' was expected. Error processing resource
'http://www.w3.org/TR/html4/strict.dtd'. Line 81, Position 5
   -- media type, as per [RFC2045]
   ^
The line number referenced is not related to the source code of my
page.  Mozilla, meanwhile gives the error "XML Parsing Error: mismatched
tag. Expected: " which would imply that it is trying to parse it
as XHTML.  Changing the DOCTYPE declaration from Strict to Transitional
changes the line number in IE but not the error given by Mozilla.
Removing the DOCTYPE definition completely brings IE's error in line
with Mozilla's.
However, all of this would perhaps seem rather irrelevant, as I found
that saving the file to disk and re-opening it causes it to be displayed
correctly in both browsers.  Similarly, saving the resultant HTML and
serving it through Tomcat also works, regardless of whether the filename
extension is .html or .jsp.  My only suggestion was that perhaps it was
something to do with the MIME type, but presumably Tomcat would decide
that based on the filename extension if my JSP pages were not to contain
the line:
<%@ page language="java" contentType="text/html" %>
This presumption is supported by the fact that removing this line makes
no difference to either error.
Which leaves me completely out of ideas... help!
TIA,
Jon

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


Session Timeout Error

2004-06-18 Thread Matt Krone
The web application I developed has a session-timeout
setting of 10 minutes.  When I authenticate with the
application using the web browser Mozila 1.6 the
session times out in 10 minutes.  However, when I use
the web browser IE 6.0 the session does not time out
in 10 minutes.  Any thoughts would be helpful?

-Matt

=

/* Matt  */ 


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



Defining datasource resource

2004-06-18 Thread Luise Massimo
Hi all,

I have a problem defining datasources into server.xml: the datasource to define are 
too much (over 200 !) to manage them via admin interface.
There are other way ? Is it possible to define a template of datasource resource and 
then change jdbc url at runtime ?
Till now i have managed all things searching datasources under a different JDNI 
context (not the standard one java:comp/env/jdbc), rebinding first time not found... 
but i don't like this solution!

hope someone can help...thanks


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



RE: Tomcat Stand-alone

2004-06-18 Thread Carl Olivier
Hi Yoav.

Just a have a potentially stupid question - but if I am NOT using the
Management app at all - is there a way to disable the Mbean Server
registrations etc?

Thanks

Carl

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: 18 June 2004 03:34 PM
To: Tomcat Users List
Subject: RE: Tomcat Stand-alone



Hi,
It's MX4J 1.1, not 2.x, and we have an enhancement item open for that.

Your assumption is correct, it's in the JMX jar in the /bin folder. However,
that will be separated out as well, into the jmx.jar containing just the JMX
API itself without an implementation, and an implementation jar.  This
separation, along with coding for JDK 1.5's JMX Remote, will be done in the
tomcat 5.1 release branch I think.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>Sent: Friday, June 18, 2004 9:26 AM
>To: 'Tomcat Users List'
>Subject: RE: Tomcat Stand-alone
>
>Hi.
>
>Does anyone know what version of mx4j is being shipped with TC 5.0.25?
>
>I assume it is the jmx.jar in the /bin folder?
>
>Regards,
>
>Calr
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: 18 June 2004 02:59 PM
>To: Tomcat Users List
>Subject: RE: Tomcat Stand-alone
>
>
>
>Hi,
>The problem is not related to the one you saw, they just share the same 
>generic error.  Please submit a Bugzilla item for this.
>
>Yoav Shapira
>Millennium Research Informatics
>
>
>>-Original Message-
>>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>>Sent: Friday, June 18, 2004 7:55 AM
>>To: '[EMAIL PROTECTED]'
>>Subject: Tomcat Stand-alone
>>
>>
>>Greetings again all.
>>
>>Having a very irritating problem.  I am trying to run Tomcat 5.0.25 
>>standalone using 3 HTTP1.1 Coyote connectors - one for "behind the
>firwall
>>access", one for standard HTTP requests to all hosts and contexts and
1
>for
>>1 site running HTTPS (SSL) on a specific IP.
>>
>>Now, when the server starts all goes well up until near the end -
where
>the
>>following error is thrown in the tomcat logs:
>>
>>2004/06/18 01:47:32 org.apache.coyote.tomcat5.MapperListener init
>>WARNING: Error registering contexts 
>>java.util.ConcurrentModificationException
>>  at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
>>  at java.util.HashMap$EntryIterator.next(HashMap.java:824)
>>  at java.util.HashMap.putAllForCreate(HashMap.java:424)
>>  at java.util.HashMap.clone(HashMap.java:656)
>>  at 
>>mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:5
6
>)
>>  at 
>>mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:1
6
>03)
>>  at 
>>mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568
)
>>  at
>>mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512)
>>  at
>>org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115)
>>  at 
>>org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1
5
>10)
>>  at 
>>org.apache.catalina.core.StandardService.start(StandardService.java:48
5
>)
>>  at 
>>org.apache.catalina.core.StandardServer.start(StandardServer.java:2298
)
>>  at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>  at 
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
a
>va:3
>>9
>>)
>>  at 
>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
o
>rImp
>>l
>>.java:25)
>>  at java.lang.reflect.Method.invoke(Method.java:324)
>>  at
>org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
>>  at
>org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
>>
>>After this, all 3 the HTTP1.1 Coyote connectors are paused.
>>
>>This clearly does not help matters.  I read a bugzilla report about a 
>>similar problem in Tomcat 4.1.30 - being fixed, and was wondering if
>this
>>is
>>related and would be fixed for TC 5?
>>(http://issues.apache.org/bugzilla/show_bug.cgi?id=27315)
>>
>>The funny thing is have another server that is identically setup (same 
>>hardware, software, same TC, same sites/hosts/context) and this does
>NOT
>>happen there?
>>
>>Any assistance would be much appreciated!
>>
>>Regards,
>>
>>Carl Olivier
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>This e-mail, including any attachments, is a confidential business 
>communication, and may contain information that is confidential, 
>proprietary and/or privileged.  This e-mail is intended only for the 
>individual(s)
to
>whom it is addressed, and may not be saved, copied, printed, disclosed
or
>used by anyone else.  If you are not the(an) intended recipient, please 
>immediately delete this e-mail from your computer system and notify the 
>sender.  Thank you.
>
>
>--

[ANN] : Tomcat 5 on Linux Step-By-Step

2004-06-18 Thread Chong Yu Meng
The document has been updated.
Contributions and Help:
- Andrew Clute : Building mod_jk2 on Red Hat Enterprise Linux 3 
(resolving the 'undefined symbols: apr_md5_final ' error)
- Patricia Karsten : Eclipse + Tomcat + Tomcat Deployer
- Trevor Butler : Configuring mod_jk2 and Apache-Tomcat integration on 
Mandrake
- Josh Rehman : Deploying web applications (using the context descriptor)

Changes:
- Deploying web applications : the section now describes using the 
context descriptor instead of adding  entries directly into the 
server.xml. This revision was thanks to input from Josh Rehman.
- Warnings added for Fedora Core 2 -- users, please update to latest 
kernel to avoid hangs.

Additions:
- Reverse proxy method of integrating Apache and Tomcat 5
I know that some people have been mirroring my document without asking 
for my permission. I'm not going to come after you, don't worry, but I 
would appreciate it if you would just ask me about it. I probably won't 
say no, because I want to keep traffic on my site down to an affordable 
level. But please sync with the latest document version, so I don't get 
emails asking about stuff I already amended or deleted. The latest 
version is always at http://cymulacrum.net (look for the Tomcat 5 link). 
This document is also mirrored at 
http://www.connecties.com/cymulacrum/tomcat5/book1.html (thanks go out 
to Werner van Mook for his generosity! The latest version should be on 
its way over to that site soon).

If this document was useful to you, please drop me an email or send me 
something from my Amazon.com wish list.

Disclaimer: this document is not an official publication of the Apache 
group nor any of its affiliates. This document is a compilation of 
unofficial notes, and sometimes highly subjective perspectives. This 
document is provided AS IS, WITHOUT ANY WARRANTY; without even the 
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
You use the information contained in the document AT YOUR OWN RISK.

Regards,
pascal chong

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


RE: Tomcat Stand-alone

2004-06-18 Thread Shapira, Yoav

Hi,
It's MX4J 1.1, not 2.x, and we have an enhancement item open for that.

Your assumption is correct, it's in the JMX jar in the /bin folder.
However, that will be separated out as well, into the jmx.jar containing
just the JMX API itself without an implementation, and an implementation
jar.  This separation, along with coding for JDK 1.5's JMX Remote, will
be done in the tomcat 5.1 release branch I think.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>Sent: Friday, June 18, 2004 9:26 AM
>To: 'Tomcat Users List'
>Subject: RE: Tomcat Stand-alone
>
>Hi.
>
>Does anyone know what version of mx4j is being shipped with TC 5.0.25?
>
>I assume it is the jmx.jar in the /bin folder?
>
>Regards,
>
>Calr
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: 18 June 2004 02:59 PM
>To: Tomcat Users List
>Subject: RE: Tomcat Stand-alone
>
>
>
>Hi,
>The problem is not related to the one you saw, they just share the same
>generic error.  Please submit a Bugzilla item for this.
>
>Yoav Shapira
>Millennium Research Informatics
>
>
>>-Original Message-
>>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>>Sent: Friday, June 18, 2004 7:55 AM
>>To: '[EMAIL PROTECTED]'
>>Subject: Tomcat Stand-alone
>>
>>
>>Greetings again all.
>>
>>Having a very irritating problem.  I am trying to run Tomcat 5.0.25
>>standalone using 3 HTTP1.1 Coyote connectors - one for "behind the
>firwall
>>access", one for standard HTTP requests to all hosts and contexts and
1
>for
>>1 site running HTTPS (SSL) on a specific IP.
>>
>>Now, when the server starts all goes well up until near the end -
where
>the
>>following error is thrown in the tomcat logs:
>>
>>2004/06/18 01:47:32 org.apache.coyote.tomcat5.MapperListener init
>>WARNING: Error registering contexts
>>java.util.ConcurrentModificationException
>>  at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
>>  at java.util.HashMap$EntryIterator.next(HashMap.java:824)
>>  at java.util.HashMap.putAllForCreate(HashMap.java:424)
>>  at java.util.HashMap.clone(HashMap.java:656)
>>  at
>>mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:5
6
>)
>>  at
>>mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:1
6
>03)
>>  at
>>mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568
)
>>  at
>>mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512)
>>  at
>>org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115)
>>  at
>>org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1
5
>10)
>>  at
>>org.apache.catalina.core.StandardService.start(StandardService.java:48
5
>)
>>  at
>>org.apache.catalina.core.StandardServer.start(StandardServer.java:2298
)
>>  at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>  at
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
a
>va:3
>>9
>>)
>>  at
>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
o
>rImp
>>l
>>.java:25)
>>  at java.lang.reflect.Method.invoke(Method.java:324)
>>  at
>org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
>>  at
>org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
>>
>>After this, all 3 the HTTP1.1 Coyote connectors are paused.
>>
>>This clearly does not help matters.  I read a bugzilla report about a
>>similar problem in Tomcat 4.1.30 - being fixed, and was wondering if
>this
>>is
>>related and would be fixed for TC 5?
>>(http://issues.apache.org/bugzilla/show_bug.cgi?id=27315)
>>
>>The funny thing is have another server that is identically setup (same
>>hardware, software, same TC, same sites/hosts/context) and this does
>NOT
>>happen there?
>>
>>Any assistance would be much appreciated!
>>
>>Regards,
>>
>>Carl Olivier
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary
>and/or privileged.  This e-mail is intended only for the individual(s)
to
>whom it is addressed, and may not be saved, copied, printed, disclosed
or
>used by anyone else.  If you are not the(an) intended recipient, please
>immediately delete this e-mail from your computer system and notify the
>sender.  Thank you.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments

RE: Tomcat 4.1.30 does not respect Date header

2004-06-18 Thread Shapira, Yoav

Hola,

>Hello.  I am using Tomcat 4.1.30, with java 1.4.2 on a Readhat linux
>server.  I was going to submit a bug report, but I noticed the bug
>tracker only goes through version 4.1.9.  Is that bug tracker still
>being used?  Should I still submit bugs to it?

Look again ;)  The bug tracker goes through 4.1.30, it's just a string
sort so 4.1.30 is in the middle and 4.1.9 is at the end.

>Anyway, I am implementing an HTTP Cache filter using the Java Servlet

You can save yourself some effort and use an existing free filter such
as those in http://www.onjava.com/pub/a/onjava/2004/03/03/filters.html
or http://www.servletsuite.com/servlets/responseflt.htm (there are many
others, you can just google).

>When I look at the actual HTTP generated response I'm finding that my
>attempt to set the "Date" header is being ignored and the date of the
>header always reflects the time "now".  So when my filter returns a

Are you sure you're not setting it to "now" ? ;)

I can see only one place in the tomcat code that sets this header: the
Coyote Http11Processor (org.apache.coyote.http11.Http11Processor in the
jakarta-tomcat-connectors CVS module).  That code does a check to make
sure it's not overwriting an existing header with the same name.
Furthermore, even if this code sets the header, you second call would
overwrite the currently set value.  You're setting it in your filter
after the doChain call, right?

(Actually, my above paragraph is looking at the 5.0.27 source code, but
I think 4.1.30 is the same in this area).

Yoav



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


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



Re: Tomcat Installation Problem

2004-06-18 Thread deepak shripat mane
hii.. Dear friends

Please u can check  web.xml file or server.xml file may be some errors in that XML 
file. 

Deepak



On Fri, 18 Jun 2004 deepak Malhotra wrote :
>Hi ,
>  Recently I have installed Jakarta-tomcat-5.0..25 on
>fedora linux 2.4.22-1.2115.nptl & also I have java
>j2sdk1.4.1_02 .
>The problem is that tomcat starts successfully using
>service tomcat start
>but when i point my browser to http://localhost:8080
>browser just waits infinitely without showing the
>default
>page.
>when i checked out catalina.out it shows
>org.xml.sax.SAXParseException: The processing
>instruction target matching "[xX][mM][lL]" is not
>allowed.
>
>Exception processing Global JNDI Resources
>javax.naming.NamingException: The processing
>instruction target matching "[xX][mM][lL]" is not
>allowed.
>etc.
>So kindly guide me.
>bye
>
>
>
>
>
>
>__
>Do you Yahoo!?
>New and Improved Yahoo! Mail - 100MB free storage!
>http://promotions.yahoo.com/new_mail
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


RE: Tomcat Stand-alone

2004-06-18 Thread Carl Olivier
Hi.

Does anyone know what version of mx4j is being shipped with TC 5.0.25?

I assume it is the jmx.jar in the /bin folder?

Regards,

Calr

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: 18 June 2004 02:59 PM
To: Tomcat Users List
Subject: RE: Tomcat Stand-alone



Hi,
The problem is not related to the one you saw, they just share the same
generic error.  Please submit a Bugzilla item for this.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>Sent: Friday, June 18, 2004 7:55 AM
>To: '[EMAIL PROTECTED]'
>Subject: Tomcat Stand-alone
>
>
>Greetings again all.
>
>Having a very irritating problem.  I am trying to run Tomcat 5.0.25 
>standalone using 3 HTTP1.1 Coyote connectors - one for "behind the
firwall
>access", one for standard HTTP requests to all hosts and contexts and 1
for
>1 site running HTTPS (SSL) on a specific IP.
>
>Now, when the server starts all goes well up until near the end - where
the
>following error is thrown in the tomcat logs:
>
>2004/06/18 01:47:32 org.apache.coyote.tomcat5.MapperListener init
>WARNING: Error registering contexts 
>java.util.ConcurrentModificationException
>   at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
>   at java.util.HashMap$EntryIterator.next(HashMap.java:824)
>   at java.util.HashMap.putAllForCreate(HashMap.java:424)
>   at java.util.HashMap.clone(HashMap.java:656)
>   at 
>mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56
)
>   at 
>mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:16
03)
>   at
>mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568)
>   at
>mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512)
>   at
>org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115)
>   at 
>org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:15
10)
>   at 
>org.apache.catalina.core.StandardService.start(StandardService.java:485
)
>   at
>org.apache.catalina.core.StandardServer.start(StandardServer.java:2298)
>   at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:3
>9
>)
>   at 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImp
>l
>.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:324)
>   at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
>   at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
>
>After this, all 3 the HTTP1.1 Coyote connectors are paused.
>
>This clearly does not help matters.  I read a bugzilla report about a 
>similar problem in Tomcat 4.1.30 - being fixed, and was wondering if
this
>is
>related and would be fixed for TC 5?
>(http://issues.apache.org/bugzilla/show_bug.cgi?id=27315)
>
>The funny thing is have another server that is identically setup (same 
>hardware, software, same TC, same sites/hosts/context) and this does
NOT
>happen there?
>
>Any assistance would be much appreciated!
>
>Regards,
>
>Carl Olivier
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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

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



Re: Multiple Thread Pools

2004-06-18 Thread Filip Hanik - Dev
I don't think that will work for you, since there is some logic associated with the 
fact that the incoming thread is released, means
it releases all the request/response logic,

Filip

- Original Message -
From: "Prabhakaran Nagarajan" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, June 18, 2004 8:23 AM
Subject: Re: Multiple Thread Pools


> Thanks for your replies.  I was trying to avoid using
> apache if possible.
> As for writing my own code, I was planning on doing
> this:
> Write a custom valve that looks at the request uri.
> If one of the "bad performing" page is requested,
> spawn off a separate thread (doug lea's
> PooledExecutor) and process request in that thread.
> In theory, to process the request, I obtain the
> wrapper (request.getWrapper()), do a
> wrapper.allocate() to get the servlet instance, and
> call service(req,resp) on the servlet.
> However, when I try this, the getWrapper() returns a
> null.  Is there some other way I should be processing
> the request?  Or is there a better way to achieve what
> I want?
>
> Thanks,
> Prabhakaran.
>
> --- Filip Hanik - Dev <[EMAIL PROTECTED]> wrote:
> > put apache/mod_proxy in front of it.
> > have apache redirect one path of JSPs to one
> > connector,
> > then redirect everything else to another connector
> >
> > Filip
> >
> > - Original Message -
> > From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List"
> > <[EMAIL PROTECTED]>
> > Sent: Friday, June 18, 2004 7:50 AM
> > Subject: RE: Multiple Thread Pools
> >
> >
> > >
> > > Hi,
> > > Not currently in tomcat.  You'd have to write your
> > own code for this.
> > > You listed your options well at the end of your
> > message.
> > >
> > > Yoav Shapira
> > > Millennium Research Informatics
> > >
> > >
> > > >-Original Message-
> > > >From: Prabhakaran Nagarajan
> > [mailto:[EMAIL PROTECTED]
> > > >Sent: Thursday, June 17, 2004 7:31 PM
> > > >To: [EMAIL PROTECTED]
> > > >Subject: Multiple Thread Pools
> > > >
> > > >Is it possible in tomcat to segregate certain jsp
> > > >pages to its own thread pool/connector?
> > > >We have certain pages that take a while to
> > execute,
> > > >and when multiple users access the page, all
> > threads
> > > >are used up serving those requests.  Weblogic
> > allows
> > > >defining multiple "ExecuteQueues" and assigning
> > jsp
> > > >/servlets to this queue -- you can either
> > throttle bad
> > > >pages or ensure thread availability for critical
> > > >pages.
> > > >
> > > >Is there a way in tomcat to achieve similar
> > results?
> > > >Or are my options limited to 1.increase the
> > maxThreads
> > > >count 2.try and improve the performance of those
> > pages
> > > >3.implement a poll/callback on the long running
> > page
> > > >to prevent tying the thread up.
> > > >
> > > >Thanks,
> > > >Prabhakaran.
> > > >
> > > >
> > > >
> > > >__
> > > >Do you Yahoo!?
> > > >Take Yahoo! Mail with you! Get it on your mobile
> > phone.
> > > >http://mobile.yahoo.com/maildemo
> > > >
> > >
> >
> >-
> > > >To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > >For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> > > This e-mail, including any attachments, is a
> > confidential business communication, and may contain
> > information that is
> > confidential, proprietary and/or privileged.  This
> > e-mail is intended only for the individual(s) to
> > whom it is addressed, and may
> > not be saved, copied, printed, disclosed or used by
> > anyone else.  If you are not the(an) intended
> > recipient, please immediately
> > delete this e-mail from your computer system and
> > notify the sender.  Thank you.
> > >
> > >
> > >
> >
> -
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
>
>
>
>
> __
> Do you Yahoo!?
> New and Improved Yahoo! Mail - Send 10MB messages!
> http://promotions.yahoo.com/new_mail
>
> -
> 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]



error 403 redirect

2004-06-18 Thread zhicheng wang
hi, can any one tell me why i cannot redirect http 403
to my nown page? It works fine for code 404. but not
403 (i used valve to restrict certain ips) I am using
tomcat 5.0.19 on redhat as3

 

403
error403.html


thanks

cheng



=
Best wishes
Z C Wang





___ALL-NEW Yahoo! Messenger - 
so many all-new ways to express yourself http://uk.messenger.yahoo.com

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



Re: Multiple Thread Pools

2004-06-18 Thread Prabhakaran Nagarajan
Thanks for your replies.  I was trying to avoid using
apache if possible.
As for writing my own code, I was planning on doing
this:
Write a custom valve that looks at the request uri.
If one of the "bad performing" page is requested,
spawn off a separate thread (doug lea's
PooledExecutor) and process request in that thread.
In theory, to process the request, I obtain the
wrapper (request.getWrapper()), do a
wrapper.allocate() to get the servlet instance, and
call service(req,resp) on the servlet.
However, when I try this, the getWrapper() returns a
null.  Is there some other way I should be processing
the request?  Or is there a better way to achieve what
I want?

Thanks,
Prabhakaran.

--- Filip Hanik - Dev <[EMAIL PROTECTED]> wrote:
> put apache/mod_proxy in front of it.
> have apache redirect one path of JSPs to one
> connector,
> then redirect everything else to another connector
> 
> Filip
> 
> - Original Message -
> From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> To: "Tomcat Users List"
> <[EMAIL PROTECTED]>
> Sent: Friday, June 18, 2004 7:50 AM
> Subject: RE: Multiple Thread Pools
> 
> 
> >
> > Hi,
> > Not currently in tomcat.  You'd have to write your
> own code for this.
> > You listed your options well at the end of your
> message.
> >
> > Yoav Shapira
> > Millennium Research Informatics
> >
> >
> > >-Original Message-
> > >From: Prabhakaran Nagarajan
> [mailto:[EMAIL PROTECTED]
> > >Sent: Thursday, June 17, 2004 7:31 PM
> > >To: [EMAIL PROTECTED]
> > >Subject: Multiple Thread Pools
> > >
> > >Is it possible in tomcat to segregate certain jsp
> > >pages to its own thread pool/connector?
> > >We have certain pages that take a while to
> execute,
> > >and when multiple users access the page, all
> threads
> > >are used up serving those requests.  Weblogic
> allows
> > >defining multiple "ExecuteQueues" and assigning
> jsp
> > >/servlets to this queue -- you can either
> throttle bad
> > >pages or ensure thread availability for critical
> > >pages.
> > >
> > >Is there a way in tomcat to achieve similar
> results?
> > >Or are my options limited to 1.increase the
> maxThreads
> > >count 2.try and improve the performance of those
> pages
> > >3.implement a poll/callback on the long running
> page
> > >to prevent tying the thread up.
> > >
> > >Thanks,
> > >Prabhakaran.
> > >
> > >
> > >
> > >__
> > >Do you Yahoo!?
> > >Take Yahoo! Mail with you! Get it on your mobile
> phone.
> > >http://mobile.yahoo.com/maildemo
> > >
> >
>
>-
> > >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > >For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> >
> >
> > This e-mail, including any attachments, is a
> confidential business communication, and may contain
> information that is
> confidential, proprietary and/or privileged.  This
> e-mail is intended only for the individual(s) to
> whom it is addressed, and may
> not be saved, copied, printed, disclosed or used by
> anyone else.  If you are not the(an) intended
> recipient, please immediately
> delete this e-mail from your computer system and
> notify the sender.  Thank you.
> >
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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



Tomcat Installation Problem

2004-06-18 Thread deepak Malhotra
Hi ,
 Recently I have installed Jakarta-tomcat-5.0..25 on
fedora linux 2.4.22-1.2115.nptl & also I have java 
j2sdk1.4.1_02 .
The problem is that tomcat starts successfully using 
service tomcat start 
but when i point my browser to http://localhost:8080
browser just waits infinitely without showing the
default 
page.
when i checked out catalina.out it shows 
org.xml.sax.SAXParseException: The processing
instruction target matching "[xX][mM][lL]" is not
allowed.

Exception processing Global JNDI Resources
javax.naming.NamingException: The processing
instruction target matching "[xX][mM][lL]" is not
allowed.
etc. 
So kindly guide me.
bye






__
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

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



Re: [ANN] Apache Tomcat 5.0.27 Beta released

2004-06-18 Thread Matrix Help
MatrixOne Tech Support eMail incident submission functionality requires specific 
subject line.  The following subject lines are recognized.

Request for CustomerLink Access
 - This will submit a request for new CustomerLink account

Request for CustomerLink Password Reset
 - This will submit a request for existing CustomerLink account password reset

Submit [PUT YOUR SUBJECT LINE HERE]
 - This will submit a new incident (please only use when CustomerLink is not 
available to ensure prompt service)

Keywords "Request" or "Submit" must be the 1st word in the subject line.

If you already have a CustomerLink account, please use CustomerLink 
(https://customerlink.matrixone.com) to submit or update your incidents.

Otherwise, please resend your message with the required subject line.

Thank you!

MatrixOne Tech Support


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



[ANN] Apache Tomcat 5.0.27 Beta released

2004-06-18 Thread Shapira, Yoav

>-Original Message-
>From: Shapira, Yoav
>Sent: Friday, June 18, 2004 9:01 AM
>To: Tomcat Developers List
>Subject: RE: [ANN] Apache Tomcat 5.0.27 Beta released
>
>
>Hi,
>FYI on this release: It is a CVS branch point for TOMCAT_5_0, so those
>of you building from CVS directly should know that new stuff is going
to
>start appearing on HEAD that may reduce stability temporarily (you can
>follow tomcat-dev discussions in the 5.next threads for more details).
>
>Yoav Shapira
>Millennium Research Informatics
>
>
>>-Original Message-
>>From: Shapira, Yoav
>>Sent: Friday, June 18, 2004 8:55 AM
>>To: Tomcat Developers List; Tomcat Users List
>>Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>>Subject: [ANN] Apache Tomcat 5.0.27 Beta released
>>
>>
>>The Tomcat Team announces the immediate availability of Apache Tomcat
>>5.0.27 Beta.
>>
>>Please refer to the change log for the list of changes:
>>http://jakarta.apache.org/tomcat/tomcat-5.0-doc/changelog.html
>>
>>Release notes:
>>http://jakarta.apache.org/tomcat/tomcat-5.0-doc/RELEASE-NOTES
>>
>>Downloads:
>>Binaries: http://jakarta.apache.org/site/binindex.cgi
>>Sources: http://jakarta.apache.org/site/sourceindex.cgi
>>
>>The Apache Tomcat Team
>>
>>
>>
>>
>>This e-mail, including any attachments, is a confidential business
>>communication, and may contain information that is confidential,
>>proprietary and/or privileged.  This e-mail is intended only for the
>>individual(s) to whom it is addressed, and may not be saved, copied,
>>printed, disclosed or used by anyone else.  If you are not the(an)
>intended
>>recipient, please immediately delete this e-mail from your computer
>system
>>and notify the sender.  Thank you.
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary and/or privileged.  This e-mail is intended only for the
>individual(s) to whom it is addressed, and may not be saved, copied,
>printed, disclosed or used by anyone else.  If you are not the(an)
intended
>recipient, please immediately delete this e-mail from your computer
system
>and notify the sender.  Thank you.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



RE: Tomcat Stand-alone

2004-06-18 Thread Carl Olivier
Hi Yoav.

Have just done so - I am busy looking at the source and will hopefully be
add a path attachment!

Bugzilla: http://issues.apache.org/bugzilla/show_bug.cgi?id=29671

Regards,

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: 18 June 2004 02:59 PM
To: Tomcat Users List
Subject: RE: Tomcat Stand-alone



Hi,
The problem is not related to the one you saw, they just share the same
generic error.  Please submit a Bugzilla item for this.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>Sent: Friday, June 18, 2004 7:55 AM
>To: '[EMAIL PROTECTED]'
>Subject: Tomcat Stand-alone
>
>
>Greetings again all.
>
>Having a very irritating problem.  I am trying to run Tomcat 5.0.25 
>standalone using 3 HTTP1.1 Coyote connectors - one for "behind the
firwall
>access", one for standard HTTP requests to all hosts and contexts and 1
for
>1 site running HTTPS (SSL) on a specific IP.
>
>Now, when the server starts all goes well up until near the end - where
the
>following error is thrown in the tomcat logs:
>
>2004/06/18 01:47:32 org.apache.coyote.tomcat5.MapperListener init
>WARNING: Error registering contexts 
>java.util.ConcurrentModificationException
>   at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
>   at java.util.HashMap$EntryIterator.next(HashMap.java:824)
>   at java.util.HashMap.putAllForCreate(HashMap.java:424)
>   at java.util.HashMap.clone(HashMap.java:656)
>   at 
>mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56
)
>   at 
>mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:16
03)
>   at
>mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568)
>   at
>mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512)
>   at
>org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115)
>   at 
>org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:15
10)
>   at 
>org.apache.catalina.core.StandardService.start(StandardService.java:485
)
>   at
>org.apache.catalina.core.StandardServer.start(StandardServer.java:2298)
>   at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:3
>9
>)
>   at 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImp
>l
>.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:324)
>   at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
>   at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
>
>After this, all 3 the HTTP1.1 Coyote connectors are paused.
>
>This clearly does not help matters.  I read a bugzilla report about a 
>similar problem in Tomcat 4.1.30 - being fixed, and was wondering if
this
>is
>related and would be fixed for TC 5?
>(http://issues.apache.org/bugzilla/show_bug.cgi?id=27315)
>
>The funny thing is have another server that is identically setup (same 
>hardware, software, same TC, same sites/hosts/context) and this does
NOT
>happen there?
>
>Any assistance would be much appreciated!
>
>Regards,
>
>Carl Olivier
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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

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



RE: Sybase and Tomcat 5, Possible Problem

2004-06-18 Thread Shapira, Yoav

Hi,
Hmm... It's good you can verify the login on the DB side.  You should
try to debug this in tomcat 5 rather than rolling back, if possible.

Where is the driver jar located in your server?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Jeff Sexton [mailto:[EMAIL PROTECTED]
>Sent: Thursday, June 17, 2004 12:35 PM
>To: [EMAIL PROTECTED]
>Subject: Sybase and Tomcat 5, Possible Problem
>
>After a lot of effort, I feel there may be some reason that the Sybase
>JConnect JDBC driver doesn't work in Tomcat 5.0.24 (I use Tomcat 4 for
my
>Sybase driven apps quite a bit).
>
>The exception is:
>
>org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver
of
>class '' for connect URL 'null', cause: null
>
>META-INF/context.xml is:
>
>
>  type="javax.sql.DataSource"/>
>
>
>  From conf/server.xml contains:
>
>
>  auth="Container"
>type="javax.sql.DataSource"/>
>  
>
>  factory
>  org.apache.commons.dbcp.BasicDataSourceFactory
>
>
>  username
>  excalibur
>
>
>  password
>  mypassword
>
>
>  driverClassName
>  com.sybase.jdbc2.jdbc.SybDriver
>
> 
>   driverName
>   jdbc:sybase:Tds:pdxax12:4100
> 
>
>  url
>  jdbc:sybase:Tds:pdxax12:4100
>
>
>  maxActive
>  5
>
>  
>
>
>web.xml contains:
>
>
>  
>  
>  ProvCICS
>  
>  
>  com.ods.forte.cics.servlet.ProvCICS
>  
>  1
>  
>
>  
>ProvCICS
>/ProvCICS
>  
>
>  
>odsdb03 Connection Pool
>jdbc/odsdb03
>javax.sql.DataSource
>Container
>  
>
>
>
>I have also tried working with the  placed in server.xml
>and with the  defined in the context, all combinations
>yield the same behavior.
>
>*Tomcat does actually log into the database server when it starts*
>
>I can see it from the database side.  Therefore I know the jdbc
>jar file is loaded and the connection specification correct and
working.
>In addition, the stack trace in catalina.out includes a point
>in Sybase code:
>
>Cannot create JDBC driver of class '' for connect URL 'null'
>java.lang.NullPointerException
>  at
com.sybase.jdbc2.jdbc.SybDriver.acceptsURL(SybDriver.java:197)
>  at java.sql.DriverManager.getDriver(DriverManager.java:249)
>  at
>org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSourc
e.ja
>va:743)
>  ...
>
>So can I conclude that the app is actually linked to the resource?  If
>so then the problem seems to be that the information required somehow
>does not reach down the driver?
>
>Ideas?
>
>Should I rollback to TC 4x for awhile?
>
>--
>The ODS Companies
>Jeff Sexton
>Information Services
>(503) 228-6554   x1026
>http://www.odscompanies.com
>
>This message is intended for the sole use of the individual and entity
>to whom it is addressed, and may contain information that is
privileged,
>confidential and exempt from disclosure under applicable law. If you
are
>not the intended addressee, nor authorized to receive for the intended
>addressee, you are hereby notified that you may not use, copy, disclose
>or distribute to anyone the message or any information contained in the
>message. If you have received this message in error, please immediately
>advise the sender by reply email and delete the message.
>
>
>--
>The ODS Companies
>Jeff Sexton
>Information Services
>(503) 228-6554   x1026
>http://www.odscompanies.com
>
>This message is intended for the sole use of the individual and entity
>to whom it is addressed, and may contain information that is
privileged,
>confidential and exempt from disclosure under applicable law. If you
are
>not the intended addressee, nor authorized to receive for the intended
>addressee, you are hereby notified that you may not use, copy, disclose
>or distribute to anyone the message or any information contained in the
>message. If you have received this message in error, please immediately
>advise the sender by reply email and delete the message.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


-
T

RE: Tomcat and jdk1.3 or jdk1.4

2004-06-18 Thread Shapira, Yoav

Hi,
Right, I should have mentioned this.  But the core of tomcat doesn't.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED]
>Sent: Friday, June 18, 2004 8:55 AM
>To: Tomcat Users List
>Subject: Re: Tomcat and jdk1.3 or jdk1.4
>
>Clustering requires 1.4,
>
>- Original Message -
>From: "Shapira, Yoav" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Friday, June 18, 2004 7:49 AM
>Subject: RE: Tomcat and jdk1.3 or jdk1.4
>
>
>>
>> Hi,
>> The downloads are the same.  Tomcat 5 is built using JDK 1.4, but
will
>> run on either 1.3 or 1.4 (and 1.5 BTW).
>>
>> Yoav Shapira
>> Millennium Research Informatics
>>
>>
>> >-Original Message-
>> >From: QM [mailto:[EMAIL PROTECTED]
>> >Sent: Friday, June 18, 2004 8:22 AM
>> >To: Tomcat Users List
>> >Subject: Re: Tomcat and jdk1.3 or jdk1.4
>> >
>> >On Fri, Jun 18, 2004 at 12:10:16PM +0200, Holger de Wall wrote:
>> >: are there different Tomcat-5.0.25-Downloads for jdk1.3 and jdk1.4
>> >available?
>> >
>> >Sort of: Tomcat5 packages exist for 1.4; they don't exist for 1.3
>> >
>> >Tomcat5 requires JDK 1.4
>> >
>> >
>> >: Which java-packages are  missing in the Version for jdk1.4?
>> >
>> >I'm not sure what this means.  Please explain.
>> >
>> >-QM
>> >
>> >--
>> >
>> >software  -- http://www.brandxdev.net
>> >tech news -- http://www.RoarNetworX.com
>> >
>> >
>>
>-
>> >To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>> This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is
>confidential, proprietary and/or privileged.  This e-mail is intended
only
>for the individual(s) to whom it is addressed, and may
>not be saved, copied, printed, disclosed or used by anyone else.  If
you
>are not the(an) intended recipient, please immediately
>delete this e-mail from your computer system and notify the sender.
Thank
>you.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



RE: Tomcat Stand-alone

2004-06-18 Thread Shapira, Yoav

Hi,
The problem is not related to the one you saw, they just share the same
generic error.  Please submit a Bugzilla item for this.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>Sent: Friday, June 18, 2004 7:55 AM
>To: '[EMAIL PROTECTED]'
>Subject: Tomcat Stand-alone
>
>
>Greetings again all.
>
>Having a very irritating problem.  I am trying to run Tomcat 5.0.25
>standalone using 3 HTTP1.1 Coyote connectors - one for "behind the
firwall
>access", one for standard HTTP requests to all hosts and contexts and 1
for
>1 site running HTTPS (SSL) on a specific IP.
>
>Now, when the server starts all goes well up until near the end - where
the
>following error is thrown in the tomcat logs:
>
>2004/06/18 01:47:32 org.apache.coyote.tomcat5.MapperListener init
>WARNING: Error registering contexts
>java.util.ConcurrentModificationException
>   at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
>   at java.util.HashMap$EntryIterator.next(HashMap.java:824)
>   at java.util.HashMap.putAllForCreate(HashMap.java:424)
>   at java.util.HashMap.clone(HashMap.java:656)
>   at
>mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56
)
>   at
>mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:16
03)
>   at
>mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568)
>   at
>mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512)
>   at
>org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115)
>   at
>org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:15
10)
>   at
>org.apache.catalina.core.StandardService.start(StandardService.java:485
)
>   at
>org.apache.catalina.core.StandardServer.start(StandardServer.java:2298)
>   at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:3
>9
>)
>   at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImp
>l
>.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:324)
>   at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
>   at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
>
>After this, all 3 the HTTP1.1 Coyote connectors are paused.
>
>This clearly does not help matters.  I read a bugzilla report about a
>similar problem in Tomcat 4.1.30 - being fixed, and was wondering if
this
>is
>related and would be fixed for TC 5?
>(http://issues.apache.org/bugzilla/show_bug.cgi?id=27315)
>
>The funny thing is have another server that is identically setup (same
>hardware, software, same TC, same sites/hosts/context) and this does
NOT
>happen there?
>
>Any assistance would be much appreciated!
>
>Regards,
>
>Carl Olivier
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



Re: [ANN] Apache Tomcat 5.0.27 Beta released

2004-06-18 Thread Matrix Help
MatrixOne Tech Support eMail incident submission functionality requires specific 
subject line.  The following subject lines are recognized.

Request for CustomerLink Access
 - This will submit a request for new CustomerLink account

Request for CustomerLink Password Reset
 - This will submit a request for existing CustomerLink account password reset

Submit [PUT YOUR SUBJECT LINE HERE]
 - This will submit a new incident (please only use when CustomerLink is not 
available to ensure prompt service)

Keywords "Request" or "Submit" must be the 1st word in the subject line.

If you already have a CustomerLink account, please use CustomerLink 
(https://customerlink.matrixone.com) to submit or update your incidents.

Otherwise, please resend your message with the required subject line.

Thank you!

MatrixOne Tech Support


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



RE: Tomcat--> web.xml --> context --> element query

2004-06-18 Thread Shapira, Yoav

Hi,

>I have tried setting debug="0" but it doesnt work as you described,
i.e.

I didn't say to set debug="0" (though I should have).  Most of tomcat's
logging is done via commons-logging.  You need to write a
commons-logging configuration file (there's a FAQ entry on how to do
this) and set the level for org.apache to OFF (or maybe FATAL, your
choice).

>p.s. what paramter can I set to garantee that the servlets in
>/work/Standalone/* is always re-generated each time
> Tomcat is re-started.

Please start a new thread for new questions.

Yoav



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


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



[ANN] Apache Tomcat 5.0.27 Beta released

2004-06-18 Thread Shapira, Yoav

The Tomcat Team announces the immediate availability of Apache Tomcat
5.0.27 Beta.

Please refer to the change log for the list of changes:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/changelog.html

Release notes:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/RELEASE-NOTES

Downloads:
Binaries: http://jakarta.apache.org/site/binindex.cgi
Sources: http://jakarta.apache.org/site/sourceindex.cgi

The Apache Tomcat Team




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


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



Re: Tomcat and jdk1.3 or jdk1.4

2004-06-18 Thread Filip Hanik - Dev
Clustering requires 1.4,

- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, June 18, 2004 7:49 AM
Subject: RE: Tomcat and jdk1.3 or jdk1.4


>
> Hi,
> The downloads are the same.  Tomcat 5 is built using JDK 1.4, but will
> run on either 1.3 or 1.4 (and 1.5 BTW).
>
> Yoav Shapira
> Millennium Research Informatics
>
>
> >-Original Message-
> >From: QM [mailto:[EMAIL PROTECTED]
> >Sent: Friday, June 18, 2004 8:22 AM
> >To: Tomcat Users List
> >Subject: Re: Tomcat and jdk1.3 or jdk1.4
> >
> >On Fri, Jun 18, 2004 at 12:10:16PM +0200, Holger de Wall wrote:
> >: are there different Tomcat-5.0.25-Downloads for jdk1.3 and jdk1.4
> >available?
> >
> >Sort of: Tomcat5 packages exist for 1.4; they don't exist for 1.3
> >
> >Tomcat5 requires JDK 1.4
> >
> >
> >: Which java-packages are  missing in the Version for jdk1.4?
> >
> >I'm not sure what this means.  Please explain.
> >
> >-QM
> >
> >--
> >
> >software  -- http://www.brandxdev.net
> >tech news -- http://www.RoarNetworX.com
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> This e-mail, including any attachments, is a confidential business communication, 
> and may contain information that is
confidential, proprietary and/or privileged.  This e-mail is intended only for the 
individual(s) to whom it is addressed, and may
not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: Multiple Thread Pools

2004-06-18 Thread Filip Hanik - Dev
put apache/mod_proxy in front of it.
have apache redirect one path of JSPs to one connector,
then redirect everything else to another connector

Filip

- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, June 18, 2004 7:50 AM
Subject: RE: Multiple Thread Pools


>
> Hi,
> Not currently in tomcat.  You'd have to write your own code for this.
> You listed your options well at the end of your message.
>
> Yoav Shapira
> Millennium Research Informatics
>
>
> >-Original Message-
> >From: Prabhakaran Nagarajan [mailto:[EMAIL PROTECTED]
> >Sent: Thursday, June 17, 2004 7:31 PM
> >To: [EMAIL PROTECTED]
> >Subject: Multiple Thread Pools
> >
> >Is it possible in tomcat to segregate certain jsp
> >pages to its own thread pool/connector?
> >We have certain pages that take a while to execute,
> >and when multiple users access the page, all threads
> >are used up serving those requests.  Weblogic allows
> >defining multiple "ExecuteQueues" and assigning jsp
> >/servlets to this queue -- you can either throttle bad
> >pages or ensure thread availability for critical
> >pages.
> >
> >Is there a way in tomcat to achieve similar results?
> >Or are my options limited to 1.increase the maxThreads
> >count 2.try and improve the performance of those pages
> >3.implement a poll/callback on the long running page
> >to prevent tying the thread up.
> >
> >Thanks,
> >Prabhakaran.
> >
> >
> >
> >__
> >Do you Yahoo!?
> >Take Yahoo! Mail with you! Get it on your mobile phone.
> >http://mobile.yahoo.com/maildemo
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> This e-mail, including any attachments, is a confidential business communication, 
> and may contain information that is
confidential, proprietary and/or privileged.  This e-mail is intended only for the 
individual(s) to whom it is addressed, and may
not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: Tomcat and jdk1.3 or jdk1.4

2004-06-18 Thread Shapira, Yoav

Hi,
The downloads are the same.  Tomcat 5 is built using JDK 1.4, but will
run on either 1.3 or 1.4 (and 1.5 BTW).

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: QM [mailto:[EMAIL PROTECTED]
>Sent: Friday, June 18, 2004 8:22 AM
>To: Tomcat Users List
>Subject: Re: Tomcat and jdk1.3 or jdk1.4
>
>On Fri, Jun 18, 2004 at 12:10:16PM +0200, Holger de Wall wrote:
>: are there different Tomcat-5.0.25-Downloads for jdk1.3 and jdk1.4
>available?
>
>Sort of: Tomcat5 packages exist for 1.4; they don't exist for 1.3
>
>Tomcat5 requires JDK 1.4
>
>
>: Which java-packages are  missing in the Version for jdk1.4?
>
>I'm not sure what this means.  Please explain.
>
>-QM
>
>--
>
>software  -- http://www.brandxdev.net
>tech news -- http://www.RoarNetworX.com
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



RE: Multiple Thread Pools

2004-06-18 Thread Shapira, Yoav

Hi,
Not currently in tomcat.  You'd have to write your own code for this.
You listed your options well at the end of your message.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Prabhakaran Nagarajan [mailto:[EMAIL PROTECTED]
>Sent: Thursday, June 17, 2004 7:31 PM
>To: [EMAIL PROTECTED]
>Subject: Multiple Thread Pools
>
>Is it possible in tomcat to segregate certain jsp
>pages to its own thread pool/connector?
>We have certain pages that take a while to execute,
>and when multiple users access the page, all threads
>are used up serving those requests.  Weblogic allows
>defining multiple "ExecuteQueues" and assigning jsp
>/servlets to this queue -- you can either throttle bad
>pages or ensure thread availability for critical
>pages.
>
>Is there a way in tomcat to achieve similar results?
>Or are my options limited to 1.increase the maxThreads
>count 2.try and improve the performance of those pages
>3.implement a poll/callback on the long running page
>to prevent tying the thread up.
>
>Thanks,
>Prabhakaran.
>
>
>
>__
>Do you Yahoo!?
>Take Yahoo! Mail with you! Get it on your mobile phone.
>http://mobile.yahoo.com/maildemo
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



RE: Jasper2 fork

2004-06-18 Thread Shapira, Yoav

Hi,
Speed.  Fork is slower because of additional overhead.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Carl Olivier [mailto:[EMAIL PROTECTED]
>Sent: Thursday, June 17, 2004 1:25 PM
>To: '[EMAIL PROTECTED]'
>Subject: Jasper2 fork
>
>Greetings.
>
>Quick question re the jasper2 (org.apache.jasper.servlet.JspServlet)
fork
>init param.
>
>The default of the fork setting is true, however the Tomcat 5 binary
(and I
>think source) distribution ships with this init-param set to false.
>
>Now the reason I am curious about this shipping with this overridden to
>false is that I have innumerable memory problems - up until I was
pointed
>in
>setting the fork init param to true.  This *seems* to have solved
pretty
>much all my problems!
>
>Is there some reason NOT to use this fork setting?
>
>Thanks a stack to those that assisted me!  Very much appreciated!
>
>Regards,
>
>Carl
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



Re: Problems with Virtual Hosts

2004-06-18 Thread Matrix Help
MatrixOne Tech Support eMail incident submission functionality requires specific 
subject line.  The following subject lines are recognized.

Request for CustomerLink Access
 - This will submit a request for new CustomerLink account

Request for CustomerLink Password Reset
 - This will submit a request for existing CustomerLink account password reset

Submit [PUT YOUR SUBJECT LINE HERE]
 - This will submit a new incident (please only use when CustomerLink is not 
available to ensure prompt service)

Keywords "Request" or "Submit" must be the 1st word in the subject line.

If you already have a CustomerLink account, please use CustomerLink 
(https://customerlink.matrixone.com) to submit or update your incidents.

Otherwise, please resend your message with the required subject line.

Thank you!

MatrixOne Tech Support


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



Problems with Virtual Hosts

2004-06-18 Thread Carsten Lex
Hi,
I installed Apache 2.0.49 and Tomcat 5.0.24. JK-Version is 2.04
My Problem is as follows:
if I enter www.test.de:8080 then everything is working fine. But when I try 
www.test.de then tomcat invokes the default-Host (localhost).
So for me it seems Apache doesn't pass the domain-name to tomcat.
Has somebody an idea?
thx
Carsten

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


Re: How can I add without restarting Tomcat?

2004-06-18 Thread Matrix Help
MatrixOne Tech Support eMail incident submission functionality requires specific 
subject line.  The following subject lines are recognized.

Request for CustomerLink Access
 - This will submit a request for new CustomerLink account

Request for CustomerLink Password Reset
 - This will submit a request for existing CustomerLink account password reset

Submit [PUT YOUR SUBJECT LINE HERE]
 - This will submit a new incident (please only use when CustomerLink is not 
available to ensure prompt service)

Keywords "Request" or "Submit" must be the 1st word in the subject line.

If you already have a CustomerLink account, please use CustomerLink 
(https://customerlink.matrixone.com) to submit or update your incidents.

Otherwise, please resend your message with the required subject line.

Thank you!

MatrixOne Tech Support


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



Re: Tomcat--> web.xml --> context --> element query

2004-06-18 Thread Matrix Help
MatrixOne Tech Support eMail incident submission functionality requires specific 
subject line.  The following subject lines are recognized.

Request for CustomerLink Access
 - This will submit a request for new CustomerLink account

Request for CustomerLink Password Reset
 - This will submit a request for existing CustomerLink account password reset

Submit [PUT YOUR SUBJECT LINE HERE]
 - This will submit a new incident (please only use when CustomerLink is not 
available to ensure prompt service)

Keywords "Request" or "Submit" must be the 1st word in the subject line.

If you already have a CustomerLink account, please use CustomerLink 
(https://customerlink.matrixone.com) to submit or update your incidents.

Otherwise, please resend your message with the required subject line.

Thank you!

MatrixOne Tech Support


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



Re: AW: mod_jk2 memory leak?

2004-06-18 Thread Matrix Help
MatrixOne Tech Support eMail incident submission functionality requires specific 
subject line.  The following subject lines are recognized.

Request for CustomerLink Access
 - This will submit a request for new CustomerLink account

Request for CustomerLink Password Reset
 - This will submit a request for existing CustomerLink account password reset

Submit [PUT YOUR SUBJECT LINE HERE]
 - This will submit a new incident (please only use when CustomerLink is not 
available to ensure prompt service)

Keywords "Request" or "Submit" must be the 1st word in the subject line.

If you already have a CustomerLink account, please use CustomerLink 
(https://customerlink.matrixone.com) to submit or update your incidents.

Otherwise, please resend your message with the required subject line.

Thank you!

MatrixOne Tech Support


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



Re: AW: Pulling a node out of a cluster?

2004-06-18 Thread Davor Cengija
Thanks, Thomas, this is a useful information. Unfortunatelly, right now I'm
forced to use mod_jk 1.2.5 but we will switch to mod_jk2 in the near
future.

Regards,
Davor

Hubbert, Thomas wrote:

> Hi Davor,
> 
> if mod jk2 is an option I would suggest using that. It provides a couple
> of features that would help you achieving what you asked for. E.g. it
> supports graceful shutdown, i.e just redirecting already existing sessions
> with a valiud jvm route to one tomcat instance and sending all new
> requests to the other tomcat. Also in jk2 - if you don't care about
> loosing sessions - you can set one of the tomcats to be disabled making it
> unreachable for any requests. The good thing with jk2 is that it supports
> reloading of the conf file at runtime, i.e. without shuting anything down.
> 
> Hope this helps,
> Thomas
> 
> -Ursprüngliche Nachricht-
> Von: news [mailto:[EMAIL PROTECTED] Auftrag von Davor Cengija
> Gesendet: Freitag, 18. Juni 2004 09:47
> An: [EMAIL PROTECTED]
> Betreff: Pulling a node out of a cluster?
> 
> 
> My server configuration is as follows:
> 
> - Apache 2 + mod_jk 1.2.5
> - Two Tomcats 4.1.30 which communicate with mod_jk through ports 11009 and
> 12009.
> 
> It works just as it should; mod_jk automatically redirects all the
> requests from tomcat1 to tomcat2 when tomcat1 is down etc.
> 
> Now, the question is how to pull e.g. tomcat1 out of a cluster but to have
> it still happily running?
> 
> The best idea I could come to is to shut down a tomcat, change its mod_jk
> connector port and to bring it up again. Apache doesn't see that tomcat
> anymore and forwards all the requests to another one, and I can easily
> access that pulled-out tomcat through its http port. When I want to
> reconnect the pulled-out tomcat to cluster again I have to shut it down,
> change its mod_jk connector port back to its previous value and start it
> up again. It works but is a little bit touchy.
> 
> Any better idea?
> 
> I've seen a cluster configuration which uses special files, e.g.
> im_in_cluster.html which each clustered tomcat has in its web root. Load
> balancer first asks for that file and if it's available forwards request
> to that tomcat. Simply removing im_in_cluster.html file from a tomcat's
> webroot will render that tomcat unclustered. Any idea how could I achieve
> that with apache+mod_jk+two tomcats?
> 
> Thanks,
> Davor

-- 
Davor Cengija, [EMAIL PROTECTED]


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



Re: Tomcat and jdk1.3 or jdk1.4

2004-06-18 Thread QM
On Fri, Jun 18, 2004 at 12:10:16PM +0200, Holger de Wall wrote:
: are there different Tomcat-5.0.25-Downloads for jdk1.3 and jdk1.4 available?

Sort of: Tomcat5 packages exist for 1.4; they don't exist for 1.3

Tomcat5 requires JDK 1.4


: Which java-packages are  missing in the Version for jdk1.4?

I'm not sure what this means.  Please explain.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: three problems

2004-06-18 Thread QM

Clearly, my eyes aren't as sharp when I'm half-awake. 

Here's the culprit:

: REJECT all  --  0.0.0.0/00.0.0.0/0  reject-with
: icmp-host-prohibited

That's the tail end of the chain, so any rules appended to that chain
(like the Tomcat rule I showed you) will never be reached.

Rerun the "iptables --list" command, but use the switch to show rule
numbers.  You can then run the other iptables command I showed you, but
use *insert* instead of *append*.  Be sure to insert above that last
reject rule.

See the iptables docs/manpage for more info, commandline switches, etc.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Anyone have the complied mod_jk for AIX 4.3.3???

2004-06-18 Thread Robert T Donnelly




Hello,  we are running Apache 1.3.19.3 and Tomcat 3.2.4 on AIX 4.3.3.  We
are have trouble compiling the mod_jk and were wondering if anyone already
has this compiled and can send the file??  Thanks!

-Bob


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



Tomcat Stand-alone

2004-06-18 Thread Carl Olivier

Greetings again all.

Having a very irritating problem.  I am trying to run Tomcat 5.0.25
standalone using 3 HTTP1.1 Coyote connectors - one for "behind the firwall
access", one for standard HTTP requests to all hosts and contexts and 1 for
1 site running HTTPS (SSL) on a specific IP.

Now, when the server starts all goes well up until near the end - where the
following error is thrown in the tomcat logs:

2004/06/18 01:47:32 org.apache.coyote.tomcat5.MapperListener init
WARNING: Error registering contexts
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
at java.util.HashMap$EntryIterator.next(HashMap.java:824)
at java.util.HashMap.putAllForCreate(HashMap.java:424)
at java.util.HashMap.clone(HashMap.java:656)
at
mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56)
at
mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:1603)
at
mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568)
at
mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512)
at
org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115)
at
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1510)
at
org.apache.catalina.core.StandardService.start(StandardService.java:485)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2298)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)

After this, all 3 the HTTP1.1 Coyote connectors are paused.

This clearly does not help matters.  I read a bugzilla report about a
similar problem in Tomcat 4.1.30 - being fixed, and was wondering if this is
related and would be fixed for TC 5?
(http://issues.apache.org/bugzilla/show_bug.cgi?id=27315)

The funny thing is have another server that is identically setup (same
hardware, software, same TC, same sites/hosts/context) and this does NOT
happen there?

Any assistance would be much appreciated!

Regards,

Carl Olivier

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



mod_jk2 logs - telling which server it is serving the requests fr om?

2004-06-18 Thread Kommuru, Bhaskar
Hi friends,

I have never tried this. How can i see which server my mod_jk2 is sending
requests/serving from?
Is there some place where i can do this settings?

Thanks
BK

__

For information about the Standard Bank group visit our web site 

__

Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited  is proprietary to the group. 
It is confidential, legally privileged and protected by law. 
Standard Bank does not own and endorse any other content. Views and opinions are those 
of the sender unless clearly stated as being that of the group. 
The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender immediately if it has unintentionally reached you and do not read, 
disclose or use the content in any way.
Standard Bank can not assure that the integrity of this communication has been 
maintained nor that it is free of errors, virus, interception or interference.
___


AW: mod_jk2 memory leak?

2004-06-18 Thread Hubbert, Thomas
Hi, 

I had a similar problem with apache 1.3 and mod jk2. The httpd processes
kept growing and growing. I didn't have this problem when I was using jk1.2
so I suppose it's a problem with jk2. 

To prevent the httpd processes getting to big causing the server to crash /
running out of memory I just changed the MaxRequestsPerChild property in the
httpd.conf from 0 (unlimited) to 1500. This way a processe gets killed after
1500 accesses and all the memory bound to it gets released. Of course you
have to try which value suits your configuration best depending on the
amount of memory you got and the number of max clients.

Hope this helps
Thomas

-Ursprüngliche Nachricht-
Von: Carl Olivier [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 18. Juni 2004 09:38
An: '[EMAIL PROTECTED]'
Betreff: mod_jk2 memory leak?


Greetings.

Ok, I posted yesterday about the fork attribute - no response yet and stuff.
Now I indicated that the fork setting of true *seemed* to have solved many
of my problems RE the apparent memory leak on my server.

I am now revising that statement in that the server now stayed up for 25
hours as opposed to the 12 or so it was before I set the fork init-param to
true.  So now I am where the OTHER memory leak is.  I have run profilers on
the server and cannot seem to find anything obvious in my code (in fact my
code seems to garbage collect very well and properly)...

I do recall certain posts on this list about a potential memory leak in
mod_jk2 - I am running Apache 2.0.49 with mod_jk2 connecting to Tomcat
behind.

Does anyone know if this was ever proved to be the case?  I will be
attempting to run the server on Tomcat standalone - to see if the memory
leak persists or not.

Anyway, any pointers would be welcome!

Regards,

Carl Olivier

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



AW: Pulling a node out of a cluster?

2004-06-18 Thread Hubbert, Thomas
Hi Davor, 

if mod jk2 is an option I would suggest using that. It provides a couple of
features that would help you achieving what you asked for. E.g. it supports
graceful shutdown, i.e just redirecting already existing sessions with a
valiud jvm route to one tomcat instance and sending all new requests to the
other tomcat. Also in jk2 - if you don't care about loosing sessions - you
can set one of the tomcats to be disabled making it unreachable for any
requests. The good thing with jk2 is that it supports reloading of the conf
file at runtime, i.e. without shuting anything down.

Hope this helps, 
Thomas

-Ursprüngliche Nachricht-
Von: news [mailto:[EMAIL PROTECTED] Auftrag von Davor Cengija
Gesendet: Freitag, 18. Juni 2004 09:47
An: [EMAIL PROTECTED]
Betreff: Pulling a node out of a cluster?


My server configuration is as follows:

- Apache 2 + mod_jk 1.2.5
- Two Tomcats 4.1.30 which communicate with mod_jk through ports 11009 and
12009.

It works just as it should; mod_jk automatically redirects all the requests
from tomcat1 to tomcat2 when tomcat1 is down etc.

Now, the question is how to pull e.g. tomcat1 out of a cluster but to have
it still happily running?

The best idea I could come to is to shut down a tomcat, change its mod_jk
connector port and to bring it up again. Apache doesn't see that tomcat
anymore and forwards all the requests to another one, and I can easily
access that pulled-out tomcat through its http port. When I want to
reconnect the pulled-out tomcat to cluster again I have to shut it down,
change its mod_jk connector port back to its previous value and start it up
again. It works but is a little bit touchy.

Any better idea?

I've seen a cluster configuration which uses special files, e.g.
im_in_cluster.html which each clustered tomcat has in its web root. Load
balancer first asks for that file and if it's available forwards request to
that tomcat. Simply removing im_in_cluster.html file from a tomcat's
webroot will render that tomcat unclustered. Any idea how could I achieve
that with apache+mod_jk+two tomcats?

Thanks,
Davor
-- 
Davor Cengija, [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: AW: How can I add without restarting Tomcat?

2004-06-18 Thread Peter Rossbach
Hey,
you can used the admin application.
Tipp:
Add a user with admin role at your conf/tomcat-users.xml!
Before you create the new host, create the webapps directory!
After create your new host, copy the Catalina/localhost/manager.xml to 
Catalina//manager.xml and
you have at usefull new host without server restart.

Tested with Tomcat 5.0.25.
regards
Peter
Nikola Milutinovic schrieb:
Gunnar Pörschke wrote:
Non way, because it is written in  server.xml file.
You'll need to stop the server, I guess

Tomcat has a manager application. It can deploy new contexts 
(applications) on-the-fly, but I'm not sure about hosts.

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


--
J2EE Systemarchitekt und Tomcat Experte
http://objektpark.de/
http://www.webapp.de/
Am Josephsschacht 72, 44879 Bochum, Deutschland
Telefon:  (49) 234 9413228
Mobil:(49) 175 1660884
E-Mail:  [EMAIL PROTECTED]

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


Tomcat and jdk1.3 or jdk1.4

2004-06-18 Thread Holger de Wall
are there different Tomcat-5.0.25-Downloads for jdk1.3 and jdk1.4 available?
Which java-packages are  missing in the Version for jdk1.4?



Thanks,
Holger de Wall


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



Tomcat--> web.xml --> context --> element query

2004-06-18 Thread Ben Bookey
Hi Yoav (et. al.),

Thanks for the info. regarding switching off debugging compeltely. I am
aware of the swallowOutput and the DefaultContext parameters.

Could you please tell me which parameter I could use, to switch-off the
debugging completely inside the context( presumably its the same for
DefaultContext).
I have tried setting debug="0" but it doesnt work as you described, i.e.
that the
logfile size remains at 0 bytes. Please find an extract from my context
below.




I hope you can help.

regards,

Ben
p.s. what paramter can I set to garantee that the servlets in
/work/Standalone/* is always re-generated each time
 Tomcat is re-started.




-Ursprungliche Nachricht-
Von: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 16. Juni 2004 17:25
An: Tomcat Users List; [EMAIL PROTECTED]
Betreff: RE: Override the system.outs so that no Tomcat Logfile is
produced.



Hi,
It's possible to redirect System.out/System.err from each webapp to the
context's log instead of catalina.out using the Context's swallowOutput
attribute.  Further, you can add swallowOutput to the DefaultContext
element, thereby establishing that for all webapps using one parameter
in in server.xml.

However, tomcat will still use System.out (which goes to
$CATALINA_HOME/logs/catalina.out by default) for some of its own
logging: you can configure that further by configuring commons-logging
(see the tomcat FAQ entry on configuring tomcat's internal logging).  I
think even with these configuration entries, however, the catalina.out
file will still be touched, so it will be produced although stay at zero
size.

You can probably avoid even the latter using OS-specific redirection
syntax, such as 2&>1 /dev/null or whatever.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Ben Bookey [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 16, 2004 11:14 AM
>To: Tomcat User List
>Subject: Override the system.outs so that no Tomcat Logfile is
produced.
>
>
>Is it possible with a single server.xml (or web.xml) paramter,  to
overide
>all the System.out's in my webApp
>so that no logfile is produced.
>
>Many thanks in advance.
>BB
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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



RE: NEWBIE: flexible declaration of a database URL

2004-06-18 Thread frederik gens
Thanks Raymond, exactly what I needed!
 
Frederik

"STOCKHOLM, Raymond" <[EMAIL PROTECTED]> wrote:
Use tomcat's pooling mecanism : 
in $TOMCAT/conf/server.xml, in your application Context, declare a Resource :


pathname="">






factory
org.apache.commons.dbcp.BasicDataSourceFactory




maxActive
100




maxIdle
3




maxWait
100





username
sa





password
sa





driverClassName
com.microsoft.jdbc.sqlserver.SQLServerDriver(your driver)





url
your.url.with.correct.driver






validationQuery
select getdate()







You can, in your servlet, access the datasource :
try {
Context ctx = new InitialContext();
this.dataSource = (DataSource) ctx.lookup("java:comp/env/jdbc/YOUR_DATABASE");
} catch (NamingException e) {
log.error("Constructor throws NamingException " + e.getMessage());
}


And then get a connection from it :
Connection conn = dataSource.getConnection();




-Message d'origine-
De : frederik gens [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 18 juin 2004 11:20
À : [EMAIL PROTECTED]
Objet : NEWBIE: flexible declaration of a database URL


Hello,

I'm currently developing a JSP/Servlet/JDBC application with Tomcat. In several 
classes called by servlets, I declare the URL which identify the database in order to 
open the connection. 

My question is: what is the best way to declare this URL only once, for example in a 
file, or in an environment variable. Therefore, the classes always call this variable. 
Changing the place of the database just requires to change the URL in one place.

Thanks in advance!
Frederik


-
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!

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



-
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!

Re: AW: How can I add without restarting Tomcat?

2004-06-18 Thread Nikola Milutinovic
Gunnar Pörschke wrote:
Non way, because it is written in  server.xml file.
You'll need to stop the server, I guess
Tomcat has a manager application. It can deploy new contexts 
(applications) on-the-fly, but I'm not sure about hosts.

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


AW: How can I add without restarting Tomcat?

2004-06-18 Thread Gunnar Pörschke
Non way, because it is written in  server.xml file.
You'll need to stop the server, I guess



-Ursprüngliche Nachricht-
Von: Ivan Jouikov [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 18. Juni 2004 11:33
An: 'Tomcat Users List'
Betreff: How can I add  without restarting Tomcat?

 
Nobody knows the answer to subj?
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004
 



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



How can I add without restarting Tomcat?

2004-06-18 Thread Ivan Jouikov
 
Nobody knows the answer to subj?
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004
 


RE: How can I inhibit web navegation?

2004-06-18 Thread Bachler, Elisabeth (Elisabeth)
Thank you very much. The "listings" parameter does exactly what I wanted to
do!

Elisabeth

-Original Message-
From: Frank Zammetti [mailto:[EMAIL PROTECTED]
Sent: jueves, 17 de junio de 2004 15:46
To: [EMAIL PROTECTED]
Subject: RE: How can I inhibit web navegation?


Well, you can stop directory lists by setting listings to false in web.xml 
in /tomcat/conf (the global web.xml file).  There are comments about it in 
the file.

As for the navigation thing, you can externalize your security with 
something like Netegrity Siteminder.  This will allow you to stop users from

accessing any page of your application except those you define as 
unprotected, unless they have a valid session established.

However, you can do much the same thing within your application, and I think

this is what's generally done.  On each request, see if a valid session 
exists.  If not, redirect to some logon page, or whatever is appropriate.  
That takes care of PART of the problem.  The other part is once a session IS

established, there's not really anything to stop a user from going to any 
URL they can properly construct.

One way to handle that is that on each request, you set in session what page

was being viewed.  Then, you check that whatever page was last being viewed 
is a valid predecessor to the page being requested.  In other words, if the 
user is on page A, then you might know that in your application flow it's 
only ever valid to go to Page B, never directly to page C.  So, when page A 
is requested, yiou set in session a flag to say page A was last being 
viewed.  Now, when page B or C is requested, you check that value.  If page 
B is requested and the value is A, then you know you are OK.  If it's 
anything else, redirect the request.

Hope that helps!

Frank

>From: "Bachler, Elisabeth (Elisabeth)" <[EMAIL PROTECTED]>
>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
>Subject: How can I inhibit web navegation?
>Date: Thu, 17 Jun 2004 15:35:14 +0200
>
>
>
>Hello,
>I have a web application that runs under jakarta-tomcat-5.0.19. The root of
>my application is: /opt/jakarta-tomcat-5.0.19/webapps/provision/ I can
>access the application through:
>
>http://135.88.100.251:8080/provision/web/login.jsp
>
>Now, I don't want the user to be able to navigate through my application.
>For instance, if he enters: http://135.88.100.251:8080/provision/web/   I
>don't want him to see the directories (or even the files) in it.
>I think they must be a Context parameter that can do it but I don't know
>how.
>Could you help?
>
>Thanks
>Elisabeth
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! 
http://join.msn.click-url.com/go/onm00200362ave/direct/01/


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

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



RE: NEWBIE: flexible declaration of a database URL

2004-06-18 Thread STOCKHOLM, Raymond
Use tomcat's pooling mecanism : 
in $TOMCAT/conf/server.xml, in your application Context, declare a Resource :








factory
org.apache.commons.dbcp.BasicDataSourceFactory


maxActive
100


maxIdle
3


maxWait
100



username
sa



password
sa



driverClassName
com.microsoft.jdbc.sqlserver.SQLServerDriver(your 
driver)



url
your.url.with.correct.driver




validationQuery
select getdate()






You can, in your servlet, access the datasource  :
try {
Context ctx = new InitialContext();
this.dataSource = (DataSource) ctx.lookup("java:comp/env/jdbc/YOUR_DATABASE");
} catch (NamingException e) {
log.error("Constructor throws NamingException " + e.getMessage());
}


And then get a connection from it :
Connection conn = dataSource.getConnection();




-Message d'origine-
De : frederik gens [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 18 juin 2004 11:20
À : [EMAIL PROTECTED]
Objet : NEWBIE: flexible declaration of a database URL


Hello,
 
I'm currently developing a JSP/Servlet/JDBC application with Tomcat. In several 
classes called by servlets, I declare the URL which identify the database in order to 
open the connection. 
 
My question is: what is the best way to declare this URL only once, for example in a 
file, or in an environment variable. Therefore, the classes always call this variable. 
Changing the place of the database just requires to change the URL in one place.
 
Thanks in advance!
Frederik


-
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!

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



NEWBIE: flexible declaration of a database URL

2004-06-18 Thread frederik gens
Hello,
 
I'm currently developing a JSP/Servlet/JDBC application with Tomcat. In several 
classes called by servlets, I declare the URL which identify the database in order to 
open the connection. 
 
My question is: what is the best way to declare this URL only once, for example in a 
file, or in an environment variable. Therefore, the classes always call this variable. 
Changing the place of the database just requires to change the URL in one place.
 
Thanks in advance!
Frederik


-
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!

[OT] sendmail lists??

2004-06-18 Thread Adam Buglass
In Fact *VERY* OT.

I know and I'm sorry but I'm totally at my wits end and I'm making the
assumption that where there are Tomcat users / developers there must
also be Sendmail users / developers!

I've been looking for a good Sendmail users mailing list, like the
Sendmail equivalent of this one 'cos I've been having real problems.

Does anyone know of any?

Thanks for any help.

Adam.


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



Re: Tomcat 4.1 stops responding on RH9

2004-06-18 Thread Harald Henkel
Hello.

Is this the same problem I also asked yesterday about in thread

"All threads are busy ... servlet status 75" 

Somewhere I read about setting the LD_ASSUME_KERNEL to 2.2.5
But I also read somewhere that this didn't help
(www.junlu.com/msg/14450.html)

QM wrote:
> 
> On Thu, Jun 17, 2004 at 03:54:08PM -0400, Bradley Glonka wrote:
> : Tomcat installaion on Red Hat Version 9 intermitnently stops
> : Responding.
> :Kernel 2.4.20-9
> 
> RedHat's custom kernels have backported the NPTL (Native Posix Thread
> Library) routines from 2.5/2.6.  Set the env var "LD_KERNEL_ASSUME" to
> "2.4" to make non-NPTL code (such as your JDK) behave.
> 
> That var may also be called "LD_ASSUME_KERNEL," I forget which. ;)
> 
> : Can someone suggest how I can troubleshoot the problem.
> 
> Other than the above: are there differences between the development env
> and production env, other than the OS?  Differences in RAM or JVM heap
> settings can cause different GC behavior between the two.
> 
> Furthermore, what sort of load-testing was done on the app before it
> went live?
> 
> -QM
> 
> --
> 
> software  -- http://www.brandxdev.net
> tech news -- http://www.RoarNetworX.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Harald Henkel

GS automation GmbH
Winterstraße 2
82223 Eichenau
Germany
Tel:+ 49-8141-35 731-37
Fax:+ 49-8141-35 731-38
Mobile: + 49-178-7829126
e-mail: [EMAIL PROTECTED]
Web:www.GS-automation.DE

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



Re: Pulling a node out of a cluster?

2004-06-18 Thread Matrix Help
MatrixOne Tech Support eMail incident submission functionality requires specific 
subject line.  The following subject lines are recognized.

Request for CustomerLink Access
 - This will submit a request for new CustomerLink account

Request for CustomerLink Password Reset
 - This will submit a request for existing CustomerLink account password reset

Submit [PUT YOUR SUBJECT LINE HERE]
 - This will submit a new incident (please only use when CustomerLink is not 
available to ensure prompt service)

Keywords "Request" or "Submit" must be the 1st word in the subject line.

If you already have a CustomerLink account, please use CustomerLink 
(https://customerlink.matrixone.com) to submit or update your incidents.

Otherwise, please resend your message with the required subject line.

Thank you!

MatrixOne Tech Support


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



Pulling a node out of a cluster?

2004-06-18 Thread Davor Cengija
My server configuration is as follows:

- Apache 2 + mod_jk 1.2.5
- Two Tomcats 4.1.30 which communicate with mod_jk through ports 11009 and
12009.

It works just as it should; mod_jk automatically redirects all the requests
from tomcat1 to tomcat2 when tomcat1 is down etc.

Now, the question is how to pull e.g. tomcat1 out of a cluster but to have
it still happily running?

The best idea I could come to is to shut down a tomcat, change its mod_jk
connector port and to bring it up again. Apache doesn't see that tomcat
anymore and forwards all the requests to another one, and I can easily
access that pulled-out tomcat through its http port. When I want to
reconnect the pulled-out tomcat to cluster again I have to shut it down,
change its mod_jk connector port back to its previous value and start it up
again. It works but is a little bit touchy.

Any better idea?

I've seen a cluster configuration which uses special files, e.g.
im_in_cluster.html which each clustered tomcat has in its web root. Load
balancer first asks for that file and if it's available forwards request to
that tomcat. Simply removing im_in_cluster.html file from a tomcat's
webroot will render that tomcat unclustered. Any idea how could I achieve
that with apache+mod_jk+two tomcats?

Thanks,
Davor
-- 
Davor Cengija, [EMAIL PROTECTED]


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



mod_jk2 memory leak?

2004-06-18 Thread Carl Olivier
Greetings.

Ok, I posted yesterday about the fork attribute - no response yet and stuff.
Now I indicated that the fork setting of true *seemed* to have solved many
of my problems RE the apparent memory leak on my server.

I am now revising that statement in that the server now stayed up for 25
hours as opposed to the 12 or so it was before I set the fork init-param to
true.  So now I am where the OTHER memory leak is.  I have run profilers on
the server and cannot seem to find anything obvious in my code (in fact my
code seems to garbage collect very well and properly)...

I do recall certain posts on this list about a potential memory leak in
mod_jk2 - I am running Apache 2.0.49 with mod_jk2 connecting to Tomcat
behind.

Does anyone know if this was ever proved to be the case?  I will be
attempting to run the server on Tomcat standalone - to see if the memory
leak persists or not.

Anyway, any pointers would be welcome!

Regards,

Carl Olivier

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



Re: Order of WebApp Loading

2004-06-18 Thread Surendra Kumar
Hi  QM
Thanks for replying the mail. Can you provide more info about the
indirect way. I am not clear on this.
The App#1 needs to be started first because the other apps depends upon
the services provided by the App #1.

Thanks
Surendra

- Original Message -
From: "QM" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 16, 2004 5:36 PM
Subject: Re: Order of WebApp Loading


> Please create a *new* message when mailing the list.
> Responding to an unrelated message makes it difficult to follow the list
> with a thread-aware mailer.
>
>
> : I am using Tomcat 4.1.29 and i have several webapps in my
> : application.  I want to set one webapp to
> : load first and the rest of the webapps should be loaded
after
> : it. I have tried changing the order in server.xml, but it
> : didn'y help.
> : Is  there any way i can set the order of   webapp loading ?
>
> Directly, through Tomcat, no.  Not possible.
> Indirectly, put the "special" app in its own container and make sure
> that starts first (i.e. in your init scripts).
>
> What's the rationale behind App #1 starting first?
>
> -QM
>
>
> --
>
> software  -- http://www.brandxdev.net
> tech news -- http://www.RoarNetworX.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: JK2: lb_factor

2004-06-18 Thread Kommuru, Bhaskar
Thanks for you comments Michael, 
So mod_jk2.0.4 does not still seem to be a production quality software. It
doesnot work the way it is supposed to work as the documentation. I have
spent already a lot of time on this. 
I just want to confirm one thing here that it works and no matter what your
settings are :--(
If you know any links which tells more details on this, Please let me know.

Regards,
Bhaskar


-Original Message-
From: Michael Echerer [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 9:08 PM
To: Tomcat Users List
Subject: Re: JK2: lb_factor


I measured similar effects using "The Grinder".
Under maximum load with long running requests it can be even that worse 
that one Apache 2.x (default compile: prefork) with 2 Tomcats 
5.x/mod_jk2 only distributes to the first Tomcat at all.
This is true as long as Apache runs out of MaxClients because of the 
concurrent requests. Then, for some reason, Apache starts to distribute 
also some load to the second Apache.
So it might help if you lower MaxClients (this seems the only thing that 
has an direct effect, not lb_factor, not ajp13 threads or anything else) 
to force this earlier, but be aware that this might produce errors if 
you get much more requests that then can't be queued anymore.

I suppose Apache prefork and worker communication via shared memory by 
mod_jk2 don't work well together, or the don't work at all for true 
round robin. Putting more than 2 Tomcats won't help with high load. I 
once had 10 Tomcats, but in the end only the first few got most of the 
load, Tomcat No 7-10 almost nothing.

I also heard that Apache MPM may help, but didn't try yet. So either I 
forget something in my config, I have to use MPM (although nothing is 
really mentioned about those issues in the docu), or mod_jk2 is really 
not too good in this area.

Last advice: If you have that option to use a hardware router than I'd 
suggest to use more Apaches with only one Tomcat behind each of them. 
This will definitely work best as those routers do a true round robin.

Ralph Einfeldt wrote:
> The quality of the distribution depends on the worker type 
> of apache. (AFAIK only the 'worker' MPM will work)
> 
> Nevertheless AFAIK the load balancing in mod_jk is not 
> complete in this area, so I'm not shure if you will get 
> the desired distribution (but it should be closer).
> 
> 
>>-Original Message-
>>From: Weseloh, Nicole [mailto:[EMAIL PROTECTED]
>>Sent: Wednesday, June 16, 2004 11:48 AM
>>To: [EMAIL PROTECTED]
>>Subject: JK2: lb_factor
>>
>>I've got a cluster with 2 tomcat 2.0.25 on different 
>>machines, on one of them also running Apache 2.0.49 with JK2 
>>as a loadbalancer. Requests get redirected to both tomcat instances, 
>>but it always ends up with around 1/3 of all requests at the local 
>>server and about 2/3 at the remote one, no matter what value the 
>>lb_factors are.
>>
>>So, could anyone tell me which values I should use to make 
>>the lb_factor work correctly? All information I found was that 
>>"a lower value means more requests" (official JK2-documentation 
>>at jakarta.apache.org). 
>>
>>
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-- 
Dipl.-Inf. (FH) Michael Echerer
TNG Technology Consulting GmbH, http://www.tngtech.com
Betastr. 13a, 85774 Unterföhring bei München,
Tel. +49 89 2158996-0, Fax. +49 89 2158996-9, Mobile +49 176 20088854


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

__

For information about the Standard Bank group visit our web site 

__

Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited  is proprietary to the group. 
It is confidential, legally privileged and protected by law. 
Standard Bank does not own and endorse any other content. Views and opinions are those 
of the sender unless clearly stated as being that of the group. 
The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender immediately if it has unintentionally reached you and do not read, 
disclose or use the content in any way.
Standard Bank can not assure that the integrity of this communication has been 
maintained nor that it is free of errors, virus, interception or interference.
___


RE: JK2: lb_factor

2004-06-18 Thread Kommuru, Bhaskar
Any luck Nicole?
It is really frustrating. It works as fail-over without any settings. But as
per documentation it should not work without those specific settings. And in
case of Loadbalancing, It works on its own, doesnot listen what ever you
set... funny.
Any ideas! please let me know
Regards,
Bhasar

-Original Message-
From: Weseloh, Nicole [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 4:20 PM
To: Tomcat Users List
Subject: RE: JK2: lb_factor


Yes, right, that was the mail I meant. 

Your assumption about "failover instead of load balancing" seems to be
correct, at least, at my cluster (one local server, on a remote machine
another server + VMWare with a third server) it is the same - thanks for
that comment, I was to blind to see it myself. ;-)

I'll try to find out more tomorrow, maybe we'll get it to work - I'd be very
interested in your progresses, however. 
Do you've got any idea how to realise load balancing with a defined
distribution?

Or, in other words: as long as it does not work properly with Tomcat &
mod_jk2, are there any reasons to use those, after all, instead of Tomcat's
"balancer"-webapp, if one is mainly interested in performance issues?




-Ursprüngliche Nachricht-
Von: Kommuru, Bhaskar [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 17. Juni 2004 16:09
An: 'Tomcat Users List'
Betreff: RE: JK2: lb_factor

Do you remember that mail about "lb_factor"? What you said it right about
lb_factor. Changing this value does not affect easily. 


-Original Message-
From: Weseloh, Nicole [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 2:39 PM
To: Tomcat Users List
Subject: AW: JK2: lb_factor


Yes, I'm still struggling, too, and have quite similar problems now - I
added a third server to the load balanced cluster, but only two of them get
requests. I shut down each server in turn, and the load got balanced fine
between the remaining two - on starting up the third server again, one
always becomes idle (not always the same, above all...). Not talking about
the fact that setting lb_factor to whatever value doesn't seem to have much
effect on the load distribution... 

At least, I found out that lb_factor has nothing to do with a "factor",
indeed - assume that each worker has an initial "lb_value", set to it's
lb_factor. With every request, a worker is chosen, its lb_value gets
increased by its lb_factor, and if it's smaller than lb_value of the other
nodes, that worker gets the request. If lb_value is > 255, it gets resetted
to 0. 
^^ Just search archives of Apache User Mailing List, found it there (and
hope I understood correctly) - however, the mail was from some months ago,
so I really don't know if it still works like this.

I'd really like to know if someone has managed to build a cluster of  more
than 2 Tomcat servers, using Apache + JK2, with working loadbalancing? Just
curious... 

If someone could give a hint why it does such strange things (like
"ignoring" cluster nodes), we'd of course be thankful, too... :)

Greets, Nicole


-Ursprüngliche Nachricht-
Von: Kommuru, Bhaskar [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 17. Juni 2004 14:12
An: 'Tomcat Users List'
Betreff: RE: JK2: lb_factor

I too have similar problem and have been struggling since morning.
My problem is my mod_jk2 doesnt even load balance to remote server. When i
shut down local servers, it puts the request to remote server..
no cluesss!!


-Original Message-
From: Weseloh, Nicole [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 11:48 AM
To: [EMAIL PROTECTED]
Subject: JK2: lb_factor



Hello,

I've got a cluster with 2 tomcat 2.0.25 on different machines, on one of
them also running Apache 2.0.49 with JK2 as a loadbalancer.
Requests get redirected to both tomcat instances, but it always ends up with
around 1/3 of all requests at the local server and about 2/3 at the remote
one, no matter what value the lb_factors are.

So, could anyone tell me which values I should use to make the lb_factor
work correctly? All information I found was that "a lower value means more
requests" (official JK2-documentation at jakarta.apache.org). 


=

My workers2.properties:

[lb:lb]
stickySession=1

# First Tomcat Instance (Localhost / 10.32.97.44)
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
group=lb
lb_factor=1
tomcatId=tomcat01

# Second Tomcat Instance (10.32.97.23)
[channel.socket:10.32.97.23:8009]
port=8009
host=10.32.97.23
group=lb
lb_factor=1
tomcatId=tomcat02


# define the worker for tomcat instance 1 (localhost) [ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# define the worker for tomcat instance 2 [ajp13:10.32.97.23:8009]
channel=channel.socket:10.32.97.23:8009

#This is the application to test the cluster / load balancing...
[uri:/benchmark/*]
info=Benchmark application




Anything wrong with that? Anything missing? 
If more information needed, just tell me.. I

help: first web app

2004-06-18 Thread javac javac
I had a sample hello.war file which I inadvertently deleted using the Tomcat Manager.

1.)  where could I download a sample .war file?
2.)  using either the Tomcat Manager or Tomcat Administration, how would I deploy it?

I find Tomcat more challenging than anything so far encountered within Java itself.  
is that unusual?



thanks,

javac at mail dot com
http://www.geocities.com/cjavacjava/   for my java programs
http://www.myjavaserver.com/~javac/for JSP at servlet tinkerings
http://javac.eatj.com/   for where I'd like to deploy *anything*
-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm



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