org.apache.tomcat.jni.Error: This function has not been implemented on this platform

2011-01-07 Thread Daniel Blumenthal
I'm getting the following error when starting up tomcat: Jan 8, 2011 3:46:19 AM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.20. Jan 8, 2011 3:46:19 AM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6

Re: org.apache.tomcat.jni.Error: This function has not been implemented on this platform

2011-01-07 Thread Daniel Blumenthal
It appears that the problem was that I didn't have openssl libs installed. On Jan 7, 2011, at 10:59 PM, Daniel Blumenthal wrote: I'm getting the following error when starting up tomcat: Jan 8, 2011 3:46:19 AM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache

tomcat6 and allowLinking problems

2009-09-21 Thread Daniel Blumenthal
I'm trying to use symlinks during development, but for some reason the allowLinking attribute doesn't seem to be working for me. I'm using Tomcat6 on a Mac Mini. First, I added it to my application's META-INF/context.xml file: Context allowLinking=true ... That didn't work, so I added it to

RE: directory structure

2009-09-13 Thread Daniel Blumenthal
If you're referring to during the development phase Yes, during the development phase. the IDEs I've worked with such as NetBeans and Eclipse does it for you automatically. I don't remember if NetBeans actually make a war or not but it does autodeploy. Eclipse will auto synchronize

directory structure

2009-09-12 Thread Daniel Blumenthal
I'm reorganizing an existing project according to the generally accepted Java directory structure (http://java.sun.com/blueprints/code/projectconventions.html#23136), and everything seems to be working all right, but there's one thing I don't understand that seems like it should be a common

gzip failing for some files

2008-08-15 Thread Daniel Blumenthal
I've set my Tomcat server up to gzip files of appropriate types, but for some reason it doesn't seem to be working on two files (according to YSlow). These files don't seem to be special, both are minified. One is fairly large (~328k), the other is medium-sized (72k). Here are the additional

reloadable problem with filters

2008-08-15 Thread Daniel Blumenthal
I'm having an odd problem. When filters are enabled in my application (e.g., to add an Expires header to certain files), I have to restart the tomcat server every time I recompile. When the filters are disabled, I don't have to restart the server (i.e., reloadable works). tomcat/conf/web.xml:

RE: reloadable problem with filters

2008-08-15 Thread Daniel Blumenthal
Sorry, I forgot to mention. This is for Tomcat 5.5.23. _ From: Daniel Blumenthal [mailto:[EMAIL PROTECTED] Sent: Friday, August 15, 2008 1:40 PM To: 'Tomcat Users List' Subject: reloadable problem with filters I'm having an odd problem. When filters are enabled in my application

RE: reloadable problem with filters

2008-08-15 Thread Daniel Blumenthal
with filters -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daniel, Daniel Blumenthal wrote: I'm having an odd problem. When filters are enabled in my application (e.g., to add an Expires header to certain files), I have to restart the tomcat server every time I recompile. When

RE: reloadable problem with filters

2008-08-15 Thread Daniel Blumenthal
Unfortunately, neither renaming the file to ZZExpiresFilter.java nor removing the line from the config file appears to be having an effect. -Original Message- From: Daniel Blumenthal [mailto:[EMAIL PROTECTED] Sent: Friday, August 15, 2008 4:34 PM To: 'Tomcat Users List' Subject: RE

RE: reloadable problem with filters

2008-08-15 Thread Daniel Blumenthal
: RE: reloadable problem with filters From: Daniel Blumenthal [mailto:[EMAIL PROTECTED] Subject: RE: reloadable problem with filters I'm actually getting an error in catalina.out *during compilation* (see log extract below). Are you compiling into the deployment directory of an active

RE: setting up SSL

2008-02-21 Thread Daniel Blumenthal
, Charles R [mailto:[EMAIL PROTECTED] Sent: Thursday, February 21, 2008 9:09 AM To: Tomcat Users List Subject: RE: setting up SSL From: Daniel Blumenthal [mailto:[EMAIL PROTECTED] Subject: setting up SSL Any ideas? Is it possible that Tomcat isn't able to find the openssl libraries

RE: setting up SSL

2008-02-21 Thread Daniel Blumenthal
Ah, never mind - it looks like this only happens the first time. -Original Message- From: Daniel Blumenthal [mailto:[EMAIL PROTECTED] Sent: Thursday, February 21, 2008 11:17 AM To: 'Tomcat Users List' Subject: RE: setting up SSL Thanks! This is exactly what I needed. I've

setting up SSL

2008-02-20 Thread Daniel Blumenthal
I'm having a real problem getting SSL working with Tomcat. Back when I was using Apache and mod_jk2, I had SSL working with Tomcat. But now that I've switched to just using Tomcat, I can't seem to get it to work. I'm using Linux (Fedora Core 5) and Tomcat 5.5.26. I've reverted to a clean

setting headers on non-jsp files

2006-12-25 Thread Daniel Blumenthal
Happy holidays, all! Is there any way to set HTTP headers on non-jsp files, using only tomcat? What I would like to do is set javascript files to no-cache, so that the browsers pick up the (fairly frequent) changes. Any ideas? (I could just turn them into jsp files, and I may yet do so, but

APR / SSL in 5.5.20

2006-11-27 Thread Daniel Blumenthal
I'm in the process of moving to Tomcat 5.5.20, and I've come across a bit of a snag. All of the conversion went fine until I started testing the SSL with APR, and it looks like it needs a different configuration. My old configuration is: Connector

RE: APR / SSL in 5.5.20

2006-11-27 Thread Daniel Blumenthal
List Subject: Re: APR / SSL in 5.5.20 On 11/28/06, Daniel Blumenthal [EMAIL PROTECTED] wrote: SSLCertificateFile=${catalina.base}/conf/localhost.crt SSLCertificateKeyFile=${catalina.base}/conf/localhost.key / I can export the .crt file from the .kdb file, but how do I

getting the full URL

2006-11-01 Thread Daniel Blumenthal
I'm trying to do what should be a fairly easy thing, but I'm really tearing my hair out over this... All I want is to be able to get the full URL (including scheme, queryString, etc.). Right now, I'm trying something like: % out.write(request.getScheme() + :/ +

uninstalling the manager

2006-10-12 Thread Daniel Blumenthal
I'd like to get rid of the manager webapp, but it isn't clear where it's located. What's the best way to delete it? Thanks! Daniel

RE: uninstalling the manager

2006-10-12 Thread Daniel Blumenthal
Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, October 12, 2006 11:24 AM To: Tomcat Users List Subject: Re: uninstalling the manager Simple version = delete manager.xml in conf/Catalina/localhost. manager itself is located in server/webapps --David Daniel Blumenthal wrote: I'd like

AOL

2006-10-10 Thread Daniel Blumenthal
We just switched from a single server to a cluster, with a load balancer out front to manage incoming connections. The load balancer makes the decision to go to app server 1 (app1) or app server 2 (app2) based on IP address - once a request comes in from one source IP, all future requests (for

RE: AOL

2006-10-10 Thread Daniel Blumenthal
are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: Daniel Blumenthal [EMAIL PROTECTED] To: 'Tomcat

RE: AOL

2006-10-10 Thread Daniel Blumenthal
- Original Message - From: Daniel Blumenthal [EMAIL PROTECTED] To: 'Tomcat Users List' users@tomcat.apache.org Sent: Tuesday, October 10, 2006 9:00 AM Subject: RE: AOL Good morning Martin, Have I misunderstood? The issue isn't switching from using Apache as a front end

RE: AOL

2006-10-10 Thread Daniel Blumenthal
Chris, How does the lb decide where you go for all requests after the first one? Typically, the session id is sniffed from the URL or cookie and the lb maintains a table of mappings that expires after some time. Our two choices are evidently IP-based and cookie-based. Currently, we're

RE: AOL

2006-10-10 Thread Daniel Blumenthal
Thanks! These are good places to test. -Original Message- From: Paul Singleton [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 10, 2006 3:06 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: AOL Daniel Blumenthal wrote: We just switched from a single server

server IP address

2006-10-09 Thread Daniel Blumenthal
Hopefully, a pretty easy question: how do you determine the IP address of the server a servlet is running on? Thanks! Daniel

RE: Java heap space

2006-10-07 Thread Daniel Blumenthal
, distribution or copying of it or its contents - Original Message - From: Daniel Blumenthal [EMAIL PROTECTED] To: 'Tomcat Users List' users@tomcat.apache.org Sent: Saturday, October 07, 2006 12:21 PM Subject: RE: Java heap space The quick answer is no - all of the code is non

Java heap space

2006-10-06 Thread Daniel Blumenthal
I've been running a struts app on a plain vanilla install of Tomcat (5.0.28), and recently I've been getting some OutOfMemoryErrors. I did some looking, and found the -Xms and -Xmx flags, and was hoping to get some advice regarding good values. I'm upgrading to a couple of RH Linux servers which

RE: Here is site, not getting spidered.

2006-03-27 Thread Daniel Blumenthal
One interesting thing is that the line: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; is repeated inside the head block. Probably not a big deal. How long has the site been up? -Original Message- From: Scott

RE: Form login UTF-8 username problem

2006-03-04 Thread Daniel Blumenthal
As a security concern, you might not want to allow full UTF-8 usernames. There are a number of invisible characters (from the soft hyphen to various connector characters) which people can use to spoof other users' names. Daniel -Original Message- From: Mark Thomas [mailto:[EMAIL

RE: Retrieving host name

2006-02-20 Thread Daniel Blumenthal
request.getServerName() -Original Message- From: Amir Sadeh [mailto:[EMAIL PROTECTED] Sent: Sunday, February 19, 2006 10:57 AM To: users@tomcat.apache.org Subject: Retrieving host name Hi, How can I retrieve the host name (defined in the tomcat server.xml) or some unique

RE: [Friday] - finding the Mavens in the Java world

2006-02-03 Thread Daniel Blumenthal
- select count(*) as c from [postings on tomcat.apache.org] group by email order by c desc, and then figure out which are the clued-in, and which are the clueless - repeat, with other listservs -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Friday, February

RE: connection pooling mysql (Pool Exhausted exception)

2006-01-13 Thread Daniel Blumenthal
I received a similar (identical?) error when I was first starting up, and the solution was to be very careful to ALWAYS close ResultSets. ResultSet rset = stmt.executeQuery(select foo from bar where ID=7); int foo = rset.getInt(1); rset.close(); -Original Message- From: Khawaja Shams

RE: Apache + Tomcat, Tomcat only handles JSP in localhost

2006-01-09 Thread Daniel Blumenthal
Chuck, So, I repeat: What full-fledged features do you think are missing from Tomcat? The reason I'm currently using Apache+Tomcat is that I had heard that Tomcat was significantly slower at serving static files (.css, .gif, .js, etc.). Is this no longer the case? Daniel

RE: Multiple Webbapps, single login.jsp??

2005-12-30 Thread Daniel Blumenthal
Yes you can, but the problem is that each webapp is going to have a different session object. There are a couple of ways you can get around this, each of which would take a little bit of code (but not necessarily a huge amount). The first step would be to create a very simple webapp - all it

RE: Multiple Webbapps, single login.jsp??

2005-12-30 Thread Daniel Blumenthal
Why would you want separate webapps for this? Why not one webapp, one login page, and then one (or more) screens with content created dynamically based on the login ID? -Original Message- From: Rob Hills [mailto:[EMAIL PROTECTED] Sent: Saturday, December 31, 2005 12:39 AM To: Tomcat

RE: How to forward external-ip-facing requests from ApacheHTTPServer to Tomcat?

2005-12-25 Thread Daniel Blumenthal
for having this repitition. Do let me know of your thoughts on this... Cheers, - Pulkit On 12/25/05, Daniel Blumenthal [EMAIL PROTECTED] wrote: I've set up my system so that Apache handles all requests, and forwards to the servlet when the path is www.mysite.com/myservlet/*. Following

getting rid of the initial redirect

2005-12-24 Thread Daniel Blumenthal
Hi there! (and happy holidays!) I have a problem - when users go to my site, they generally go to www.mysite.com, but then they have to get redirected to www.mysite.com/myservlet/Home.do. I'd like for them to be able to see the home page without having to be redirected, but I can't figure out

getting rid of the initial redirect

2005-12-24 Thread Daniel Blumenthal
Hi there! (and happy holidays!) I have a problem - when users go to my site, they generally go to www.mysite.com, but then they have to get redirected to www.mysite.com/myservlet/Home.do. I'd like for them to be able to see the home page without having to be redirected, but I can't figure out