Enable file downloads outside the application tree

2007-08-19 Thread Glenn McCall
Hi I have a bulletin board scenarion (i.e. people can download files = that others have uploaded). The easiest solution is to simply save the uploaded files within my = application's directory tree (e.g. .../webapps/myapp/files or similar). = The problem with this is that if I deploy a new version

Re: Can we use output/extras/tomcat-juli.jar by default?

2007-08-19 Thread Matthew Kerle
ok, found the following: http://issues.apache.org/bugzilla/show_bug.cgi?id=26372 & http://issues.apache.org/bugzilla/show_bug.cgi?id=27371 (depended-on) is that the one you mean? we use commons-logging so we've never encountered any of these issues, but now I know a good reason not to use log4j

Re: Can we use output/extras/tomcat-juli.jar by default?

2007-08-19 Thread Mark Thomas
Matthew Kerle wrote: > let me know if I read that right... > > Bill Barker wrote: >> When you have the log4j jar in WEB-INF/lib, the it ends up being used >> by Tomcat for some of it's logging. As a result, it can cause memory >> leaks and other weird errors when a context is stopped and started.

Re: datbase connection user name

2007-08-19 Thread Mike Peremsky
Nevermind. :-) Mike Peremsky <[EMAIL PROTECTED]> wrote: When a connection is made in the web.xml to the database, what username is it connecting with? I saw nowhere to enter a username. My entry looks as follows: The fantasy database jdbc/fantasyDB javax.sql.DataSource Container Shareable

datbase connection user name

2007-08-19 Thread Mike Peremsky
When a connection is made in the web.xml to the database, what username is it connecting with? I saw nowhere to enter a username. My entry looks as follows: The fantasy database jdbc/fantasyDB javax.sql.DataSource Container Shareable ---

Re: Can we use output/extras/tomcat-juli.jar by default?

2007-08-19 Thread Matthew Kerle
let me know if I read that right... Bill Barker wrote: When you have the log4j jar in WEB-INF/lib, the it ends up being used by Tomcat for some of it's logging. As a result, it can cause memory leaks and other weird errors when a context is stopped and started. This isn't a problem with j.u.l

Re: POJO Application Server for Tomcat

2007-08-19 Thread Wade Chandler
Worked for me too. I read up on it, and it sounded interesting. I'm looking forward to trying it out and bookmarked it. Wade --- Steve Ochani <[EMAIL PROTECTED]> wrote: > > The link to your site times out. > > Works fine for me > > http://coolharbor.100free.com/index.htm > > > > > On 8/19/07

Re: POJO Application Server for Tomcat

2007-08-19 Thread Steve Ochani
> The link to your site times out. Works fine for me http://coolharbor.100free.com/index.htm > > On 8/19/07, Johnny Kewl <[EMAIL PROTECTED]> wrote: > > I'd like to show you guys something that I think may blow your > > minds. > > > > Firstly let me just say that I call myself a hobbyist, dont c

Re: POJO Application Server for Tomcat

2007-08-19 Thread ben short
The link to your site times out. On 8/19/07, Johnny Kewl <[EMAIL PROTECTED]> wrote: > I'd like to show you guys something that I think may blow your minds. > > Firstly let me just say that I call myself a hobbyist, dont consider myself > in the same league as the guru's that work on Tomcat and Ap

Re: docBase application directory

2007-08-19 Thread David Smith
Well.. not exactly. Per the CSS spec (http://www.w3.org/TR/CSS21/syndata.html#value-def-uri), if the url is in a separate css file, it's relative to the css file, not the page. --David Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeusdi, jeusdi wrote: when I

Re: docBase application directory

2007-08-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeusdi, jeusdi wrote: > when I load the HTML page, the > image isn't loaded. You need to use paths in your CSS that are relative to the page being loaded -- it's kind of a pain. You need to put the context path into your CSS, and not as a variable, u

Re: docBase application directory

2007-08-19 Thread David Smith
I think your assumption regarding how tomcat uses docBase is in error. Path's in a HTML file are resolved by the BROWSER and as such there is no awareness of a webapp. Your path "/img/pageheader_background.png would be a site relative path to either a webapp named img or in absense of that, a

RE: docBase application directory

2007-08-19 Thread jeusdi
[EMAIL PROTECTED]:/usr/local/tomcat/webapps$ ls web_gm conf content css dtd img index.htm js META-INF tlds WEB-INF [EMAIL PROTECTED]:/usr/local/tomcat/webapps$ ls web_gm/* web_gm/index.htm web_gm/conf: log4j.properties web_gm/content: admin current errors web_gm/css: elements.css es

POJO Application Server for Tomcat

2007-08-19 Thread Johnny Kewl
I'd like to show you guys something that I think may blow your minds. Firstly let me just say that I call myself a hobbyist, dont consider myself in the same league as the guru's that work on Tomcat and Apache, but I do spend an enormous amount of time playing with technology. One can almost mea

RE: docBase application directory

2007-08-19 Thread Caldarale, Charles R
> From: jeusdi [mailto:[EMAIL PROTECTED] > Subject: docBase application directory > > META-INF/context.xml--> > > workDir="web_gm/work"> > If you're using any reasonably recent version of Tomcat (you didn't bother to tell us), neither the path nor the docBase attribute are allowed in the ele

docBase application directory

2007-08-19 Thread jeusdi
Hello forum, As you can see in http://i16.photobucket.com/albums/b45/jeusdi/doubt.png , from a CSS file I refer to /img/pageheader_background.png, but when I load the HTML page, the image isn't loaded. So, I believe tomcat doesn't found the image: CSS file is under css folder and the image is unde

Re: Logging.properties not found

2007-08-19 Thread Rainer Jung
Your assignment to JAVA_OPTS seems to consist of multiple lines. You need to end all apart from the last with a backslash "\", so that the shell executing the script understands, that the following lines still contain content for the variable. The error doesn't say, that it can't file a config

Re: standard valve / errors handling

2007-08-19 Thread David Delbecq
Bill Barker a écrit : Problem: because of the valve problem, my jsp is not called. This jsp is supposed to handle displaying of this NullPointerException's stacktrace(). Is there a way to configure the standard valve so that is dumps the stacktrace in tomcat log? Well, it isn't really