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 Cooper wrote:
I have an application that I am test crawling with a COTS search
engine.  It runs fine in an embedded version of Tomcat where the
header order is
http/1.0 200 OK, Content-Type, Connection:close, Date, Server,
Last-Modified, but the header order for the stand-alone Tomcat
installation in Windows came out as http/1.0 ok, Last-Modified,
Content-Type, Date, Server,
Connection:close.  Which is causing a problem with the COTS search 
product.

Is there any mechanism to control the order that Tomcat displays the
HTTP headers in?  I need to ensure that the Last-Modified header
appears after the Date header.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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
simple users of Eclipse, not developers, without success.
Anybody know such a source?
TIA
Cornell
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 on Tomcat.

It did mean we had to be pretty careful about our HTTP cache-control 
headers, but it's been a nice solution.

dwh

[1] http://www.squid-cache.org/

Shapira, Yoav wrote:

This is a good example of something that hits on Apache's strong points:
perl, mod_php, rewriting.  So it's probably good for you to use Apache.
But many people on this list come here because they work with servlets
and JSPs, and maybe some static content.  In many of those cases, Apache
is not needed.  And in no case should it be added without careful
thought and consideration, as it's a significant architecture piece.
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 httpd
trace is - can somebody explain? 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 kind of counter-intuitive.  That's the problem to new user.
Wouldn't it be nicer if Sun came up with an Wrapper interface that allows the
user create a Date object with different arguments?   
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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?

Resin has a huge drawback of being closed-source, but it has a great 
reputation for being small, fast, and easy to configure. Tomcat is 
working for us, but has been something of a bear WRT learning curves 
and gotchas, so I'm interested in learning more about the alternatives.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 quite good and offer the same type of features as JProfiler et al that I can use to profile tomcat 5?
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 Tomcat 
main web page.  I reconfigured conf/server.xml and changed to value of 
mail.smtp.host to smtp.verizon.net, my  isp mail server.  However, 
when I go to run the jsp send mail example, I get the following 
exception.  Can anyone help on  this?
==
ENCOUNTERED EXCEPTION: javax.mail.SendFailedException: Sending failed; 
nested exception is: javax.mail.MessagingException: Could not connect 
to SMTP host: localhost, port: 25; nested exception is: 
java.net.ConnectException: Connection refused: connect



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 the signal.

By the way, what exactly do you mean by right from the moment tomcat 
starts up?  Do you mean before the tomcat's main() starts?  Before your 
servlet is loaded?

dwh

[EMAIL PROTECTED] wrote:

You could use Thread.enumerate(Thread [] ) and then do a Thread.dumpStack()
on each thread in your code. I can't provide any definite answers on how to
get a thread dump right from the moment Tomcat starts, but I suppose you
could modify Tomcat code (call the about the methods in your code) to do
this.
 




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 jdbcFSQLConnect(): The levels of
 db2java.zip ((null)) and db2jd (n010415) do not match, einfo= -111 (client
 IP = 10.3.13.34)

 Now, I can make out that there is mis-match between db2java.zip and db2jd
 levels...
 But I don't know how to correct it...


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 tried reinstalling DB2 but the same problem is coming...
 If you look here it asks for someFixPack 2 or later. [...]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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.  (Someone please feel free to jump in with a more correct way to do this... and 
I think
the recommended way changed from Tomcat 3 to 4?  This has always confused me...)

dwh


[EMAIL PROTECTED] wrote:

 Sorry Dennis to skip answering the first part...
 well yes DB2 connectivity works fine outside the servlet context...

 If I run a simple JAVA file to perform DB2 database data retrieval, it
 works fine.
 Its only with servlet it is not working...


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 same,
no?

Saravanan, you say there's a 20x difference but what's the magnitude?  Are we
talking 10 ms vs. 200 ms. or 1 second vs 20 seconds?  By IP address do you mean
127.0.0.1 or the IP address of the computer?

My pet theory is that the TCP/IP stack is recognizing the IP address as being of
the local box and is shortcutting packets from transmit queues to receive
queues in memory, without actually getting the NIC involved or anything.  Or
maybe the NIC is doing this.

Many years ago when I did hardware testing, we first ran into TCP/IP stacks that
had this optimization.

The other thought is that for some reason different maximum packet sizes are
being used with these different connections?

Of course, this is just a theory.  Someone with a little more knowledge might be
able to speak more authoritatively grin.

dwh


Saravanan Bellan wrote:

 Windows 2000
 Tomcat 3.2.3

 If I try to upload a file using the regular HTML/HTTP, there is a 20x
 difference in performance
 between using localhost vs the IP address in the Web Server URL. Ofcourse
 I'm running the browser
 on the same machine where tomcat is installed. Using localhost is 20 times
 slower than using IP address.

 Doesnt make a difference if I use Apache/AJP/Tomcat or Direct to Tomcat web
 server.

 Can somebody throw some light on this.

 Thanks,

 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 pain in the ^%^%, but in my experience it has 
always either completely worked or completely not worked.
- what do you mean by can't keep app running.  Does the JVM exit?  If not, what's 
the behavior?  Error responses?  Hung responses?
- if responses are hanging, I would get a thread dump and expect to see one or more 
threads deadlocked.
- does it happen in a single-client test, or only when multiple clients are accessing 
(again, that would indicate a threading problem)
- is this something that worked satisfactorily with earlier versions of infrastructure 
and is only now breaking?  Or is this new development?

dwh


Ed Tybursky wrote:

 I am having major downtime issues currently our environment is this:

 Apache 1.3.20 + mod_jk
 Tomcat 3.3

 I cant seem to keep an application running for any matter of time. Nothing is ever 
reflected in the logs and logging is set to DEBUG. Is tomcat 3.3 just a total piece 
of junk?? should I at least upgrade to 3.3.1 or just totally move to 4.0??

 I really need some help.

 Thanks
 Ed


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 out JUnitPerf, HttpUnit, and JMeter for some of the below needs.

 Memory leaks?  In a Java app?!  How can that be ;)

 -Original Message-
 From: Bing Zhang [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 20, 2002 9:45 AM
 To: 'Tomcat Users List'
 Subject: good profiler software for Java apps ??

 Hi:

 Just wondering if someone could recommend any good open source
 profiler software to monitor/analyze performance and track down memory leaks
 in Java applications.

 Also, is there any open source testing-automation software/tool
 equivalent to WinRunner/LoadRunner  ??

 Appreciate your help.

 Bing

 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 for this.  That runs programs at specific time intervals.

dwh


Wynn Ricks wrote:

 I have heard of it but am new to the Linux world like this is day 5.  say that the 
box looses power for some reason will CRON start TomCat when the server is done 
restarting without anybody logging into the machine?


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 *sure* that's a problem in this case, but is that what you intend?  It's
not clear to me why you're cloning it there, anyway...

dwh


Stuart Stephen wrote:

 Hello,

 I'm having touble with my HTTP tunnelling servlet and its driving me crazy.
 The tunnel works fine for a single user. However when another user connects
 to the tunnel the servlet does not perform how I would expect it to.
 [...]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




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 reference on
 anyone have some helpful hints so I can test this out.

Even if I didn't already know about Tomcat, entering tomcat apache nt
at Google gives you http://jakarta.apache.org/tomcat/tomcat-3.2-doc/ as
the second hit, and from there you get to lots of documents about Tomcat
on NT, and some specifically about hooking it up to Apache.

Read the doc, give it a try... and *then* if you get stuck, we'll see you
back here grin.

dwh


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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:
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html

Search for reload.

dwh


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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
 -XX:SurvivorRatio=8 -verbose:gc
 -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol

 Tomcat error:

 An irrecoverable stack overflow has occurred.

 Unexpected Signal : 11 occurred at PC=0xeb0707f4

Sounds *sort of* like Java bug
http://developer.java.sun.com/developer/bugParade/bugs/4395735.html ,
although whether or not that's actually one bug or several bugs with similar
symptoms is anyone's guess.

Can you try running without -server?  Some people have reported that helps.

We had a similar error but it has not appeared in weeks... we stopped using
-server, but we also made a lot of other changes as well.  At the time that
we were getting that, we had deadlock  memory leak bugs as well.

Don't know if that helps you at all.

dwh


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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 also look at a thread dump to see what thread is locked  where.
Go to the window in which Tomcat is running and do a Control-Break.  This
is usually easier if you've started Tomcat with run, not start.

dwh


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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 deadlock idea is not the
right track.

 How do you do a thread-dump on when you are running Tomcat as a service on
 Win2k?

Yikes!  Good question.  For testing, would it be difficult to run your Tomcat
from a command prompt instead?  On Unix you get the thread dump by sending a
signal to the JVM, which would be nice in this case... hmm...

dwh



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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 heavyweight as a
 web server.

What SOAP implementation are you using, or is it your own?  Many
implementations (Apache SOAP, for example), include infrastructure for
setting up a SOAP server, so you don't really need to layer Tomcat on top of
that.

See http://xml.apache.org/soap/features.html or
http://cvs.apache.org/viewcvs.cgi/~checkout~/xml-axis/java/docs/user-guide.html

dwh


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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 D:\Web\Tomcat\jakarta-tomcat-3.3 and then saying:

bin\tomcat run

The tomcat.bat file (at least in my experience) assumes your TOMCAT_HOME is your 
current
working directory, if it's not already defined.  See the comments in the tomcat.bat 
file for
details.

dwh


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




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 http://www.mktginc.com/examples/jsp/index.html
 my tomcat log displays the following:
 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61

errno=61 is connection refused.  Sounds like IIS is trying to talk to Tomcat
on a different port than tomcat is listening on?  Are you sure Tomcat is coming
up and staying up?

Check server.xml to see what port Tomcat is listening on for the ajp protocol
(by default it's 8007 for ajp12) and check workers.properties to make sure it's
the same there.

I'm not familiar with what other configurations are necessary for IIS.

dwh




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);
 encoder.encode(image);

 I guess, I somehow have to tell the servlet/outputstream??? that the
 upcoming data is an image. right? how can i do this in a servlet? any hints?

You have to tell the client what the content-type of the response is, so add
something like:

response.setContentType(image/jpeg);

Then when the browser gets the response, it looks at the header and says oh,
it's image data and knows to render it accordingly.

dwh




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 any way to create a central repository that can be accessed by
 /servlets and only this?
 Is the web-inf directory mandatory for using servlets?

You don't say what version of Tomcat you're using, but in the 3.2.x versions, at
least, this is still supported.  Take a look in your server.xml at the  entry
for the RequestInterceptor that uses the class
org.apache.tomcat.request.InvokerInterceptor.

dwh





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 need
 to be done when multiple instances of tomcat need to be run.In Apache
 changes need to be made to mod_jk.conf.auto (since this is included in
 apaches httpd.conf)

Don't use the auto-generated config file; use static ones instead.  Then Tomcat
won't overwrite your changes.  I frequently start with the auto-gen'd file, copy
it to mod_jk.conf, and then I can tweak it as necessary.

In your case, you might have mod_jk.conf.tomcat1 and mod_jk.conf.tomcat2, and
include both of those in httpd.conf (instead of mod_jk.conf.auto).

dwh




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 performance and am a bit lost
 ;)

Except for -Xms and -Xmx, my recommendation is that twiddling with JVM
command-line parameters should be the *last* thing you try.  (Assuming that
you have access to the source code of your servlet classes, of course.)

I would set -Xmx as high as reasonable for your physical memory
configuration.  And definitely use -server.

Other than that, IMHO you're going to get a *lot* more improvement by
focusing on your code, and many JVM command-line parameters will in fact
hurt performance unless you really know what you're doing.

What problems are you encountering?  Is your servlet just slow, or does it
run out of memory?  If the former, you really need to get one of the
optimizing tools available (several have free evaluation periods) or you can
use -Xrunhprof and crawl through the profiler output yourself (I'm getting
very good at that grin).

If it runs out of memory, same approach, actually.  Either a profiling tool
or -Xrunhprof will let you identify where your memory consumption is going.
We have a servlet application that was running out of memory, which we
addressed by using soft references to let the GC reclaim objects that we
were willing to recreate if necessary.

Also, keep in mind Hotspot usually gets better the longer it runs; don't
time the first few requests you make from it...

A colleague actually recently asked about documentation about soft
references and GC in general; this is what I sent him:

http://www.artima.com/insidejvm/ed2/ch09GarbageCollection01.html This is
really good.  Skip forward to part 14 and the following parts (although the
whole chapter is pretty good).

http://developer.java.sun.com/developer/technicalArticles/ALT/RefObj/ Also
pretty good.

Some interesting papers about GC, GC algorithms, HotSpot performance:

http://java.sun.com/docs/hotspot/gc/index.html
http://java.sun.com/docs/hotspot/PerformanceFAQ.html
http://java.sun.com/products/hotspot/2.0/docs.html
http://developer.java.sun.com/developer/technicalArticles/Networking/HotSpot/

dwh




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 support?

It's unclear to me why you're recompiling tomcat.  Why not just use a binary
distribution?  I've never compiled it from source...

dwh




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 http://www.cafepress.com/cp/info/help/products.aspx and
http://www.cafepress.com/cp/info/help/images.aspx.

dwh


Rob S. wrote:

 Oh man, i'd eat up some Tomcat shirts.  I wonder if I we'd be able to use the TC 
logo the Pier made?

 You can get Java stuff from http://java.sun.com/.  I think it's under java wear and 
books.




[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 backward,
even though you're on Windows...

dwh


Claes Holmerson wrote:

 Hello!

 I am trying to set up Tomcat to work in the environment where we have been
 developing another application. In this environment we do not have a webapps
 directory.

 The output path for JBuilder is C:\sandbox\development, and this is also
 were the classpath points to when we test our builds.




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

d:\servlets\
WEB-INF\
web.xml
classes\
net\
haskinferguson\
MyNiftyServlet.java
MyNiftyServlet.class

I mount d:\servlets\WEB-INF\classes as a directory in NetBeans, edit away,
compile, and then the new classes are immediately available in Tomcat (well,
they would be if I had reloadable=true in my server.xml, but I don't, because
that makes things slow).

Obviously, I have a context set up in server.xml which points to the above.

dwh


Mihai Gheorghiu wrote:

 What steps do I need to take in order to have my work in Netbeans installed
 properly under Tomcat?
 Thank you all.




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 up a small website using
 servlets / JSP ?.. to get the real world learning experience?






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 rule?

What happens when you do the rewritten url with a trailing slash (e.g. 
http://localhost/rewrite/examples/)?  There's been some discussion in 
the mailing list about handling of trailing slashes, and I seem to 
recall there's some issues with that.

Apologies that I couldn't be more help...

dwh


amduser amduser wrote:

[...]

The rewrite log says

][rid#8650b0/initial] (3) applying pattern '^/rewrite/examples(.*)' to
uri '/rewrite/examples'
127.0.0.1 - - [21/Aug/2001:00:05:25 -0400]
[foo.lan/sid#7a60f0][rid#8650b0/initial] (2) rewrite /rewrite/examples
- /webapps/examples
127.0.0.1 - - [21/Aug/2001:00:05:25 -0400]
[foo.lan/sid#7a60f0][rid#8650b0/initial] (2) forcing
'/webapps/examples' to get passed through to next API URI-to-filename
handler

* Response to http://localhost/webapps/examples:

   ... correct directory listing ...

* Response to http://localhost/rewrite/examples:

   Not Found (404)
   Original request: /rewrite/examples
   Not found request: /rewrite/examples 
   
[...etc...]






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 tomcat3.2.1 starts

can anyone help me
Rajesh







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 jar files into 
%YourWebAppPath%/WEB-INFO/lib dirctory. But my application is under development, so 
whenever I regenerated jar files for  my web app, I have to copy them to that 
directory again. If under UNIX, you can use symbolic links, but I use Windows 2000 as 
my server.  So my question is: is there any way to define CLASSPATH variable for my 
web application independently so that I don't need to copy them again and again.
   In fact, in my case, I have two web application which are derived from the 
same base but should be installed independently. So these two web application have 
many classes with the same package and name. And these classes spreaded in two 
directory d:\vendor\webapp1 and d:\vendor\webapp2 but not in jar file. So I really 
need a way to define CLASSPATH in application level instead of copy tons of variable 
classes into d:\vendor\webapp1\WEB-INFO\classes and 
d:\vendor\webapp2\WEB-INFO\classes again and again.






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 approach.  Now compare
this to our old C++ platform and






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 
full and make sure that the final rewritten URL from mod_rewrite is what 
you expect it to be.

Actually, now that I read your message more closely, I'm not sure I 
understand the problem.  It sounds like the requests *are* getting to 
Tomcat but they aren't in the form you expect when they get there?  Or 
are the requests not getting to Tomcat at all?

Perhaps some examples and some RewriteRule snippets would help.

dwh


amduser amduser wrote:

Q: How to use mod_rewrite with mod_jk?

I am trying to get mod_rewrite to work with mod_jk,
but am not having any luck. I've tried placing the
AddModule line for mod_jk both before and after the
AddModule line for mod_rewrite. Using the PT flag on
rewrite rules doesn't help either. The same rewrite
rules work perfectly with Caucho Resin's mod_caucho.
It seems as though Tomcat is passed only the original
URL and not the rewritten URL. I have searched the
archives and the net but have found nothing that
solves this problem.

Windows: tomcat 3.2.3; mod_jk.dll 2001-07-17; apache
1.3.20; sun jdk 1.3.0; windows 2000 sp2
Linux: tomcat 3.2.3; mod_jk-noeapi.so 2001-07-20;
apache 1.3.20; ibm jdk 1.3.0; linux 2.2.13


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/








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 omitted...
/Context

and then at /usr/appname you would have a hierarchy like this:

/usr/appname
login.jsp
WEB-INF/
web.xml
classes/
...etc...

Then to get to login.jsp the url would be 
http://[hostname]/Appname/login.jsp, as you want.

See the servlet spec documents (I know, can be hard to read), the 
application development manual at 
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/index.html (although as 
it says itself, it's somewhat out of date).

dwh


mailtracker wrote:

---

Tomcat 3.2.x
Apache 1.3.20
Solaris 2.8 (aka 8)
Sun JDK1.3.1

We are moving a large, servlet-like Java thing toward compliance with the
Servlet spec version 2.2.  One issue, considered by some to be a real
problem, is that in the migration our URL has changed from
.../appname/login.jsp to ../appname/stuff/login.jsp

We're looking for the magic Tomcat and Apache directives that will allow a
web client to type in http://[hostname]/appname/login.jsp;, as they have in
past versions, and receive in response
.../tomcat/webapps/appname/stuff/login.jsp

---

(now saying the same thing in another way...)

So we're locked into this structure:

tomcat/..

../webapps/appname/
../.../.../[directory]/
../.../.../.../
../.../.../stuff/ (includes index.htm, login.jsp, and so on)
../.../.../WEB-INF/
../.../.../.../lib/

Tomcat's default behaviour is to serve this web application as:
http://[hostname]:8080/appname/stuff/login.jsp

We'd like for Tomcat and Apache, when the two are hooked together, to serve
the content as:

http://[hostname]/appname/login.jsp

---

any suggestions appreciated!









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 something I have to configure in mod_jk to get the remote host
information
to resolve. Its apparently available in Apache but seems to not show up
in Tomcat when I do request.getRemoteHost(). How, is this setup

/ configured?






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 messages in the logfiles seem to indicate the 
version.  That might be a Nice To Have.

Also, because of the way the distributions are packaged, all of our 
Tomcat installations include the version in the path, e.g.: 
/usr/local/jakarta-tomcat-3.2.1/...

dwh


Barnabas Yohannes wrote:

Folks,
How do I know what version of tomcat I have on my apache server?  This dude
who installed tomcat for us, I think, he installed only the beta release of
tomcat.  Now, he is asking $10,000 to fix it.  Oh holly cow! was my bosses
reaction.:)

I used the command:

openssl version -a

But it only gave me the ssl version.

Any help will be appreciated!








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
little yahoo shop.  I found out that in tomcat, it is named LICENSE.  lol!

I'm just kidding dude!  That help was very useful and more than $10 worth
even though the name was LICENSE.  Now in the LICENSE of my tomcat, it is
displayed:






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 
reliable method...

(Actually, I think $10K was for upgrading it to a more current Tomcat...)




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 both of them up like this, you 
get Internal Server Errors on the first few requests?  If so, does it 
matter how long after startup you try this?  I certainly find if I try 
to access Apache/Tomcat before Tomcat has finished loading, I can 
sometimes get that error.

dwh

Mike Tinnes wrote:

 We're using Tomcat 3.2.2 with Apache 1.3.20 and are experiencing 
 problems with jsp's not loading correctly on startup. The first couple 
 requests return back an 'Internal Server Error'  from Apache. After a 
 couple more hits it seems to come back. I've read where this may be 
 due to ajp connector sockets not being shutdown correctly, and if 
 tomcat is killed and immediately restarted the connector is not 
 immediately able to communicate. Has anyone else delt with this issue, 
 and if so any remedies?






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 restarting tomcat...






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 I would make sure there aren't any 
patches you need there.  We also had to make some Solaris patches.

Just my 2 bits...

dwh


Santosh Pasi wrote:


Java is 1.2.2






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 mod_rewrite got to the URL 
before mod_jk did.  I'm now less convinced this is absolutely 
necessary--the next item may be more important.

2) Put the [PT] (passthrough) flag on all RewriteRule lines that were 
rewriting URLs to go to Tomcat.

Also, one gotcha we hit was using the same pathname for both the 
incoming URLs and for the Tomcat context, e.g. 
http://ourhost/ContestSignup for the URL and /ContestSignup for the 
context path.  It's better (maybe required) to use a different name for 
the context path, like /ContestSignupServlet.

dwh


Francis Pallini wrote:

 Hi,

 It sounds like you are a little sarcastic ;=)

 Regards,

 Francis Pallini

 At 11:25 AM 8/9/01 +0200, you wrote:

 Can anyone tell me why the when using the mod_rewrite module, Tomcat
 can't/don't seem to retrieve
 the rewritten url and args?

 As I am responsible of the migration from JServ to Tomcat, I've to 
 write a
 documentation that explain
 this point...

 Loïc Lefèvre









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 lists as assistance of first resort, instead of last.

That also being said, I think most of us would agree that the Tomcat 
docs leave something to be desired.  I'm a native English speaker, a 
seasoned developer, a former writer, and even I found there was a pretty 
steep learning curve.  I truly wish I had the time to do some work on 
the doc, but...

dwh


Pier P. Fumagalli wrote:

Maybe a please would be appreciated... We're not paid to solve your
problems. Then you might want to read the documentation before coming out
with such a question... Ever heard of Apache modules such as mod_jserv,
mod_webapp or mod_jk??? It's all in the docs...

Pier








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 module? I'm running tomcat3.2.3 and Apache 
 1.3.12
 on Solaris.






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 trying (e.g. what path)? 
 Are you going against the Tomcat HTTP listener directly (by default on 
port 8080)?  Do you get an error message in response, or in logs?

You do have a WEB-INF/web.xml under C:/InetPub/wwwroot, don't you?

dwh




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

 Can someone send me the link...

 Thanks in advance..
 cd




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
(1.3.x) source code.  Does commenting out this line have any effect?

As you can guess, I'm dealing with the same issue that many people
are--performance when testing directly against Tomcat's
HttpConnectionHandler is great, but when doing the same test through
Apache/jk/ajp13 the maximum page rate is substantially limited.  There's
lots of dribs and drabs in the email archive about this, but if anyone
has some concise recommendations on how to improve
Apache/jk/ajp13/Tomcat performance, I would certainly appreciate it.

It *appears* the bottleneck is on the Apache side, but I haven't
demonstrated this conclusively yet.

Thanks,

dwh




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?  Please advise.  Thanks.

I'm running into a similar problem myself.

Apparently, the place to set CLASSPATH is in the tomcat.sh script that you use
to start  stop Tomcat.  If there's a better place for it, someone please let
me know!

I'm having trouble getting LD_LIBRARY_PATH (e.g. java.library.path) set,
though.  Even though I'm setting it in tomcat.sh, the value I'm setting is not
showing up in the JVM when I check java.library.path.  So far I can't figure
out why.

Anyone have any better suggestions?

Thanks,

dwh






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




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 return true,
meaning it thinks the file was deleted)?

dwh


Deepak C S wrote:

 hi,

 I am trying to delete a file under filesystem in a bean using:

 File f=new File(path-to-file);
 f.delete();

 But the File isnt getting deleted...Can anybody help??

 thanx
 Deeps

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




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,
particularly the binaries?  Particularly, say,
builds/jakarta-tomcat/release/v3.2.1/bin/jakarta-tomcat-3.2.1.tar.gz?

Much thanks,

dwh



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




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"... FWIW...

dwh



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




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 PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




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



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]