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

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

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

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:

RE: multiple tomcat on one server??

2006-04-19 Thread Allistair Crossley
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

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

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

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

RE: JK Sticky Session Handling with Load Balancing

2006-04-18 Thread Allistair Crossley
://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

RE: JK Sticky Session Handling with Load Balancing

2006-04-18 Thread Allistair Crossley
(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

RE: JK Sticky Session Handling with Load Balancing

2006-04-18 Thread Allistair Crossley
/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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2006-03-23 Thread Allistair Crossley
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

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:

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

2006-03-23 Thread Allistair Crossley
- 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

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

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

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

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

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

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

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

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

RE: jCIFS Jboss Tomcat IIS NTLM Authentication

2005-10-28 Thread Allistair Crossley
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

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