Re: Broken tomcat 6.0 config after SSL install.

2011-03-26 Thread David Fisher
Taking the whole of the message above, it would look as if the new guy wasn't too sure about how to set up SVN SSL under Tomcat, and chose to set it up on a front-end Apache instead. (Which, in the principle, is also how I would set it up, since I have no idea if there exists an SVN-capable

Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-16 Thread David Fisher
Chris, You can use the following in the connectionInitSqls to make sure a suitable variable it set exec dbms_application_info.set_action('INSERTING'); The site http://psoug.org/reference/sys_context.html references a bucket load of different context parameters that can be set -

Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-16 Thread David Fisher
We'd like to be able to tell apart database sessions from the 15 or so tomcat applications we have running on our web-servers. Most of them use similar logins, so we can't query the username from gv$session. We were hoping to instead query to program field to tell them apart. We were able

Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-14 Thread David Fisher
Hello all... We have some working tomcat 6 instances that we'd like to identify by querying the v$session.program field the oracle database they connect to. While there are no errors on startup for the tomcat instance, and we can connect to the database, nothing gets populated in v$session.

Re: Populating Oracle v$session.program from Tomcat Context.xml

2011-03-14 Thread David Fisher
We have some working tomcat 6 instances that we'd like to identify Can you use the combination of machine and schema name to identify the instance? You didn't detail your environment, but if you have a cluster, then the machine name would uniquely identify the instance. If you have

Re: JSP ClassNotFoundException on Tomcat 6.0.29/30 Eclipse Helios WTP

2011-01-19 Thread David Fisher
I'm developing an web application on Eclipse Helios, WTP, Tomcat 6.0.29(and just upgraded to 6.0.30). I suffer from ClassNotFoundException a lot of times on both 6.0.29/30. It's not about usual classes or jar. It's about JSP generated java class. For example, when I request

Re: JSP ClassNotFoundException on Tomcat 6.0.29/30 Eclipse Helios WTP

2011-01-19 Thread David Fisher
I'm developing an web application on Eclipse Helios, WTP, Tomcat 6.0.29(and just upgraded to 6.0.30). I suffer from ClassNotFoundException a lot of times on both 6.0.29/30. It's not about usual classes or jar. It's about JSP generated java class. For example, when I request

Re: Several hosts within one tomcat / catch-all problem

2010-11-21 Thread David Fisher
Hi Konstantin, BTW, you can put those names in an external file and use it in the server.xml as an XML entity. Like the example in http://wiki.apache.org/tomcat/FAQ/Password Inspired by this thread and having a similar issue in maintaining virtual host aliases I edited my server.xml as

Re: [OT] RE: Tomcat Consultant

2010-11-18 Thread David Fisher
myself, on MIT's Honeywell machines (with drum disks), as well as an assembler programmer on PDP-1, 4 and 9. The 4 had a 125 kHz clock speed. I vaguely remember the PIC OS, but haven't googled it yet. -Allen -Original Message- From: David Fisher [mailto:dfis...@jmlafferty.com

Re: Malicious host is crashing my server

2010-11-07 Thread David Fisher
You could modify the RequestDumpFilter to only dump the request for that ip address. Regards, Dave Sent from my iPhone On Nov 7, 2010, at 12:28 PM, Assaf ass...@yahoo.com wrote: A filter to block is good. But then I would not be able to see him doing it again and then find out the issue.

Re: how can i turn off This is very likely to create a memory leak.

2010-10-28 Thread David Fisher
ok, i revoke my nevermind message, even after I removed JreMemoryLeakPreventionListener I still get the warning. Even weirder: Oct 28, 2010 3:50:55 PM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Oct 28, 2010 3:50:55 PM

Re: Is there any JMX property which indicates no requests is being processed?

2010-10-21 Thread David Fisher
Hi, I was just playing with the correct jmx properties. My purpose is to see what are the maximum requests and watch the health of my servers. MBeanServerConnection mbs = jmxpool.getConnection(host); ObjectName query = new

Re: [OT] RE: Tomcat Consultant

2010-09-29 Thread David Fisher
PL/1 was a nice break from extending FORTRAN IV with BAL (Assembler). Wow real pointers and character strings! I seem to recall there was a version on the Prime minicomputers - IRC they had a version of the PIC OS. Primos came out of the Boston area, was a son of Multics and a brother

Re: [OT] RE: Tomcat Consultant

2010-09-28 Thread David Fisher
PL/1 was a nice break from extending FORTRAN IV with BAL (Assembler). Wow real pointers and character strings! I seem to recall there was a version on the Prime minicomputers - IRC they had a version of the PIC OS. Primos came out of the Boston area, was a son of Multics and a brother OS to

Re: Why an email list, and not a forum?

2010-09-23 Thread David Fisher
You can use something like gmane.org: http://dir.gmane.org/gmane.comp.jakarta.tomcat.user On Sep 23, 2010, at 5:33 PM, Brian wrote: But what if you just want to receive responses to your question, instead of receiving all the emails that is being writen? Mail lists are an old method. Web

Re: [ANN] CI for Tomcat 6 and 7 docs now available

2010-09-17 Thread David Fisher
Mark Thomas wrote: ... If you want to start down this path and see how it goes, I am happy to talk you through step by step. I may (hem, probably will) need that at some point. But let me try following the basic steps you outlined, first. quoting : If you do get involved then the

Re: 2 POST requests to underlying Server

2010-08-11 Thread David Fisher
There should be one or more devices inserted in (a) client browser (port 2345) --(a)-- (port 80) apache ---(b)--- mod_jk (port 1234) ---(c)--- (port 8109) tomcat -- DB There should be a firewall, or who knows what a hacker may have inserted. There might be a load balancer. If either of

Re: [OT] Tomcat unexpectedly shuts down

2010-08-10 Thread David Fisher
Hi Andre, So I am not objecting to using 3000 MB of Heap, I am just curious. If someone like Eric Robinson can run a non-trivial multi-user Tomcat application with an average 64 MB of Heap and you can do pretty much the same, then I am curious as to which Tomcat application (or situation)

Re: Running PHP?

2010-08-02 Thread David Fisher
Hi, Maybe I should not ask, but why post with the text as an attachment? You're using Outlook Express, maybe the problem is at your end. Your PGP signature is an attachment. --enig2B65BBFD3FC6C4840C488F3D Content-Disposition: attachment; filename=signature.asc

Re: Connection Refused On Tomcat Server Shutdowns if...

2010-07-22 Thread David Fisher
If you look at catalina.sh you will see that stop does not include CATALINA_OPTS: $_RUNJAVA $JAVA_OPTS \ -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath $CLASSPATH \ -Dcatalina.base=$CATALINA_BASE \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$CATALINA_TMPDIR \

Re: Script to restart Tomcat

2010-07-15 Thread David Fisher
I've found that you cannot always rely on the shutdown script closing tomcat quickly. If you have a thread that is not properly managed maybe not at all. In my restart scripts I find the PID of the tomcat process, run the shutdown script, sleep 10 seconds, test if the PID is still active and if

Re: Problem redirecting http to https in Tomcat 4

2010-07-14 Thread David Fisher
Robedan, I recall that we started doing the following in Tomcat 4.1: In the webapps WEB-INF/web.xml we inserted the following right before /web-app: security-constraint web-resource-collection web-resource-nameEntire Application/web-resource-name

Re: Tomcat/webapp bundled deployment

2010-07-13 Thread David Fisher
That is pretty much what i do, but I recommend that you adopt an overlay approach. It will make it easy for you to take new versions of Tomcat when they are available. Here is how I currently deploy to Solaris. (1) I use a blessed tomcat distribution from

Re: PDF to acrobat

2010-06-29 Thread David Fisher
You will want to do this: response.setContentType(application/pdf); response.setHeader(Content-disposition, inline); For an attachment / download you will want to do: response.setContentType(application/pdf); response.setHeader(Content-disposition,

Re: Setting Up AJP Workers as a Failover

2010-06-23 Thread David Fisher
Hi Rainer, Thank you for your reply - it really has helped out today in several ways. I've got myself in a situation where I need a stopgap quick fix - until we can respond correctly. It turns out I was overreacting and we have other better tools to fix the troubles - no need to discuss as

Setting Up AJP Workers as a Failover

2010-06-22 Thread David Fisher
Hi All, I've got myself in a situation where I need a stopgap quick fix - until we can respond correctly. I have the following workers file: # define the worker list worker.list=LoadBalancer # Define the LB worker worker.LoadBalancer.type=lb

Re: POI/XML issues in server environment

2010-06-17 Thread David Fisher
Hi All, Over here from POI where I helped Jorge track things down in Tomcat. I suggested he come over here for help, but he seems to have started at the beginning and is getting the exact same initial questions that were asked on POI User. Here's what was determined. One of the webapps on his

Re: Context Chicken Egg Problem

2009-12-15 Thread David Fisher
Hi Chris, Current architecture is to share a jar in shared/lib between the main webapps, an admin webapps and a localhost only management webapps. This was originally in Tomcat 3. New architecture will separate each, drop the management webapps and we'll control contexts via multicasting,

Re: Context Chicken Egg Problem

2009-12-11 Thread David Fisher
Hi Chris, public class UniverseLoader extends HttpServlet { protected long timeLoaded; public void init() throws ServletException { new Thread(new LoadUniverseTask()).start(); } public void doGet(HttpServletRequest request, HttpServletResponse response) throws

Re: Context Chicken Egg Problem

2009-12-10 Thread David Fisher
You could launch each webapps initialization code in a separate thread. Here is what we do. Our load is very heavy and our servers are responsive after restart much sooner using this technique. UniverseLoader.java: package com.example; import javax.servlet.http.HttpServlet; import

Re: Control character in cookie value

2009-12-09 Thread David Fisher
Christopher Schultz wrote: I'm surprised that nobody else has noticed that the control characters in question were already posted by Itay... it's just that nobody bothered to read the error message properly :) And we are quite flabbergasted that you did not peruse the thread carefully, or

Re: Persistent Storage for Webapps

2009-10-12 Thread David Fisher
So you have multiple contexts on a host, each of which needs separate, persistent storage? If you don't want to keep track of a property files, you could write a bean with a method that takes a HttpRequest as a argument, and returns a file path based on the info in the request. You would

Re: Running multiple tomcats

2009-08-21 Thread David Fisher
Solaris 10 can turn off ports at the OS level. Your sysadmin may have those ports turned off. You may need to talk to the sysadmin of the box. Regards, Dave On Aug 21, 2009, at 8:18 AM, Malladi, Sasikanth wrote: No, no forwarding problems, as I can access the original instance at

Re: XSS vulnerability in Tomcat Host Header

2009-07-23 Thread David Fisher
On Jul 23, 2009, at 4:00 AM, Mark Thomas wrote: Konstantin Kolinko wrote: 2009/7/22 Rémy Maucherat remy.mauche...@gmail.com: On Wed, Jul 22, 2009 at 2:37 PM, Mark Thomasma...@apache.org wrote: You'll need to provide more details. Nothing stands out from the security pages. Please provide

Re: Tomcat is idle when Oracle crashed

2009-04-20 Thread David Fisher
I've been investigating Oracle configuration myself - this page was helpful to me for Oracle 10g - http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/readme_10201.html It contains a reference to the following bug - BUG-3209390 JDBC OCI Driver's TAF functionality will not

Re: JK 1.2.28 - load balancer worker fails on startup with one worker down ?

2009-04-17 Thread David Fisher
An interesting discussion. Since I am about to configure such a load balancer and we prefer to use DNS, understanding this type of detail is critical. The OP said that the reason that the DNS did not resolve was that the machine had been moved off the network. That may have been an event

Re: JK 1.2.28 - load balancer worker fails on startup with one worker down ?

2009-04-17 Thread David Fisher
Rainer - Wouldn't this type of dynamics occur if your workers were in a cloud? Or if you needed a lot more very quickly for peak processing? Am I correct to think that if someone is being so dynamic with their worker's DNS configuration then they should automate using the status worker

Re: Virtual Hosts

2009-04-15 Thread David Fisher
Can anybody offer any guidance or advice on how I can set up some virtual hosts for my application that has multiple skins. I want to be able to go to http://flavour1 instead of having to type in http://longhostname/service/program.jsp?skins=flavour1, and similar for flavour2, flavour3,

Re: Virtual Hosts

2009-04-15 Thread David Fisher
Hi Charles, I have multiple domains hosted, and I name each as Aliases in the Host in server.xml. If you only have one Host element, aliases are unnecessary. You only need Alias elements when multiple Hosts are configured and you want Tomcat to route more than one domain to them.

Re: mod_headers and .htaccess for P3P policy

2009-01-07 Thread David Fisher
When I had to deal with p3p policy then I simply put a directory called w3c in my webapps and dropped in a p3p.xml and policy.xml. Afterwards my webapp on a different url in tomcat could be opened in an iframe by our partners IIS served ASP application. w3c/p3p.xml w3c/policy.xml Is this

FYI - Apple Updates Tomcat to 6.0.18 on MacOSX Servers

2008-10-14 Thread David Fisher
Just noticed the following on an Apple MacOSX 10.5 Security Update: Tomcat CVE-ID: CVE-2007-6286, CVE-2008-0002, CVE-2008-1232, CVE-2008-1947, CVE-2008-2370, CVE-2008-2938, CVE-2007-5333, CVE-2007-5342, CVE-2007-5461 Available for: Mac OS X Server v10.5.5 Impact:

Re: XP/Vista/Office 2007/IE Compatibility Question

2008-09-30 Thread David Fisher
Martin, 3) If the software is not independent of Office 2007, is it compatible with it? If not, what is the compatible version and what are the costs involved in upgrading? MGthe way TC handles Microsoft Compound Documents such as XLS and DOC files are thru POI Apache interface

Re: Tomcat migration from T5 to T5.5 mail

2008-09-30 Thread David Fisher
Hi, Just a thought, but you might want to check the permissions on the jar files. I've gotten errors like that when I lacked permission to read. Regards, Dave On Sep 30, 2008, at 6:54 AM, AlexM3 wrote: Hello, Firt of all thanks for your fast answer. - My Java versión is jdk1.5.0_06,

Re: Can I get Millisecond precision in Access Logs?

2008-09-16 Thread David Fisher
It is. The docs are here: http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html I use Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=unity_access. suffix=.log pattern=%h %v %t

Re: Can I get Millisecond precision in Access Logs?

2008-09-16 Thread David Fisher
On Sep 16, 2008, at 2:27 PM, Jonathan Mast wrote: Ah, but %D is the time taken to process the request in ms. It's not the timestamp. On Tue, Sep 16, 2008 at 3:14 PM, David Fisher [EMAIL PROTECTED]wrote: It is. The docs are here: http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org

Re: [a little OT] Can I get Millisecond precision in Access Logs?

2008-09-16 Thread David Fisher
Mark, Interesting but shouldn't the getDate method be slightly different: if ((systime - currentDate.getTime()) 1000) { In this line if currentDate is at millisecond 900 then the next second starts with the millisec and that is 100 ms later. long cachedtime =

Re: Log4j Logging

2008-06-24 Thread David Fisher
(This must be national logging questions month :-) More like International logging month - everyone upgrading to tomcat 5.5 or better is forced to confront this issue, many are under a lot of pressure, and they don't all read English. The differences are subtle and lost in translation.

Re: Log4j Logging

2008-06-24 Thread David Fisher
It now points to http://tomcat.apache.org/tomcat-4.1-doc/config/logger.html That's perfect for me. Thank you very much, Dave On Jun 24, 2008, at 3:30 PM, Mark Thomas wrote: David Fisher wrote: (3) On the logger FAQ page the Configuration link is dead! http://tomcat.apache.org/tomcat-5.0-doc

Re: logging with multiple web applications

2008-06-17 Thread David Fisher
Hi Chuck, These threads have clarified things for me as well. Thanks. From: Jamie [mailto:[EMAIL PROTECTED] Subject: Re: logging with multiple web applications Ok. I currently have the log4j-1.2.14.jar file in the WEB-INF/lib directory. I will remove it. No, that's where it's supposed to

Re: Tomcat producing (near) duplicate Catalina logs

2008-06-13 Thread David Fisher
Hi Andre, I tried, but I'm not finding it. Am I the only one in that situation ? No, I've tried to read both the log4j docs and the tomcat logging docs. Nowhere is there a good working example that describes some real world situations. My trouble is different from yours, but I believe we

Re: Requests being processed at a certain moment

2008-06-03 Thread David Fisher
Alvaro, You certainly can easily use a Filter with your JSPs. Take a look at the jsp-examples webapps included with tomcat. If you look at WEB-INF/web.xml and the structure of WEB-INF/classes/ you should see how to use the example that Jim provided. For example RequestDumper: In web.xml

Re: COMPATABILITY APACHE /TOMCAT/CONNECTOR

2008-05-29 Thread David Fisher
Hi - I'm a bit of a hacker with server.xml, but your problem is with duplicate ports so look at ALL port usage in both server.xml files. Maybe you should try changing the redirect port for TC2 to 8444. There should not be a redirect port for AJP/1.3 Do you define an HTTPS connector? If

Re: COMPATABILITY APACHE /TOMCAT/CONNECTOR

2008-05-29 Thread David Fisher
Hi Chris, David, David Fisher wrote: | Maybe you should try changing the redirect port for TC2 to 8444. Why? | There should not be a redirect port for AJP/1.3 Why not? I agree that the OP should really simplify his or her configuration, but you seem to be stabbing in the dark

Re: Save POJO Application Server Definition

2008-05-15 Thread David Fisher
Jeez, give the guy a break, if you don't want to read his posts then don't read them. His name appears next to them, it's easy to ignore if you want to. I don't know 'Johnny' personally and I agree he can be a bit ebulliant I don't mind ebullient as long as he knows what he's talking

Re: Load Balnce and failover for Tomcat

2008-05-13 Thread David Fisher
I think what the experts are saying is that even if your webapps is started it could be dependent on a large startup operation. Take for example Apache Roller which can take several minutes to rebuild its persistence state and while up will reject requests. The only way to know if the

Re: Save POJO Application Server Definition

2008-05-13 Thread David Fisher
We know you think your stuff is so kewl, but would you please stop leading all your email with an evangelical tag line. That would be so cool of you. Thanks, Regards, Dave On May 13, 2008, at 3:14 PM, Johnny Kewl wrote:

Re: Shared Javascript, CSS, and Image Files

2008-05-13 Thread David Fisher
Hi, Probably you should refer to it as shared/test.js without the leading / Regards, Dave On May 13, 2008, at 6:21 PM, John Buchholz wrote: Hi, I am looking for the recommended solution for when multiple webapps need to use the same sets or javascript, css, and image files. I have

Re: logging catalina.out and localhost-##.log - don't append

2008-05-09 Thread David Fisher
On May 9, 2008, at 1:43 PM, Caldarale, Charles R wrote: From: Robert Koberg [mailto:[EMAIL PROTECTED] Subject: RE: logging catalina.out and localhost-##.log - don't append I am starting/stopping from a console with ./bin/startup.sh So modify the script (or wrapper it) to do rm -f ./logs/*

Re: access files from jsp

2008-04-29 Thread David Fisher
Henry doesn't say if these are text files or binary files. If these are binary files like PDF, PPT and XLS files then a servlet will be needed - not a jsp. We use variations like the following in both Tomcat 4.1.31 and Tomcat 5.5.26 public class OpenFileServlet extends HttpServlet{

Re: access files from jsp

2008-04-29 Thread David Fisher
3.0.3. Pretty simple. It is up to you if you need to obfuscate your file pathnames. Glad to help. Regards, Dave i understood with help of --- David Fisher [EMAIL PROTECTED] schrieb: Henry doesn't say if these are text files or binary files. If these are binary files like PDF, PPT

Re: access files from jsp

2008-04-29 Thread David Fisher
of --- David Fisher [EMAIL PROTECTED] schrieb: Henry doesn't say if these are text files or binary files. If these are binary files like PDF, PPT and XLS files then a servlet will be needed - not a jsp. We use variations like the following in both Tomcat 4.1.31 and Tomcat 5.5.26 public class

Re: R: How to close idle connections

2008-04-28 Thread David Fisher
On Apr 28, 2008, at 9:59 AM, Alan Chaney wrote: David Smith wrote: No, I have at most 20 idle connections, that's goes right, but my boss want less idle connections to avoid to overload the database server. So there isn't way to close an idle connection to remove the relative

Re: simple JSP redirect to another page -- how to deal with relative URLs

2008-04-25 Thread David Fisher
Seconded. DIGLLOYD said the following: From what I can find by googling, redirects have a slew of issues of their own. But I'm a newbie at this, so I might be misunderstanding. The only trouble I've had with redirects is when you redirect to a page which redirects to a page which

Re: LD_LIBRARY_PATH issue

2008-04-10 Thread David Fisher
Hi, Look carefully at the LD_LIBRARY_PATH man page. At least under Solaris, if you are sudo'ing in some way to root then it will not reset LD_LIBRARY_PATH. This is a security measure. You may need to configure the root to include these libraries. This was 7 years ago that we encountered

Re: How to get Tomcat to pick up Oracle database connections after database shutdown?

2008-04-03 Thread David Fisher
I think you are correct. We manage our Oracle connections ourselves using classes12 and a ConnectionPool. I have no need to restart tomcat after an Oracle bounce. I do restart my Tomcats much more often than Oracle - every day. It has been almost a year since we restarted Oracle. It could

Re: Encryption algorithms usage in Tomcat

2008-03-26 Thread David Fisher
Hi, You want to look at this page: http://www.apache.org/licenses/exports/ You'll need some time to understand it. I did this a couple of years ago. When I last I checked HTTPS support is the only encryption that Tomcat does. I don't believe that HTTPS is subject to ECCN, but I'm not a

Re: Tomcat 5.5 and Apache 2.2

2008-03-26 Thread David Fisher
Hi - There can be three cases (at least) (1) Your blog software insists on a folder name - a weblog id. Having played with Roller 4 and Tomcat, I was defeated in trying to get what you want. They are working on it in their next version, and people have reported how to do it. If you are

Re: Tomcat 5.5 and Apache 2.2

2008-03-26 Thread David Fisher
haven't tried. I haven't yet gone to Apache in front of Tomcat for load balancing yet. It is on my road map to replace ancient expensive, but elegant Resonate, giving me the scalability I hope to need. Dave Lasana - Original Message From: David Fisher [EMAIL PROTECTED

Re: [OT] Smalltalk (was RE: Tomcat multithread question on externalapplication)

2008-03-25 Thread David Fisher
From: Peter Crowther [mailto:[EMAIL PROTECTED] Subject: [OT] Smalltalk (was RE: Tomcat multithread question on externalapplication) Smalltalk is still the fastest prototyping environment for some classes of problem that I've used - but I'd prefer something with a few more safety belts for

Re: forwarding a post

2008-03-20 Thread David Fisher
Hi, PayPal has free solutions that work: https://www.paypal.com/us/cgi-bin/webscr?cmd=_profile-comparison I use Website Payments Standard with an IPN back-end without trouble for over 5 years on Tomcat 4s, no trouble with recent upgrade to 5.5/ We save the shopping cart on the server

Re: Running out of memory too easily in Tomcat 6.0.16

2008-03-19 Thread David Fisher
PermGen Space is where classes live. One of the links on the FAQ should get you on track: http://opensource.atlassian.com/confluence/spring/pages/ viewpage.action?pageId=2669 You are likely doing something seemingly innocent, but there is actually a problem. I got similar errors to yours

Re: Tomcat is confused between sites

2008-03-18 Thread David Fisher
Both webapps use a resource or class that only allows a single use? Do you install any jars in any place other than your webapps' WEB-INF/ lib? Have you set up any logging? If log4j, where did you put it? Regards, Dave On Mar 18, 2008, at 12:12 PM, sol42020 wrote: Most people would think

Re: about java.lang.outofmemory error

2008-03-17 Thread David Fisher
I don't know about BIRT (other than it is a project to generate Excel reports), but I do know that in Apache POI when you read and write an Excel spreadsheet everything is done in memory, and a large amount of memory needs to be available if your spreadsheet is large. I add the following