Hiding error logging when using JK loadbalancer for transparent production builds

2006-04-24 Thread Allistair Crossley
Hi,

I've started to use JK's loadbalancer behaviour to hide production
builds from our users, so that if I am going to build new functionality,
I bring up a 2nd Tomcat which is a copy of the 1st, and then bring the
1st down for the build. However, when a build is complete, I do not run
2 Tomcats for resource consumption reasons, as they are both on the same
server right now.

This works very nicely, except that when just 1 Tomcat is running (which
is the case 95% of the time) JK is (rightly) logging the fact it cannot
find the other Tomcat declared in the JK workers file (the one used for
temporarily serving requests whilst the main Tomcat is built to).

However, this is going to generate quite a substantial amount of
logging. I can't see a way to classify the logging statement any better
than error because, technically, it is an error. I could change my JK
log level to fatal (does it have fatal?) but then I would not see all
errors I am interested in. A solution would also be to use a flag in the
worker definitions that let me indicate whether connectivity issues
should be ignored, but that's not going to happen unless the JK team
acknowledge the usefulness of using JK loadbalancer for the strategy I
use it for (i.e transparent production builds).

Does anyone have further thoughts on this, is this just a log file I am
going to have to live with and control? The issue of course on Windows
is that I cannot just GZIP this logfile and create another empty one
since the JK DLL has it locked, so I have to restart IIS to kill the log
file off which defeats the transparent build strategy.

Cheers, Allistair

[Mon Apr 24 09:25:25 2006] [info]  ajp_send_request::jk_ajp_common.c
(1186): Error connecting to the Tomcat process.
[Mon Apr 24 09:25:25 2006] [info]  ajp_service::jk_ajp_common.c (1665):
Sending request to tomcat failed,  recoverable operation attempt=2
[Mon Apr 24 09:25:25 2006] [error] ajp_service::jk_ajp_common.c (1673):
Error connecting to tomcat. Tomcat is probably not started or is
listening on the wrong port. worker=tomcat2 failed errno = 61
[Mon Apr 24 09:25:25 2006] [error] start_response::jk_isapi_plugin.c
(475): HSE_REQ_SEND_RESPONSE_HEADER failed
[Mon Apr 24 09:25:25 2006] [error] write::jk_isapi_plugin.c (565):
WriteClient failed with 2746
[Mon Apr 24 09:25:25 2006] [info]  ajp_process_callback::jk_ajp_common.c
(1322): Connection aborted or network problems
[Mon Apr 24 09:25:25 2006] [error] ajp_service::jk_ajp_common.c (1659):
Client connection aborted or network problems 



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: Tomcat Security....

2006-04-24 Thread Allistair Crossley
You need a firewall. Can be a router or a software firewall with your
PC. You tell your firewall to allow access to the port that Tomcat is
open on, e.g 8080 and lock down ports you don't want open such as your
database port. Tomcat connects to the database locally on your machine,
so the outside world don't need access to that port. Your DB files can
be wherever you want them to be, Tomcat/JDBC connects to a DB on port,
not file location.

-Original Message-
From: Michael McQuade [mailto:[EMAIL PROTECTED] 
Sent: 02 May 2004 14:55
To: Tomcat Users List
Subject: Tomcat Security

Dumb question number 2 of the Day folks  I'm a programmer, not real
swift on the security side of life  I have Tomcat  (5.0.28)running
on my server at home,  to develop an application.  I now want to
open up my Server to the Internet,  so potential clients can demo my
product from their office.  Now I'm not rich, so I can't afford a
separate Web Server
Can anyone tell me,  do I need to use separate products  to secure my
server from hackers, obviously I just want access to the App programs
and the database they are using  I really have no clue about this
area of expertise  Also, does my Database need to reside within the
Tomcat heirarchy on my Hard drive,  or can it simply be in
C:\mysql\database

Thank You for any help you can provide me

Mike


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





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



[OT] A question on webapp building with ant with respect to changing property values in context.xml for non-local deployments only

2006-04-20 Thread Allistair Crossley
Hi All,

Apologies for the OT, but I hoped I could source some expertise :) Our
development environment looks a bit like this:

VSS | Eclipse | LOCAL | STAGING | PRE-LIVE | LIVE1/LIVE2 |
==
| | DEV1  | |  | |
| | DEV2  | |  | |
| | DEV3  | |  | |
| | DEV4  | |  | |
| | DEV5  | |  | |
| | DEV6  | |  | |

Each developer has their own local Tomcat instance, and can develop
independently of others. All developers use Eclipse, which uses the VSS
plugin to talk to the VSS source repository. We configure the web
application using META-INF/context.xml. This context.xml contains
several named data sources that on a local machine point to the same
(test) database server and database name, i.e

Resource 
  name=jdbc/cms 
  jdbcUrl=jdbc:jtds:sqlserver://dbsvr0:1433/dbName 
  .. snip ..
/

Resource 
  name=jdbc/web 
  jdbcUrl=jdbc:jtds:sqlserver://dbsvr0:1433/dbName 
  .. snip ..
/

But which, when deployed out to the staging, pre-live and live servers
branch to different database servers, e.g dbsvr1 and dbsvr2
respectively.

When developing locally, developers keep their web app source up to date
with latest versions, including the context.xml, and when they compile
in Eclipse, via MyEclipse, this is deployed to their local Tomcat, i.e
Ant is not needed at this stage.

However, to do the database branching and other property replacements
when deploying to other servers, we necessarily use Ant.

I setup a build.xml that uses named properties files and string
replacements to search for substrings within the context.xml in order to
replace db server names, e.g

ant -Dserver=staging deploy

And a typical replace might look like this

replace 
  file=${webapp.build.path}/META-INF/context.xml 
  token=dbsvr0 
  value=${db.server.0} /

This has worked until today, where I (as illustrated by the Resource
declarations earlier) need to have 2 data sources which are identical in
the context.xml in all but JNDI name. 

So that when I now deploy to staging, both the dbsvr0 strings get
replaced with the value of db.server.0 in the properties file. What I
actually need is to replace one with db.server.0 and one with
db.server.1 but substring matching is not going to cut it.

This is kind of an open-ended email to find out if anyone has a
different strategy where they do not use ant to build locally from
central config files, but do modify them outbound to other servers, and
also branch in this way. I can't see a way around this if I continue
using the replace task :(

Cheers for your time, Allistair.


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: multiple tomcat on one server??

2006-04-19 Thread Allistair Crossley
Hi,

This question was asked (yesterday) by myself. Firstly, stop using JK2. 
Secondly, go read

http://www.adcworks.com/blog/index.php/2005/08/03/load-balancing-with-tomcat-55-and-jk-12/

Which explains how I have 2 Tomcats up on 1 server.

Cheers, Allistair.

-Original Message-
From: Thomas Hack [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2006 11:06
To: users@tomcat.apache.org
Subject: multiple tomcat on one server??

Hi,

I would like to run different versions of Tomcat on the same server.
Therefore I change ports for communication.

First I change the port 8009 in workers2.properties:
workers2.properties
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb

Then I change the Connector port from 8080 to something else.

But what about all the other ports in server.xml  and server-minimal.xml?
Which need to be changed in order to run and administer serveral Tomcat 
versions on the same machine?

Server port=8005 shutdown=SHUTDOWN debug=0

Connector port=8080
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   debug=0 connectionTimeout=2
   disableUploadTimeout=true /
   
   
Connector port=8443
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 debug=0 scheme=https secure=true
   clientAuth=false sslProtocol=TLS /

Connector port=8009
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 /

Connector port=8082
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false
   acceptCount=100 debug=0 connectionTimeout=2
   proxyPort=80 disableUploadTimeout=true /

Thanks
regards

Thomas H.

--
Feel free - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail


-- 
GMX Produkte empfehlen und ganz einfach Geld verdienen!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner

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





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: multiple tomcat on one server??

2006-04-19 Thread Allistair Crossley
Hi,

The link certainly works for me. Perhaps go into it from www.adcworks.com/blog 

A.

-Original Message-
From: Thomas Hack [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2006 11:15
To: Tomcat Users List
Subject: RE: multiple tomcat on one server??

Hi Allistair,

thanks for your very quick response.
The link you mailed does not work, please resend the correct link.

Also: I do not use TC load balancing, but completley separate TC, which must 
run independant of eacch other on the same Linux server.

Regards

Thomas H.
 --- Ursprüngliche Nachricht ---
 Von: Allistair Crossley [EMAIL PROTECTED]
 An: Tomcat Users List users@tomcat.apache.org
 Betreff: RE: multiple tomcat on one server??
 Datum: Wed, 19 Apr 2006 11:08:37 +0100
 
 Hi,
 
 This question was asked (yesterday) by myself. Firstly, stop using JK2.
 Secondly, go read
 

http://www.adcworks.com/blog/index.php/2005/08/03/load-balancing-with-tomcat-55-and-jk-12/
 
 Which explains how I have 2 Tomcats up on 1 server.
 
 Cheers, Allistair.
 
 -Original Message-
 From: Thomas Hack [mailto:[EMAIL PROTECTED]
 Sent: 19 April 2006 11:06
 To: users@tomcat.apache.org
 Subject: multiple tomcat on one server??
 
 Hi,
 
 I would like to run different versions of Tomcat on the same server.
 Therefore I change ports for communication.
 
 First I change the port 8009 in workers2.properties:
 workers2.properties
 [channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1
 
 # define the worker
 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009
 group=lb
 
 Then I change the Connector port from 8080 to something else.
 
 But what about all the other ports in server.xml  and server-minimal.xml?
 Which need to be changed in order to run and administer serveral 
 Tomcat versions on the same machine?
 
 Server port=8005 shutdown=SHUTDOWN debug=0
 
 Connector port=8080
maxThreads=150 minSpareThreads=25 maxSpareThreads=75
enableLookups=false redirectPort=8443 acceptCount=100
debug=0 connectionTimeout=2
disableUploadTimeout=true /


 Connector port=8443
maxThreads=150 minSpareThreads=25 maxSpareThreads=75
enableLookups=false disableUploadTimeout=true
acceptCount=100 debug=0 scheme=https secure=true
clientAuth=false sslProtocol=TLS /
 
 Connector port=8009
enableLookups=false redirectPort=8443 debug=0
protocol=AJP/1.3 /
 
 Connector port=8082
maxThreads=150 minSpareThreads=25 maxSpareThreads=75
enableLookups=false
acceptCount=100 debug=0 connectionTimeout=2
proxyPort=80 disableUploadTimeout=true /
 
 Thanks
 regards
 
 Thomas H.
 
 --
 Feel free - 10 GB Mailbox, 100 FreeSMS/Monat ...
 Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
 
 
 --
 GMX Produkte empfehlen und ganz einfach Geld verdienen!
 Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
 ---
 QAS Ltd.
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK
 Disclaimer:  The information contained within this e-mail is 
 confidential and may be privileged. This email is intended solely for 
 the named recipient only; if you are not authorised you must not 
 disclose, copy,
distribute,
 or retain this message or any part of it. If you have received this
message
 in error please contact the sender at once so that we may take the 
 appropriate action and avoid troubling you further.  Any views 
 expressed
in this
 message are those of the individual sender.  QAS Limited has the right 
 lawfully to record, monitor and inspect messages between its employees 
 and
any
 third party.  Your messages shall be subject to such lawful 
 supervision as QAS Limited deems to be necessary in order to protect 
 its information, its interests and its reputation.
 
 Whilst all efforts are made to safeguard Inbound and Outbound emails, 
 QAS Limited cannot guarantee that attachments are virus free or 
 compatible
with
 your systems and does not accept any liability in respect of viruses 
 or computer problems experienced.
 /FONT
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Echte DSL-Flatrate dauerhaft für 0,- Euro*!
Feel free mit GMX DSL! http://www.gmx.net/de/go/dsl

-
To unsubscribe, e-mail: [EMAIL PROTECTED

RE: CATALINA_BASE and multiple instances

2006-04-19 Thread Allistair Crossley
Don't know much about the BASE property, but all 6 of our devs have
local Tomcats on their machine, and CATALINA_HOME suffices. Ant is used
to push to a staging server. Perhaps your problem is solved by thinking
in a different way?

Allistair. 

-Original Message-
From: David Rush [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2006 15:25
To: Tomcat Users List
Subject: CATALINA_BASE and multiple instances

I'm trying to get Tomcat 5.5.16 set up for multiple independent
instances (for use by multiple developers w/out stepping on each others'

toes) in Windows XP (and eventually 2003 Server).

I've got the binaries installed in c:\Apache\Tomcat5, and this is where
the environment variable CATALINA_HOME points.

I've got one instance set up in c:\arcims-tomcat, and this is where
CATALINA_BASE points.

However, when I tried to install log4j, I had to put the .jar files and
log4j.properties files under CATALINA_HOME/common in order for it to
work.  Putting them under CATALINA_BASE/common did not work.  Obviously
this is a problem because then multiple instances, which all share
CATALINA_HOME would be intermixed in one log file.  It also points to
the bigger problem of all instances sharing CATALINA_HOME/common for
everything.

Is there a way to get each instance of tomcat to use its own
CATALINA_BASE/common directory?

There's also the problem of getting multiple service-based tomcat
instances to have their own idea of what CATALINA_BASE points to.

David

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





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: CATALINA_BASE and multiple instances

2006-04-19 Thread Allistair Crossley
It's not *that* unelegant really. You could still manage a centralised
Tomcat if you really wanted to in a source control system for example. 

A.

-Original Message-
From: David Rush [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2006 16:36
To: Tomcat Users List
Subject: Re: CATALINA_BASE and multiple instances


 Is there a way to get each instance of tomcat to use its own 
 CATALINA_BASE/common directory?
 

 Yes.  Clone the entire installation several times.  This has the 
 advantage that developers can upgrade 'their' instances as they
require.
   
Okay, that looks like it will work for me.  I was hoping for a more
elegant solution, but now what works beats elegant.

Thanks.

David

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





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



JK Sticky Session Handling with Load Balancing

2006-04-18 Thread Allistair Crossley
Hi,

I have setup 2 Tomcats on the same machine fronted by IIS, and used a
sticky_session=1 JK (1.2.15) load-balanced setup (as printed at the foot
of this email)

I setup a JSP on both Tomcats that outputs the session ID.

With only 1 Tomcat started, making requests to the JSP results in the
same session ID being output on each request.

When I start up the 2nd Tomcat and continue making requests to the JSP,
I am switched between both Tomcats rather than staying on the same
Tomcat and therefore acquire a new session ID.

However, with the 2 Tomcat's in the loop the session Ids become
different *per request* no matter which Tomcat is used.

I would have expected at most 2 unique session Ids (one per Tomcat)
since with 1 Tomcat running only, the 1 unique session ID is maintained.


I would appreciate any help or guidance as to why this may be happening.
Cookies are enabled, and jsessionid is not being used on URLs.

Cheers, Allistair.

== config ==

worker.list=loadbalancer

worker.tomcat1.port=8009
worker.tomcat1.host=localhost
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=1
worker.tomcat1.cachesize=10
worker.tomcat1.sticky_session=1

worker.tomcat2.port=8109
worker.tomcat2.host=localhost
worker.tomcat2.type=ajp13
worker.tomcat2.lbfactor=1
worker.tomcat2.cachesize=10
worker.tomcat1.sticky_session=2

worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=tomcat1,tomcat2


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: JK Sticky Session Handling with Load Balancing

2006-04-18 Thread Allistair Crossley
Hi Edgar,

Yep I just noticed that too :)) However, correcting this configuration
(to the below) does nothing to resolve the issue, because the lb worker
type by default has sticky_session=1. I set it explicitly anyway as
below.

However, I have noticed that in fact Tomcat 2 is not returning
JSESSIONID headers as Tomcat 1 does when both Tomcats are in.

To recap then, when only Tomcat 1 is in the loop, JSESSIONIDs are
returned and remains consistent across requests. When Tomcat 2 is
brought in, Tomcat 1 starts generating a different JSESSIONID per
request, whilst Tomcat 2 returns no JSESSIONID at all.

Thanks, Allistair

=== new config ===

worker.list=loadbalancer

worker.tomcat1.port=8009
worker.tomcat1.host=localhost
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=1
worker.tomcat1.cachesize=10

worker.tomcat2.port=8109
worker.tomcat2.host=localhost
worker.tomcat2.type=ajp13
worker.tomcat2.lbfactor=1
worker.tomcat2.cachesize=10

worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=tomcat1,tomcat2
worker.loadbalancer.sticky_session=1


-Original Message-
From: Edgar Alves [mailto:[EMAIL PROTECTED] 
Sent: 18 April 2006 12:32
To: Tomcat Users List
Subject: Re: JK Sticky Session Handling with Load Balancing

Hi there,
  You're setting the sticky_session property for each worker. That's not
how it works.
  That property is valid only for the loadbalancer and it takes a
boolean value. Set it to 'True' or '1' to get the desired effect.
  Read http://tomcat.apache.org/connectors-doc/config/workers.html for
more info.

  -- Edgar Alves

Allistair Crossley wrote:
 Hi,

 I have setup 2 Tomcats on the same machine fronted by IIS, and used a
 sticky_session=1 JK (1.2.15) load-balanced setup (as printed at the 
 foot of this email)

 I setup a JSP on both Tomcats that outputs the session ID.

 With only 1 Tomcat started, making requests to the JSP results in the 
 same session ID being output on each request.

 When I start up the 2nd Tomcat and continue making requests to the 
 JSP, I am switched between both Tomcats rather than staying on the 
 same Tomcat and therefore acquire a new session ID.

 However, with the 2 Tomcat's in the loop the session Ids become 
 different *per request* no matter which Tomcat is used.

 I would have expected at most 2 unique session Ids (one per Tomcat) 
 since with 1 Tomcat running only, the 1 unique session ID is
maintained.


 I would appreciate any help or guidance as to why this may be
happening.
 Cookies are enabled, and jsessionid is not being used on URLs.

 Cheers, Allistair.

 == config ==

 worker.list=loadbalancer

 worker.tomcat1.port=8009
 worker.tomcat1.host=localhost
 worker.tomcat1.type=ajp13
 worker.tomcat1.lbfactor=1
 worker.tomcat1.cachesize=10
 worker.tomcat1.sticky_session=1

 worker.tomcat2.port=8109
 worker.tomcat2.host=localhost
 worker.tomcat2.type=ajp13
 worker.tomcat2.lbfactor=1
 worker.tomcat2.cachesize=10
 worker.tomcat1.sticky_session=2

 worker.loadbalancer.type=lb
 worker.loadbalancer.balance_workers=tomcat1,tomcat2


 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
 ---
 QAS Ltd.
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK
 Disclaimer:  The information contained within this e-mail is
confidential and may be privileged. This email is intended solely for
the named recipient only; if you are not authorised you must not
disclose, copy, distribute, or retain this message or any part of it. If
you have received this message in error please contact the sender at
once so that we may take the appropriate action and avoid troubling you
further.  Any views expressed in this message are those of the
individual sender.  QAS Limited has the right lawfully to record,
monitor and inspect messages between its employees and any third party.
Your messages shall be subject to such lawful supervision as QAS Limited
deems to be necessary in order to protect its information, its interests
and its reputation.  

 Whilst all efforts are made to safeguard Inbound and Outbound emails,
QAS Limited cannot guarantee that attachments are virus free or
compatible with your systems and does not accept any liability in
respect of viruses or computer problems experienced.
 /FONT


 -
 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: JK Sticky Session Handling with Load Balancing

2006-04-18 Thread Allistair Crossley
Edgar, Reinhard and Rainer and Tim,

I forgot to set jvmRoute in my server.xml ;)

But seriously .. many many thanks for your time. I have set the domain
property for each worker, and matched them to jvmRoute on the Engine
element.

This has resolved the issue where Tomcat 1 generates new session ids per
request when Tomcat 2 is also running. For example, Tomcat 1 now
generates session Ids like this

3A65ADAA09137DB460CB3FD8D393BF20.jvm1

I've been able to get requests into Tomcat 1 that stick with Tomcat 1
perfectly alright which is an improvement.

_However_ :) requests that get to Tomcat 2 still do not have session ids
returned in the headers at all. I appreciate this is Tomcat that is not
generating the session id, but I replicated Tomcat 2 from Tomcat 1,
changing server.xml's ports to be unique and I don't see another reason
(relative to my knowledge of course) why Tomcat 2 would continue to be
blank for Tomcat 2. We are on an intranet, so we use cookies
exclusively.

Best regards, Allistair

== tomcat 1 server.xml Engine ==

Engine name=Catalina defaultHost=localhost jvmRoute=jvm1


== tomcat 2 server.xml Engine ==

Engine name=Catalina defaultHost=localhost jvmRoute=jvm2

== latest workers config ==

worker.list=loadbalancer

worker.tomcat1.domain=jvm1
worker.tomcat1.port=8009
worker.tomcat1.host=localhost
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=1
worker.tomcat1.cachesize=10

worker.tomcat2.domain=jvm2
worker.tomcat2.port=8109
worker.tomcat2.host=localhost
worker.tomcat2.type=ajp13
worker.tomcat2.lbfactor=1
worker.tomcat2.cachesize=10

worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=tomcat1,tomcat2
worker.loadbalancer.sticky_session=1

-Original Message-
From: Edgar Alves [mailto:[EMAIL PROTECTED] 
Sent: 18 April 2006 14:36
To: Tomcat Users List
Subject: Re: JK Sticky Session Handling with Load Balancing

Hi again,
  When using two workers like that you must set the domain property for
each of them for having mod_jk send the requests to the appropriate
Tomcat instance.
  Add the following two lines to your workers properties file:
worker.tomcat1.domain=tomcat1
worker.tomcat2.domain=tomcat2
  And for each Tomcat instance, set the jvmRoute attribute of the
Engine element in the respective server.xml configuration to the value
that you used in the respective worker domain property above for each
instance (tomcat1 and tomcat2 above).

  -- Edgar Alves

Allistair Crossley wrote:
 Hi Edgar,

 Yep I just noticed that too :)) However, correcting this configuration

 (to the below) does nothing to resolve the issue, because the lb 
 worker type by default has sticky_session=1. I set it explicitly 
 anyway as below.

 However, I have noticed that in fact Tomcat 2 is not returning 
 JSESSIONID headers as Tomcat 1 does when both Tomcats are in.

 To recap then, when only Tomcat 1 is in the loop, JSESSIONIDs are 
 returned and remains consistent across requests. When Tomcat 2 is 
 brought in, Tomcat 1 starts generating a different JSESSIONID per 
 request, whilst Tomcat 2 returns no JSESSIONID at all.

 Thanks, Allistair

 === new config ===

 worker.list=loadbalancer

 worker.tomcat1.port=8009
 worker.tomcat1.host=localhost
 worker.tomcat1.type=ajp13
 worker.tomcat1.lbfactor=1
 worker.tomcat1.cachesize=10

 worker.tomcat2.port=8109
 worker.tomcat2.host=localhost
 worker.tomcat2.type=ajp13
 worker.tomcat2.lbfactor=1
 worker.tomcat2.cachesize=10

 worker.loadbalancer.type=lb
 worker.loadbalancer.balance_workers=tomcat1,tomcat2
 worker.loadbalancer.sticky_session=1


 -Original Message-
 From: Edgar Alves [mailto:[EMAIL PROTECTED]
 Sent: 18 April 2006 12:32
 To: Tomcat Users List
 Subject: Re: JK Sticky Session Handling with Load Balancing

 Hi there,
   You're setting the sticky_session property for each worker. That's 
 not how it works.
   That property is valid only for the loadbalancer and it takes a 
 boolean value. Set it to 'True' or '1' to get the desired effect.
   Read http://tomcat.apache.org/connectors-doc/config/workers.html for

 more info.

   -- Edgar Alves

 Allistair Crossley wrote:
   
 Hi,

 I have setup 2 Tomcats on the same machine fronted by IIS, and used a
 sticky_session=1 JK (1.2.15) load-balanced setup (as printed at the 
 foot of this email)

 I setup a JSP on both Tomcats that outputs the session ID.

 With only 1 Tomcat started, making requests to the JSP results in the

 same session ID being output on each request.

 When I start up the 2nd Tomcat and continue making requests to the 
 JSP, I am switched between both Tomcats rather than staying on the 
 same Tomcat and therefore acquire a new session ID.

 However, with the 2 Tomcat's in the loop the session Ids become 
 different *per request* no matter which Tomcat is used.

 I would have expected at most 2 unique session Ids (one per Tomcat) 
 since with 1 Tomcat running only, the 1 unique session ID is
 
 maintained.
   
 I would appreciate any help or guidance as to why

RE: JK Sticky Session Handling with Load Balancing

2006-04-18 Thread Allistair Crossley
Hi,

Thanks for the suggestions, that has led to a solution I think. 

I used the EAL valve to log inbound and outbound cookies as you
suggested. 

Valve className=org.apache.catalina.valves.ExtendedAccessLogValve
  directory=logs  prefix=localhost_xaccess_log. suffix=.txt
  pattern=cs(Cookie) sc(Set-Cookie) sc-status  /

Started both Tomcats, and put a whole bunch of requests in, including
new browsers to generate new sessions. The result was that I spotted I
made a mistake with my naming of jvmRoute which I did not realise had to
reflect the name of the worker. I had called them jvm1 and jvm2 when
they needed to be tomcat1 and tomcat2. 

This seems to have solved the actual issue, with sessions now being
maintained on the relevant server ... 

tomcat1

Language=en; Country=US
JSESSIONID=45B40272D7FADB4F574B9B70B9699E51.tomcat1; Path=/ 200
Language=en; Country=US;
JSESSIONID=45B40272D7FADB4F574B9B70B9699E51.tomcat1 - 200

tomcat2

Language=en; Country=US
JSESSIONID=1299F640245D5064BFE8118092405723.tomcat2; Path=/ 200
Language=en; Country=US;
JSESSIONID=1299F640245D5064BFE8118092405723.tomcat2 - 200

_However_ ;) The one thing I don't get is that the session id is still
blank on the JSP when served by Tomcat 2, whereas on Tomcat 1 I get
something like

ABDEFAA6D956F1DAACBB8B0A7D0238D4.tomcat1

From JK logging I can see that the cookie does get set for Tomcat 2

[Tue Apr 18 17:07:15 2006] [1184:2312] [debug] jk_ajp_common.c (628):
Number of headers is = 3
[Tue Apr 18 17:07:15 2006] [1184:2312] [debug] jk_ajp_common.c (684):
Header[0] [Set-Cookie] =
[JSESSIONID=4CBDB4270B8239DD4A71D32529BF0A13.tomcat2; Path=/]
[Tue Apr 18 17:07:15 2006] [1184:2312] [debug] jk_ajp_common.c (684):
Header[1] [Content-Type] = [text/html;charset=UTF-8]
[Tue Apr 18 17:07:15 2006] [1184:2312] [debug] jk_ajp_common.c (684):
Header[2] [Content-Language] = [en-GB]
[Tue Apr 18 17:07:15 2006] [1184:2312] [debug] jk_ajp_common.c (1037):
received from ajp13 pos=0 len=1266 max=8192

And a follow-up request matches the same session ID

[Tue Apr 18 17:08:43 2006] [1184:2312] [debug] jk_lb_worker.c (514):
total sessionid is 4CBDB4270B8239DD4A71D32529BF0A13.tomcat2
[Tue Apr 18 17:08:43 2006] [1184:2312] [debug] jk_lb_worker.c (524):
searching worker for partial sessionid
4CBDB4270B8239DD4A71D32529BF0A13.tomcat2
[Tue Apr 18 17:08:43 2006] [1184:2312] [debug] jk_lb_worker.c (532):
searching worker for session route tomcat2
[Tue Apr 18 17:08:43 2006] [1184:2312] [debug] jk_lb_worker.c (541):
found worker tomcat2 for route tomcat2 and partial sessionid
4CBDB4270B8239DD4A71D32529BF0A13.tomcat2

So I am not sure why my JSP is unable to get a handle on the session ID
for tomcat2 sessions only.

Best regards, Allistair.

-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED] 
Sent: 18 April 2006 16:08
To: Tomcat Users List
Subject: Re: JK Sticky Session Handling with Load Balancing

domain: you don't need the domain attribute. Domai has the following
purpose: Once you start replicating sessions between tomcats and you
build up a huge group of tomcat instances and break it up into smaller
groups which replicate, then you can use domain to tell lb, between
which tomcat instances you replicate the sessions.

workers with the same domain are assumed to replicate all sessions
between each other. So when lb detects a worker as being in error state,
it tries to send the request to another worker having the same domain
name as the erroneous one.

Cookies: How do you detect, if the cookie is set? You could log the
ingoing Cookie header to detect cookies sent by the browser and the
outgoing Set-Cookie header to watch which Cookies your server tries to
sent. For Apache you can include

\%{Cookie}i\ \%{Set-Cookie}o\

in your LogFormat, for tomcat standalone use

http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/cat
alina/valves/ExtendedAccessLogValve.html

Any JSP called which does not use the page directive setting the session
atribute to false will use a session. On its first access tomcat should
send the cookie except you disable the cookie usage in your tomcat
configuration.


Allistair Crossley wrote:
 Edgar, Reinhard and Rainer and Tim,
 
 I forgot to set jvmRoute in my server.xml ;)
 
 But seriously .. many many thanks for your time. I have set the domain

 property for each worker, and matched them to jvmRoute on the Engine 
 element.
 
 This has resolved the issue where Tomcat 1 generates new session ids 
 per request when Tomcat 2 is also running. For example, Tomcat 1 now 
 generates session Ids like this
 
 3A65ADAA09137DB460CB3FD8D393BF20.jvm1
 
 I've been able to get requests into Tomcat 1 that stick with Tomcat 1 
 perfectly alright which is an improvement.
 
 _However_ :) requests that get to Tomcat 2 still do not have session 
 ids returned in the headers at all. I appreciate this is Tomcat that 
 is not generating the session id, but I replicated Tomcat 2 from 
 Tomcat 1, changing server.xml's ports

RE: JK Sticky Session Handling with Load Balancing

2006-04-18 Thread Allistair Crossley
Lol, ok ok, it works. My stupid fault. The reason my JSP does not output
the session ID is because the JSP on tomcat2 does not feature the output
statement - I added that to tomcat1's copy only

The shame.

Thanks to all for the help. 

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: 18 April 2006 17:10
To: Tomcat Users List
Subject: RE: JK Sticky Session Handling with Load Balancing

Hi,

Thanks for the suggestions, that has led to a solution I think. 

I used the EAL valve to log inbound and outbound cookies as you
suggested. 

Valve className=org.apache.catalina.valves.ExtendedAccessLogValve
  directory=logs  prefix=localhost_xaccess_log. suffix=.txt
  pattern=cs(Cookie) sc(Set-Cookie) sc-status  /

Started both Tomcats, and put a whole bunch of requests in, including
new browsers to generate new sessions. The result was that I spotted I
made a mistake with my naming of jvmRoute which I did not realise had to
reflect the name of the worker. I had called them jvm1 and jvm2 when
they needed to be tomcat1 and tomcat2. 

This seems to have solved the actual issue, with sessions now being
maintained on the relevant server ... 

tomcat1

Language=en; Country=US
JSESSIONID=45B40272D7FADB4F574B9B70B9699E51.tomcat1; Path=/ 200
Language=en; Country=US;
JSESSIONID=45B40272D7FADB4F574B9B70B9699E51.tomcat1 - 200

tomcat2

Language=en; Country=US
JSESSIONID=1299F640245D5064BFE8118092405723.tomcat2; Path=/ 200
Language=en; Country=US;
JSESSIONID=1299F640245D5064BFE8118092405723.tomcat2 - 200

_However_ ;) The one thing I don't get is that the session id is still
blank on the JSP when served by Tomcat 2, whereas on Tomcat 1 I get
something like

ABDEFAA6D956F1DAACBB8B0A7D0238D4.tomcat1

From JK logging I can see that the cookie does get set for Tomcat 2

[Tue Apr 18 17:07:15 2006] [1184:2312] [debug] jk_ajp_common.c (628):
Number of headers is = 3
[Tue Apr 18 17:07:15 2006] [1184:2312] [debug] jk_ajp_common.c (684):
Header[0] [Set-Cookie] =
[JSESSIONID=4CBDB4270B8239DD4A71D32529BF0A13.tomcat2; Path=/] [Tue Apr
18 17:07:15 2006] [1184:2312] [debug] jk_ajp_common.c (684):
Header[1] [Content-Type] = [text/html;charset=UTF-8] [Tue Apr 18
17:07:15 2006] [1184:2312] [debug] jk_ajp_common.c (684):
Header[2] [Content-Language] = [en-GB]
[Tue Apr 18 17:07:15 2006] [1184:2312] [debug] jk_ajp_common.c (1037):
received from ajp13 pos=0 len=1266 max=8192

And a follow-up request matches the same session ID

[Tue Apr 18 17:08:43 2006] [1184:2312] [debug] jk_lb_worker.c (514):
total sessionid is 4CBDB4270B8239DD4A71D32529BF0A13.tomcat2
[Tue Apr 18 17:08:43 2006] [1184:2312] [debug] jk_lb_worker.c (524):
searching worker for partial sessionid
4CBDB4270B8239DD4A71D32529BF0A13.tomcat2
[Tue Apr 18 17:08:43 2006] [1184:2312] [debug] jk_lb_worker.c (532):
searching worker for session route tomcat2 [Tue Apr 18 17:08:43 2006]
[1184:2312] [debug] jk_lb_worker.c (541):
found worker tomcat2 for route tomcat2 and partial sessionid
4CBDB4270B8239DD4A71D32529BF0A13.tomcat2

So I am not sure why my JSP is unable to get a handle on the session ID
for tomcat2 sessions only.

Best regards, Allistair.

-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED]
Sent: 18 April 2006 16:08
To: Tomcat Users List
Subject: Re: JK Sticky Session Handling with Load Balancing

domain: you don't need the domain attribute. Domai has the following
purpose: Once you start replicating sessions between tomcats and you
build up a huge group of tomcat instances and break it up into smaller
groups which replicate, then you can use domain to tell lb, between
which tomcat instances you replicate the sessions.

workers with the same domain are assumed to replicate all sessions
between each other. So when lb detects a worker as being in error state,
it tries to send the request to another worker having the same domain
name as the erroneous one.

Cookies: How do you detect, if the cookie is set? You could log the
ingoing Cookie header to detect cookies sent by the browser and the
outgoing Set-Cookie header to watch which Cookies your server tries to
sent. For Apache you can include

\%{Cookie}i\ \%{Set-Cookie}o\

in your LogFormat, for tomcat standalone use

http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/cat
alina/valves/ExtendedAccessLogValve.html

Any JSP called which does not use the page directive setting the session
atribute to false will use a session. On its first access tomcat should
send the cookie except you disable the cookie usage in your tomcat
configuration.


Allistair Crossley wrote:
 Edgar, Reinhard and Rainer and Tim,
 
 I forgot to set jvmRoute in my server.xml ;)
 
 But seriously .. many many thanks for your time. I have set the domain

 property for each worker, and matched them to jvmRoute on the Engine 
 element.
 
 This has resolved the issue where Tomcat 1 generates new session ids 
 per request when Tomcat 2 is also running. For example, Tomcat 1 now 
 generates session Ids like

RE: R: Form Authentication against JNDI Datasource Realm

2006-04-12 Thread Allistair Crossley
I suspect from the error msg that your server.xml is non well-formed somewhere, 
has a syntax error or bad class name. Try checking through it, or comparing it 
to a fresh server.xml from a Tomcat distro. Frustrating, but that's all it will 
be I think. Not sure if the carriage return is allowed or not in the value here 
..

parameter
namefactory/name
value

org.apache.catalina.users.MemoryUserDatabaseFactory
/value

-Original Message-
From: Brambilla Alessandro [mailto:[EMAIL PROTECTED] 
Sent: 12 April 2006 16:34
To: 'Tomcat Users List'
Subject: R: R: Form Authentication against JNDI Datasource Realm

so now these are my config files:

server.xml:
?xml version=1.0 encoding=UTF-8?
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
parent-child relationships with each other --
!-- A Server is a singleton element that represents the entire JVM,
which may contain one or more Service instances.  The Server
listens for a shutdown command on the indicated port.

Note:  A Server is not itself a Container, so you may not
define subcomponents such as Valves or Loggers at this level.
--
Server port=8005 shutdown=SHUTDOWN debug=0

Listener

className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0 /
Listener

className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0 /

!-- Global JNDI resources --
GlobalNamingResources
!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
type=org.apache.catalina.UserDatabase
description=User database that can be updated and 
saved
/Resource
ResourceParams name=UserDatabase
parameter
namefactory/name
value

org.apache.catalina.users.MemoryUserDatabaseFactory
/value
/parameter
parameter
namepathname/name
valueconf/tomcat-users.xml/value
/parameter
/ResourceParams


/GlobalNamingResources

!-- A Service is a collection of one or more Connectors that share
a single Container (and therefore the web applications visible
within that Container).  Normally, that Container is an 
Engine,
but this is not required.

Note:  A Service is not itself a Container, so you may not
define subcomponents such as Valves or Loggers at this 
level.
--

!-- Define the Tomcat Stand-Alone Service --
Service name=Catalina

!-- A Connector represents an endpoint by which requests are 
received
and responses are returned.  Each Connector passes 
requests on to the
associated Container (normally an Engine) for 
processing.


--

!-- Define a non-SSL Coyote HTTP/1.1 Connector on the port 
specified
during installation  --
Connector port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75 enableLookups=false
redirectPort=8443
acceptCount=100 debug=0
connectionTimeout=2
disableUploadTimeout=true compression=on
compressionMinSize=2048
compressableMimeType=text/html,text/xml /

!-- Note : To use gzip compression you could set the following 
properties :

compression=on 
compressionMinSize=2048 
noCompressionUserAgents=gozilla, traviata 
compressableMimeType=text/html,text/xml
--
!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --

Connector port=8443 maxThreads=150 minSpareThreads=25
maxSpareThreads=75 enableLookups=false
disableUploadTimeout=true acceptCount=100
debug=0
scheme=https secure=true clientAuth=false
sslProtocol=TLS
compression=on /


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

!-- An Engine represents the entry point (within Catalina) 
that processes
every request.  The Engine 

RE: Character behaviour Unix vs W indows ß

2006-04-05 Thread Allistair Crossley
Technically ss is what that symbol (doppel S) stands for, so it might be 
intended behaviour in your DB or DB driver rather than a bad encoding. You 
should check your DB/driver manual perhaps.

Allistair.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 05 April 2006 10:59
To: Tomcat Users List
Subject: Character behaviour Unix vs Windows ß 


Hi 
Any having idea about why  my latin  characterß  getting converted to 
'SS'  all the time however my other character are going smoothly indatabase 
except above i am trying to insert into data base , I am usign oracle 9i and 
ISO-8859-1 encoding and this is happening in the unix environment and  not in 
my pc environment .
Did anyone face any problem with this character  basically there is similar 
character in greek to 'β'  , 

Any pointer please 


Thanks 
 

Birendar Singh Waldiya


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



GET FORM Encoding Test JSP

2006-04-04 Thread Allistair Crossley
Hi,

The following JSP presents a well-known problem found all over the web 
regarding GET form submissions not encoding form parameters properly. The issue 
does not exist with POST. 

I have read just about every article on the web about this issue, and the below 
JSP incorporates all of the solutions. 

However, it still does not work and I wonder having seen a few suggestions that 
this could be the fault of Tomcat, whether there is any truth in this, since an 
equivalent ASP test does not exhibit the issue.

I have used the below JSP test with both a SetCharacterEncodingFilter in front, 
and without (this is also catered for by the request.setCharacterEncoding 
call). 

Everything reads UTF-8 except when you submit the word Amélie into the form, 
the output is broken. Interestingly, the QENC string which converts the 
request.getParameter to UTF-8 fixes the string. This is impracticle I would 
have thought and should be converted by Tomcat given the request encoding which 
is correctly set.

My question - is this a Tomcat bug, a Tomcat caveat, or my own silly fault?

Thanks, Allistair

== snip ==

%@ page language=java import=java.util.* pageEncoding=UTF-8%
%@ page language=java contentType=text/html;charset=UTF-8 %
% request.setCharacterEncoding(UTF-8); %
html
  head
titleForm Encoding Test with - Amélie/title
META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=UTF-8
  /head
  body
pSubmit the form with bAmélie/b/p
prequest.getCharacterEncoding() : %= request.getCharacterEncoding() 
%/p
presponse.getCharacterEncoding() : %= response.getCharacterEncoding() 
%/p
p
%
String q = request.getParameter(q);
String qenc = ;
if (q != null) {
qenc = new String(request.getParameter(q).getBytes(), 
UTF-8);
} else {
q = ;
}
%
form method=get action=/jsp/enctest/index.jsp 
accept-charset=UTF-8
input name=q type=text value=%= q % /
input type=submit value=Go /
/form
pnew String(request.getParameter(q).getBytes(), UTF-8) : %= qenc 
%/p
  /body
/html


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!

2006-03-31 Thread Allistair Crossley
Please don't think it's the whole Tomcat community Dean, there are some really 
helpful devs on Tomat, it's just Remy in particular has a problem being 
polite/arrogant about Tomcat - I guess from his privileged point of view he 
understands everything about Tomcat and therefore does not understand what 
usability is all about.

All the best, AC.

-Original Message-
From: Dean Hiller [mailto:[EMAIL PROTECTED] 
Sent: 31 March 2006 11:39
To: Tomcat Users List
Subject: Re: tomcat 5.0 vs. 5.5? tomcat 5.5 has been bad!

wow! you guys sound pretty harsh when it comes to messages to help users on 
simple mistakes then.  I recently dropped in someone else's example app war 
file that had the SAME PROBLEM.latest facelets.  I could not even give back 
information to help them debug the problem.  It was standard tomcat 5.5.16.  It 
worked on 5.0 just fine.  I now know that I need to unzip their war file, 
remove log4j(and maybe even hope that they are using commons, because if they 
are not, I may be utterly screwed).  Then I need to redeploy their app.  I need 
to do all this because tomcat is unwilling to give good helpful messages as to 
what is going on(as seen by all the other posts that have had trouble figuring 
out their problems behind that error with no reponses either.I was the 
lucky one and finally figured out what was wrong).  I can only hope others can 
find my solution post without wasting too much time.
later,
dean



Remy Maucherat wrote:

On 3/30/06, Markus Schönhaber [EMAIL PROTECTED] wrote:
  

The RuntimeException is to make it more noticeable in the logs.   I mean
953 hits on googling is quite alot of people having trouble.  Would 
be nice to cut that number down with an easy log statement that 
tomcat could add!!!
  

Well, if it's really that easy you should definitely provide a patch.



I recommend not wasting time, as I would refuse such a nonsensical 
patch. The actual worakround is to learn how to properly use logging, 
which seems to be a useful skill.

--
x
Rémy Maucherat
Developer  Consultant
JBoss Inc
x

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





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: JNDI in embedded tomcat

2006-03-31 Thread Allistair Crossley
Hi,

Check out the META-INF/context.xml method for configuring data sources
for your web app.

http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

Allistair 

-Original Message-
From: slashny [mailto:[EMAIL PROTECTED] 
Sent: 31 March 2006 16:26
To: users@tomcat.apache.org
Subject: RE: JNDI in embedded tomcat


My question is similar but slightly different.  I am running my own
custom Spring-like container with an embedded version of Tomcat 5.5.  I
have my own JNDI Context object configured in my application that I bind
objects to. 
However all those objects in that Context are not available to my web
applications because Tomcat is using it's own Context:

Context ctx = new InitialContext();
DataSource myDS = (DataSource) ctx.lookup( java:/myDataSource );

javax.naming.NameNotFoundException: Name myDataSource is not bound in
this Context
at
org.apache.naming.NamingContext.lookup(NamingContext.java:769)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at
org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
at javax.naming.InitialContext.lookup(InitialContext.java:347)

I am starting up my application as per this article:
http://www.vsj.co.uk/articles/display.asp?id=319.  All the documentation
I've seen has been using the server.xml which is not available to me as
I'm using the Embedded tomcat.  If I can use server.xml with
Embedded.java, please let me know.

Thanks
--
View this message in context:
http://www.nabble.com/JNDI-in-embedded-tomcat-t1306622.html#a3691348
Sent from the Tomcat - User forum at Nabble.com.


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





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: IIS Integrated Authentification and Tomcat

2006-03-27 Thread Allistair Crossley
Yes it's easy, you just need to add

tomcatAuthentication=false 

Onto your AJP Connector element in server.xml

Then, calls to request.getRemoteUser() will contain the username.

Alternatively, you can also add jCIFs to your web application but that requires 
web.xml configuration to specify your domain controllers

Cheers, Allistair.

-Original Message-
From: Benjamin Lerman [mailto:[EMAIL PROTECTED] 
Sent: 27 March 2006 08:18
To: tomcat-user@jakarta.apache.org
Subject: IIS Integrated Authentification and Tomcat

 Hi,

 I plan to use IIS as a front-end for a J2EE application running on Tomcat.

 I plan to use IIS integrated authentification to do NTLM authentification of 
users.

 I need to get the login of the authentificated user from my application.

 Is there any place where IIS puts this value ? Either a Header or something 
like that ?

 Thanks.

Benjamin


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





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: ERROR 500

2006-03-27 Thread Allistair Crossley
So it's tomcat you're running?

You need to examine the log files, that's what they are there for ..
They should give you a good idea of what may be happening. Look in
TOMCAT's log folder

;) Allistair

-Original Message-
From: VIKASS NAGPAL [mailto:[EMAIL PROTECTED] 
Sent: 25 March 2006 22:08
To: users@tomcat.apache.org
Subject: ERROR 500

Hi

I have a problem. I have exported WAR file from Rational application
developer into TOMCAT.I deployed this application in TOMCAT. This
application is not running in TOMCAT. Its giving the following error:

HTTP Error 500 

The page cannot be displayed. 
You are not connected to any particular server or the server is down.  

So I donot know what should i do in the TOMCAT in order to run this
application and take care of the ERROR I am receiving. I would be really
thankful for the help in this matter.

Thanks,
Vikas Nagpal.



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





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: Error 500

2006-03-27 Thread Allistair Crossley
Hi,

I suspect there are JNDI resources involved here (such as for databases)
that need to be configured per each container's own methods. Whilst in
general WARs can be deployed across containers, the same cannot be said
for configuration dependencies.

I'm afraid you will need to understand what the WAR requires in terms of
external links in order to be able to have it work in Tomcat, or any
other non-Websphere container.

Allistair

-Original Message-
From: VIKASS NAGPAL [mailto:[EMAIL PROTECTED] 
Sent: 25 March 2006 22:17
To: users@tomcat.apache.org
Subject: Error 500

Hi

I have deployed a war file from Websphere into the TOMCAT. As soon as i
enter the username and password into my Login Page  and click on Signon
in i get the following error.

Error ID : HTTP Error 500
Error Message : The page cannot be displayed. 
You are not connected to any particular server or the server is down. 
 
I have this thing running fine on websphere but I have no idea how to
make this run on TOMCAT.

Thanks,
With regards,
Vikas Nagpal.

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





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: Disabling put and delete http methods

2006-03-27 Thread Allistair Crossley
try changing 

auth-constraint
  role-name*/role-name
/auth-constraint

To 

auth-constraint /

?

-Original Message-
From: Stephen More [mailto:[EMAIL PROTECTED] 
Sent: 25 March 2006 18:25
To: users@tomcat.apache.org
Subject: Disabling put and delete http methods

I am having problems trying to disable put and delete.
I have searched the Internet and they all say the same thing.

Add the following:

security-constraint
web-resource-collection
web-resource-nameDisallowed Location/web-resource-name
url-pattern*/url-pattern
http-methodDELETE/http-method
http-methodPUT/http-method
/web-resource-collection
auth-constraint
role-name*/role-name
/auth-constraint
 /security-constraint

So I added that to jakarta-tomcat-5.0.28/conf/web.xml and restart.
While this stops all deletes and puts it is also stopping all gets and
posts too !

What am I doing wrong ?  I placed it near the end of the file after the
mime-mappings.

-Thanks
Steve More

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





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: Here is site, not getting spidered.

2006-03-27 Thread Allistair Crossley
Hi,

1. The problem with your products not being spidered is because you use
javascript to open them. Your links need to be within a .. tags within
the page, not JavaScript.

2. You might want to look into Apache URL rewriting for your product
browsing. Currently only the Query String differentiates your pages.
This is a no no for good SEO

http://www.theuniquepear.com/unique/viewThumbProducts.do?type=categorys
earchString=Wall%20DecorcategoryID=2pageNumber=1

Using URL rewriting you could alter this to 

http://www.theuniquepear.com/unique/category/Wall%20Decor/2/1

3. In terms of your other pages they all look the same to Google because
you do not use the meta name=description tag. Google uses this. Your
titles could do with being more varied too.

4. The site is very slow when I request the main domain, Google is also
probably giving up .. I notice using a Google site: search that Google
has indexed your home page and the error page! This is indicative.

5. Ensure your site is XHTML validated using validator.w3c.org

Fix all that and you might find better indexing.

Allistair.

-Original Message-
From: Scott Purcell [mailto:[EMAIL PROTECTED] 
Sent: 27 March 2006 17:14
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Here is site, not getting spidered.

Site has been up over 6 months. Pretty much never down.

Thanks,

-Original Message-
From: Daniel Blumenthal [mailto:[EMAIL PROTECTED]
Sent: Monday, March 27, 2006 10:11 AM
To: 'Tomcat Users List'
Subject: RE: Here is site, not getting spidered.

One interesting thing is that the line:
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
is repeated inside the head block.

Probably not a big deal.

How long has the site been up?


 -Original Message-
 From: Scott Purcell [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 27, 2006 11:00 AM
 To: Tomcat Users List
 Subject: Here is site, not getting spidered.
 
 Here is the site:
 
 http://www.theuniquepear.com
 
 Thanks,
 I apologize. I would really like this to work, and will do whatever it

 takes.
 
 Sincerely
 
 -Original Message-
 From: Peter Crowther [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 27, 2006 9:51 AM
 To: Tomcat Users List
 Subject: RE: Site Not Getting Spidered or Indexed
 
  From: Scott Purcell [mailto:[EMAIL PROTECTED] Actually Peter,
  
  I have no javascript links on my page. The site is a struts
 site, and
  all links are regular links with no odd, or peculiar issues.
 
 OK.
 
 I'd be able to make better guesses if I could see the site - apologies

 if I've missed a URL that you've already handed out.
 
   - Peter
 
 -
 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]





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



Tomcat 5.5 DataSourceRealm

2006-03-24 Thread Allistair Crossley
Hi All,

I've failed miserably in configuring a DataSourceRealm for a web
application. I've scoured Google (50/50), mailing list archives (ask a
friend), and not to much avail. I've also liased with the Tomcat 5.5
documentation as far as I can tell.

So I turn to ask the audience ;)

I am using the Realm method described in the docu as Inside a Context
element - This Realm will be used ONLY for THIS web application.

Before this I tried out my security web.xml declarations with the simple
tomcat-users UserDatabase and this worked fine. Now I want to get it
working with database tables.

I configure my web app Context a la META-INF/context.xml

My DataSources are working fine and have been for a good while. The main
one, inside the context.xml is

Resource 
name=jdbc/web 
auth=Container 
driverClass=net.sourceforge.jtds.jdbc.Driver 
minPoolSize=5 maxPoolSize=10 
acquireIncrement=1 
user=user password=pass 
factory=org.apache.naming.factory.BeanFactory 
type=com.mchange.v2.c3p0.ComboPooledDataSource 

jdbcUrl=jdbc:jtds:sqlserver://intratest:1433/dbWeb;charset=Cp1252 
/ 

And I have my web.xml

resource-ref
descriptionWeb Database/description
res-ref-namejdbc/web/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref

So, I've created my Realm tables and so on in my database (the same one
pointed to by the above Resource).

I declare in the context.xml file

Realm 
  className=org.apache.catalina.realm.DataSourceRealm 
  dataSourceName=jdbc/web
userTable=tblUsers 
userRoleTable=tblUserRoles 
userNameCol=user_name
userCredCol=user_pass
roleNameCol=role_name 
/  

I fire up Tomcat and it does not seem to have too much trouble until I
try and login.

2006-03-24 11:43:07,578 - ERROR
(org.apache.catalina.realm.DataSourceRealm:405) - Exception performing
authentication
javax.naming.NameNotFoundException: Name jdbc is not bound in this
Context
at
org.apache.naming.NamingContext.lookup(NamingContext.java:769)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at
org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:401)

I recognise the Name jdbc is not bound in this Context from the days
of migrating from Tomcat 5.0 to 5.5 due to the new format for defining
Resource elements. However, that's an old story that I figured out eons
ago, my DataSource Resources are proven and work. I therefore do not
believe this to be a DataSource config or driver problem.

It seems to me like the datasources are simply _not ready_ by the time
the Realm element is processed? Could this be the case? Or am I simply
not seeing something obvious (quite possible :))

Your help appreciated,

Allistair



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



Accessing Roles from the Principle

2006-03-24 Thread Allistair Crossley
Hi All,
 
Whilst I await *hopefully* a reply to my last post on why the data
source realm does not operate correctly, I am using the standard user
database that ships with TC to move on, but damn, I'm bloody stuck
again!
 
I would like to obtain a reference to the various role names that the
principle has attached, as I would then use these to go off and tie up
further application-related permissions.
 
I cannot find a standard way to do this, although I did try this very
naughty bit of code but it means I have to store catalina.jar -
obviously a *bad* thing to do, in my lib! 

MemoryUser principle = (MemoryUser) httpRequest.getUserPrincipal();
SetRole roles = (SetRole) principle.getRoles();
for (Role role : roles) {
logger.debug(Role is  + role.getName());
}

BUT it does have what I need. Does Tomcat offer a nice way to get at its
internally cached UserDatabase using standard interfaces?

Kindest,

Allistair.


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: AJP connector required?

2006-03-24 Thread Allistair Crossley
no 

-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED] 
Sent: 24 March 2006 15:43
To: Tomcat Users List
Subject: AJP connector required?

If I'm not using the apache HTTPD in front of tomcat, do I need the ajp
connector activated in the server.xml?

Dave



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





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: [Tomcat-Struts]Action Servlet Is not available

2006-03-23 Thread Allistair Crossley
The ActionServlet in my experience with Struts indicates that your
webapp could not be started by Tomcat. As the previous poster says, you
ought to examine the logs as there is bound to be a stack trace for the
root cause.

Cheers, Allistair 

-Original Message-
From: Vijaya S [mailto:[EMAIL PROTECTED] 
Sent: 23 March 2006 08:35
To: Tomcat Users List
Subject: [Tomcat-Struts]Action Servlet Is not available

Hi,

I have an environment where the development version is 5.0.28 and the
production version of tomcat is 5.5.4.

Recently I deployed a web application to the production server.
Deployment went through fine but I get a 'Servlet Not Available error'
while executing the application. What can be the problem? Is my
struts.jar is not compatible with tomcat 5.5.4?

I appreciate any kind of help as I am frustrated with this nagging
problem for the past two days.

Thanks,
Vijaya




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





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: Hellp me Don't know whats the problem

2006-03-23 Thread Allistair Crossley
Looks like you about probaably using the useBean tag incorrectly. Can
you post how you use stationname?

Allistair 

-Original Message-
From: Kasim [mailto:[EMAIL PROTECTED] 
Sent: 23 March 2006 11:25
To: Tomcat Users List
Subject: Hellp me Don't know whats the problem


I am facing following problem while executing my project.
Please suggest me the solution.I am using Tomcat 5.0 and Mysql in
backend Here stationname is a bean

type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 4 in the jsp file: /view_main.jsp Generated
servlet error:
stationname cannot be resolved to a type

An error occurred at line: 4 in the jsp file: /view_main.jsp Generated
servlet error:
stationname cannot be resolved to a type

An error occurred at line: 4 in the jsp file: /view_main.jsp Generated
servlet error:
stationname cannot be resolved to a type

An error occurred at line: 142 in the jsp file: /view_main.jsp Generated
servlet error:
Vector cannot be resolved to a type

An error occurred at line: 142 in the jsp file: /view_main.jsp Generated
servlet error:
Vector cannot be resolved to a type

An error occurred at line: 142 in the jsp file: /view_main.jsp Generated
servlet error:
Vector cannot be resolved to a type

An error occurred at line: 142 in the jsp file: /view_main.jsp Generated
servlet error:
Vector cannot be resolved to a type



org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServle
tWra
pper.java:510)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:3
75)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 4 in the jsp file: /view_main.jsp Generated
servlet error:
stationname cannot be resolved to a type

An error occurred at line: 4 in the jsp file: /view_main.jsp Generated
servlet error:
stationname cannot be resolved to a type

An error occurred at line: 4 in the jsp file: /view_main.jsp Generated
servlet error:
stationname cannot be resolved to a type

An error occurred at line: 142 in the jsp file: /view_main.jsp Generated
servlet error:
Vector cannot be resolved to a type

An error occurred at line: 142 in the jsp file: /view_main.jsp Generated
servlet error:
Vector cannot be resolved to a type

An error occurred at line: 142 in the jsp file: /view_main.jsp Generated
servlet error:
Vector cannot be resolved to a type

An error occurred at line: 142 in the jsp file: /view_main.jsp Generated
servlet error:
Vector cannot be resolved to a type



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHa
ndle
r.java:84)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.ja
va:3
28)

org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:40
9)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:5
63)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:3
03)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.15 logs.

Apache Tomcat/5.5.15



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





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such 

RE: Hellp me Don't know whats the problem

2006-03-23 Thread Allistair Crossley
Does your WEB-INF/classes folder have the class

stationname.class 

i.e in the default package?

And then is it imported with a page directive in the JSP?

-Original Message-
From: Kasim [mailto:[EMAIL PROTECTED] 
Sent: 23 March 2006 12:04
To: Tomcat Users List
Subject: RE: Hellp me Don't know whats the problem

This is the code generating the problem

html
head
titleSouthern Command/title
jsp:useBean id=station class=stationname scope=page/



script

function show(this_layer)
{
this_layer.style.visibility='visible';
}

function hide(this_layer)
{
this_layer.style.visibility='hidden';
}

function make_bold(x)
{
x.style.fontSize='11px';
}

function make_normal(x)
{
x.style.fontSize='10px';
}

function openwindow(stationcode)
{   window.close();
window.open('station_index.jsp?stationcode='+stationcode,
'Station',
'resizable=yes,scrollbars=no,toolbar=yes,status=yes,dependant=no')

}

/script

style
div.for_layer1
{
z-index:2;
visibility:hidden;
position:absolute;
top:120px;
left:155px;
}
table.for_layer1
{
border:2px solid #99;
color:#FF;
font-family:arial;
font-size:10px;
cursor:hand;
background-color:#ced6ff
}
tr.for_layer1
{
background-color:#BB3D00;
}

div.for_layer2
{
z-index:2;
visibility:hidden;
position:absolute;
top:150px;
left:155px;
}

table.for_layer2
{
border:2px solid #006600;
color:#FF;
font-family:arial;
font-size:10px;
cursor:hand;
background-color:#ced6ff;
}

tr.for_layer2
{
background-color:#006600;
}

div.for_layer3
{
z-index:2;
visibility:hidden;
position:absolute;
top:90px;
left:155px;
}

table.for_layer3
{
border:2px solid #663399;
color:#FF;
font-family:arial;
font-size:10px;
cursor:hand;
background-color:#ced6ff;
}

tr.for_layer3
{
background-color:#99;
}

div.for_layer4
{
z-index:2;
visibility:hidden;
position:absolute;
top:205px;
left:155px;
}

table.for_layer4
{
border:2px solid #FF0033;
color:#FF;
font-family:arial;
font-size:10px;
cursor:hand;
background-color:#FF;
}

tr.for_layer4
{
background-color:#990033;
}

/style



/head

body topmargin=0 leftmargin=0 marginheight=0 marginwidth=0
!--Describing layers--

%
Vector chennailist=station.getData(chennai);
Vector jaipurlist=station.getData(jaipur);
Vector hyderabadlist=station.getData(hyderabad);
Vector punelist=station.getData(pune); %



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





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: Hellp me Don't know whats the problem

2006-03-23 Thread Allistair Crossley
Show me your page directive import 

-Original Message-
From: Kasim [mailto:[EMAIL PROTECTED] 
Sent: 23 March 2006 12:22
To: Tomcat Users List
Subject: RE: Hellp me Don't know whats the problem

Yes

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 23, 2006 5:34 PM
To: Tomcat Users List
Subject: RE: Hellp me Don't know whats the problem

Does your WEB-INF/classes folder have the class

stationname.class

i.e in the default package?

And then is it imported with a page directive in the JSP?

-Original Message-
From: Kasim [mailto:[EMAIL PROTECTED]
Sent: 23 March 2006 12:04
To: Tomcat Users List
Subject: RE: Hellp me Don't know whats the problem

This is the code generating the problem

html
head
titleSouthern Command/title
jsp:useBean id=station class=stationname scope=page/



script

function show(this_layer)
{
this_layer.style.visibility='visible';
}

function hide(this_layer)
{
this_layer.style.visibility='hidden';
}

function make_bold(x)
{
x.style.fontSize='11px';
}

function make_normal(x)
{
x.style.fontSize='10px';
}

function openwindow(stationcode)
{   window.close();
window.open('station_index.jsp?stationcode='+stationcode,
'Station',
'resizable=yes,scrollbars=no,toolbar=yes,status=yes,dependant=no')

}

/script

style
div.for_layer1
{
z-index:2;
visibility:hidden;
position:absolute;
top:120px;
left:155px;
}
table.for_layer1
{
border:2px solid #99;
color:#FF;
font-family:arial;
font-size:10px;
cursor:hand;
background-color:#ced6ff
}
tr.for_layer1
{
background-color:#BB3D00;
}

div.for_layer2
{
z-index:2;
visibility:hidden;
position:absolute;
top:150px;
left:155px;
}

table.for_layer2
{
border:2px solid #006600;
color:#FF;
font-family:arial;
font-size:10px;
cursor:hand;
background-color:#ced6ff;
}

tr.for_layer2
{
background-color:#006600;
}

div.for_layer3
{
z-index:2;
visibility:hidden;
position:absolute;
top:90px;
left:155px;
}

table.for_layer3
{
border:2px solid #663399;
color:#FF;
font-family:arial;
font-size:10px;
cursor:hand;
background-color:#ced6ff;
}

tr.for_layer3
{
background-color:#99;
}

div.for_layer4
{
z-index:2;
visibility:hidden;
position:absolute;
top:205px;
left:155px;
}

table.for_layer4
{
border:2px solid #FF0033;
color:#FF;
font-family:arial;
font-size:10px;
cursor:hand;
background-color:#FF;
}

tr.for_layer4
{
background-color:#990033;
}

/style



/head

body topmargin=0 leftmargin=0 marginheight=0 marginwidth=0
!--Describing layers--

%
Vector chennailist=station.getData(chennai);
Vector jaipurlist=station.getData(jaipur);
Vector hyderabadlist=station.getData(hyderabad);
Vector punelist=station.getData(pune); %



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





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK
Disclaimer:  The information contained within this e-mail is
confidential and may be privileged. This email is intended solely for
the named recipient only; if you are not authorised you must not
disclose, copy, distribute, or retain this message or any part of it. If
you have received this message in error please contact the sender at
once so that we may take the appropriate action and avoid troubling you
further.  Any views expressed in this message are those of the
individual sender.  QAS Limited has the right lawfully to record,
monitor and inspect messages between its employees and any third party.
Your messages shall be subject to such lawful supervision as QAS Limited
deems to be necessary in order to protect its information, its interests
and its reputation.

Whilst all efforts are made to safeguard Inbound and Outbound emails,
QAS Limited cannot guarantee that attachments are virus free or
compatible with your systems and does not accept any liability in
respect of viruses or computer problems experienced.
/FONT


-
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 5.5.16 Bug? messes up when a class has the same name as a package

2006-03-23 Thread Allistair Crossley
Tomcat is just adhering to the Sun Java specification naming
conventions. Packages should be lowercase. If Eclipse allows it, it's
being nice to you in the same way that IE is nice about rendering
invalid HTML.

It's better Tomcat forces you to correct your bad naming conventions
than encouraging it.

Cheers, Allistair.

-Original Message-
From: Paul Hamer [mailto:[EMAIL PROTECTED] 
Sent: 23 March 2006 13:24
To: 'Tomcat Users List'
Subject: RE: Tomcat 5.5.16 Bug? messes up when a class has the same name
as a package

Hi again,

Just checked: the same problem occurs with Tomcat 5.5.15.

Regards,
Paul Hamer

management  development
[EMAIL PROTECTED]

toHAVE websolutions
www.tohave.nl
[EMAIL PROTECTED]
-Original Message-
From: Paul Hamer [mailto:[EMAIL PROTECTED]
Sent: Thursday, 23 March 2006 13:59
To: users@tomcat.apache.org
Subject: Tomcat 5.5.16 Bug? messes up when a class has the same name as
a package

Hi,

I just updated to Tomcat 5.5.16 about 2 days after it was released.
Yesterday I walked into what seems to be a bug. I'm not sure whether
Tomcat
5.5.15 had this problem as well. I am sure, however, that Tomcat 4.0.6
did
*not* have this problem.

I've got the following class/package structure:

1: nl.hhv.merlin.gui.editor.EditButtons
2: nl.hhv.merlin.gui.Editor
3: nl.hhv.merlin.gui.editor2.EditButtons

Note that packagename of the first class is equal to the fully qualified
name of the second class (except for caps/nocaps). This should be no
problem right?!? At least it never was until now.

Now I have a JSP that simply does:

%
  nl.hhv.merlin.gui.editor.EditButtons buttons = null; %

Eclipse has no problems with this JSP, and happily accepts it, why
shouldn't it? Looks fine to me to :-) But Tomcat 5.5.16 gives me the
following error:

  Generated servlet error:
  nl.hhv.merlin.gui.editor cannot be resolved to a type

When I change my JSP to:

%
  nl.hhv.merlin.gui.editor2.EditButtons buttons = null; %

Tomcat compiles the JSP without any problems. Note that the 2nd
EditButtons class is an EXACT copy of the first. All three classes are
zipped into the same jar, so it's not a classpath issue.

Any thoughts on this?

Regards,
Paul Hamer

management  development
[EMAIL PROTECTED]

toHAVE websolutions
www.tohave.nl
[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]





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package

2006-03-23 Thread Allistair Crossley
Yes, apologies, that does indeed look suspect.

-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED] 
Sent: 23 March 2006 13:40
To: Tomcat Users List
Subject: RE: Tomcat 5.5.16 Bug? messes up when a class has the same name
as a package

 From: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Tomcat is just adhering to the Sun Java specification naming 
 conventions. Packages should be lowercase.

The OP's described package names *are* all lower-case, and the class
names are uppercase.

- Peter

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





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package

2006-03-23 Thread Allistair Crossley
I cannot reproduce this issue in 5.5.16

I created a class qas at

com.qas

Resulting in a fully qualified class name of

com.qas.qas

Which in a JSP I instantiated with

com.qas.qas qas = new com.qas.qas();

No issue.

I then refactored to

com.qas.Qas

And re-tested again without issue.

Perhaps the issue exibits itself when the classes are packed into a JAR.
How did you create your JAR?

Allistair.

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: 23 March 2006 13:29
To: Tomcat Users List
Subject: RE: Tomcat 5.5.16 Bug? messes up when a class has the same name
as a package

Tomcat is just adhering to the Sun Java specification naming
conventions. Packages should be lowercase. If Eclipse allows it, it's
being nice to you in the same way that IE is nice about rendering
invalid HTML.

It's better Tomcat forces you to correct your bad naming conventions
than encouraging it.

Cheers, Allistair.

-Original Message-
From: Paul Hamer [mailto:[EMAIL PROTECTED]
Sent: 23 March 2006 13:24
To: 'Tomcat Users List'
Subject: RE: Tomcat 5.5.16 Bug? messes up when a class has the same name
as a package

Hi again,

Just checked: the same problem occurs with Tomcat 5.5.15.

Regards,
Paul Hamer

management  development
[EMAIL PROTECTED]

toHAVE websolutions
www.tohave.nl
[EMAIL PROTECTED]
-Original Message-
From: Paul Hamer [mailto:[EMAIL PROTECTED]
Sent: Thursday, 23 March 2006 13:59
To: users@tomcat.apache.org
Subject: Tomcat 5.5.16 Bug? messes up when a class has the same name as
a package

Hi,

I just updated to Tomcat 5.5.16 about 2 days after it was released.
Yesterday I walked into what seems to be a bug. I'm not sure whether
Tomcat
5.5.15 had this problem as well. I am sure, however, that Tomcat 4.0.6
did
*not* have this problem.

I've got the following class/package structure:

1: nl.hhv.merlin.gui.editor.EditButtons
2: nl.hhv.merlin.gui.Editor
3: nl.hhv.merlin.gui.editor2.EditButtons

Note that packagename of the first class is equal to the fully qualified
name of the second class (except for caps/nocaps). This should be no
problem right?!? At least it never was until now.

Now I have a JSP that simply does:

%
  nl.hhv.merlin.gui.editor.EditButtons buttons = null; %

Eclipse has no problems with this JSP, and happily accepts it, why
shouldn't it? Looks fine to me to :-) But Tomcat 5.5.16 gives me the
following error:

  Generated servlet error:
  nl.hhv.merlin.gui.editor cannot be resolved to a type

When I change my JSP to:

%
  nl.hhv.merlin.gui.editor2.EditButtons buttons = null; %

Tomcat compiles the JSP without any problems. Note that the 2nd
EditButtons class is an EXACT copy of the first. All three classes are
zipped into the same jar, so it's not a classpath issue.

Any thoughts on this?

Regards,
Paul Hamer

management  development
[EMAIL PROTECTED]

toHAVE websolutions
www.tohave.nl
[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]





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK
Disclaimer:  The information contained within this e-mail is
confidential and may be privileged. This email is intended solely for
the named recipient only; if you are not authorised you must not
disclose, copy, distribute, or retain this message or any part of it. If
you have received this message in error please contact the sender at
once so that we may take the appropriate action and avoid troubling you
further.  Any views expressed in this message are those of the
individual sender.  QAS Limited has the right lawfully to record,
monitor and inspect messages between its employees and any third party.
Your messages shall be subject to such lawful supervision as QAS Limited
deems to be necessary in order to protect its information, its interests
and its reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails,
QAS Limited cannot guarantee that attachments are virus free or
compatible with your systems and does not accept any liability in
respect of viruses or computer problems experienced.
/FONT


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




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



RE: question regarding alias for context

2006-03-23 Thread Allistair Crossley
I would have thought some Apache [RewriteRule]s would do the trick. Do you use 
an Apache web server in front of Tomcat (you seem to suggest so with (c))

Allistair

-Original Message-
From: Alan Honczar [mailto:[EMAIL PROTECTED] 
Sent: 23 March 2006 14:06
To: Tomcat Users List
Subject: RES: question regarding alias for context

Sorry the persistence, but as I still did not found a way of doing that I am 
reposting and trying to explain myself better.

The problem is that my clients are POS based applications and the URL used is 
fixed. 
Part of the POSs are pointing to context A and the others to context B because 
of different app versions (different branches). 
Now, ctx B is able to receive the old requests that are now for ctx A, but the 
URL is fixed in the POSs.

I have 3 alternatives:

a. recall the terminals. (not recommendable) b. substitute the context A with 
an app that replaces the fixed URL. (implies in lots of burocracy) c. 
configuring an alias to context B, forcing the old URL to reach ctx B. 

I tried making Apache redirect the requests of ctxA to the connector of ctxB, 
but it did not work. TomCat is still loading the classes of ctxA. I´d like 
TomCat to understand ctxA as ctxB.

Please help, and thanks in advance...
Alan

-Mensagem original-
De: Alan Honczar [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 20 de 
março de 2006 19:26
Para: Tomcat Users List
Assunto: question regarding alias for context

Hi,
Maybe I will ask a stupid question but I did not found how to do it yet...

I have 2 contexts in my Tomcat 4.1 ctxA and ctxB.
My clients access them with full URLs: 
https://myserver.com/ctxA/page.jsp and
https://myserver.com/ctxB/page.jsp

Those contexts have different revisions of an application.

I´d like to kill the ctxA making the clients access ctxB in a transparent way.

I am trying to find a way of removing the webapp ctxA and configure the string 
ctxA as an alias to the context ctxB.

Anyone could give me directions? 

Thank you very much.

Alan



AVISO LEGAL - Esta mensagem e seu conteúdo - inclusive anexos - são para uso 
exclusivo de seu(s) destinatário(s), podendo conter informações confidenciais 
e/ou legalmente privilegiadas sobre a APPI Tecnologia S/A. Qualquer 
modificação, retransmissão, disseminação, impressão ou utilização não 
autorizada fica estritamente proibida. Se você recebeu esta mensagem por 
engano, por favor informe ao remetente e apague o material e as cópias de sua 
máquina.

LEGAL ADVICE - This message - including any attachments - contains confidential 
and privileged information from APPI Tecnologia S/A intended for the named 
recipient(s) only. Any modification, copying, printing or distribution of this 
message or the taking of any action based on it is strictly prohibited. If you 
have received it by mistake please notify the sender by return e-mail and 
delete this message from your system.

-


Só imprima se for realmente necessário. 
   Cada 
tonelada de papel poupado economiza de 17 a 20 eucaliptos com 7 anos de idade.  

Sua empresa também agradece.

Print only if necessary. 
Each ton of non-used paper is equivalent to 17-20 young eucalyptus trees.
Your company will also appreciate this economy.


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





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 

RE: Tomcat 5.5.16 Bug? messes up when a class has the same name as a package

2006-03-23 Thread Allistair Crossley
Except it doesn't :) It works for me.

%
com.Qas qas1 = new com.Qas();
com.qas.Qas qas2 = new com.qas.Qas();
out.println(qas1.test());
out.println(qas2.test());   
% 

I think it's your JAR. Rename your JAR to .ZIP and examine how its
packaged the classes.

Allistair.

-Original Message-
From: Paul Hamer [mailto:[EMAIL PROTECTED] 
Sent: 23 March 2006 14:43
To: 'Tomcat Users List'
Subject: RE: Tomcat 5.5.16 Bug? messes up when a class has the same name
as a package

Hi Allistair,

You're missing one vital part :-) 

You've got only 1 class:

com.qas.Qas

The problem should occur when you add a second class called:

com.Qas

Now try

com.qas.Qas qas = new com.qas.Qas();

in your JSP again.

Regards,
Paul Hamer

management  development
[EMAIL PROTECTED]

toHAVE websolutions
www.tohave.nl
[EMAIL PROTECTED]
-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: Thursday, 23 March 2006 14:52
To: Tomcat Users List
Subject: RE: Tomcat 5.5.16 Bug? messes up when a class has the same name
as a package

I cannot reproduce this issue in 5.5.16

I created a class qas at

com.qas

Resulting in a fully qualified class name of

com.qas.qas

Which in a JSP I instantiated with

com.qas.qas qas = new com.qas.qas();

No issue.

I then refactored to

com.qas.Qas

And re-tested again without issue.

Perhaps the issue exibits itself when the classes are packed into a JAR.
How did you create your JAR?

Allistair.

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: 23 March 2006 13:29
To: Tomcat Users List
Subject: RE: Tomcat 5.5.16 Bug? messes up when a class has the same name
as a package

Tomcat is just adhering to the Sun Java specification naming
conventions. Packages should be lowercase. If Eclipse allows it, it's
being nice to you in the same way that IE is nice about rendering
invalid HTML.

It's better Tomcat forces you to correct your bad naming conventions
than encouraging it.

Cheers, Allistair.

-Original Message-
From: Paul Hamer [mailto:[EMAIL PROTECTED]
Sent: 23 March 2006 13:24
To: 'Tomcat Users List'
Subject: RE: Tomcat 5.5.16 Bug? messes up when a class has the same name
as a package

Hi again,

Just checked: the same problem occurs with Tomcat 5.5.15.

Regards,
Paul Hamer

management  development
[EMAIL PROTECTED]

toHAVE websolutions
www.tohave.nl
[EMAIL PROTECTED]
-Original Message-
From: Paul Hamer [mailto:[EMAIL PROTECTED]
Sent: Thursday, 23 March 2006 13:59
To: users@tomcat.apache.org
Subject: Tomcat 5.5.16 Bug? messes up when a class has the same name as
a package

Hi,

I just updated to Tomcat 5.5.16 about 2 days after it was released.
Yesterday I walked into what seems to be a bug. I'm not sure whether
Tomcat
5.5.15 had this problem as well. I am sure, however, that Tomcat 4.0.6
did
*not* have this problem.

I've got the following class/package structure:

1: nl.hhv.merlin.gui.editor.EditButtons
2: nl.hhv.merlin.gui.Editor
3: nl.hhv.merlin.gui.editor2.EditButtons

Note that packagename of the first class is equal to the fully qualified
name of the second class (except for caps/nocaps). This should be no
problem right?!? At least it never was until now.

Now I have a JSP that simply does:

%
  nl.hhv.merlin.gui.editor.EditButtons buttons = null; %

Eclipse has no problems with this JSP, and happily accepts it, why
shouldn't it? Looks fine to me to :-) But Tomcat 5.5.16 gives me the
following error:

  Generated servlet error:
  nl.hhv.merlin.gui.editor cannot be resolved to a type

When I change my JSP to:

%
  nl.hhv.merlin.gui.editor2.EditButtons buttons = null; %

Tomcat compiles the JSP without any problems. Note that the 2nd
EditButtons class is an EXACT copy of the first. All three classes are
zipped into the same jar, so it's not a classpath issue.

Any thoughts on this?

Regards,
Paul Hamer

management  development
[EMAIL PROTECTED]

toHAVE websolutions
www.tohave.nl
[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]





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK
Disclaimer:  The information contained within this e-mail is
confidential and may be privileged. This email is intended solely for
the named recipient only; if you are not authorised you must not
disclose, copy, distribute, or retain this message or any part of it. If
you have received this message in error please contact the sender at
once so that we may take

RE: jk uriworkermap per web site on iis

2005-12-20 Thread Allistair Crossley
;c) thanks Mladen :) 

-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: 20 December 2005 17:29
To: Tomcat Users List
Subject: Re: jk uriworkermap per web site on iis

Allistair Crossley wrote:
  
 For example, one website is dom.co.uk and another is dom.com. We wish 
 for /a/* to work for dom.co.uk but not dom.com because /a/* on dom.com

 has a legacy site that needs to be left in place.
 
 I had a go at using www.dom.co.uk/a/*=ajp13 as a mapping but JK 
 doesn't appear to like this.

It was close enough :)
/www.dom.co.uk/a/*=ajp13

Should work (Note the leading slash).

Regards,
Mladen.

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





FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: Singleton memory leak after redeploying.

2005-11-29 Thread Allistair Crossley
I disagree, only the most trivial webapp needs one logger. A web
application consisting of a large number of subsystems, potentially
managed/analysed by different teams should be logged to different
locations. Effective debugging will come down to a well organised
logging structure.

-Original Message-
From: Lionel Farbos [mailto:[EMAIL PROTECTED] 
Sent: 29 November 2005 15:50
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: Singleton memory leak after redeploying.

On Tue, 29 Nov 2005 09:31:28 +0100
Mikolaj Rydzewski [EMAIL PROTECTED] wrote:

 Lionel Farbos wrote:
 
 Notes :
 - Perhaps your Listener will have to delete other objets like SQL
drivers, commons logger, ...
 - see also : 
 http://opensource2.atlassian.com/confluence/spring/pages/viewpage.act
 ion?pageId=2669
   
 
 Does log4j have some nice method to free all Logger objects? It seems 
 like a nightmare to free Loggers from all of my classes by hand...

I think it's not a good idea to have a lot of logger objects in a webapp
:
In a webapp, you need only one logger.

Then, on the last servlet destroy, you can freed your logger with
logger=null; I think no other method is needed.

Regards.

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




FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: Tomcat stops responding

2005-11-28 Thread Allistair Crossley
That's an awful lot of processes. Quite possibly a problem with the
driver you are using ... It's not very well rated. 

If you want some advice, try using a non-DBCP pool (C3P0)
sourceforge.net/projects/c3p0, and also the best SQL Server driver out
there which is at jtds.sourceforge.net.

Add both c3p0 and jtds jars to your common/lib and redefine your
Resource as follows;

Resource 
name=jdbc/dbase 
auth=Container 
driverClass=net.sourceforge.jtds.jdbc.Driver 
minPoolSize=25 maxPoolSize=50 
acquireIncrement=1 
user=sa password=Abuja5^ 
factory=org.apache.naming.factory.BeanFactory 
type=com.mchange.v2.c3p0.ComboPooledDataSource 
jdbcUrl=jdbc:jtds:sqlserver://localhost:1433/dbase 
/


Restart SQL Server and Tomcat and see how you get on.

Allistair.

-Original Message-
From: Kamalmeet Singh [mailto:[EMAIL PROTECTED] 
Sent: 28 November 2005 12:12
To: Tomcat Users List
Subject: Tomcat stops responding

Hi,

 

I am facing a problem with tomcat 5.5. After working smoothly for
sometime(3-4 days), the server stopped working and resumed only after a
Tomcat restart. It stopped connecting to database. The same behavior was
observed twice.

 

The exception thrown was:

 

java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error
establishing socket.

at
com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)

at
com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)

at
com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)

at
com.microsoft.jdbc.sqlserver.tds.TDSConnection.init(Unknown Source)

at
com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown
Source)

at
com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown
Source)

at com.microsoft.jdbc.base.BaseConnection.open(Unknown
Source)

at com.microsoft.jdbc.base.BaseDriver.connect(Unknown
Source)

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

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

at
org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.borrowObject(GenericO
bjectPool.java:771)

at
org.apache.tomcat.dbcp.dbcp.AbandonedObjectPool.borrowObject(AbandonedOb
jectPool.java:74)

at
org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataS
ource.java:95)

 

 

I am using settings  in my ROOT.xml

 

Resource name=jdbc/dbase auth=Container type=javax.sql.DataSource
username=user password=pass
driverClassName=com.microsoft.jdbc.sqlserver.SQLServerDriver
url=jdbc:microsoft:sqlserver://localhost:1433;databaseName=dbase
maxActive=5000 maxIdle=1 maxWait=100 removeAbandoned=true
removeAbandonedTimeout=2/

 

 

Additional info: In both cases the common thing was, that in SQL server
under management/process info I could see more than 3500 processes
connected to the database from tomcat, but in sleeping mode. (not sure
this has anything to do with problem).

also, I am  using Tomcat as Apache module using mod_jk 

 

I cannot make out anything of this, why suddenly server stops connecting
to database. Any ideas about the problem?

 

Regards

 

Kamal

 




FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: css and images (stupid question?)

2005-11-28 Thread Allistair Crossley
Your URLs if absolute would need to contain the web application name
unless your web appliation was the ROOT web application (the only one
that runs at /).  

Therefore if you webapp was called apple and was in webapps/apple, your
image refs would need to be

/apple/images/

You can use relative image URLs in your CSS OK BUT if you are linking
to a CSS sheet, again youd need the href to point to
/apple/css/mycss.css. 

Other than that, you can define your CSS styles in the head of your
pages and then use relative refs to your images, e.e ../images/

Allistair

-Original Message-
From: Kristian Rink [mailto:[EMAIL PROTECTED] 
Sent: 28 November 2005 12:28
To: Tomcat Users List
Subject: css and images (stupid question?)



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all;

playing around with tomcat in order to both learn using the package and
create a small web site there, I'm currently left with a problem which,
though probably being small (and not really related to tomcat), keeps
bugging me:

I'm trying to do the visual stuff of my jsp using a css style file,
which is good, so far. Within the css file, I'm using images for
backgrounds etc like that:


background: #fff url(/images/bg_header_blau.jpg) no-repeat top left;


My problem, right now, is where to put the images within the web
application so they're actually found when displaying the page.
Initially, I created a folder images within my web application and
referred to the images using url(images/...) with relative path names,
which didn't work. Also tried to place the images folder inside
$CATALINA_HOME/webapps and then using absolute image urls (/image/...),
which also didn't work.

So, where's the magic? I've always been through some tougher moments
with css and images while dynamically generating content, but right now
I feel really helpless about that. Can someone enlighten me?

Cheers and thanks,
Kris



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

Be yourself the kind of change you want to see in this world. (Gandhi)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDive4cxBAPOA1m6wRAnRxAJ90PaDKZsQQDo3M4CCd7WV5Syi/MgCdGhbs
hobJ1TqkErAqjLxZc6gV0kM=
=O7hF
-END PGP SIGNATURE-

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




FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound 

RE: css and images (stupid question?)

2005-11-28 Thread Allistair Crossley
Oh you can use aliases too if fronted with an apache web server 

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: 28 November 2005 12:33
To: Tomcat Users List
Subject: RE: css and images (stupid question?)

Your URLs if absolute would need to contain the web application name
unless your web appliation was the ROOT web application (the only one
that runs at /).  

Therefore if you webapp was called apple and was in webapps/apple, your
image refs would need to be

/apple/images/

You can use relative image URLs in your CSS OK BUT if you are linking
to a CSS sheet, again youd need the href to point to
/apple/css/mycss.css. 

Other than that, you can define your CSS styles in the head of your
pages and then use relative refs to your images, e.e ../images/

Allistair

-Original Message-
From: Kristian Rink [mailto:[EMAIL PROTECTED]
Sent: 28 November 2005 12:28
To: Tomcat Users List
Subject: css and images (stupid question?)



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is
confidential and may be privileged. This email is intended solely for
the named recipient only; if you are not authorised you must not
disclose, copy, distribute, or retain this message or any part of it. If
you have received this message in error please contact the sender at
once so that we may take the appropriate action and avoid troubling you
further.  Any views expressed in this message are those of the
individual sender.  QAS Limited has the right lawfully to record,
monitor and inspect messages between its employees and any third party.
Your messages shall be subject to such lawful supervision as QAS Limited
deems to be necessary in order to protect its information, its interests
and its reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails,
QAS Limited cannot guarantee that attachments are virus free or
compatible with your systems and does not accept any liability in
respect of viruses or computer problems experienced.
/FONT


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all;

playing around with tomcat in order to both learn using the package and
create a small web site there, I'm currently left with a problem which,
though probably being small (and not really related to tomcat), keeps
bugging me:

I'm trying to do the visual stuff of my jsp using a css style file,
which is good, so far. Within the css file, I'm using images for
backgrounds etc like that:


background: #fff url(/images/bg_header_blau.jpg) no-repeat top left;


My problem, right now, is where to put the images within the web
application so they're actually found when displaying the page.
Initially, I created a folder images within my web application and
referred to the images using url(images/...) with relative path names,
which didn't work. Also tried to place the images folder inside
$CATALINA_HOME/webapps and then using absolute image urls (/image/...),
which also didn't work.

So, where's the magic? I've always been through some tougher moments
with css and images while dynamically generating content, but right now
I feel really helpless about that. Can someone enlighten me?

Cheers and thanks,
Kris



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

Be yourself the kind of change you want to see in this world. (Gandhi)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDive4cxBAPOA1m6wRAnRxAJ90PaDKZsQQDo3M4CCd7WV5Syi/MgCdGhbs
hobJ1TqkErAqjLxZc6gV0kM=
=O7hF
-END PGP SIGNATURE-

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




FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is
confidential and may be privileged. This email is intended solely for
the named recipient only; if you are not authorised you must not
disclose, copy, distribute, or retain this message or any part of it. If
you have received this message in error please contact the sender at
once so that we may take the appropriate action and avoid troubling you
further.  Any views expressed in this message are those of the
individual sender.  QAS Limited has the right lawfully to record,
monitor and inspect messages between its employees and any third party.
Your messages

RE: Servlets (total beginner)

2005-11-22 Thread Allistair Crossley
Have you added the servlet and servlet-mapping elements to your
web.xml file for this servlet?

-Original Message-
From: Milan Tomic [mailto:[EMAIL PROTECTED] 
Sent: 22 November 2005 17:18
To: 'Tomcat Users List'
Subject: Servlets (total beginner)

 

I have compiled my first servlet and copied it into
apache-tomcat-5.5.12\webapps\servlets-examples\WEB-INF\classes but when
I navigate my browser to
http://localhost:8080/servlets-examples/DemoServlet
or http://localhost:8080/servlets-examples/servlet/DemoServlet I got an
HTTP
404 error message. Other servlets from Tomcat examples (same folder)
works just fine. What am I doing wrong? Do I have to edit web.xml in
order to inform Tomcat that I have deployed new servlet? While testing
JSPs I didn't had to do this for new JSP page. Btw, is there a good
tutorial (or tool) about configuring web.xml file?




FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: 5.0.28 v 5.5.12

2005-11-09 Thread Allistair Crossley
You need to read the config guide for 5.5.12. The Logger element is no
longer available in 5.5.12. There are other changes for JNDI resrouces
too.

-Original Message-
From: MarcLap [mailto:[EMAIL PROTECTED] 
Sent: 09 November 2005 15:13
To: 'Tomcat Users List'
Subject: RE: 5.0.28 v 5.5.12

Here is info from the Catalina.out file




Nov 9, 2005 6:49:43 AM org.apache.tomcat.util.digester.Digester
startElement
SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.logger.FileLogger
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.
java
:204)
at org.apache.tomcat.util.digester.Rule.begin(Rule.java:152)
at
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1275
)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
nkno
wn Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patc
her.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
at org.apache.catalina.startup.Catalina.load(Catalina.java:474)
at org.apache.catalina.startup.Catalina.load(Catalina.java:508)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:247)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
Nov 9, 2005 6:49:43 AM org.apache.catalina.startup.Catalina load
WARNING: Catalina.start using conf/server.xml: 
java.lang.ClassNotFoundException: org.apache.catalina.logger.FileLogger
at
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.jav
a:27
19)
at
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.jav
a:27
45)
at
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1278
)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
nkno
wn Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patc
her.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
at org.apache.catalina.startup.Catalina.load(Catalina.java:474)
at org.apache.catalina.startup.Catalina.load(Catalina.java:508)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:247)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
Nov 9, 2005 6:49:43 AM org.apache.tomcat.util.digester.Digester
startElement
SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.logger.FileLogger
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at 

RE: Google Map of active users on this list

2005-11-04 Thread Allistair Crossley
yes this is very very cool. i'm in london though - on the map i'm in cambridge 
.. i think are corporate ISP is there though ;)

 -Original Message-
 From: ALEX HYDE [mailto:[EMAIL PROTECTED]
 Sent: 04 November 2005 10:20
 To: Tomcat Users List
 Subject: Re: Google Map of active users on this list
 
 
 Very nice.
 
 Africa's a bit under-represented.
 
 --- Claire McLister [EMAIL PROTECTED] wrote:
 
  Hi,
  
We've been working with Google Maps to see if we
  can automatically map 
  origins of emails to groups.
  
As a trial, we've been mapping active emails to
  this group since Oct 
  27th at:
  
http://www.zeesource.net/maps/map.do?group=667
  
Would like to hear from you what you think of this
  service.
  
Thanks for listening.
  
  Claire
  
--
Claire McLister   
  [EMAIL PROTECTED]
1684 Nightingale Avenue Suite 201
Sunnyvale, CA 94087408-733-2737(fax)
  
http://www.zeemaps.com
  
  
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 
   
   
   
 ___ 
 Yahoo! Messenger - NEW crystal clear PC to PC calling 
 worldwide with voicemail http://uk.messenger.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



RE: jCIFS Jboss Tomcat IIS NTLM Authentication

2005-10-28 Thread Allistair Crossley
it only collects the username of the logged in user yes, not ad info.

not sure if this is true, but ensure integrated windows security is on the 
virtual jakarta folder pointed to the jk dll too. i'm not sure if your 
situation is muddied by jboss in the mix, as i am not familiar with jboss (yet)

not sure what else to tell you .. i've tested taking off WIS on my website, and 
the remote user goes blank. this is a tried and tested method, so something 
else must be getting in the way your end.

cheers

 -Original Message-
 From: Scott Shaver [mailto:[EMAIL PROTECTED]
 Sent: 26 October 2005 19:29
 To: tomcat-user@jakarta.apache.org
 Subject: RE: jCIFS Jboss Tomcat IIS NTLM Authentication
 
 
 I thought I tried that but I'll give it another go. Won't 
 this mean that
 the user's realm groups (security groups from active 
 directory) won't be
 loaded then? If tomcat doesn't do the authentication via the filter I
 would assume that would be the case. That won't work for me if it is
 true. 
  
 The application I have is an employee portal. I want the user to not
 have to log in to be authenticated. I have this working perfectly in
 WebLogic but I'm exploring a possible move to JBoss. I use the user's
 groups to avoid displaying certain sections of the portal.
  
 gave it another go:
 
 Okay so I took out the filter from the web app and set the Integrated
 Windows Security to on for the site and the redirector 
 directory. I've
 got the tomcatAuthentication=false set in the AJP 1.3 
 Connector element
 in the server.xml.
 
 Connector port=8009 address=${jboss.bind.address}
 debug=99
 emptySessionPath=true enableLookups=false redirectPort=8443  
 protocol=AJP/1.3
 tomcatAuthentication=false
 minProcessors=5
 maxProcessors=15
 /
 
 This let me into the app but with a blank getRemoteUser() value.
 Obviously not what I need. 
  
 (no disclaimer)
 
  -Original Message-
  From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, October 26, 2005 4:42 AM
  To: Tomcat Users List; tomcat-user@jakarta.apache.org
  Subject: RE: jCIFS Jboss Tomcat IIS NTLM Authentication
  
  if you're using IIS in front of your application you don't 
  need to use jCIFs. All you do is set the directory 
  permissions on your website to Integrated Windows 
  Authentication, then configure your Tomcat AJP Connector 
  element with tomcatAuthentication=false. Then 
  request.getRemoteUser() will return the Windows username.
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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



Using placeholders in context.xml for builds

2005-10-20 Thread Allistair Crossley
Hi,

Anyone know if you can use placeholders in context files, e.g

Context docBase=ROOT reloadable=${tomcat.webapp.root.reloadable} 
antiJARLocking=tomcat.webapp.root.antijarlocking 
antiResourceLocking=tomcat.webapp.root.antireslocking

Currently I am using Ant to perform replacements on the single quoted values in 
full, e.g replace reloadable='true' with reloadable='false'

Context docBase=ROOT reloadable='true' antiJARLocking='false' 
antiResourceLocking='false'

It works but it's not quite elegant,

Cheers, Allistair


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLACK 
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.
/FONT


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