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 w

RE: HTML Pages in Tomcat????

2006-04-24 Thread Allistair Crossley
/imagescan/anywhere/you/like E.g /imagescan/help -Original Message- From: Michael McQuade [mailto:[EMAIL PROTECTED] Sent: 02 May 2004 14:49 To: Tomcat Users List Subject: HTML Pages in Tomcat Hi folks, real dumb question here. I have an application running on Tomcat... All my

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 f

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

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

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

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

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

RE: JK Sticky Session Handling with Load Balancing

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

RE: JK Sticky Session Handling with Load Balancing

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

RE: JK Sticky Session Handling with Load Balancing

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

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

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 A

RE: GET FORM Encoding Test JSP

2006-04-04 Thread Allistair Crossley
Beg your pardon, it was in the FAQ and BZ. Connector elements have an attribute available URIEncoding="UTF-8" AC. -Original Message----- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 04 April 2006 13:20 To: tomcat-user@jakarta.apache.org Subject: GET FORM Encoding Te

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 solu

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

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

RE: Disabling put and delete http methods

2006-03-27 Thread Allistair Crossley
try changing * To ? -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

RE: configuring the default servlet

2006-03-27 Thread Allistair Crossley
I've not really any idea other than to suggest what happens with commenting out the web.xml default in the conf version and having your web app's have their own version (since web apps don't know of each other) -Original Message- From: Rachel McConnell [mailto:[EMAIL PROTECTED] Sent: 25 M

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 t

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

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 you

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

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 princi

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 t

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

2006-03-24 Thread Allistair Crossley
s, 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 15:50 To: Tomcat Users List Subject: RE: Tomcat 5.5.16 Bug? messes up when a

RE: Tomcat: restart only one application

2006-03-24 Thread Allistair Crossley
http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html Allistair. -Original Message- From: wakeup [mailto:[EMAIL PROTECTED] Sent: 24 March 2006 08:42 To: users@tomcat.apache.org Subject: Tomcat: restart only one application I'm new in tomcat, y do restarts with .bat files in /bin

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

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

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

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 the

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

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 encouragi

RE: Question on jar file size

2006-03-23 Thread Allistair Crossley
I don't think so, you may find performance issues I suppose in terms of time to load classes, and memory limitations will constrain you, but theoretically I don't believe so. Xalan is 3MB which is one of the largest we use. Allistair. -Original Message- From: Christopher Molnar [mailto

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]

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

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

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. W

jk uriworkermap per web site on iis

2005-12-20 Thread Allistair Crossley
Hello all, I've tried my best googling skills to no avail on this one and also the manual. Perhaps you can help. We have found ourselves in a tech migration situation whereby we have a requirement to specify uriworkermap mappings per website in iis. For example, one website is dom.co.uk and ano

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

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

RE: Servlets (total beginner)

2005-11-22 Thread Allistair Crossley
Have you added the and 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-to

RE: Eclipse setup questions

2005-11-16 Thread Allistair Crossley
We use the MyEclipse range of plugins www.myeclipseide.com which comes with a Deployer plugin to do this. I've not figured out how to JAR and distribute to several webapps though yet. -Original Message- From: Developer Developer [mailto:[EMAIL PROTECTED] Sent: 16 November 2005 13:37 To: T

RE: Log4j issues upgrading from 5.5.9 to 5.5.12

2005-11-14 Thread Allistair Crossley
hanks for confirming I'm not crazy. Were you able to find anything in the changelog between 5.5.9 and .12 that would have caused this? I have not had any luck yet. -Rick -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Posted At: Monday, November 14, 2005 7:50

RE: Log4j issues upgrading from 5.5.9 to 5.5.12

2005-11-14 Thread Allistair Crossley
Hi Yes, I've had a similar problem in that with 5.5.12 various framework-related APIs such Spring and OSCache which *were* configured using a WEB-INF/classes/log4j.properties config in 5.5.9 and less no longer logged. I kind of linked the problem to the fact that these APIs had related ContextLis

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

RE: 5.0.28 v 5.5.12

2005-11-09 Thread Allistair Crossley
Define "does not work at all" in terms of log and error messages would you? -Original Message- From: MarcLap [mailto:[EMAIL PROTECTED] Sent: 09 November 2005 12:54 To: 'Tomcat Users List' Subject: 5.0.28 v 5.5.12 Hi, I have been messing with this for a few days and can't figure out wha

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

RE: jCIFS Jboss Tomcat IIS NTLM Authentication

2005-10-28 Thread Allistair Crossley
quot; 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() val

RE: jCIFS Jboss Tomcat IIS NTLM Authentication

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

Unexpected 302 response from Tomcat or JK with filter /*

2005-10-24 Thread Allistair Crossley
Hi List, Not sure whether this is JK or Tomcat. We have a URI worker mapping /*=ajp13 Our ROOT web application that handles these requests in Tomcat has a filter mapping RequestPreparatorFilter /* To capture all requests. At the top of the filter, we log the request.getRequestURI() F

RE: Undeploy/Deploy problem

2005-10-24 Thread Allistair Crossley
> -Original Message- > From: Jan Pernica [mailto:[EMAIL PROTECTED] > Sent: 24 October 2005 14:34 > To: users@tomcat.apache.org > Subject: Undeploy/Deploy problem > > > We have problem with Undeploy war and deploy again. Tomcat does not > remove folder under webapps and leaves some jars

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 Currently I am using Ant to perform replacements on the single quoted values in full, e.g replace reloadable='true' with reloadable='false' It works but it's not quite elegant, Cheers, Allistair -