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 >

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 [tru

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: ... That didn't work, so I added it to $CATALINA_HOME/conf/conte

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 > synchron

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 problem

RE: reloadable problem with filters

2008-08-15 Thread Daniel Blumenthal
Tomcat Users List > Subject: 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

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: '

RE: reloadable problem with filters

2008-08-15 Thread Daniel Blumenthal
xt start SEVERE: Context [/myapp] startup failed du to previous errors > -Original Message- > From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Sent: Friday, August 15, 2008 3:32 PM > To: Tomcat Users List > Subject: Re: reloadable problem with filters > >

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

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.xm

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 lin

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!

RE: setting up SSL

2008-02-21 Thread Daniel Blumenthal
: Caldarale, 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 possibl

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 versio

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

RE: APR / SSL in 5.5.20

2006-11-27 Thread Daniel Blumenthal
:07 PM > To: Tomcat Users 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}

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: But it doesn't connect with this. The documentation sa

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() + ":/" + request.getRequestURI().replace

RE: uninstalling the manager

2006-10-12 Thread Daniel Blumenthal
From: David 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 > > --Da

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: 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: > >

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,

RE: AOL

2006-10-10 Thread Daniel Blumenthal
r and that any review, > disclosure, dissemination, distribution or copying of it or > its contents > - Original Message - > From: "Daniel Blumenthal" <[EMAIL PROTECTED]> > To: "'Tomcat Users List'" > Sent: Tuesday, October 10, 2006 9:0

RE: AOL

2006-10-10 Thread Daniel Blumenthal
nts may contain > confidential and privileged information for the use of the > designated recipients named above. If you are not the > intended recipient, you are hereby notified that you have > received this communication in error and that any review, > disclosure, dissemination,

AOL

2006-10-09 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 som

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
his 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 Users List'" > Sent: Sa

RE: Java heap space

2006-10-07 Thread Daniel Blumenthal
g the heap size just to delay > the OutOfMemoryErrors. > > Santosh. > > Daniel Blumenthal wrote: > > 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, a

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: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> is repeated inside the block. Probably not a big deal. How long has the site been up? > -Original Message- > From: Scott Purcell [mailto:[EMAIL PROTECTED] > Sent: Monday, March 27, 2006

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 PROT

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 un

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, Februar

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 Sham

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
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: Tom

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 woul

RE: mod_jk versus mod_proxy under load ?

2005-12-29 Thread Daniel Blumenthal
> -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker > Sent: Thursday, December 29, 2005 4:09 AM > To: users@tomcat.apache.org > Subject: Re: mod_jk versus mod_proxy under load ? > > mod_proxy_http is almost always slower than a properly > configured mod

RE: detecting a new file

2005-12-26 Thread Daniel Blumenthal
A related question to this is, how can you set up a process within the servlet that fires off at X time, or every Y seconds? The equivalent of a cron job inside the servlet. If you have high enough traffic, there's an easy hack - just store a Date object as a servlet-level attribute, and check on

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

2005-12-25 Thread Daniel Blumenthal
Pulkit, I don't have any experience with WinServer (strictly a Linux man), but if it works... Also, it was my understanding (last time I checked) that no one's maintaining the old jk connector code - possibly because your method is now the recommended way? I don't know. Good luck! Daniel > --

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

2005-12-25 Thread Daniel Blumenthal
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 are my installation notes. (note that there's a slightly newer version of the JK connector) % tar zxf jakarta-tomcat-connectors-jk2-src-current.tar.gz % c

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 how

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 how