RE: Giving access to an html file in tomcat

2003-12-08 Thread Steph Richardson
IE uses some voodoo logic to decide when to show it's own error page or not. Anytime it get's something other than a HTTP 200 or 302, it looks at the HTML returned with it, and if it "seems" to be a well-formed html doc, and/or exceeds a certain length, then it will show that HTML, else it decide

RE: Relationship between server.xml/Resource and web.xml/resource-ref.

2003-11-19 Thread Steph Richardson
Thanks Chris, but here is the part I don't exactly understand : >The webapp signifies its desire to use that resource by including a complimentary > section in the deployment descriptor. A webapp ( at least under tomcat 4.1 ) does not require the section to be in place, for it to use a jndi re

WebappClassLoader won't load resource from jar file ?!?

2003-11-18 Thread Steph Richardson
I have a web app containing resource files in several jar files, but I am unable to access the resources at runtime unless they are exploded into the classes directory. When trying to access the resource files using ClassLoader.getResourceAsStream( "/meta-inf/com/kvasar/data.xml" ) I always get

RE: Redirecting HTTP requests to HTTPS

2003-11-11 Thread Steph Richardson
Adding the following lines to your deployment descriptor ( web.xml ) will do the trick : Entire Application /* CONFIDENTIAL However - Does anyone k

RE: Problem with ConnectionPool on Linux

2003-11-11 Thread Steph Richardson
My guess is you have some kind of job that runs at night that kicks or restarts your dB server ?? See if restarting your MySQL server in the middle of the day produces the same results. Anyway to make DBCP tolerant of the database dissapearing, try adding autoReconnect=true to your jdbc url. As

RE: tomcat 4.1.27 with jvm 1.4.2_02=crashes

2003-11-10 Thread Steph Richardson
Sorry, not sure which build 1.4.2_02 but I am happily running Tomcat 4.1.27 on Linux RH 9 & Win 2K Server SP4, both with Sun's Java 1.4.2-b28 > -Original Message- > From: David Muller [mailto:[EMAIL PROTECTED] > Sent: Monday, November 10, 2003 11:26 AM > To: [EMAIL PROTECTED] > Subject

RE: How to persist web-app properties across restarts ?

2003-11-07 Thread Steph Richardson
thanks, but the whole point of this is to persist a property across restarts - whether they be the entire VM or just the web-app. Is there a consistent wat to persist property information for the web-app to the filesystem, in the same way that sessions can be persisted ? I know that the servlet

RE: Deploying a WAR file referenced by a Context configuration .XML file

2003-11-07 Thread Steph Richardson
ted that 4.1.xx of Tomcat behaved exactly as I described. He also > stated that Tomcat 5 has the behavior I desired. If you are using Tomcat 5, > this would confirm his explanation. > > > -Original Message- > From: Steph Richardson [mailto:[EMAIL PROTECTED] > Sent:

RE: Deploying a WAR file referenced by a Context configuration .XML file

2003-11-07 Thread Steph Richardson
I'm really interested because you have exactly the setup that I am using in production. Although I'm not sure why you are concerned about how/where the war file get's exploded. In your lingo I use a SHAREDSETUP.xml which explicitly has a context with attribute docbase="/home/appbase/SHAREDSETUP.

RE: ant jspc task and tomcat-4.1.24

2003-11-07 Thread Steph Richardson
Yes it is possible. I am currently using it, there was some discussion on this : http://www.mail-archive.com/[EMAIL PROTECTED]/msg100350.html I think your problem may be that you haven't set the compiler="jasper41" attribute in the jspc element, as in : > -Original Message- > From:

How to persist web-app properties across restarts ?

2003-11-07 Thread Steph Richardson
I am looking for the most standard and lightweight way to persist some properties about a web application across restarts of the web application or the entire server. Something like the ServletContext.setAttribute() method, but with the persistence ability that you get from Http sessions would b

RE: servlets and cookies

2003-10-14 Thread Steph Richardson
Randy, Because you are doing an RequestDispatcher.include() the my.jsp page is served up in the same HTTP Response that is setting the cookies. my.jsp then looks in the Request for the cookies and doesn't find them there, because it's looking at the same HTTP Request that was originally sent to

Can I read file resources from a .WAR file at runtime ?

2003-10-13 Thread Steph Richardson
; ). When I am deploying this web-app as a war file, I can detect I am a war file at runtime because ( getRealPath( "" ) == null ), but is there a consistent way to read a file from this war file ? Thanks -------- Steph Richardson Kvas

RE: redirect port 8080 to 443

2003-10-13 Thread Steph Richardson
't work > I still can connect to http://localhost:8080/secure/ > > Twan > - Original Message - > From: "Steph Richardson" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Sunday, October 12, 2003 5:17 PM >

RE: redirect port 8080 to 443

2003-10-12 Thread Steph Richardson
You can have tomcat automatically make redirects to https ( and whatever port is configured in the "redirectPort" attribute of your http Connecter - 443 usually ), you can add some constraints in web.xml. Try this altered for whatever directories you want to be https only :

RE: Tools for benchmarking & profiling Tomcat

2003-08-28 Thread Steph Richardson
Thanks Yoav, I have tried OptimizeIt which does not seem to have the same problem with idle IO time as JProfiler, and so I got much different ( and better ) results. Some tech staff at ej-technologies, told me that the next release of JProfiler in a few months will have a seperate IO state that

RE: Tools for benchmarking & profiling Tomcat

2003-08-25 Thread Steph Richardson
) but I am scared by the use of the terms C++ & JFC on the intro page. Any other suggestions - especially for something that will work well with Tomcat & understands how to treat time spent in the IO libs. Thanks, Steph > -Original Message- > From: Steph Richardson

Tools for benchmarking & profiling Tomcat

2003-08-23 Thread Steph Richardson
free, and preferably a java based thing that I could run elsewhere, and that I could wrap in Ant tasks, and that supports https. Suggestions appreciated. -------- Steph Richardson Kvasar Technology LLC HQ: suite 106, 822 Boylston st., Chestnut Hill, MA

RE: CVS with tomcat

2003-08-20 Thread Steph Richardson
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html#Executing%20Manager%20Commands%20With%20Ant > -Original Message- > From: SuniX [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 20, 2003 1:37 PM > To: Tomcat Users List > Subject: Re: CVS with tomcat > > > Thank you

RE: Installing Tomcat as a Service

2003-08-20 Thread Steph Richardson
Sounds like your problem can be easily solved by reading the manpage, as the previous email from Paul suggests. man chkconfig will tell you exactly why "service service-name does not support chkconfig" The whole point of chkconfig is to manage the installing of the service for you ( e.g. symlin

RE: Installing Tomcat as a Service

2003-08-20 Thread Steph Richardson
Sounds like your problem can be easily solved by reading the manpage, as the previous email from Paul suggests. man chkconfig will tell you exactly why "service service-name does not support chkconfig" you need specially formatted comments starting with something like "# chkconfig : 2345 80 20"

RE: about web.xml and servlet mapping and reloading

2003-08-19 Thread Steph Richardson
I messed around with this quite a bit because of context-params that we kept updating in web.xml, but that didn't update when we did a reload. I read the documentation that said that stop & restart of a web-app would reread the web.xml, however in our version 4.0.6 this was NOT the case. We have

RE: Jasper2's JspC

2003-08-14 Thread Steph Richardson
There was a recent thread on doing this with Ant, search for subject "Jasper, JSPC, Ant and Precompiling JSP's" Otherwise, JspC will not create .class files for you, but the java files that JspC creates can just be compiled with javac, using Tomcat's classpath TOMCAT_HOME/common/lib/*.jar TOMCAT_

RE: [OT] Some one executing windows commands in Tomcat 4.1.18.

2003-08-14 Thread Steph Richardson
this is just an IIS worm ( Nimda I think ) on someone else's server, sending requests to yours. You can see that all the requests are returning a 404. Almost everyone sees this at some stage. Don't worry about it. steph > -Original Message- > From: Antony paul [mailto:[EMAIL PROTECTED] >

RE: Jasper, JSPC, Ant and Precompiling JSP's

2003-08-10 Thread Steph Richardson
stood what that attribute was for in the Ant > Manual. I will try it and verify if the packaging comes out right. > > If I understand correctly, I will still need to walk the directories > with the forEach task to get them compiled to classes, is this correct? > > thanks again f

RE: ANT tasks for management console

2003-08-10 Thread Steph Richardson
Juraj Look for TOMCAT_HOME/server/lib/catalina-ant.jar and copy it to your ANT_HOME/lib directory. Then you need to define the targets, and add some tasks like this :

RE: Jasper, JSPC, Ant and Precompiling JSP's

2003-08-06 Thread Steph Richardson
I didn't realize someone had > contributed a forEach task. > > I'd still like to hear about if theres any work ongoing in relation to > JspC and precompilation of entire webapplications in Tomcat? > > thanks again, > Mark > > > Steph Richardson wrote: > >

RE: Jasper, JSPC, Ant and Precompiling JSP's

2003-08-04 Thread Steph Richardson
> -Original Message- > From: Steph Richardson [mailto:[EMAIL PROTECTED] > Sent: Friday, August 01, 2003 7:06 PM > To: Tomcat Users List > Subject: RE: Jasper, JSPC, Ant and Precompiling JSP's > > > > That is EXACTLY what I am trying to do today. I've too

RE: Jasper, JSPC, Ant and Precompiling JSP's

2003-08-01 Thread Steph Richardson
That is EXACTLY what I am trying to do today. I've tooled around in the ant code, and it seems this is more of a jasper issue than an ant one, because ant passes a long list of files to jasper, with the unwanted pathnames that end up as part of your package name. I'm pretty sure if you used som

RE: Suggestions ?

2003-07-31 Thread Steph Richardson
I assume any html type tags that may be included in the text, you would want rendered as visible HTML tags in the browser. So use a HTML encoding method. There doesn't seem to be a JRE standard for this, so something like this will do it : public static String HTMLEncode( String unenc )

RE: ANT tasks for management console

2003-07-31 Thread Steph Richardson
Look for catalina-ant.jar - probably in $TOMCAT_HOME/server/lib. Copy it to your $ANT_HOME/lib. We use these in our build files - I included the XML fragments from our build files if they're useful ( obviously you need to define a bunch of props used in these examples ) :

Can I include jsp files that are in a JAR / WAR ?

2003-07-30 Thread Steph Richardson
Hi, I am trying to include jsp fragments that are located in an archive file. I have an environment, where several web-apps share a set of common include files, that each web-app statically includes, with the <%@ include file="" %> directive. For the development version of this environment, I