Re: Is there a mechanism to control the HTTP header order?

2004-09-08 Thread Denis Haskin
And you should tell the vendor of the COTS search engine that they're not following the HTTP spec: http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 The order in which header fields with differing field names are received is not significant. dwh Tim Funk wrote: Nope. -Tim Sean

Re: OT: Eclipse users list/mail group

2004-07-27 Thread Denis Haskin
When you find it please tell the rest of us! It's unclear to me which of the lists is a general-user list... they seem to be very specific. Thanks, dwh Sternbergh, Cornell wrote: Hi First, my apologies for being off-topic. I've been searching eclipse.org for list/forum/group/whatever, for

Re: Repeat: Can Tomcat be used with non-webapps?

2004-06-14 Thread Denis Haskin
Maybe I'm just being really dense, but why might you want to do this? Wouldn't it make more sense to use one of the other (non-webapp-specific) containers? dwh Chris Collins wrote: Hi, guys, I am trying to use tomcat as a container for my program which is not a web-application.

Re: Yoav --RE: TC 5 production use

2004-04-09 Thread Denis Haskin
Also keep in mind that Apache isn't the *only* thing you can put in front of Tomcat. grin While we do have Apache in the mix (for some legacy apps), we also run Squid [1] in reverse-proxy mode in front of *that* to (a) reduce response time on cachable content and (b) remove some of the load

Re: httpd trace and tomcat

2004-04-08 Thread Denis Haskin
A google search on tomcat http trace came up with a slew of pages about this... Did you try that? dwh Sankaranarayanan (Ganesh) Ganapathy wrote: Hi All, It was brought to my attention that tomcat by default runs httpd trace and that it is a potential security hole. I don't understand what

Re: [OT] The Way Java Handles Date

2004-04-02 Thread Denis Haskin
Why does Sun need to do it? Anyone could do it. Seems like it could be a candidate for Jakarta Commons... or is it too trivial? http://jakarta.apache.org/commons/ dwh Yansheng Lin wrote: As I said, this is a faq. There is already tutorials on Sun's Website. But the way it works now is

Re: Tomcat 5 vs. Resin?

2004-04-02 Thread Denis Haskin
...a great reputation for being small, fast, and easy to configure And here I thought you were talking about Jetty... grin dwh p.s. I haven't actually used Jetty, but have have heard good things about it and have been meaning to. Josh Rehman wrote: Has anyone compared Tomcat 5 and Resin?

Re: -verbose:gc

2004-01-22 Thread Denis Haskin
See http://java.sun.com/docs/hotspot/gc1.4.2/index.html#2.2. Measurement|outline dwh Derek Mahar wrote: Would someone please decipher the following line in $CATALINA_HOME/logs/catalina.out? [GC 28827K-22937K(64896K), 0.0062130 secs]

Re: OpenSource / Free Profilers to use with Tomcat

2004-01-12 Thread Denis Haskin
I used IBM alphaworks' jinsight (http://www.alphaworks.ibm.com/tech/jinsight) several years ago to do some profiling of a Tomcat-hosted application. YMMV. dwh Allistair Crossley wrote: Hi Guys, I hope you dont mind me asking if there are any free/opensource profilers out there that are

Re: tomcat jitters, then hangs - please help

2003-10-01 Thread Denis Haskin
I would also get a thread dump from the JVM. dwh Arthur Veinstein wrote: Hi Noam, Sounds like you have some problem with the DB connection. Can you provide the server.xml configuration ? - To unsubscribe, e-mail: [EMAIL

Re: Newbie: Java Mail Problem

2002-12-28 Thread Denis Haskin
From the error, looks like it's still trying to connect to an smtp server at localhost. Did you restart Tomcat after changing mail.smtp.host? dwh David Diskin wrote: I've just set up Tomcat 4.1.18 on my Windows XP Home PC. I installed it as a service. I have no problem connecting to the

Re: Beginner

2002-12-11 Thread Denis Haskin
What happens when the examples do not work? Do you get an error message? What is it? dwh eduardofcomelo wrote: I have installed the Tomcat but the examples aren't working very well. Example the numberguess do not work. All the examples are out of work ! -- To unsubscribe, e-mail:

Re: Thread dump

2002-12-06 Thread Denis Haskin
Run it under a JPDA debugger and use something like - Xrunjdwp:transport=dt_shmem,server=y,suspend=y so that the JVM stops and waits for debugger commands right away. Then you could get to the right point in your code, and with any decent debugger look at the thread dump without needing to send

Re: DB2/servlet error....Help need please

2002-08-02 Thread Denis Haskin
Can you run the same code outside of a servlet context? If so then it sounds like classpath problems. If not, can you re-install DB2? Sounds like your installation might be bad or you might be missing some components. dwh [EMAIL PROTECTED] wrote: (Thu Aug 01 15:52:50 2002) pid= 2192

Re: DB2/servlet error....Help need please

2002-08-02 Thread Denis Haskin
Not clear what your response to my first question was: does db2 connectivity work from code that is executed *outside* of a servlet context, that is, from the command line? I would make sure that works first. dwh [EMAIL PROTECTED] wrote: Hello Denis Thanks for your suggestions... I

Re: DB2/servlet error....Help need please

2002-08-02 Thread Denis Haskin
Then it is most likely a classpath problem. You need to make sure the db2 jars are on the classpath for Tomcat. Looks like you're on NT or Win2K, not sure which version of Tomcat... I think your best bet is to modify tomcat.bat and just add all the db2 jars to the classpath there.

Re: localhost vs IP address in the URL

2002-07-24 Thread Denis Haskin
I'm not a networking guru, (and this is sort of OT for Tomcat) but I'm not convinced by M.Schwartz's response that this is due solely to DNS name resolution. I don't think that would account for such a big difference in time--once the name was resolved to the IP address, behavior should be the

Re: version question

2002-07-22 Thread Denis Haskin
Sounds premature to blame Tomcat (or that version) for this. I can think of a lot of questions I would want to have answered before I assumed it was a problem specific to 3.3: - does this happen when you run against Tomcat standalone, or only when running through Apache? mod_jk can be a

Re: good profiler software for Java apps ??

2002-06-20 Thread Denis Haskin
I agree with Chris' recommendations for testing automation. For profiling, I've had best luck with the IBM alphaworks jinsight: http://www.alphaworks.ibm.com/tech/jinsight. Not quite as easy to use as commercial products, but a good bargain for the money... dwh Chris Bailey wrote: Check

Re: Auto Start Tomcat

2002-06-11 Thread Denis Haskin
This is a Linux question, not Tomcat-specific. Try google and search on linux startup scripts. Looks like Linux (which I don't know) is like Solaris (which I sorta know) in that you probably want to link your Tomcat startup scripts into /etc/rc3.d with the right names. You don't want cron

Re: ***Please reply as no one on this list has offered ANY help***

2002-05-21 Thread Denis Haskin
Without digging in too deeply, is it possible your problem is the cloning of the 'meet' Hashtable in connectUser? Remember that cloning a Hashtable (and other Collection/Dictionary objects) is a shallow clone. Only the table itself is cloned, not the objects pointed to by the table. I'm not

Re: Integrating Tomcat with Apache on NT

2001-11-26 Thread Denis Haskin
Alan Scott wrote: Not to ask a dumb question. It's only a dumb in that, as far as I can tell, you haven't bothered to try and find any of this information first. How do I integrate both these products on NT? I assume there are some settings I need to apply to one or the other. Is there a

Re: How To Unload A TomCat Servlet To Reload A New Instance?

2001-11-20 Thread Denis Haskin
Gary Fix wrote: Now my question is, once I have loaded a Tomcat servlet, is there a way to unload it to get an updated version loaded, without having to shutdown the entire Tomcat? Yes, see the documentation for server.xml:

Re: Tomcat dies with Signal 11

2001-11-20 Thread Denis Haskin
Daren Desjardins wrote: We are running our webapp on Tomcat 3.2.2 and have been experiencing a Signal 11 Stack Overflow error occasionaly. It occured on two machines [...] Server Specs: - JVM Params: -server -XX:NewSize=128m -XX:MaxNewSize=512m -Xms512m -Xmx1792m

Re: AW: Java program interferring with Tomcat

2001-11-19 Thread Denis Haskin
Ralph Einfeldt wrote: Sounds like a deadlock on the database. To verify that have a look at the server manager to see if there are locks. I agree with Ralph, that the problem is probably in your SQL access. Do *both* processes hang (e.g. Tomcat the scheduled job) or only Tomcat? I would

Re: AW: Java program interferring with Tomcat

2001-11-19 Thread Denis Haskin
David Frankson wrote: Only Tomcat hangs, the other program continues on. I thought a database deadlock only happens when both threads are trying to write and holding a lock on each other's data? The external java process is read-only. Hmm. That's why I asked. Sounds like maybe the db

Re: Including Tomcat in stand-alone app

2001-11-19 Thread Denis Haskin
Simon McClenahan wrote: From what I understand it is possible to run the Tomcat servlet implementation without running a web server like Apache httpd. I am writing an application that receives SOAP messages via HTTP, and I would like to use the servlet API, but not run anything as

Re: Fail to bring up Tomcat 3.3 for windows 2000

2001-11-15 Thread Denis Haskin
Ai Zhang wrote: I follow your suggestion, here is the error I get. Do you have any idea about this error? D:\Web\Tomcat\jakarta-tomcat-3.3\bintomcat run Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/sta rtup/Main Try setting your default to

Re: The Problem Posted Again....

2001-09-07 Thread Denis Haskin
Ron Nicoletti Jr. wrote: I've completed my installation of jakarta-tomcat-3.2.3 on windows 2000 running IIS, and ISA Server. The positives ... Tomcat starts and creates log files IIS is showing a green up arrow on isapi_redirect.dll The Negatives ... When I run a test on the link

Re: How to declare Output as Image?

2001-09-07 Thread Denis Haskin
Andrej Rosenheinrich wrote: Hello, i have a servlet, getting an BufferedImage, that shall be displayed in my webpage. for doing this I use the following code: ServletOutputStream sos = response.getOutputStream(); JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(sos);

Re: using a central repository for servlets

2001-09-06 Thread Denis Haskin
Joao Carlos wrote: I simply want to migrate to tomcat using this kind of configuration. Many servlets have links to others servlets (written in code) using /servlets/any_servlet, so that's impossible to me to create a context and access the servlets using /context/servlet Is there

Re: Multiple Tomcat Instances

2001-09-06 Thread Denis Haskin
Abhijat Thakur wrote: I need to run multiple instances of Tomcat on Apache. As mentioned in documentation i have the two server.xml files specifying two different ports. Tomcat starts fine with the two server.xml files. I might be wrong when it comes to changes in Apache configuration that

Re: optimal SUN JVM config

2001-09-06 Thread Denis Haskin
[EMAIL PROTECTED] wrote: I know this question is a bit general. but I am very interested in which Sun Hotspot jvm options you are using to start up tomcat. (like -server -Xincgc ...) And what impact they had/have on performance. I am trying to tune garbage collection and

Re: does tomcat have the cajones?

2001-09-06 Thread Denis Haskin
alex reuter wrote: Hello Everyone, I have a general question about tomcat's cajones. Er... I think you mean cojones. A cajon is a kind of percussion instrument. But we know what you mean grin... Okay, back on topic.

Re: No one answering my question (security realted problem)

2001-09-05 Thread Denis Haskin
Sukhwinder Singh wrote: Hello, I have downloaded tomcat version 3.2.3 source code and compiled it on my windows 95 machine with Sun JDk 1.3.1. I also had to download JSSE because there was no option to compile without ssl support. ... Is there any option to compile tomcat without ssl

Re: Tomcat Shirts?

2001-08-24 Thread Denis Haskin
Well, if someone has a logo, someone could set up a store at www.cafepress.com and sell lots of stuff with Tomcat on it. Either no profit (sure, cafepress gets some) or I suppose some small money back to Apache. Does the Apache Foundation have a policy on this? Anyway, see

[OT] Re: Tomcat Shirts?

2001-08-24 Thread Denis Haskin
Fine, be a technology bigot grin. There's a couple of other web sites that offer similar services. I just happen to know about cafepress. dwh James, Stuart wrote: .aspx, sound's like a Mickey mouse website.

Re: I do not want to use 'webapps'

2001-08-24 Thread Denis Haskin
Yup, just set up a new context in server.xml: Context path=/mysandbox docBase=C:/Sandbox/development /Context Which can then be accessed with the url http://localhost:8080/mysandbox (using the standalone http connector). Note the use of forward slashes, not

Re: Netbeans to Tomcat

2001-08-24 Thread Denis Haskin
Uh... none? Seriously, I do all my servlet development in Netbeans and test deploy on Tomcat. Since we're not in serious deployment yet I don't bother with packaging classes up into jars and all that. On my Win2k box, my servlet environment is set up thusly (extraneous stuff omitted):

Re: Free hosting of Servlet/Jsp ?

2001-08-22 Thread Denis Haskin
A couple of sites are listed at http://directory.google.com/Top/Computers/Programming/Languages/Java/Server-Side/Servlets/Hosting/Free/ (although at least one is a free-for-2-months only...) dwh From: Sheila Ratnam [EMAIL PROTECTED] Hi all, Is there a free-hosting site where I can put

Re: Q: How to use mod_rewrite with mod_jk?

2001-08-21 Thread Denis Haskin
It does appear that you have everything set up properly. I'm unable to duplicate the behavior you're seeing, but the environment I have to test it is Solaris, Apache 1.3.19, Tomcat 3.2.1. I wonder if it's a bug just with directory listing? Can you get to servlets or JSP pages via the rewrite

Re: how to automatically load the servlet

2001-08-21 Thread Denis Haskin
1) Read the FAQ: http://jakarta.apache.org/site/faqs.html 2) Where you will discover: http://jakarta.apache.org:8080/jyve-faq/Turbine/screen/DisplayQuestionAnswer/action/SetAll/project_id/2/faq_id/12/topic_id/43/question_id/230 dwh Rajesh wrote: Hi, How to load the servlet when

Re: How do I make Tomcat include needed jars for my servlet?

2001-08-21 Thread Denis Haskin
For Tomcat 3.2.x, just modify your tomcat.bat file to set up the classpath as you need it. I assume something similar can be done for TC4. dwh Ju Yan Jery Qin wrote: Hi all, I have read this topics but it still can not resolve my problem. Your suggestion is to copy application related

Re: Tomcat on Windows vs. Unix

2001-08-20 Thread Denis Haskin
Ditto. Development is on Win 2000, deployment on Solaris. No issues. dwh Jim Urban wrote: We do all our application (servlets only) development on Win (NT) and have deployed to Win 2K, Solaris and AIX. We have used Oracle, MS-SQL and MySQL for databases. We have had no problems with this

Re: Q: How to use mod_rewrite with mod_jk?

2001-08-20 Thread Denis Haskin
Hmm. Works fine for us (Tomcat 3.2.x, Apache 1.3.19, Solaris, jdk 1.3.1). Given that you're tried the ordering of the AddModule lines (don't know if LoadModule needs to be in order too--wouldn't think so) and you have the PT flag, I guess I would recommend turning mod_rewrite logging up to

Re: URL mapping: /appname/stuff/login.jsp -- /appname/login.jsp ?

2001-08-20 Thread Denis Haskin
You're 'locked in' to the structure you describe only if you use the default webapp context. Instead, create your own context(s). Create a new context in $TOMCAT_HOME/conf/server.xml: Context path=/Appname docBase=/usr/appname ...other attributes

Re: REMOTE_HOST not showing up in Tomcat3.2

2001-08-17 Thread Denis Haskin
It's a known bug. See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=208. dwh -Original Message- From: Mark Diggory [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 5:06 PM To: [EMAIL PROTECTED] Subject: Fwd: REMOTE_HOST not showing up in Tomcat3.2 Hello, Is there

Re: Version

2001-08-16 Thread Denis Haskin
$10K? Geez, I'm in the wrong business... Someone may have a better way to check the Tomcat version, but for my version at least (3.2.1) the quickest way seems to be to look in the docs/readme file under the Tomcat home directory. Right at the top it says the version. None of the startup

Re: Version

2001-08-16 Thread Denis Haskin
Back to what I said earlier... since you found the Tomcat home directory, look in the doc subdirectory for the readme file. That has the Tomcat version in it. Or at least mine does... Barnabas Yohannes wrote: Rob, Obviously, you and I need to learn a little more before we can open our own

Re: Version

2001-08-16 Thread Denis Haskin
Marc Saegesser wrote: You can always use telnet to open up a connection to the server and do a GET / command. The HTTP response will contain the Tomcat version number. [...] Feel free to send me $10,000 anytime you like. I agree. I think Marc gets the $10K. :-) Telnetting in is the most

Re: Internal Server Error on first couple requests

2001-08-16 Thread Denis Haskin
What exactly do you mean by 'startup'? If you're using ajp, you must start Apache and Tomcat together, because of the persistent connections. That is, if you shut down Tomcat, you have to shut down Apache also, and vice-versa. This is documented... Or do you mean to say that when you start

Re: Internal Server Error on first couple requests

2001-08-16 Thread Denis Haskin
You're right, it looks like that's only true for ajp13 and only with Tomcats prior to 3.3. See http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html#s10, 4th item. dwh Dmitri Colebatch wrote: is this true? where is it documented - I've never had to restart apache when

Re: Jakarta crashes after 900+ simultaneous connection

2001-08-10 Thread Denis Haskin
I would definitely upgrade your JVM to the most current version (I'm at 1.3.1-b24, but that's on Solaris and Win2k). I had segment violation crashes related to networking in earlier Java 2 versions, although I don't know that they were exactly this problem. I don't know much about Linux but

Re: [MOD_REWRITE] Why...

2001-08-09 Thread Denis Haskin
We found that we had to do 2 things: 1) Make sure that mod_jk was loaded into Apache *before* mod_rewrite, which meant moving the loading of mod_jk from mod_jk.conf to Apache's httpd.conf, and we listed it in the LoadModule and AddModule lists *before* mod_rewrite. That ensured that

Re: Problem in Intigration Apache Tomcat

2001-08-09 Thread Denis Haskin
Chill out, Pier. I suspect the initial poster was not a native English speaker, so the lack of politeness was accidental, I think... That being said, I agree that there's a huge number of people who post to this list (and many other lists, unfortunately) who seem to turn to NGs and mailing

Re: [MOD_REWRITE] Why...

2001-08-09 Thread Denis Haskin
Uh... the solution is the 2 items in my response (load mod_jk before mod_rewrite, put [PT] on RewriteRules). dwh Loïc Lefèvre wrote: Indeed, phew I finally found someone with the same hemm...problem ;) Did you find a solution? Did you try to patch Tomcat? ;)

Re: Configure to use mod_jk

2001-08-09 Thread Denis Haskin
Tomcat-apache.conf is not used when you're using the jk connectors. Use mod_jk.conf instead (if mod_jk.conf is not there, look for mod_jk.conf-auto as a starting point). dwh Mike Givens wrote: How do I get the tomcat-apache.conf file to load the mod_jk module instead of the mod_jserv

Re: Using Servlet in different path then /examples/servlets/

2001-08-08 Thread Denis Haskin
Yuval wrote: How can I run servlet on my web server on different path than /examples/servlets/ I tried to define: Context path=/ docBase=C:/InetPub/wwwroot crossContext=false debug=0 reloadable=true /Context and its not working. In what way is it not working? What are you

Re: Where are the topic archives (TOMCAT 4 b6)

2001-08-03 Thread Denis Haskin
See http://jakarta.apache.org/site/mail2.html for links to archives. Note that I find this one the easiest to use: http://marc.theaimsgroup.com/ , poor color choices notwithstanding. dwh Curtis Dougherty wrote: I'm looking for the discussion archives - particularly TOMCAT 4 b6 topics...

ADD_SSL_INFO in mod_jk.c, and ajp13 performance in general.

2001-07-27 Thread Denis Haskin
Perhaps this is a better question for tomcat-dev, but in mod_jk.c there's a comment that says: /* * If you are not using SSL, comment out the following * line. It will make apache run faster. */ #define ADD_SSL_INFO I can find no reference to ADD_SSL_INFO to any other Tomcat or Apache

Re: Setting UNIX Environment Variables

2001-01-29 Thread Denis Haskin
"O'Daniel, Chris" wrote: I need some UNIX environment variables to be available to my servlets. Using JServ I can add the following lines to the the jserv.properties file: [...] I need to provide the same environment to my servlets running in Tomcat. Does anyone have any suggestions?

Re: File Deletion----not working

2001-01-19 Thread Denis Haskin
Gee... where do I start? Does the username this is running under have the proper access to the file and to the direcory it's in? What OS is this? What's the result of f.canRead() or f.canWrite()? What about results of those calls for the parent directory? What does f.delete() return (does it

Are there any Tomcat mirror sites?

2001-01-19 Thread Denis Haskin
I'm getting horrendously bad response time from tomcat.apache.org today and am trying to download some packages--the downloads keep failing. None of the tomcat files appear to be part of the regular Apache mirrors. Are there any mirrors out there that have the (current) Tomcat files,

Re: Are there any Tomcat mirror sites?

2001-01-19 Thread Denis Haskin
Denis Haskin wrote: I'm getting horrendously bad response time from tomcat.apache.org today and am trying to download some packages--the downloads keep failing. Whoops... that should have been "jakarta.apache.org"... FW

Re: Why the servlet still alive?

2001-01-19 Thread Denis Haskin
Henry DU wrote: I removed the servlet from the directory and removed the servlet mapping from web.xml file, however the servlet was still alive. What is the problem? Restart tomcat. - To unsubscribe, e-mail: [EMAIL

Re: Hi

2001-01-09 Thread Denis Haskin
Sudhir wrote: Why request.getPathInfo() is giving null . Is there any settings to be done to get the pathInfo Well, it's probably returning null because the URI for the request doesn't include any path info. See the servlet spec, pages 28 29 (section 5.4, "Request Path Elements"). dwh