Re: Possible to forward a request to another server?

2004-05-27 Thread David Crooke
s, Inc. 406 728-0893 ext. 2107 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- David Crooke, Chief Technology Officer Convio Inc. - the online partner for nonprofits 11921 N Mop

Re: Tomcat alternatives to replace JServ zone URL abstraction

2004-05-26 Thread David Crooke
before the current tomcat clustering code was available is illustrated at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html. Yoav Shapira Millennium Research Informatics -Original Message- From: David Crooke [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 25, 2004 2:13

Tomcat alternatives to replace JServ zone URL abstraction

2004-05-25 Thread David Crooke
ession cookies and URL rewriting can get messy. 3. As above, but install everything as one big webapp and do the dispatching internally within the application code, using a custom classloader to simulate zones This seems to be the most flexible and portable, but also strikes me as a fair a

Re: How to allocate memory to JVM

2002-11-07 Thread David Crooke
Ob.Note: This is a JVM and Linux question, not a Tomcat question - there are more suitable lists. Briefly, use the JVM parameters -ms and -mx to control the initial and maximum Java heap size. A busy JVM will take a total OS-level memory footprint (as shown by RSS in /usr/bin/top) of about 50-7

Re: Tomcat on Linux (Mandrake)

2002-05-27 Thread David Crooke
Unix processes don't in general start new windows unless designed to - you can do "xterm -e &" if you want to have stdout / stderr in another window, but most people prefer to background appservers and capture output to a log file. Ian Verga wrote: >Has anyone used Tomcat on linux environmen

Re: Does Apache worth it?

2001-07-01 Thread David Crooke
The built in webserver in a Java appserver is really only suitable for testing with - if you are serving more than a few thousand pages per day, or doing anything remotely serious for production use, or your server is on the internet, you should use a "real" webserver in front of Tomcat, and Apach

Sinking X11 from AWT - Re: AW: servlet error..

2001-06-03 Thread David Crooke
This is a well known bug in AWT / Swing. An alternative to changing the Java library is to use something to sink that errant X11 connection - we use Xvnc for this purpose. Check back post by me on this list or jserv-user for details. http://www.uk.research.att.com/vnc/ Krishna Kishore Thotakur

Re: URL encoding and ';' rather than '?'

2001-06-03 Thread David Crooke
The semicolon approach is what most of the "proper" commercial appservers run (Dynamo, Websphere, etc.) and is superior in many ways - since this is not a significant part of the URL per the HTTP standard, the browser will ignore it as part of the servlet name. This allows you to "pre-rewrite" bas

Re: JAVA vs. PERL startup time + memory

2001-05-05 Thread David Crooke
It's perfectly easy to write code which runs as a process to read a continuous pipe, or to write it to be invoked fresh every time. No special knowledge is needed in either case (the former in Perl boils down to "while ()") I think you'll get better advice if you post more details about what you'

Re: Tomcat, IIS and virtual hosts

2001-05-02 Thread David Crooke
Apache is a much better solution for virtual hosts than IIS Brian Murray wrote: > > >Can someone send me an example of how to configure Tomcat to work with > >virtual hosts? > > Hi Mr. Lebowitz. I've been after the same thing. Unfortunately the score sits at >Requests 2, > Responses 0. If y

Re: how to send automatic emails from tomcat

2001-04-25 Thread David Crooke
anand wrote: > Can you suggest me some website where I can find some information/code > for sending mail from java using SMTP. http://java.sun.com/ - there is a standard API called javax.mail It handles MIME and all that clever stuff; however it takes a bit of code: on Unix, it may well be easi

Re: How do I map www.blah.com to a servlet?

2001-04-23 Thread David Crooke
Assuming you just want to "hide" the servlet, mod_rewrite may be what you're looking for, but it could require a bit of work to maintain the facade in the JSP. A popular but inelegant option is to make index.html a static HTML file which throws up a frame, thus obfuscating the URL from the browse

HA and failover - Re: saving session attributes across server machines

2001-04-15 Thread David Crooke
We are using a strategy where the information in the Java VM (session and site-wide) is a read cache of what is in a relational database; any update is persisted immediately, and there is a cache invalidation mechanism between appservers. Since like most web apps we have a high read to write ratio

Re: session timeout

2001-04-12 Thread David Crooke
Attach your own object to the HttpSession, and put a destructor on it - use this to detect the session has finished. Don't rely on doing complex stuff like I/O in a destructor, instead pass the list of files to delete into a queue handled by a background thread.

META: Does anyone here have access to fix the AutoFAQ?

2001-04-12 Thread David Crooke
I think it would be worth the investment of someone's time to make this work - there are a number of questions which come up at least once a week. I will volunteer help in whatever limited capacity I can. My two favourite FAQs, being a Linux person: Q. Why won't Java / JServ / Tomcat run on Re

Re: to many tomcat processes!! AAH!!

2001-04-12 Thread David Crooke
This is how Linux shows kernel threads; nothing to be alarmed about. There is only one process. "Brendon M. Maragia" wrote: Dear Readers, I finally!!! Got Jakarta Tomcat vhosting with Cocoon and it was so so beautiful and sweet, I jumped around the room screaming in joy.Don't try an tell

Re: Serving with Virtual Hosts w/o a Context Name - ?

2001-04-12 Thread David Crooke
x and all the virtual hosts... The FAQ-O-Matic answer is to put in a redirect. That works fine, just seems less elegant. Any ideas? Hunter --  David Crooke, Chief Technology Officer Convio Inc. - the online partner for nonprofits 4801 Plaza on the Lake, Suite 1500, Austin TX 78746 Tel: (512) 652 2600 - Fax: (512) 652 2699  

Re: Servlet -- SingleThreadModel

2001-04-12 Thread David Crooke
SingleThreadModel{   private PrintWriter out;   private OracleConnectionCacheImpl pool;   private Connection conn;   private Statement stmt;   ..etc...   __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ --  D

Re: aaargh!

2001-04-11 Thread David Crooke
Horses for courses.. Win98 is designed to run games and Microsoft Office; it's not a webserver platform. Yes, it's possible to build a Unix-like development environment, but it will take work. Most Unix-esque open source stuff can be made to run on some versions of Windows, but it can take wo

Re: Cookies with same name but different domains

2001-04-10 Thread David Crooke
Any cookie belongs to a particular server (domain name) - the most general that a domain spec is allowed to be is *.foo.com i.e. with a specified TLD and second level domain. The path can be anything, i.e. as general as "/" The browser will send back all cookies which match, most specific first.

Re: The Joy of File : New Window

2001-04-10 Thread David Crooke
The way we have dealt with this (servlets, not EJB) is to add a path extension to our URL's, c.f. http://www.mysite.org/zone/servletname/123456789?foo=bar&bash=wibble This path extension (the 9 digit pseudo-random number) is picked up by our common platform code, and maps back to an entry in a h

Re: Tomcat3.2+Redhat 7.0+glibc-2.x.x+jdk1.x == stable??

2001-04-07 Thread David Crooke
The glibc that RH7 shipped with was beta and very broken - you need to apply their patch set. Red Hat rushed their 7.0 release, breaking their convention (major version = new Linux kernel) and a lot of stuff besides. Most of the new stuff in it is GUI related, and as such you may be better stick

Re: Compiling mod_webapp.c

2001-03-29 Thread David Crooke
RH7 shipped with a broken Glibc, have you patched it?

Re: Using Apache/Tomcat in high-traffic site

2001-03-28 Thread David Crooke
[EMAIL PROTECTED] wrote: Hi,   Hi, how's life back over that side of the pond? (I'm from Edinburgh myself)   I am looking to use Apache and Tomcat in my company's production web site. Before I can convince management that this is a good idea I need some information so I am confident.  If anyone c

Re: load balancing not working...

2001-03-28 Thread David Crooke
Do you have the jserv_shm file configured? This is a block of shared memory that the apache httpd processes use to communicate about the state of the Java VM's. When the request comes in from the browser, it will have the cookie / URL rewriting session id which will tell it which VM to send the r

Re: Apache - Tomcat as SSL-Environment. Any suggestions ?

2001-03-26 Thread David Crooke
Irma Tröger wrote: > Hi, > > we are currently planning a setup for a new application and decided to use > Apache as Web Server and Tomcat as JSP/Servlet Engine. > > This is -so far- a pretty common way I guess. We now think about the > environment to build up, because it has to be an application

Re: How can i create a login application

2001-03-26 Thread David Crooke
Caution: If you do this by using a redirect and relying on the referrer header passed by the browser, you aren't really creating security. What you want to do is set a flag in the Java session on the server side, and have all subsequent JSP's / servlets check it. Paul Kofon wrote: > HI, > I'm s

Re: Session tracking not working - POSTing FORMs

2001-03-24 Thread David Crooke
David Crooke wrote: > Use an encoded URL for the ACTION parameter of the FORM tag. Side note - with JServ this works for POSTed forms, but wouldn't work with forms using the GET method, since JServ used a querystring argument for its rewriting > > > David Wall wrote: > &

Re: Session tracking not working - POSTing FORMs

2001-03-23 Thread David Crooke
Use an encoded URL for the ACTION parameter of the FORM tag. David Wall wrote: > > The most likely explanation is that you are using instance variables in > > your servlets, instead of local variables, to represent the information > > for a particular request. These variables are shared across

Re: Running Tomcat on port 80 under non root?

2001-03-19 Thread David Crooke
For any serious application, you should use Apache in front of Tomcat, and it has this capability built in. Alec Bau wrote: > On Solaris 2.7 we need Tomcat process to use port 80 but to run under id other > than root. Is there a trick or conf option to do this, i.e. grab port 80 under > root and

Re: Plese, could you comment on this.. Hanging Tomcat (Standlone) - problem and solution

2001-03-18 Thread David Crooke
We are running Apache 1.3.14 on FreeBSD 4.0, back ending on JServ 1.1b3 on the Sun 1.2.2 JVM on Linux 2.2.12 (RH 6.1) - multiple appservers, multiple VM's per, etc. I can tell you that this configuration is stable and resilient under large loads; we have tested it to destruction, and it degrades

Offtopic: Re: RFI: Best Practice For Shopping Cart

2001-03-15 Thread David Crooke
Well, it's easier just to use the servlet session tracking - you can ensure the session carries from your insecure to SSL server by using the same DNS name for both. As to using a DB, this is unnecessary if you use the same Tomcat instance(s) for both - just build the cart as a Java data structur

Re: request.sendRedirect()

2001-03-08 Thread David Crooke
etContextPath() + "ReallyATest"); Thanks, Paolo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] --  David Crooke, Chief Technology Officer Convio Inc. - the online partner for non

Re: AW: Apache Core Dump - Please Help

2001-03-06 Thread David Crooke
Did you try compiling it into Apache statically instead of as a DSO (not even sure if this is possible, I never tried)? Hiendl Elke wrote: > Hey, you are absolutely right! > I did the whole stuff on LINUX several times and it works great. Regrettably > this setup was chosen against my advice. N

Re: Apache Core Dump - Please Help

2001-03-06 Thread David Crooke
Hiendl Elke wrote: > Hi everybody, > > I have a really weird problem: > my setup is Solaris8 /Intel > Apache 1.3.14 > mod_ssl 2.7.1 with openssl 0.9.6 > JDK1.3 > Tomcat 3.2.1 > Solaris on

Re: IBM JDK 1.3 unexpected crash

2001-03-05 Thread David Crooke
Interesting - we are currently running Sun's 1.2.2 VM and evaluating IBM 1.3 - performance is pretty good, and so far no issues with the VM (Linux though, not Windows). Are you using a single VM with native threads, or just green? Conventional wisdom use to be that green threads was the way to go

Re: saving a file on client's machine using servlets

2001-03-05 Thread David Crooke
Sounds like a case for JavaScript, or possibly an applet. Pushing to the server and back is kinda clonky. If you just want them to create a file and save to disk, why not have them crank up a local text editor? "Burgess, Jay" wrote:   I believe one solution is to POST the form data from the text

Re: I'm New User - Tomcat HTTPS Help expecting

2001-03-05 Thread David Crooke
SSL is entirely orthogonal to Tomcat - just put the tomcat directives in your SSL virtual host and use https URLs - look at http://www.modssl.org/ for SSL info - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

Re: can not run tomcat on redhat7.0

2001-03-05 Thread David Crooke
(offtopic) I have answered this half a dozen times already - can someone please, please fix the AutoFAQ, and the broken link to it at http://java.apache.org/faq RH7 ships with a buggy glibc, download and install the patch Rick Yu wrote: > Hi, >I've used jdk1.2.2 and tomcat on redhat6.2 bef

Re: newbie servlet deploy question

2001-03-01 Thread David Crooke
mod_rewrite is your friend - it's a steep learning curve but worth it Milt Epstein wrote: > On Thu, 1 Mar 2001, Jason Novotny wrote: > > > I would like to be able to access a servlet with the URL > > http://localhost:8080/demo > > > > However, it only works if I go to > > http://localhost:8080/d

Re: Too many open files with Tomcat-3.2.1 under Solaris

2001-03-01 Thread David Crooke
netstat is a useful tool for tracing this - I'll bet you'll see a whole batch of connections stacking up on your internal port between Apache and Tomcat Are you doing a close() on the PrintWriters going out from the appserver? If not, the JVM may be too slow at closing them behind you. Zsolt Kop

Re: ask a don't exists page and show other

2001-03-01 Thread David Crooke
RedirectMatch 301 (.*)\.asp$ $1.jsp Carlos wrote: > i have my pages from asp to jsp > the problem is that there are users that asks asp pages. > there is any way for make this: > if my browser asks a *.asp page forward (show) the index.jsp page? > how? > thanks > Carlos > > -