One solution to: How to hide files by extension under Tomcat 5?

2004-04-20 Thread Stephen Bacon
Parsons Technical Services wrote: Since you don't like that you might try this. Set security-constraints for all the file types you want to protect. Then do NOT set an auth-constraint for it. Thus no one will be able to access it from outside. Thanks Doug, that's the ticket. Here's what I came

How to hide files by extension under Tomcat 5?

2004-04-19 Thread Stephen Bacon
Hello, I've got Tomcat 5 running standalone. Unfortunately I cannot discover how to prevent non-JSP files from being served. Specifically, I've got code sections (which aren't really appropriate to be written as beans) which I jsp:include into several pages. I end up giving all of these the

Re: How to hide files by extension under Tomcat 5?

2004-04-19 Thread Stephen Bacon
Good idea. Unfortunately, I'd like to keep my file org as-is (it'd be a bit strange to put all sorts of resources in a directory struture starting with WEB-INF). Plus I'm not sure it's a good thing to rely on a product-specific feature (WEB-INF is hidden by Tomcat) for this. What happens if in

Re: emergency - need to get into admin app

2004-04-19 Thread Stephen Bacon
In general, you only use it to pass options that you might need. For example the X flag controls memory, so if your app requires it you can instruct tomcat to launch JVMs with a higher max (i.e. if it seems to be running out of memory). As an example I use: -Xmx128m to set the max at 128MB (i

Re: Classpath problems with tomcat on Linux 9

2004-04-19 Thread Stephen Bacon
Hi Andy, I'm porting over to TC5 and I've not had any problems with it finding my classes, *BUT* I don't put any classes into the base directory itself, but below that. So for example, my UserBean class is in myapp/WEB-INF/classes/AccessCtrl and it is part of the package AccessCtrl (i.e.

Re: Creating a Certificate Signing Request

2002-08-15 Thread Stephen Bacon
On Thu, 2002-08-15 at 10:55, Gabe Sanchez wrote: Hi all, I am new to the list, so please bear with me. I am running a server with RedHat Linux 7.2, with Tomcat 4.0.3 as the web server. I am in the process of trying to buy a digital certificate from Verisign but am unable to find any

RE: Writing files from a class

2002-08-14 Thread Stephen Bacon
servlet context. Servlet containers must provide a private temporary directory per servlet context, and make it available via the javax.servlet.context.tempdir context attribute. The objects associated with the attribute must be of type java.io.File. -Original Message- From: Stephen

RE: Writing files from a class

2002-08-14 Thread Stephen Bacon
On Wed, 2002-08-14 at 11:37, Shapira, Yoav wrote: Hi, I see that the spec mentions private temporary directory - I need a permananent directory - by temporary I take it to mean that I can't count on the files sticking around. Is my understanding here flawed? Your understanding as far as

Writing files from a class

2002-08-13 Thread Stephen Bacon
Hello, I'm trying to migrate from Tomcat 3 to Catalina (under Linux) and I've hit a snag. Several of my custom classes which I use from JSPs (e.g. ConnectionPool) print messages to debug files which I access via: snip pwDebug = new PrintWriter(new FileOutputStream(m_sDebugFileName, true));

Re: Configuring web.xml for HttpServlet - Solution!

2001-01-25 Thread Stephen Bacon
Aha! never underestimate the power of just guessing. The solution was to hit the servlet by specifying "servlet" in the path, i.e.: http://servername/context/servlet/servlet-name If the servlet is installed under the ROOT webapp as Wyn Easton suggested, then you can skip specifying the context