Re: use of Delegate ...

2005-03-29 Thread Lionel Farbos
On Sat, 26 Mar 2005 16:46:44 +0100
Simon Kitching [EMAIL PROTECTED] wrote:

 I don_t understand; If you want jars from the war-specific WEB-INF/lib 
 to be used BEFORE the common/lib version, then the default classloading 
 order (child-first) is exactly what you want, isn_t it?
yes, in my example, it's exactly this.

 
 It_s the other order I_m puzzled about: why someone would want 
 common/lib to come before WEB-INF/lib (parent-first).
 
Sorry, I have no example for this use; 

Perhaps for better performances (when you know that classes are in the parent 
classloader) ...
or perhaps this feature is mandatory ?...

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



Location of javascript files.

2005-03-29 Thread Pawson, David
I'm having problems locating a javascript file.

{catalina_home}/project/x.html
finds an external javascript file in the same directory
quite happily.
script language=JavaScript1.2 
type=text/javascript src=upload.js/script 

Same thing from a jsp file

When I convert the jsp file to 
/project/WEB-APPS/class/x.class

where would you expect the javascript file to be found please?

Placing it in /project/upload.js works well on Firefox, fails
on IE.



TIA DaveP.

 snip here *

-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk




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



RE: Location of javascript files.

2005-03-29 Thread Peter Crowther
 From: Pawson, David [mailto:[EMAIL PROTECTED] 
 When I convert the jsp file to 
 /project/WEB-APPS/class/x.class
 
 where would you expect the javascript file to be found please?

By what URL is the client accessing the page (FileProperties or
right-clickProperties in IE)?  It needs to be in that folder, assuming
you've stuck with the relative path.

- Peter

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



RE: Location of javascript files.

2005-03-29 Thread Pawson, David
 

-Original Message-
From: Peter Crowther 
When I convert 
 the jsp file to /project/WEB-APPS/class/x.class
 
 where would you expect the javascript file to be found please?

By what URL is the client accessing the page (FileProperties or
right-clickProperties in IE)?  It needs to be in that 
folder, assuming
you've stuck with the relative path.

{url}/project/x 

I.e. the project root. 


And that works in FireFox.  Place the javascript file there and it finds it.
(Neither reports a missing javascript file at all well :-)

With IE I get a confusing 'Line 22, char 1, object expected' error message.

regards DaveP

-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk




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



RE: Location of javascript files.

2005-03-29 Thread Pawson, David
Problem solved! Worthy of note:

script language=JavaScript type=text/javascript  src=upload.js/script

the space after javascript was the criminal! remove it and
its back working again.

Because I'd converted from jsp to java,
I'd been careless with the whitespace;

Odd one is that MS was picky, Firefox far more lenient.

Thanks to Peter for showing me the accessLogValve.

regards DaveP

-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk




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



Re: caching pattern

2005-03-29 Thread Didier McGillis
A listing of some names, and some static content, the content is pulled from 
the database, but is infrequently changed

From: QM [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: caching pattern
Date: Mon, 28 Mar 2005 18:19:28 -0600
On Mon, Mar 28, 2005 at 04:47:30PM +, Didier McGillis wrote:
: Im looking for an idea of how to setup a caching pattern?
That's awful vague ;)
What sort of caching?  Content, data, other?
Depending on what you're trying to do, and your desire/willingness to
use third-party tools, you may not have to write it yourself from
scratch.
-QM
--
software   -- http://www.brandxdev.net/
tech news  -- http://www.RoarNetworX.com/
code scan  -- http://www.JxRef.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]


Content negotiation like Apache HTTP Server in Tomcat

2005-03-29 Thread Martin Alvarez Espinar
Hi,

I want to create something like the content negotiation implemented in the 
'mod_negotiation' for Apache HTTP Server, which would resolve requests like 
myPage.jsp.en using the language preferences of browsers or resource names 
without extensions like images.

Does anyone knows a solution for this? Maybe using filters and rewriting the 
request?

Thanks,


--

Martin Alvarez Espinar
Fundación CTIC
Parque Científico Tecnológico de Gijón
33203 - Gijón, Asturias, España
teléfono: +34 984390616; +34 984291212;
fax: +34 984390612
email: [EMAIL PROTECTED]
URL: http://www.fundacionctic.org

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



RE: caching pattern

2005-03-29 Thread Mark Benussi
If you are caching content, e.g. pages I would recommend using XSL to
transform the data into html, or jsp if you need. At startup and then
whenever it is changed.

For data, implement a persistence pattern (Data extends BaseData class,
Persistence extends BasePersistence class). Then for any data you want to
cache extend the BaseData to override the CRUD methods to hold data in a
Hashtable by key lookup (Assuming your data can be looked up using a single
key). Implement a time to live Timer (Say an hour) and then every time your
data is read, update its time stamp for the timer to ignore.

-Original Message-
From: Didier McGillis [mailto:[EMAIL PROTECTED] 
Sent: 29 March 2005 14:17
To: tomcat-user@jakarta.apache.org
Subject: Re: caching pattern

A listing of some names, and some static content, the content is pulled from

the database, but is infrequently changed

From: QM [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: caching pattern
Date: Mon, 28 Mar 2005 18:19:28 -0600

On Mon, Mar 28, 2005 at 04:47:30PM +, Didier McGillis wrote:
: Im looking for an idea of how to setup a caching pattern?

That's awful vague ;)

What sort of caching?  Content, data, other?

Depending on what you're trying to do, and your desire/willingness to
use third-party tools, you may not have to write it yourself from
scratch.

-QM

--

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


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



(solved sesion problem )

2005-03-29 Thread FRANCOIS Dufour
thanks to all for your anwsers
i finaly found that internet explorer was refusing the autentification 
cookie on xp (sp2)
for db authentification



[EMAIL PROTECTED]
administrateur http://monteregiechat.org


From: Martin Alvarez Espinar [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: tomcat-user@jakarta.apache.org
Subject: Content negotiation like Apache HTTP Server in Tomcat
Date: Tue, 29 Mar 2005 15:43:15 +0200
Hi,
I want to create something like the content negotiation implemented in the 
'mod_negotiation' for Apache HTTP Server, which would resolve requests like 
myPage.jsp.en using the language preferences of browsers or resource 
names without extensions like images.

Does anyone knows a solution for this? Maybe using filters and rewriting 
the request?

Thanks,
--
Martin Alvarez Espinar
Fundación CTIC
Parque Científico Tecnológico de Gijón
33203 - Gijón, Asturias, España
teléfono: +34 984390616; +34 984291212;
fax: +34 984390612
email: [EMAIL PROTECTED]
URL: http://www.fundacionctic.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: connection pooling confusion help needed

2005-03-29 Thread Preeti Iyer
Hi,
Please follow the directions by user rmorriso on the following link.
It should work fine.
http://forums.devshed.com/archive/t-120081




On Fri, 25 Mar 2005 19:11:15 + (GMT), Krishnakant Mane
[EMAIL PROTECTED] wrote:
 hello all,
 im going to put a web application in java servlets
 with tomcat 5 on a production ready server for real
 time use.
 I am thinking of using connection pooling but I am a
 bit confused.  I have initialised all my connections
 in the servlet's init method and closed them in
 distroy method.
 so these connections are not closed untill the server
 is turned off.  now how will the connection pooling
 track these un closed connections?
 and I will like some one to make me understand with an
 example of how to implement connection pooling using
 mysql jdbc.  I will be happy if some one gives a
 complete example including how to define context and
 where.  and how to link it to a web application and
 how to call the connection from a pool.  I have some
 rough idea but the tomcat docs really confused me.
 so please help me understand this connection pooling
 concept
 thanks
 Krishnakant.
 
 Send instant messages to your online friends http://uk.messenger.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Limit catalina.out size

2005-03-29 Thread Jimmy Ray
Running on HPUX...SDK 1.4.2...the standard output is
going to catlaina.out.  Is it possible to change the
logger settings reduce the size of the catalina.out
file and perform circular logging?  If so where are
these settings?

Regards,

Jimmy Ray



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

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



RE: caching pattern

2005-03-29 Thread Didier McGillis
Are there any good examples of this?
From: Mark Benussi [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Subject: RE: caching pattern
Date: Tue, 29 Mar 2005 14:54:24 +0100
If you are caching content, e.g. pages I would recommend using XSL to
transform the data into html, or jsp if you need. At startup and then
whenever it is changed.
For data, implement a persistence pattern (Data extends BaseData class,
Persistence extends BasePersistence class). Then for any data you want to
cache extend the BaseData to override the CRUD methods to hold data in a
Hashtable by key lookup (Assuming your data can be looked up using a single
key). Implement a time to live Timer (Say an hour) and then every time your
data is read, update its time stamp for the timer to ignore.
-Original Message-
From: Didier McGillis [mailto:[EMAIL PROTECTED]
Sent: 29 March 2005 14:17
To: tomcat-user@jakarta.apache.org
Subject: Re: caching pattern
A listing of some names, and some static content, the content is pulled 
from

the database, but is infrequently changed
From: QM [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: caching pattern
Date: Mon, 28 Mar 2005 18:19:28 -0600

On Mon, Mar 28, 2005 at 04:47:30PM +, Didier McGillis wrote:
: Im looking for an idea of how to setup a caching pattern?

That's awful vague ;)

What sort of caching?  Content, data, other?

Depending on what you're trying to do, and your desire/willingness to
use third-party tools, you may not have to write it yourself from
scratch.

-QM

--

software   -- http://www.brandxdev.net/
tech news  -- http://www.RoarNetworX.com/
code scan  -- http://www.JxRef.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]
-
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: caching pattern

2005-03-29 Thread Mark Benussi
The content or the data?

-Original Message-
From: Didier McGillis [mailto:[EMAIL PROTECTED] 
Sent: 29 March 2005 15:59
To: tomcat-user@jakarta.apache.org
Subject: RE: caching pattern

Are there any good examples of this?

From: Mark Benussi [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Subject: RE: caching pattern
Date: Tue, 29 Mar 2005 14:54:24 +0100

If you are caching content, e.g. pages I would recommend using XSL to
transform the data into html, or jsp if you need. At startup and then
whenever it is changed.

For data, implement a persistence pattern (Data extends BaseData class,
Persistence extends BasePersistence class). Then for any data you want to
cache extend the BaseData to override the CRUD methods to hold data in a
Hashtable by key lookup (Assuming your data can be looked up using a single
key). Implement a time to live Timer (Say an hour) and then every time your
data is read, update its time stamp for the timer to ignore.

-Original Message-
From: Didier McGillis [mailto:[EMAIL PROTECTED]
Sent: 29 March 2005 14:17
To: tomcat-user@jakarta.apache.org
Subject: Re: caching pattern

A listing of some names, and some static content, the content is pulled 
from

the database, but is infrequently changed

 From: QM [EMAIL PROTECTED]
 Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: caching pattern
 Date: Mon, 28 Mar 2005 18:19:28 -0600
 
 On Mon, Mar 28, 2005 at 04:47:30PM +, Didier McGillis wrote:
 : Im looking for an idea of how to setup a caching pattern?
 
 That's awful vague ;)
 
 What sort of caching?  Content, data, other?
 
 Depending on what you're trying to do, and your desire/willingness to
 use third-party tools, you may not have to write it yourself from
 scratch.
 
 -QM
 
 --
 
 software   -- http://www.brandxdev.net/
 tech news  -- http://www.RoarNetworX.com/
 code scan  -- http://www.JxRef.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]


-
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: Limit catalina.out size

2005-03-29 Thread Jimmy Ray
Sorry...Tomcat 5.0.28
--- Jimmy Ray [EMAIL PROTECTED] wrote:
 Running on HPUX...SDK 1.4.2...the standard output is
 going to catlaina.out.  Is it possible to change the
 logger settings reduce the size of the catalina.out
 file and perform circular logging?  If so where are
 these settings?
 
 Regards,
 
 Jimmy Ray
 
 
   
 __ 
 Do you Yahoo!? 
 Yahoo! Small Business - Try our new resources site!
 http://smallbusiness.yahoo.com/resources/ 
 

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



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

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



Re: Limit catalina.out size

2005-03-29 Thread Tim Funk
There shouldn't be anything going to standard output (Unless your code is 
writing to System.out)

An overly simple way to rotate logs in unix ...
cd $tomcat_log_dir
cp -f catalina.out catalina.out.`date +%Y.%m.%d`
cat /dev/null  catalina.out
-Tim
Jimmy Ray wrote:
Running on HPUX...SDK 1.4.2...the standard output is
going to catlaina.out.  Is it possible to change the
logger settings reduce the size of the catalina.out
file and perform circular logging?  If so where are
these settings?
Regards,
Jimmy Ray
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Limit catalina.out size

2005-03-29 Thread Filip Hanik - Dev Lists
or like we do, we pipe the output through cronolog
Filip
Tim Funk wrote:
There shouldn't be anything going to standard output (Unless your code 
is writing to System.out)

An overly simple way to rotate logs in unix ...
cd $tomcat_log_dir
cp -f catalina.out catalina.out.`date +%Y.%m.%d`
cat /dev/null  catalina.out
-Tim
Jimmy Ray wrote:
Running on HPUX...SDK 1.4.2...the standard output is
going to catlaina.out.  Is it possible to change the
logger settings reduce the size of the catalina.out
file and perform circular logging?  If so where are
these settings?
Regards,
Jimmy Ray

-
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: Limit catalina.out size

2005-03-29 Thread Michael Cornell
I would imagine that tomcat is logging using commons-logging, and that by
default it is outputting to Catalina.out

A suggested solution would be to include for example log4j.jar with a
log4j.properties in the classpath which should control how this log is
produced (consoleAppender output seems to go to Catalina.out)

Saying that, I too have problems not writing to Catalina.out in redhat linux
es3 with tomcat 5.0.25.  Maybe there is a general solution that someone who
has more intricate knowledge of how tomcat logs has??


/michael

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: 29 March 2005 16:11
To: Tomcat Users List
Subject: Re: Limit catalina.out size

There shouldn't be anything going to standard output (Unless your code is 
writing to System.out)

An overly simple way to rotate logs in unix ...
cd $tomcat_log_dir
cp -f catalina.out catalina.out.`date +%Y.%m.%d`
cat /dev/null  catalina.out

-Tim

Jimmy Ray wrote:
 Running on HPUX...SDK 1.4.2...the standard output is
 going to catlaina.out.  Is it possible to change the
 logger settings reduce the size of the catalina.out
 file and perform circular logging?  If so where are
 these settings?
 
 Regards,
 
 Jimmy Ray

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



unexpected behaviour when hot-deploying

2005-03-29 Thread Rob van Oostrum
On our production environment, when hot-deploying WAR files, Tomcat
occasionally spits out errors like this one:

Mar 29, 2005 12:46:59 AM org.apache.catalina.core.StandardContext
preDeregister
SEVERE: error stopping
LifecycleException:  Manager has not yet been started
at
org.apache.catalina.session.StandardManager.stop(StandardManager.java:680)
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4496)
at
org.apache.catalina.core.StandardContext.preDeregister(StandardContext.java:
5415)
at
org.apache.commons.modeler.BaseModelMBean.preDeregister(BaseModelMBean.java:
1410)
at
mx4j.server.interceptor.InvokerMBeanServerInterceptor.registration(InvokerMB
eanServerInterceptor.java:160)
at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.registration(DefaultMB
eanServerInterceptor.java:113)
at
mx4j.server.interceptor.SecurityMBeanServerInterceptor.registration(Security
MBeanServerInterceptor.java:128)
at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.registration(DefaultMB
eanServerInterceptor.java:113)
at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.registration(DefaultMB
eanServerInterceptor.java:113)
at
mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.registratio
n(ContextClassLoaderMBeanServerInterceptor.java:108)
at
mx4j.server.MBeanServerImpl.unregisterMBean(MBeanServerImpl.java:1170)
at
org.apache.commons.modeler.Registry.unregisterComponent(Registry.java:643)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4060)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
23)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:277)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
at
org.apache.catalina.startup.HostConfig.checkContextLastModified(HostConfig.j
ava:849)
at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1085)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:327)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:119)
at
org.apache.catalina.core.StandardHost.backgroundProcess(StandardHost.java:80
0)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1619)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1628)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont
ainerBase.java:1608)
at java.lang.Thread.run(Thread.java:534)

Last time this happened a second attempt caused Tomcat to pick up and
successfully deploy the new WAR file. It may be worth noting that Tomcat is
installed on a SAN mount. Could this be triggered by an underlying locking
issue? Any ideas would be most welcome. 

This is Tomcat 5.0.28 running on RHE ES 3.0


Cheers
Rob


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



Where to download the Compatibility Package for running Tomcat 5.5 with 1.4 jdk?

2005-03-29 Thread David
Dear Members,
 
On the documentation there is a comment about downloading the Compatibility 
Package in order to run Tomcat 5.5 under 1.4.x version. I don't see such 
package on the download section.
 
Do you have any idea where to find such package?
 
Tanks in advance,
 
David


-
Do you Yahoo!?
 Take Yahoo! Mail with you! Get it on your mobile phone.

RE: Where to download the Compatibility Package for running Tomcat 5.5 with 1.4 jdk?

2005-03-29 Thread Caldarale, Charles R
 From: David [mailto:[EMAIL PROTECTED] 
 Subject: Where to download the Compatibility Package for running
Tomcat 5.5 with 1.4 jdk?
  
 On the documentation there is a comment about downloading the 
 Compatibility Package in order to run Tomcat 5.5 under 1.4.x 
 version. I don't see such package on the download section.

It's the one called, of all things, Compat
5.5.7 Compat tar.gz 
[md5] [pgp] 
5.5.7 Compat zip 
[md5] [pgp] 
right there on the Tomcat download page:
http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi

 - Chuck

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



Re: Where to download the Compatibility Package for running Tomcat 5.5 with 1.4 jdk?

2005-03-29 Thread Jason Bainbridge
On Tue, 29 Mar 2005 08:15:33 -0800 (PST), David [EMAIL PROTECTED] wrote:
 Dear Members,
 
 On the documentation there is a comment about downloading the Compatibility 
 Package in order to run Tomcat 5.5 under 1.4.x version. I don't see such 
 package on the download section.
 
 Do you have any idea where to find such package?

http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi

Is it really that hard to see the -compat download there?

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

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



Re: Where to download the Compatibility Package for running Tomcat 5.5 with 1.4 jdk?

2005-03-29 Thread Trond G. Ziarkowski
Hi,
they are available for download with the other downloads here 
http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi. Named 
5.5.X Compat tar.gz/zip.

Trond
David wrote:
Dear Members,
On the documentation there is a comment about downloading the Compatibility 
Package in order to run Tomcat 5.5 under 1.4.x version. I don't see such 
package on the download section.
Do you have any idea where to find such package?
Tanks in advance,
David
		
-
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
 


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


Re: Admin application creates duplicate secure attribute in server.xml

2005-03-29 Thread Jeffrey Barnett
Peter,
Many thanks for finding and fixing the bug, however we are currently 
running 5.0.28, and not likely to upgrade until summer.  Can you 
describe enough about the problem that I could track it down and create 
a local fix / work around until then?

Peter Rossbach wrote:
Yes the wrong saving SSL Connector is a bug and I fix it for Tomcat 
5.5.x.

The old StandardServer saving code was strange. The new StoreConfig 
module has
a flexible customizable API to store server.xml and context.xml.

You can activate the new saving module with
Server ...
 Listener 
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/ 


/Server
This listener register a new MBean with more options to save the 
tomcat configurations.

Give 5.5.9 a try ... :-)
Peter
Jeffrey Barnett schrieb:
Mike, unfortunately I'm only gotten better at restoring server.xml 
after it has been corrupted.  You are the first person from the 
tomcat-user list to even confirm that the problem exits on other 
sites.. One consultant I consulted said that they had never heard of 
the problem, but that we were also the first site he had worked with 
that actually used the admin function actively,  By the way, just for 
the record, not only the secure attribute, but also the protocol 
attribute is duplicated, right?  And only on the SSL connector.

Mike Dippold wrote:
I just wanted to check to see if you have figured anything out with 
the tomcat admin ssl duplicate problem.  I have tried it on 5.0.28 
and also 5.5.7 and every time I change a datasource or anything 
else, it corrupts the xml.

Thanks,
Mike Dippold  

-
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: Where to download the Compatibility Package for running Tomcat 5.5 with 1.4 jdk?

2005-03-29 Thread David
Is it really that hard to see the -compat download there?
No, but there is no link to this addres on the Introduction documentation about 
Tomcat 5.5
 
On this link:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/setup.html
 
There is a following comment:
 
If using a J2SE 1.4 JRE, the compatibility package must be downloaded and 
expanded inside the folder where Tomcat was installed
 
but there is no mention about where to download it, I have checked on the 
download page, but I didn't see a package with a similar name.
 
Thanks,
 
David


Jason Bainbridge [EMAIL PROTECTED] wrote:
On Tue, 29 Mar 2005 08:15:33 -0800 (PST), David wrote:
 Dear Members,
 
 On the documentation there is a comment about downloading the Compatibility 
 Package in order to run Tomcat 5.5 under 1.4.x version. I don't see such 
 package on the download section.
 
 Do you have any idea where to find such package?

http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi

Is it really that hard to see the -compat download there?

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

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



-
Do you Yahoo!?
 Yahoo! Small Business - Try our new resources site! 

using a docBase outside $catalina.home ?

2005-03-29 Thread P T
Hi all,

I've checked the archives and google, but come up dry on this. I know
that with 5.5 we're no longer supposed to put contexts for individual
applications in server.xml, but none of the 'proper' ways have worked.

I've got source for an application that we're working on in
c:\share\MyAppName, and the context in
{$Catalina.home}\conf\Catalina\localhost\MyAppName.xml

MyAppName.xml contains exactly: 
Context path=/MyAppName docBase=c:\share\PMScheduler debug=0
reloadable=true/

I then start tomcat and access the /manager utility and it shows
/MyAppName in the Applications display and indicates 'false' under the
Running column. Attempting to start it produces FAIL - Application at
context path /MyAppName could not be started and no other info. The
/MyAppName folder exists but is empty.

I've also tried the method with context file in the docbase (
c:\share\PMScheduler\META-INF\context.xml ) and specifying it to the
/manager app as:
Context Path (optional): /MyAppName
XML Configuration file URL: file:C:/share/PMScheduler/META-INF/context.xml   
WAR or Directory URL:  file:C:/share/PMScheduler

This produces the same result. (Although I note that even where it
says the context is optional, it still requires it... it's not the
issue at hand, but anyone else noticing that?)

I'm stumped -- I can't imagine that the only way to work with unWAR-ed
files is to put them inside tomcats directory structure. While we're
developing it seems silly to have to reWAR the whole thing every time
we make a change to the source. Tomcat 3.3 could handle this I know --
is this just functionality that was lost along the way?

Cheers,
Patrick Thomas

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



Using JDBC with 5.5.x

2005-03-29 Thread Martin Dubuc
I am having some problems using JDBC with 5.5.x
releases. I can use JDBC with 5.0.28, but as soon as I
switch to 5.5.x, I get the following errors trying to
connect to database:

Mar 29, 2005 11:26:37 AM
org.apache.catalina.realm.DataSourceRealm open
SEVERE: Exception performing authentication
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot
create PoolableConnectionFactory (Server connection
failure during transaction. Due to underlying
exception: 'com.mysql.jdbc.CommunicationsException:
Communications link failure due to underlying
exception:

** BEGIN NESTED EXCEPTION **

java.io.EOFException

STACKTRACE:

java.io.EOFException
at
com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1842)
at
com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2288)
at
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2784)
at
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:750)
at
com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3573)
at
com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1151)
at
com.mysql.jdbc.Connection.createNewIO(Connection.java:1889)
at
com.mysql.jdbc.Connection.init(Connection.java:430)
at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:268)
at
org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
at
org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
at
org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:402)
at
org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:282)
at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:256)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:391)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)


** END NESTED EXCEPTION **

'.

** BEGIN NESTED EXCEPTION **

com.mysql.jdbc.CommunicationsException
MESSAGE: Communications link failure due to underlying
exception:

** BEGIN NESTED EXCEPTION **

java.io.EOFException

STACKTRACE:

java.io.EOFException
at
com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1842)
at
com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2288)
at
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2784)
at
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:750)
at
com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3573)
at
com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1151)
at
com.mysql.jdbc.Connection.createNewIO(Connection.java:1889)
at
com.mysql.jdbc.Connection.init(Connection.java:430)
at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:268)
at
org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection(
DriverConnectionFactory.java:37)
at
org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(Pool
ableConnectionFactory.java:290)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory
(BasicDataSource.java:877)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDat
aSource.java:851)
at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
at
org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:402)
at
org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:282)
at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:256)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:391)
at

Re: Using JDBC with 5.5.x

2005-03-29 Thread Trond G. Ziarkowski
Hi,
the way to define JNDI Datasources has changed from 5.0.x to 5.5.x. 
Check out the docs 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html

Trond
Martin Dubuc wrote:
I am having some problems using JDBC with 5.5.x
releases. I can use JDBC with 5.0.28, but as soon as I
switch to 5.5.x, I get the following errors trying to
connect to database:
Mar 29, 2005 11:26:37 AM
org.apache.catalina.realm.DataSourceRealm open
SEVERE: Exception performing authentication
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot
create PoolableConnectionFactory (Server connection
failure during transaction. Due to underlying
exception: 'com.mysql.jdbc.CommunicationsException:
Communications link failure due to underlying
exception:
** BEGIN NESTED EXCEPTION **
java.io.EOFException
STACKTRACE:
java.io.EOFException
   at
com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1842)
   at
com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2288)
   at
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2784)
   at
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:750)
   at
com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3573)
   at
com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1151)
   at
com.mysql.jdbc.Connection.createNewIO(Connection.java:1889)
   at
com.mysql.jdbc.Connection.init(Connection.java:430)
   at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:268)
   at
org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
   at
org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
   at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
   at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
   at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
   at
org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:402)
   at
org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:282)
   at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:256)
   at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:391)
   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
   at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
   at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
   at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:595)
** END NESTED EXCEPTION **
'.
** BEGIN NESTED EXCEPTION **
com.mysql.jdbc.CommunicationsException
MESSAGE: Communications link failure due to underlying
exception:
** BEGIN NESTED EXCEPTION **
java.io.EOFException
STACKTRACE:
java.io.EOFException
   at
com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1842)
   at
com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2288)
   at
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2784)
   at
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:750)
   at
com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3573)
   at
com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1151)
   at
com.mysql.jdbc.Connection.createNewIO(Connection.java:1889)
   at
com.mysql.jdbc.Connection.init(Connection.java:430)
   at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:268)
   at
org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection(
DriverConnectionFactory.java:37)
   at
org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(Pool
ableConnectionFactory.java:290)
   at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory
(BasicDataSource.java:877)
   at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDat
aSource.java:851)
   at
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
   at
org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:402)
   at
org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:282)
   at

Re: using a docBase outside $catalina.home ?

2005-03-29 Thread Brad Baynes
 I then start tomcat and access the /manager utility and it shows
 /MyAppName in the Applications display and indicates 'false' under the
 Running column. 
 I'm stumped -- I can't imagine that the only way to work with unWAR-ed
 files is to put them inside tomcats directory structure. 
 
 Cheers,
 Patrick Thomas

Patrick - make sure that the deployOnStartup attribute is not set to
false in the server.xml. We are running apps outside the Tomcat folder
structure with 5.5.7.

Brad

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



RE: caching pattern

2005-03-29 Thread Didier McGillis
data, or as they say in new england datur
From: Mark Benussi [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Subject: RE: caching pattern
Date: Tue, 29 Mar 2005 16:01:08 +0100
The content or the data?
-Original Message-
From: Didier McGillis [mailto:[EMAIL PROTECTED]
Sent: 29 March 2005 15:59
To: tomcat-user@jakarta.apache.org
Subject: RE: caching pattern
Are there any good examples of this?
From: Mark Benussi [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Subject: RE: caching pattern
Date: Tue, 29 Mar 2005 14:54:24 +0100

If you are caching content, e.g. pages I would recommend using XSL to
transform the data into html, or jsp if you need. At startup and then
whenever it is changed.

For data, implement a persistence pattern (Data extends BaseData class,
Persistence extends BasePersistence class). Then for any data you want to
cache extend the BaseData to override the CRUD methods to hold data in a
Hashtable by key lookup (Assuming your data can be looked up using a 
single
key). Implement a time to live Timer (Say an hour) and then every time 
your
data is read, update its time stamp for the timer to ignore.

-Original Message-
From: Didier McGillis [mailto:[EMAIL PROTECTED]
Sent: 29 March 2005 14:17
To: tomcat-user@jakarta.apache.org
Subject: Re: caching pattern

A listing of some names, and some static content, the content is pulled
from

the database, but is infrequently changed

 From: QM [EMAIL PROTECTED]
 Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: caching pattern
 Date: Mon, 28 Mar 2005 18:19:28 -0600
 
 On Mon, Mar 28, 2005 at 04:47:30PM +, Didier McGillis wrote:
 : Im looking for an idea of how to setup a caching pattern?
 
 That's awful vague ;)
 
 What sort of caching?  Content, data, other?
 
 Depending on what you're trying to do, and your desire/willingness to
 use third-party tools, you may not have to write it yourself from
 scratch.
 
 -QM
 
 --
 
 software   -- http://www.brandxdev.net/
 tech news  -- http://www.RoarNetworX.com/
 code scan  -- http://www.JxRef.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]


-
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: using a docBase outside $catalina.home ?

2005-03-29 Thread Brad Baynes
I can't imagine that the only way to work with unWAR-ed
  files is to put them inside tomcats directory structure.
 
  Patrick Thomas
 
 Patrick - make sure that the deployOnStartup attribute is not set to
 false in the server.xml. We are running apps outside the Tomcat folder
 structure with 5.5.7.
 

also do not specify the path on the context tag - it will be inferred
from the name of the xml file containing the context.

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



Re: Using JDBC with 5.5.x

2005-03-29 Thread Jimmy Ray
This brought up an issue that we are having in 5.0.28.
 We can not get a JNDI data sources to work unless we
have a resource link entry in the application.xml file
in the $tomcat_home/conf/catalina/localhost directory.

If we do not have these entries then we get the error:

ERROR:  SQL Exception...Cannot create JDBC driver of
class '' for connect URL 'null'

Java code:

Connection conn = null;
Context initCtx = new InitialContext();
Context envCtx = (Context)
initCtx.lookup(JNDI_LOOKUP);  //data source name from
properties file

DataSource ds = (DataSource)
envCtx.lookup(dataSource);



Regards,

Jimmy Ray
--- Trond G. Ziarkowski
[EMAIL PROTECTED] wrote:

 Hi,
 
 the way to define JNDI Datasources has changed from
 5.0.x to 5.5.x. 
 Check out the docs 

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html
 
 Trond
 
 Martin Dubuc wrote:
 
 I am having some problems using JDBC with 5.5.x
 releases. I can use JDBC with 5.0.28, but as soon
 as I
 switch to 5.5.x, I get the following errors trying
 to
 connect to database:
 
 Mar 29, 2005 11:26:37 AM
 org.apache.catalina.realm.DataSourceRealm open
 SEVERE: Exception performing authentication
 org.apache.tomcat.dbcp.dbcp.SQLNestedException:
 Cannot
 create PoolableConnectionFactory (Server connection
 failure during transaction. Due to underlying
 exception: 'com.mysql.jdbc.CommunicationsException:
 Communications link failure due to underlying
 exception:
 
 ** BEGIN NESTED EXCEPTION **
 
 java.io.EOFException
 
 STACKTRACE:
 
 java.io.EOFException
 at
 com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1842)
 at

com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2288)
 at

com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2784)
 at

com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:750)
 at

com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3573)
 at

com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1151)
 at

com.mysql.jdbc.Connection.createNewIO(Connection.java:1889)
 at

com.mysql.jdbc.Connection.init(Connection.java:430)
 at

com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:268)
 at

org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
 at

org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
 at

org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
 at

org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
 at

org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
 at

org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:402)
 at

org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:282)
 at

org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:256)
 at

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:391)
 at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
 at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 at

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
 at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 at

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
 at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
 at

org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 at

org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
 at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
 at java.lang.Thread.run(Thread.java:595)
 
 
 ** END NESTED EXCEPTION **
 
 '.
 
 ** BEGIN NESTED EXCEPTION **
 
 com.mysql.jdbc.CommunicationsException
 MESSAGE: Communications link failure due to
 underlying
 exception:
 
 ** BEGIN NESTED EXCEPTION **
 
 java.io.EOFException
 
 STACKTRACE:
 
 java.io.EOFException
 at
 com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1842)
 at

com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2288)
 at

com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2784)
 at

com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:750)
 at

com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3573)
 at

com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1151)
 at

com.mysql.jdbc.Connection.createNewIO(Connection.java:1889)
 at


Getting Tomcat to start my connection pool on startup.

2005-03-29 Thread Brian McGovern
Can anyone tell me how to get tomcat to see my connection pool (DBCP) when 
tomcat starts?

I'm running struts if that helps.

I have a Jndi resource set up that i can call from my code.  But the pool 
starts the first time i ask for a connection from the factory.  I'd rather it 
start on startup.

Can someone help and excuse the newbie question.

Thanks




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



Re: Getting Tomcat to start my connection pool on startup.

2005-03-29 Thread dshort
Yes, this can be done.  I use a resource listener with struts.  Upon Tomcat 
startup, the resource listener fires up and executes my Oracle DB connection 
pool logic.  I can send you the code later today, as it's not available at my 
current location.

- Original Message -
From: Brian McGovern [EMAIL PROTECTED]
Date: Tuesday, March 29, 2005 9:52 am
Subject: Getting Tomcat to start my connection pool on startup.

 Can anyone tell me how to get tomcat to see my connection pool 
 (DBCP) when tomcat starts?
 
 I'm running struts if that helps.
 
 I have a Jndi resource set up that i can call from my code.  But 
 the pool starts the first time i ask for a connection from the 
 factory.  I'd rather it start on startup.
 
 Can someone help and excuse the newbie question.
 
 Thanks
 
 
 
 
 ---
 --
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: BASIC Authentication for Custom Realm

2005-03-29 Thread Mark Thomas
Based on my own experience, the quickest way to work out what is 
happening will be to debug your way through it. See the FAQ for how to 
set this up: http://jakarta.apache.org/tomcat/faq/development.html

Mark
Mudumbai, Kalyan wrote:
Hi All,
I am trying to write a custom realm for my web application. I have added the
realm in the sever.xml file as below:
Realm className=com.web.tomcat.security.CustomRealm debug=0/
and I had the following entries in my web.xml file.
security-constraint
web-resource-collection
web-resource-namewebfiles/web-resource-name
url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
role-nameeveryone/role-name
/auth-constraint
/security-constraint
login-config
auth-methodBASIC/auth-method
realm-nameCustomRealm/realm-name
/login-config
security-role
role-nameeveryone/role-name
/security-role
When I access a page in my app, I'm expecting to get a Login Dialog box
that's provided by the web browser. But it doesn't happen, when I try to
access a web page.
If I remove my custom realm entry in the server.xml, the login dialog
appears. Has the appearance of the Login Dialog got to do anything with the
Realm? 

Can someone please let me know what's going wrong here?
Thanks,
Kalyan.

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


Tomcat 4.1.27 context MBeans

2005-03-29 Thread Sheykhet, Rostic
Hi all,

I would like to deploy my webapp along with custom mbeans.  I have
LifeCycleListeners enabled, and I can get a hold of MBeanServer object
from my webapp's servlet code, list mbeans, etc.  I cannot call the
MBeanServer.createMBean() method because all of my mbean-related classes
are only known to the webapp's class loader.  I would like the mbean
classes to not be shared and to remain in the WAR file.  How can I pass
the webapp's class loader to the MBeanServer? I've read the mbean
descriptor howto, but found no suitable answers there.


Thanks,

Rostic

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



(OT) RE: Location of javascript files.

2005-03-29 Thread Brent Sims
That error indicates an IE specific error in the javascript code,
usually a null variable object that Firefox will gracefully ignore. 
I've run into that a few times; isn't Microsoft grand?
 
Brent Sims
Systems Analyst 2
KC Human Services
-
Road rage, air rage.  Why should I be forced to divide my rage into
separate categories?  To me, it's just one big, all-round, everyday
rage.  I don't have time for fine distinctions.  I'm too busy screaming
at people.
 - George Carlin

 [EMAIL PROTECTED] 3/29/2005 3:49:38 AM 



-Original Message-
From: Peter Crowther 
When I convert 
 the jsp file to /project/WEB-APPS/class/x.class
 
 where would you expect the javascript file to be found please?

By what URL is the client accessing the page (FileProperties or
right-clickProperties in IE)?  It needs to be in that 
folder, assuming
you've stuck with the relative path.

{url}/project/x 

I.e. the project root. 


And that works in FireFox.  Place the javascript file there and it
finds it.
(Neither reports a missing javascript file at all well :-)

With IE I get a confusing 'Line 22, char 1, object expected' error
message.

regards DaveP

-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is

confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily
represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk




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





Re: Admin application creates duplicate secure attribute in server.xml

2005-03-29 Thread Peter Rossbach
Hello Jeffrey,
I have no time to made a storeconfig backport to the Tomcat 5.0 tree. 
Sorry, the 5.0.x is in some places very
unfriendly. When you want a local workaround look inside 
StandardServer#storeConnector.
The probleme is the storeAttributes method calls for real Connector and 
also for ProtocolHandler
L_1107
---
   writer.print(Connector);
   storeAttributes(writer, connector);
  
   if (connector instanceof CoyoteConnector) {
   ProtocolHandler protocolHandler =
   ((CoyoteConnector)connector).getProtocolHandler();
   storeAttributes(writer, protocolHandler);
   }
  
   writer.println();

-
What you need is a frontup merge, defaulthandling and renaming of some 
attributes (protocol at ProtocolHandler means sslProtocol at Connector 
Element) ?Arggh, ... very bad, but the 5.5.x Connector is complete 
rewritten and has a nice storeconfig module to handle some bad cases :-)
Implement a better Connector attribute saving algo, send me the code for 
testing

Why you want to wait, Tomat 5.5.9 is really stabler as 5.0.28.
Peter
Jeffrey Barnett schrieb:
Peter,
Many thanks for finding and fixing the bug, however we are currently 
running 5.0.28, and not likely to upgrade until summer.  Can you 
describe enough about the problem that I could track it down and 
create a local fix / work around until then?

Peter Rossbach wrote:
Yes the wrong saving SSL Connector is a bug and I fix it for Tomcat 
5.5.x.

The old StandardServer saving code was strange. The new StoreConfig 
module has
a flexible customizable API to store server.xml and context.xml.

You can activate the new saving module with
Server ...
 Listener 
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/ 


/Server
This listener register a new MBean with more options to save the 
tomcat configurations.

Give 5.5.9 a try ... :-)
Peter
Jeffrey Barnett schrieb:
Mike, unfortunately I'm only gotten better at restoring server.xml 
after it has been corrupted.  You are the first person from the 
tomcat-user list to even confirm that the problem exits on other 
sites.. One consultant I consulted said that they had never heard of 
the problem, but that we were also the first site he had worked with 
that actually used the admin function actively,  By the way, just 
for the record, not only the secure attribute, but also the protocol 
attribute is duplicated, right?  And only on the SSL connector.

Mike Dippold wrote:
I just wanted to check to see if you have figured anything out with 
the tomcat admin ssl duplicate problem.  I have tried it on 5.0.28 
and also 5.5.7 and every time I change a datasource or anything 
else, it corrupts the xml.

Thanks,
Mike Dippold  


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


include / c:import problems

2005-03-29 Thread Asim Alp
Hi,

We're using Tomcat 5.5.7 on Windows Server 2003 with Sun's J2SE 5.0. 
From time to time, we have problems with jsp:includes and c:imports. 
For some reason, the whole page gets included more than once.  For
example;

on index.jsp, we have news.jsp and events.jsp includes.

From time to time here is what happens:
index.jsp loads.  news.jsp gets included.  Instead of events.jsp
index.jsp gets included.  On that second index.jsp, news.jsp and
events.jsp gets included successfully.  We end up getting very weird
looking pages.

We have no idea why this happens as the code is correct.  In fact, the
page loads correctly after a refresh.  This seems to happen once every
100 loads...

Any ideas?

Asim

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



RE: include / c:import problems

2005-03-29 Thread Ramu, Vinod
Could we get the jsp code and web.xml configuration?

Vinod

-Original Message-
From: Asim Alp [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 29, 2005 3:14 PM
To: Tomcat Users List
Subject: include / c:import problems


Hi,

We're using Tomcat 5.5.7 on Windows Server 2003 with Sun's J2SE 5.0. 
From time to time, we have problems with jsp:includes and c:imports. 
For some reason, the whole page gets included more than once.  For
example;

on index.jsp, we have news.jsp and events.jsp includes.

From time to time here is what happens:
index.jsp loads.  news.jsp gets included.  Instead of events.jsp
index.jsp gets included.  On that second index.jsp, news.jsp and
events.jsp gets included successfully.  We end up getting very weird
looking pages.

We have no idea why this happens as the code is correct.  In fact, the
page loads correctly after a refresh.  This seems to happen once every
100 loads...

Any ideas?

Asim

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


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



Re: JNDI Realm Issue with 5.5.7

2005-03-29 Thread Ole Ersoy
OK!  Good news.  The JNDIRealm code is rock solid
which I found out after a few days of looking through
it and running tests.  Eventually I got around to
having a good look at my context descriptor and
discovered that I was not capitalizing the n and s in
roleName and roleSearch.

Hopes this serves as a good pointer to anyone else
with JNDIRealm issues.

- Ole
 
--- Ole Ersoy [EMAIL PROTECTED] wrote:
 Hi,
 
 Thanks for the tips.
 
 I have tried the following to isolate the issue:
 - Attempt: Commenting out the security constraint
 and
 retrying the URL (BTW - I just put the index.jsp in
 the context directory instead of main for the tests
 and changed the security constraint accordingly):
 
 http://localhost:8080/testaaamemjndi/index.jsp
 
 - Result:
 This works fine
 
 - Attempt: The exact same application with a memory
 realm
 - Result:
 This works fine
 
 - Attempt: Switching back to the JDNI Realm
 - Result: Now I get this
 HTTP Status 403 - Access to the requested resource
 has
 been denied
 
 for the URL
 http://localhost:8080/testaaamemjndi/index.jsp
 
 My JNDI Context Descriptor Looks like this:
 
 Context path=/testaaamemjndi
 docBase=testaaamemjndi debug=0
 reloadable=true
 Realm 
   
 className=org.apache.catalina.realm.JNDIRealm
debug=99
  connectionURL=ldap://localhost:389;
 
 userPattern=uid={0},ou=People,dc=example,dc=com
  roleBase=ou=roles,dc=example,dc=com
  rolename=cn
  rolesearch=(roleOccupant={0})/
 /Context
 
 Seems like it does not like the user name and
 password, but I'm able to authenticate to OpenLDAP
 via
 another JNDI client using the same user name and
 password, so it seems like the bind is not
 succeeding
 when it should.
 
 
 --- William Stranathan [EMAIL PROTECTED] wrote:
  I haven't tried this out myself, but here are
  several possibilities:
  
  1) Does /main/index.jsp exist?  That's where your
  servlet points to
  2) There doesn't appear to be a welcome-file
  configured - depending on
  what URL you're using, it may be that it's looking
  for a welcome file,
  but since there's not one configured, it can't be
  found.
  
  This doesn't APPEAR to be a JNDI issue.  Have you
  tried this
  configuration WITHOUT the security-constraint yet
 to
  eliminate AAA as
  the cause of the issues?
  
  w
  
  On Fri, 25 Mar 2005 20:17:19 -0800 (PST), Ole
 Ersoy
  [EMAIL PROTECTED] wrote:
   
   I think I must be missing something obvious in
 the
   configuration
   files, because I get the login error page when
   entering non user information,
   and when I type in the correct username and
  password,
   tomcat gives me this:
   
   HTTP Status 403 - Access to the requested
 resource
  has
   been denied
  
  
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
   
 __ 
 Do you Yahoo!? 
 Yahoo! Mail - Find what you need with new enhanced
 search. 
 http://info.mail.yahoo.com/mail_250
 

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

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

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



Re: include / c:import problems

2005-03-29 Thread Folashade Adeyosoye
are you refering to includes or Tiles?


On Tue, 29 Mar 2005 15:20:01 -0500, Ramu, Vinod [EMAIL PROTECTED] wrote:
 Could we get the jsp code and web.xml configuration?
 
 Vinod
 
 -Original Message-
 From: Asim Alp [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 29, 2005 3:14 PM
 To: Tomcat Users List
 Subject: include / c:import problems
 
 Hi,
 
 We're using Tomcat 5.5.7 on Windows Server 2003 with Sun's J2SE 5.0.
 From time to time, we have problems with jsp:includes and c:imports.
 For some reason, the whole page gets included more than once.  For
 example;
 
 on index.jsp, we have news.jsp and events.jsp includes.
 
 From time to time here is what happens:
 index.jsp loads.  news.jsp gets included.  Instead of events.jsp
 index.jsp gets included.  On that second index.jsp, news.jsp and
 events.jsp gets included successfully.  We end up getting very weird
 looking pages.
 
 We have no idea why this happens as the code is correct.  In fact, the
 page loads correctly after a refresh.  This seems to happen once every
 100 loads...
 
 Any ideas?
 
 Asim
 
 -
 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]



RESOLVED - using a docBase outside $catalina.home ?

2005-03-29 Thread P T
putting a foo.xml file into conf\Catalina\localhost eventually
worked... not exactly sure why it's working, but thanks for the input
all.

~PST

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



Re: include / c:import problems

2005-03-29 Thread Asim Alp
Here is the web.xml at top level (Tomcat/conf/web.xml), there is
really nothing special about it.  Our regular applications don't
really need web.xml:

?xml version=1.0 encoding=ISO-8859-1?
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4

servlet
servlet-namedefault/servlet-name

servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class
init-param
param-namedebug/param-name
param-value0/param-value
/init-param
init-param
param-namelistings/param-name
param-valuetrue/param-value
/init-param
load-on-startup1/load-on-startup
/servlet

servlet
servlet-namejsp/servlet-name
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namefork/param-name
param-valuetrue/param-value
/init-param
init-param
param-namexpoweredBy/param-name
param-valuefalse/param-value
/init-param
load-on-startup3/load-on-startup
/servlet

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

servlet-mapping
servlet-namejsp/servlet-name
url-pattern*.jsp/url-pattern
/servlet-mapping

servlet-mapping
servlet-namejsp/servlet-name
url-pattern*.jspx/url-pattern
/servlet-mapping

session-config
session-timeout30/session-timeout
/session-config
...(mime-mappings)
welcome-file-list
welcome-fileindex.jsp/welcome-file
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
/welcome-file-list
/web-app

JSP code uses cross context includes and it's really complicated
although there is nothing wrong with the code.  We have 2 contexts.

Here is a sample index.jsp from context /

%@ taglib prefix=c uri=http://java.sun.com/jstl/core; %
c:import url=/shared/header.jsp context=/apps /

table border=0 cellpadding=0 cellspacing=0
tr 
td valign=top width=310
c:import url=/news/HPNews.jsp context=/apps /br
c:import url=/events/HPEvents.jsp context=/apps /br
c:import url=/memoirs/HPMemoirs.jsp context=/apps /br
c:import url=/links/HPLinks.jsp context=/apps /brbr
/td
td width=1 valign=top bgcolor=#FF9900img
src=/pics/spacer.gif width=1 height=1/td
td width=14 valign=topimg src=/pics/spacer.gif width=14
height=1/td
td width=200 valign=top
c:import url=/bbmessages/HPBBMessages.jsp context=/apps 
/br
c:import url=/directory/HPDirectory.jsp context=/apps 
/br
c:import url=/minien/HPMinien.jsp context=/apps /brbr
/td
/tr
/table

c:import url=/shared/footer.jsp context=/apps /


Here is a part of header.jsp from context /apps

%@ page contentType=text/html; charset=utf-8 language=java
import=xxx.EC %
%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; %
%@ include file=/shared/ec.jsp %
!-- %= ec.getServerID() % --
% session.setAttribute(ts, new Long(System.currentTimeMillis())); %

% if (ec.isClosed()) { %
meta http-equiv=Refresh content=0; URL=/apps/closed.jsp
script language=javascript
window.location.href = /apps/closed.jsp;
/script
% } else if (ec.isUnderConstruction() 
ec.getHttpHost().indexOf(ednet.ws)  0) { %
meta http-equiv=Refresh content=0; 
URL=/apps/under_construction.jsp
script language=javascript
window.location.href = /apps/under_construction.jsp;
/script
% } %

html
head
title%= ec.getWebsiteName() %/title
meta http-equiv=Content-Type content=text/html; charset=utf-8
meta http-equiv=description content=%= ec.getWebsiteName() %
meta name=generator content=%= ec.get(general.generator) % /
link rel=shortcut icon type=image/ico href=/favicon.ico
style type=text/cssc:import url=/shared/main.css context=/ 
//style
script language=JavaScript src=/apps/js/common.js/script
/head

c:import url=/shared/header.jsp context=/ /


Please note that header.jsp in /apps includes another header.jsp in /.
 The second header.jsp in / doesn't have any includes.  It's plain
HTML code...


HPNews.jsp in context /apps is something like this:

%@ page contentType=text/html; charset=utf-8 language=java
import=xxx.EC, xxx.MySQLTable, xxx.StringUtils, xxx.News %
%@ taglib prefix=c uri=http://java.sun.com/jstl/core; %
%@ include file=/shared/ec.jsp %
%
News news = new News(ec, pageContext);
MySQLTable newsList = news.getHPNews();
%
...
% if (version.equals(3) || version.equals(4)) { %
c:import url=/shared/objects/flash_detect.jsp 
c:param 

Tomcat-juli in 5.5.9

2005-03-29 Thread Brent Sims
Did the tomcat-juli jar not make the release of 5.5.9 or is this
something I need to build separately?  I can't seem to locate the jar in
the zip download, which could very well just be my eyes.
 
Thanks
 
Brent Sims
Systems Analyst 2
KC Human Services
-
Road rage, air rage.  Why should I be forced to divide my rage into
separate categories?  To me, it's just one big, all-round, everyday
rage.  I don't have time for fine distinctions.  I'm too busy screaming
at people.
 - George Carlin


Tomcat 5.5.7, mod_jk 1.2.8, Apache 2.0.53 - 404 received from remote client, but not local

2005-03-29 Thread Jason Williams
Hello,

I have tomcat 5.5.7, mod_jk 1.2.8 and Apache 2.0.53 installed on Debian
linux machine (machine A).

When accessing a webapp through apache using a browser on the same machine
as the server (machine A) I have no problems.  When accessing the same URL
from another machine on the same network (machine B) I get a 404 error from
Apache.  No other errors are given in the mod_jk.log, catalina.out or
error.log.

My workers.properties file is very simple:

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

I added this line to my server.xml file (right under the Engine tag):

Listener className=org.apache.jk.config.ApacheConfig
modJk=/usr/local/apache2/modules/mod_jk.so /

The $TOMCAT/conf/auto/mod_jk.conf file gets created just fine when tomcat
starts up.

I added the Include directive in my httpd.conf file to pick up the
mod_jk.conf file.

So, in short, hitting the url http://localhost/jsp-examples/ works just fine
using a browser on the same machine as the web server.  But hitting the same
url (http://machineA/jsp-examples/) from a different machine results in a
404 error from Apache.  Hitting tomcat directly
(http://machineA:8080/jsp-examples/) works just fine as well.

This makes me think something is wrong with my mod_jk configuration, but why
then does the local browser work?  There is no firewall running on the
server.

Thank you for your time.

Jason



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



Compressing file uploads with TC 4.1

2005-03-29 Thread David Wall
As I undertand it, some browsers (which ones?) support GZIP compression. 
I'm not sure if the HTTP response needs to include anything to tell the 
browser that the server supports it or not.  Does anybody know if Tomcat 
will provide the right headers for that?

I read in the Coyote HTTP connector that I can set compression=on.  Does 
that use the browser/http protocol for negotiating whether that's allowed or 
not?  Certainly, if the modern browsers support GZIP, that would be valuable 
for file uploads and the like, but we wouldn't want it to try to use 
compression if the browser didn't support it.

Is this the way to go or do I need to do something else?
Thanks,
David 

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


Data file owner and group difficulties

2005-03-29 Thread James T. Studebaker





My servlets create data files. The webapp is running on a Linux 
system. The app user is jims and my group is jims. I have to set 
permissions to 777 in order for tomcat to read data files. When data files 
are created, the user is tomcat and the group is nobody. As a result my 
servlets can not read the data files created. Is the a configuration 
parameter that will result in data files created with a user of jims and a group 
of jims. Is there configuration parameters that result in tomcat being 
able to read data files with the user jims and the group jims.
Thank youJames T. Studebaker



RE: FIXED - Tomcat 5.5.7, mod_jk 1.2.8, Apache 2.0.53 - 404 received from remote client, but not local

2005-03-29 Thread Jason Williams
It seems the problem was that the auto-generated mod_jk.conf file was
placing the JkMount directives inside a VirtualHost tag for localhost.
Since I'm not interested in having any name-based virtual hosting, I removed
the enclosing VirtualHost tags and renamed the file mod_jk.conf.manual so it
would not be overwritten (and updated the httpd.conf file to point to it).

Jason


 Hello,

 I have tomcat 5.5.7, mod_jk 1.2.8 and Apache 2.0.53 installed on Debian
 linux machine (machine A).

 When accessing a webapp through apache using a browser on the same machine
 as the server (machine A) I have no problems.  When accessing the same URL
 from another machine on the same network (machine B) I get a 404
 error from
 Apache.  No other errors are given in the mod_jk.log, catalina.out or
 error.log.

 My workers.properties file is very simple:

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

 I added this line to my server.xml file (right under the Engine tag):

 Listener className=org.apache.jk.config.ApacheConfig
 modJk=/usr/local/apache2/modules/mod_jk.so /

 The $TOMCAT/conf/auto/mod_jk.conf file gets created just fine when tomcat
 starts up.

 I added the Include directive in my httpd.conf file to pick up the
 mod_jk.conf file.

 So, in short, hitting the url http://localhost/jsp-examples/
 works just fine
 using a browser on the same machine as the web server.  But
 hitting the same
 url (http://machineA/jsp-examples/) from a different machine results in a
 404 error from Apache.  Hitting tomcat directly
 (http://machineA:8080/jsp-examples/) works just fine as well.

 This makes me think something is wrong with my mod_jk
 configuration, but why
 then does the local browser work?  There is no firewall running on the
 server.

 Thank you for your time.

 Jason



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





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



Re: Tomcat 4.1.27 context MBeans

2005-03-29 Thread Bill Barker
I don't believe that TC 4 registers the webapp's classloader with JMX (only 
the Catalina Loader).  You'll need TC 5 for that.

Sheykhet, Rostic [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
Hi all,

I would like to deploy my webapp along with custom mbeans.  I have
LifeCycleListeners enabled, and I can get a hold of MBeanServer object
from my webapp's servlet code, list mbeans, etc.  I cannot call the
MBeanServer.createMBean() method because all of my mbean-related classes
are only known to the webapp's class loader.  I would like the mbean
classes to not be shared and to remain in the WAR file.  How can I pass
the webapp's class loader to the MBeanServer? I've read the mbean
descriptor howto, but found no suitable answers there.


Thanks,

Rostic 




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



Re: Re: Installing Tomcat service: Unable to manually insert values for JvmMx and JvmMs in registry

2005-03-29 Thread Lakshmi Narayanan K.
No replies yet??? :(
Is it possible that this is a possible bug in the tomcat5.exe
executable? Can this thread be forwarded to the other mailing list,
the tomcat-developers one???

Eagerly awaiting your replies...

-- 
Warm Regards,

Lakshmi Narayanan K.
 When the buying stops, the killing can too! 

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




Session Handling

2005-03-29 Thread Jagadeesha T
Hi all,
I need to launch a browser from a java application (swing) on the click of the 
button.
Each click should launch a different instance of the browser. However, all 
these instances of the browser should share the same HttpSession (created on 
the launch of the first browser instance).

Currently, have implemented this by setting a cookie in HttpServletResponse 
object.
 
response.addCookie(new Cookie(jsessionid,sessionid)) 
response.sendRedirect(NextPage),
 
 In the above approach, all browser instances share the same session. This 
works fine. 
 However, if the jsp invoked as part of sendRedirect uses response.encodeURL(), 
this approach does not work. When the encoreURL() method is used, the session 
id is not set correctly (a different session id is being set). Not sure how/why 
the session id is different in this case. 
 
 Any idea why?
 Or is there any other way of sharing a session for all the browsers.
  I am using Tomcat version 5.0,
  
 Thanks,
 Jagadeesha T
 
 
 
 
 


-
Do you Yahoo!?
 Yahoo! Mail - Easier than ever with enhanced search. Learn more.

Re: tomcat 5.5.7 / windowsXP / access database

2005-03-29 Thread U K Laxmi
I was watching this mailing list and found this
posting useful. Even my environment is same except
that i'm using MS Access on windows 2000 machine. I
followed what Mr. Luke has done and it works fine for
me too. Earlier i was using JDBC connection as
follows:

Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
Connection conn =
DriverManager.getConnection(jdbc:odbc:driver={Microsoft
Access Driver
(*.mdb)};DBQ=C:/tomcat/webapps/db1/db1.mdb);

Now i included following in srever.xml under
GlobalNamingResources.

Resource
name=db1
 type=javax.sql.DataSource
 password=
 driverClassName=sun.jdbc.odbc.JdbcOdbcDriver
 maxIdle=2
 maxWait=5000
 username=
 url=jdbc:odbc:db1
 maxActive=4/

and changed the code on my JSP follows:

Connection conn = null; 
Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
conn = DriverManager.getConnection(jdbc:odbc:db1);

And it works fine. I'm able to work on database. 

What is the drawback in doing like this? Is it fine to
do this way? If not, what changes i need to do to the
existing set-up? Pls inform.

Thanks.


--- Parsons Technical Services
[EMAIL PROTECTED] wrote:

 Luke,
 
 I should have read closer. What you have done is to
 create a connection 
 without pooling. The language in the servlet does
 not call the resource that 
 you created in the server.xml . If you don't need
 pooling you can remove the 
 Global resource. If you want pooling, you need to
 change the servlet.
 
 As for why all three work, you need to look at your
 setup.
 Is the database protected with a password?
 Did you declare a password in the DSN?
 
 Glad you got things working, but I wanted you to
 know that they were not 
 working as you thought.
 
 Doug
 
 
 - Original Message - 
 From: [EMAIL PROTECTED]
 To: tomcat-user@jakarta.apache.org
 Sent: Saturday, March 26, 2005 4:27 AM
 Subject: Re: tomcat 5.5.7 / windowsXP / access
 database
 
 
  Hi,
 
  I've solved the problem.
  I needed to declare a 'system-wide' datasource on
 the windowsXP box.
  In adminstrative tools, firstup I declared a user
 DSN, that has to be
  a System DSN,
  then it worked.
 
  NOTE: the DriverManager.getConnection() method has
 a few different
  constructors. Once you have the System wide DSN,
 any of the following
  constructors work:
  DriverManager.getConnection(jdbc:odbc:db);
  DriverManager.getConnection(jdbc:odbc:db,,);
 

DriverManager.getConnection(jdbc:odbc:db,user,pass);
 
  these all worked regardless of the settings for
 'username' and
  'password' in server.xml, even deleting those to
 settings from
  server.xml didn't affect access to the access
 database.
  THis was once again confirmed by rebooting the
 windows box and
  (obviously) starting all services again.
 
  Have a great Easter!
  Luke
 
  ~
  Hi,
 
  I've recently started to experiment with tomcat
 5.5.7 on windows XP,
  trying to access an Access (.mdb) database.
  I've set up a datasource in windows administration
 tools and used the
  the tomcat administration (which had to be
 installed separately) to
  configure a datasource in tomcat.
 
  this gave me the following in 'server.xml' under
 GlobalNamingResources:
  ___
  /
Resource
  name=movies
  type=javax.sql.DataSource
  password=
  driverClassName=sun.jdbc.odbc.JdbcOdbcDriver
  maxIdle=2
  maxWait=5000
  username=
  url=jdbc:odbc:movies
  maxActive=4/
  \___
 
  I then got a servlet going with the following:
  ___
  /
Connection con = null;
try {
// Load the Driver class file
   
 Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
out.println(Getting Connection!);
// Make a connection to the ODBC datasource
 Movie Catalog
// In this example we are opening a
 connection to the
// database with every request.
con =

DriverManager.getConnection(jdbc:odbc:movies,,);
if ( con == null ) {
out.println(no Connection!);
}
else {
out.println(we have a connection);
}
  \___
 
  restarted tomcat and tried but get the following
 message after an
  SqlException is thrown.
  ___
  /
SQLException -- [Microsoft][ODBC Driver Manager]
 Data source name
  not found and no default
driver specified
  \___
 
  In other words it chokes at:
  ___
  /
con =

DriverManager.getConnection(jdbc:odbc:movies,,);
  \___
 
  any hints as to what I'm doing wrong?
 
  thanks,
  kind regards,
  Luke
 
  --
   /  /  _
  /_ /_/ / /=
  0421 276 282
 
   Hi,
  
   I've recently started to experiment with tomcat
 5.5.7 on windows XP,
   trying to access an Access (.mdb) database.
   I've set up a datasource in windowsXP
 administration tools and used
   the the tomcat administration (which had to be
 installed separately)
   to configure a datasource in tomcat.
  
   this gave me 

apply SSL using tomcat 3.3.1a and JDK 1.3.1

2005-03-29 Thread Marcus Nugroho
Hi All,

Is it possible to apply SSL on tomcat 3.3.1a using JDK 1.3.1 ? 

We have succeeded for Tomcat 3.3.1a using JDK 1.4.2. unfortunately, the 
application required JDK 1.3.1
Does anyone have similar experince about this ? 

Thanks,
Marcus.


multiple domain name support for https

2005-03-29 Thread Sasisekar S Sundaram
Hi,
Few browsers (like Mozilla) are giving a warning message ==  Security Error: 
Doamin Name Mismatch  with https. I understand that the error is because i 
have two domain names, like www.mycompany.com  and mycompany.com  for the same 
IP, and the certificate of tomcat contains only one of the 2 names.  I 
understand that i can not create another certificate, and i can not even use 
Name-based virtual hosts. It is important for me to over ride this Warning 
message in our production environment. I read somewhere that I can override the 
HostnameVerifier interface and achieve the solution. Can some one guide me 
about how to modify it and integrate with Tomcat. I appreciate your time. Thank 
you

Regards,

Sasisekar S Sundaram
Research Assistant
Center For Business and Information Technology (CBIT)
University of Louisiana, Lafayette
Ph: (337) 482 0618

Re: apply SSL using tomcat 3.3.1a and JDK 1.3.1

2005-03-29 Thread Bill Barker

Marcus Nugroho [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hi All,

 Is it possible to apply SSL on tomcat 3.3.1a using JDK 1.3.1 ?

 We have succeeded for Tomcat 3.3.1a using JDK 1.4.2. unfortunately, the
 application required JDK 1.3.1
 Does anyone have similar experince about this ?


You need to download JSSE 1.0.x from Sun, and copy the jars to 
$TOMCAT_HOME/lib/common.  After that, it's just like with JDK 1.4.x.

 Thanks,
 Marcus.
 




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



Re: multiple domain name support for https

2005-03-29 Thread Antony Paul
One way is to redirect all requests if the request.getServerName()
dont return the hostname for which SSL certificate is issued. This can
be done in entry pages to your site.


On Wed, 30 Mar 2005 00:40:34 -0600, Sasisekar S Sundaram
[EMAIL PROTECTED] wrote:
 Hi,
 Few browsers (like Mozilla) are giving a warning message ==  Security 
 Error: Doamin Name Mismatch  with https. I understand that the error is 
 because i have two domain names, like www.mycompany.com  and mycompany.com  
 for the same IP, and the certificate of tomcat contains only one of the 2 
 names.  I understand that i can not create another certificate, and i can not 
 even use Name-based virtual hosts. It is important for me to over ride this 
 Warning message in our production environment. I read somewhere that I can 
 override the HostnameVerifier interface and achieve the solution. Can some 
 one guide me about how to modify it and integrate with Tomcat. I appreciate 
 your time. Thank you
 
 Regards,
 
 Sasisekar S Sundaram
 Research Assistant
 Center For Business and Information Technology (CBIT)
 University of Louisiana, Lafayette
 Ph: (337) 482 0618
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



JDK usage with Tomcat

2005-03-29 Thread Gurunandan G Rao
Which JDK is mostly used with Tomcat in production environment?.
Is it 

*   Sun
*   IBM
*   BEA(Jrockit)
*   Unisys
*   HP(on HP ux)

Is Tomcat certified with any JDK vendor?.

 

 


RE: caching pattern

2005-03-29 Thread Mark Benussi
Ill put something together and send it to you, not the list as I think
people mind large files being posted.

Will try and get it out by 5pm BST

-Original Message-
From: Didier McGillis [mailto:[EMAIL PROTECTED] 
Sent: 29 March 2005 18:12
To: tomcat-user@jakarta.apache.org
Subject: RE: caching pattern

data, or as they say in new england datur

From: Mark Benussi [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Subject: RE: caching pattern
Date: Tue, 29 Mar 2005 16:01:08 +0100

The content or the data?

-Original Message-
From: Didier McGillis [mailto:[EMAIL PROTECTED]
Sent: 29 March 2005 15:59
To: tomcat-user@jakarta.apache.org
Subject: RE: caching pattern

Are there any good examples of this?

 From: Mark Benussi [EMAIL PROTECTED]
 Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
 To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
 Subject: RE: caching pattern
 Date: Tue, 29 Mar 2005 14:54:24 +0100
 
 If you are caching content, e.g. pages I would recommend using XSL to
 transform the data into html, or jsp if you need. At startup and then
 whenever it is changed.
 
 For data, implement a persistence pattern (Data extends BaseData class,
 Persistence extends BasePersistence class). Then for any data you want to
 cache extend the BaseData to override the CRUD methods to hold data in a
 Hashtable by key lookup (Assuming your data can be looked up using a 
single
 key). Implement a time to live Timer (Say an hour) and then every time 
your
 data is read, update its time stamp for the timer to ignore.
 
 -Original Message-
 From: Didier McGillis [mailto:[EMAIL PROTECTED]
 Sent: 29 March 2005 14:17
 To: tomcat-user@jakarta.apache.org
 Subject: Re: caching pattern
 
 A listing of some names, and some static content, the content is pulled
 from
 
 the database, but is infrequently changed
 
  From: QM [EMAIL PROTECTED]
  Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
  To: Tomcat Users List tomcat-user@jakarta.apache.org
  Subject: Re: caching pattern
  Date: Mon, 28 Mar 2005 18:19:28 -0600
  
  On Mon, Mar 28, 2005 at 04:47:30PM +, Didier McGillis wrote:
  : Im looking for an idea of how to setup a caching pattern?
  
  That's awful vague ;)
  
  What sort of caching?  Content, data, other?
  
  Depending on what you're trying to do, and your desire/willingness to
  use third-party tools, you may not have to write it yourself from
  scratch.
  
  -QM
  
  --
  
  software   -- http://www.brandxdev.net/
  tech news  -- http://www.RoarNetworX.com/
  code scan  -- http://www.JxRef.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]
 
 
 -
 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: multiple domain name support for https

2005-03-29 Thread Sasisekar S Sundaram
Thanks Antony !
- Original Message - 
From: Antony Paul [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, March 30, 2005 12:57 AM
Subject: Re: multiple domain name support for https


 One way is to redirect all requests if the request.getServerName()
 dont return the hostname for which SSL certificate is issued. This can
 be done in entry pages to your site.


 On Wed, 30 Mar 2005 00:40:34 -0600, Sasisekar S Sundaram
 [EMAIL PROTECTED] wrote:
  Hi,
  Few browsers (like Mozilla) are giving a warning message ==  Security
Error: Doamin Name Mismatch  with https. I understand that the error is
because i have two domain names, like www.mycompany.com  and mycompany.com
for the same IP, and the certificate of tomcat contains only one of the 2
names.  I understand that i can not create another certificate, and i can
not even use Name-based virtual hosts. It is important for me to over ride
this Warning message in our production environment. I read somewhere that I
can override the HostnameVerifier interface and achieve the solution. Can
some one guide me about how to modify it and integrate with Tomcat. I
appreciate your time. Thank you
 
  Regards,
 
  Sasisekar S Sundaram
  Research Assistant
  Center For Business and Information Technology (CBIT)
  University of Louisiana, Lafayette
  Ph: (337) 482 0618
 


 -- 
 rgds
 Antony Paul
 http://www.geocities.com/antonypaul24/

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