DO NOT REPLY [Bug 21419] - error on startup - java.lang.NoSuchMethodException: org.apache.catalina.core.StandardHost.getHost()

2003-07-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21419

error on startup - java.lang.NoSuchMethodException: 
org.apache.catalina.core.StandardHost.getHost()





--- Additional Comments From [EMAIL PROTECTED]  2003-07-09 07:05 ---
If something really bad happens during init (which doesn't happen in practice),
then the server instance is null, and you should get a NPE.
There's of course no call to any getHost( method (do a grep if you don't believe
me) anywhere in the source - and there never was one -, except on the request
method.
Don't worry, if this bug is real, it seems obvious enough, and other people will
report it.

Can't you really fix that kind of thing ?
log4j:WARN No appenders could be found for logger
(org.apache.catalina.startup.Embedded).
log4j:WARN Please initialize the log4j system properly.

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



[4.1.25] Tag today

2003-07-09 Thread Remy Maucherat
As discussed earlier, I plan to tag 4.1.25 later today.

Note: I haven't ported the JSP/JSPC package path fixes, as I consider 
them risky. I plan to port them later on, but it would be very good to 
have this build rated as stable, without further delays, as there are a 
couple of important fixes in it.

Note 2: Given that my "release" computer is dead (but will be back from 
the dead in some form maybe, given its HD should still work), there 
could be packaging mistakes (in which case, let me know, and I will just 
replace the bins with new ones).

Remy

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


DO NOT REPLY [Bug 21041] - StandardWrapper is final

2003-07-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21041

StandardWrapper is final

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WONTFIX



--- Additional Comments From [EMAIL PROTECTED]  2003-07-09 08:20 ---
Forget it, no need, am able to implement my functionality elsewhere.

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



Re: Buggy mod_jk2 AJP 13 communications?

2003-07-09 Thread Henri Gomez
James Courtney a écrit :

Developers,
Forgive the post to the developer list but I honestly feel that my question(s) 
are detailed enought to be of interest to the development community for Tomcat and 
have thus far remained largely unaddressed by the tomcat-user community.  Please also 
forgive the length of the email but as a developer I try to provide any and all 
information that I've gathered to give anyone willing to help me as much relevant 
information as possible.  Please keep in mind while reading and formulating your 
answer(s) that I really don't have the luxury of taking wild stabs in the dark with 
this as it's a current production problem for us.  I need to know the best course of 
action to take to correct our systems to provide reliable service to our users.
We recently launched our application running on 2 Tomcat 4.1.24/JDK1.4.1/Sun 2.8/Sparc machines load balanced by an Apache 2.0.45/Sun2.8/Sparc machine using mod_jk2.  Throughout testing (including some basic load testing) we experienced very good behavior from our cluster and are in general very pleased with the performance over our previous system of Apache 1.3.19/Tomcat 3.2.2/mod_jk.  We built our mod_jk2 Apache module using the 4.1.24 Tomcat-Connectors source release provided with the Tomcat 4.1.24 release.  This seems to be slightly more recent than the last public release of mod_jk2 which I think was 2.0.2 according to CVS and what I've read.

Our problem is that we notice intermittent and not infrequent lapses in our application.  These appear as very slow performance or complete lack of connectivity to the Apache server but each of the Tomcat servers is functioning normally when we connect directly to those.

Apache serves no contect, static or dynamic, and everything is pushed to the Tomcat servers as the bulk of our page content is dynamic and we decided to keep the config simple at the expense of a little network performance on what static content we have.

It's about the peak time of day for us and we have 50-60 active TCP connections from our Apache server to EACH Tomcat server, all in the ESTABLISHED state according to netstat.  We have an additional 220 or so TCP connections from the internet to our Apache server of which about 30 are ESTABLISHED, about 20 are FIN_WAIT (and FIN_WAIT_2), and about 170 are TIME_WAIT.

Assuming ajp13 works like HTTP1.1 this all makes sense as the Apache would keep sockets open to the Tomcats and internet users opening and closing connections and browsers to the Apache would probably create a pattern like that above.

I've attached several of our config files for your reference:
1) httpd.conf (for Apache or course) 
2) workers2.properties (for mod_jk2 of course)
3) server.xml (from one Tomcat, both are indentical with exception of jvmRoute)
4) jk2.properties (Still don't know the point of this but here it is)
3) apache.info (a dump using httpd -V)

I have several general questions which I feel can only be answered by those fairly familiar with the mod_jk/jk2 code.

1) Which is the preferred connector at this time in terms of reliability and scalability.
mod_jk is the preferred in term of reliability since it's older and more 
tested, but jk2 is the future.

2) What is the preferred version/release of that connector.
mod_jk 1.2.5 should be release soon.

3) Should both the java and c/apache side of the connector be built and installed together onto Tomcat 4.1.24 for compatibility or is the c/apache side alone sufficient to work reliably with the CoyoteConnector/JkCoyoteHandler packaged with the 4.1.24 build?
mod_jk should be built from jakarta-tomcat-connectors release.

4) Does Apache mod_jk(2) pool a set of connections to Tomcat not to exceed the maxProcessors parameter of the Tomcat CoyoteConnector?  Could my connections be timing out?  Should I set connectionTimeout to -1 (it's currently 0)?
The rule is that the MAX NUMBERS of HTTPD connexions should be less than 
the maxProcessors in ajp13. For instance if you have 2 tomcat with each 
150 maxProcessors, you should restrict Apache HTTPD to have not more 
than 250 connexions

5) What parameters affect mod_jk(2) performance.  I see from the code that the Channel.Socket (as of the TOMCAT_4_1_24 CVS tag) will accept settings for timeout, keepalive, 
and nodelay but that these are not documented.  Could these help?

See the nodelay (NAAGLE related)

6) Could my Apache 2.0.45 just be foobar?  This seems unlikely, the config is pretty straight forward.
I'm using Apache 2.0.46 with Tomcats (3.3.1a) and mod_jk 1.2.4 and have 
no problems with it. In my situation Apache server static contents like 
images and css.

Regards

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


RE: session expiry

2003-07-09 Thread Tom Drake
The servlet specification is a good source of such information. 

-Original Message-
From: Paul Wallace [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 5:11 AM
To: [EMAIL PROTECTED]
Subject: session expiry


Hello All,

A simple one? I have my session defined in a servlet thus:

 

 

HttpSession session = req.getSession();

session.setAttribute("userSession", h); // (h = HashMap)

 

how or where do define session parameters such as expiry? I would
ideally like my session to die when I call a specified method e.g 

 

close() {

 

  // kill my session here

 

} 

or failing that, how do I define a length of time for the session life?

 

Thanks

 

Paul.


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



Re: [4.1.25] Tag today

2003-07-09 Thread Tim Funk
For 4.1.25 - I added the AccessLogValve/ExtendedAccessLogValve ports (from 
5), but never updated the RELEASE-NOTES-4.1.txt

[4.1.25] #20380
 AccessLogValve incorrectly calculates timezone
[4.1.25] #16374
 AccessLogValve Date in file name configurable
[4.1.25] #16400
 AccessLogValve Allow logging to be conditional
[4.1.25] AccessLogValve Add %D, %T for time to serve request

[4.1.25] New ExtendedAccessLogValve
 An implementation of the W3c Extended Log File Format. See
 http://www.w3.org/TR/WD-logfile.html for more information
 about the format.
-Tim

Remy Maucherat wrote:
As discussed earlier, I plan to tag 4.1.25 later today.

Note: I haven't ported the JSP/JSPC package path fixes, as I consider 
them risky. I plan to port them later on, but it would be very good to 
have this build rated as stable, without further delays, as there are a 
couple of important fixes in it.

Note 2: Given that my "release" computer is dead (but will be back from 
the dead in some form maybe, given its HD should still work), there 
could be packaging mistakes (in which case, let me know, and I will just 
replace the bins with new ones).

Remy

 


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


jk 1.2.25 release ?

2003-07-09 Thread Henri Gomez
Any date ?

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


Re: jk 1.2.25 release ?

2003-07-09 Thread Henri Gomez
Henri Gomez a écrit :

Any date ?

Oups:

mod_jk 1.2.5 of course

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


Could you give some help for me (about mod_jk for solaris 9)

2003-07-09 Thread David Choi
I have got your E-mai from some forum for tomcat
I am from south korea, and study about JSP and SUN OS.
First, Sorry for my poor english~

I am wondering where and how I can get the mod_jk.so (the
apache module) for connecting tomcat with apache
before, I found jakarta project FTP site but there was not
module(mod_jk.so) for solaris 9(some module for solaris 8 had some
error)

So many time I tried to make mod_jk.so from source file
(jakarta_tomcat_connector 4.1.24) but I couldn't 


Actually, I would like to connect tomcat 4.1.24 with apache 2.X on the
solaris 9 platform. 

Please help me now~

Thanks for your time and efforts~

>From YH.Choi
South Korea 



Wishing you all the success in this business, we hope our transaction
makes much better world than before. 

We thank you for your time and efforts
Warm regards,

David Choi
Marketing Manager
SP KOREA Co.,LTD (Tel 82-53-588-0318, Cel 82-16-9775-3900, Fax
82-53-588-0319)
http://www.sp-korea.com  
http://www.kacci.net






 



getting application context REFERENCE from a bean

2003-07-09 Thread srujana
Hi All

I'm facing a problem when trying to modify an object(say myObj) that is in
application context.

I'm using a bean of scope session (say myBean) that listens to
HttpBindingListener/HttpSessionListener which tries to access application
context object myObj and modifies the data during the event valueUnbound.

The problem is am not able to reflect the modifications back to the
application context since when i try to access myBean data its already
removed from the session and old myObj data is retained.

Can anybody suggest h'w to get the reference of application context from a
bean or any other alternative.

Thanks in advance
Srujana




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



DO NOT REPLY [Bug 21419] - error on startup - java.lang.NoSuchMethodException: org.apache.catalina.core.StandardHost.getHost()

2003-07-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21419

error on startup - java.lang.NoSuchMethodException: 
org.apache.catalina.core.StandardHost.getHost()

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|VERIFIED



--- Additional Comments From [EMAIL PROTECTED]  2003-07-09 11:29 ---
Same problem, here is a small patch from me.

WORKS FOR ME

Index: SetDocBaseRule.java
===
RCS file: /home/cvspublic/jakarta-tomcat-
catalina/catalina/src/share/org/apache/catalina/startup/SetDocBaseRule.java,v
retrieving revision 1.1
diff -u -w -b -r1.1 SetDocBaseRule.java
--- SetDocBaseRule.java 24 Jun 2003 22:37:05 -  1.1
+++ SetDocBaseRule.java 9 Jul 2003 11:24:21 -
@@ -118,8 +118,13 @@

 Context child = (Context) digester.peek(0);
 Deployer parent = (Deployer) digester.peek(1);
+Host host = null;
+if (!( parent instanceof StandardHost ))  {
 Method method = parent.getClass().getMethod("getHost", null);
-Host host = (Host) method.invoke(parent, null);
+  host = (Host) method.invoke(parent, null);
+} else
+  host = (Host)parent;
+
 String appBase = host.getAppBase();

 if (!(host instanceof StandardHost)) {

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



DO NOT REPLY [Bug 21419] - error on startup - java.lang.NoSuchMethodException: org.apache.catalina.core.StandardHost.getHost()

2003-07-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21419

error on startup - java.lang.NoSuchMethodException: 
org.apache.catalina.core.StandardHost.getHost()

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|VERIFIED|REOPENED
 Resolution|INVALID |



--- Additional Comments From [EMAIL PROTECTED]  2003-07-09 11:51 ---
Sounds convincing enough to me ;-) It seems you made a mistake trying to reopen
the bug.
This doesn't happen in normal mode for me however. how do you reproduce it ?

About the patch: Maybe it could be cleaner, I'll see what I can do. The addition
of a method somewhere could be needed.

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



Re: [4.1.25] Tag today

2003-07-09 Thread Remy Maucherat
Tim Funk wrote:
For 4.1.25 - I added the AccessLogValve/ExtendedAccessLogValve ports 
(from 5), but never updated the RELEASE-NOTES-4.1.txt

[4.1.25] #20380
 AccessLogValve incorrectly calculates timezone
[4.1.25] #16374
 AccessLogValve Date in file name configurable
[4.1.25] #16400
 AccessLogValve Allow logging to be conditional
[4.1.25] AccessLogValve Add %D, %T for time to serve request

[4.1.25] New ExtendedAccessLogValve
 An implementation of the W3c Extended Log File Format. See
 http://www.w3.org/TR/WD-logfile.html for more information
 about the format.
Don't worry, I'll do diffs and document changes, as usual.

For TC 5.0.4 changelog, I'll wait a little bit more until I get all my 
emails recovered from my laptop's HD.

Remy

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


DO NOT REPLY [Bug 21419] - error on startup - java.lang.NoSuchMethodException: org.apache.catalina.core.StandardHost.getHost()

2003-07-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21419

error on startup - java.lang.NoSuchMethodException: 
org.apache.catalina.core.StandardHost.getHost()





--- Additional Comments From [EMAIL PROTECTED]  2003-07-09 12:17 ---
Sorry, can't reproduce it in the quick. Seen this exception on my 2 development 
machines and on my dev-server,after patching SetDocBaseRule to check if its get a 
StandardHost or other thing, it's work for me. My Setup,dev-server: 1 host + 3 
aliases, standalone tomcatdev-machines: 1 host, localhost only

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



[GUMP] Build timed out - jk

2003-07-09 Thread Craig McClanahan

This email is autogenerated from the output from:



Buildfile: build.xml

init:
 [echo] /home/rubys
[mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-connectors/jk/build/jk
 [echo] linux=true solaris=${solaris} win32=${win32} hpux=${hpux} 
netware=${netware}

apache20:

apache13:

iis:

netscape:

jni:
[mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-connectors/jk/build/jk/jni
   [so] Compiling 4 out of 4
Compiling /home/rubys/jakarta/jakarta-tomcat-connectors/jk/native/common/jk_map.c
Compiling /home/rubys/jakarta/jakarta-tomcat-connectors/jk/native/common/jk_pool.c
/home/rubys/bin/timeout: timed out

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



DO NOT REPLY [Bug 21419] - error on startup - java.lang.NoSuchMethodException: org.apache.catalina.core.StandardHost.getHost()

2003-07-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21419

error on startup - java.lang.NoSuchMethodException: 
org.apache.catalina.core.StandardHost.getHost()





--- Additional Comments From [EMAIL PROTECTED]  2003-07-09 13:15 ---
I'm glad someone else is seeing this.  I tried reproducing it by just running
"$CATALINA_HOME/bin/catalina.bat run", but I didn't see the error occur there.

Here is how you can reproduce it for yourself:

1.  Grab the latest XMLC CVS.  See instructions here:
http://forge.objectweb.org/cvs/?group_id=49

2.  cd to the root of the build and follow short instructions in the "README". 
XMLC should now be built.

3.  cd to $XMLC_ROOT/examples/tomcat.  Copy "build.properties.examples" to
"build.properties" and modify the path to "tomcat.home".  Now run "ant".  This
will build the examples and set up an environment for a custom CATALINA_BASE and
use the value you defined for tomcat.home for CATALINA_HOME.  Convenience
scripts "run-tomcat.bat" and "run-tomcat.sh" will be generated for you.

4.  run the appropriate script for your platform.  I run "run-tomcat.bat" on my
win2k platform.  You should now witness the stack trace that I reported if you
are using the latest Tomcat5 CVS.  To test with another version of tomcat,
modify the tomcat.home property in build.properties to, say..., tomcat-5.0.3 and
re-run "ant".  The scripts will be re-generated for you pointing to the
appropriate CATALINA_HOME.  You should not witness the stack trace using
tomcat-5.0.3.

5.  If you care to view the application running under this custom CATALINA_BASE,
point your browser to:
http://localhost:8081/xmlc/

Hopefully those instructions are clear enough.  Let me know if you have
difficulties.


BTW, regarding your comments...

>Can't you really fix that kind of thing ?
>log4j:WARN No appenders could be found for logger
>(org.apache.catalina.startup.Embedded).
>log4j:WARN Please initialize the log4j system properly.

That started happening in recent Tomcat5 builds.  It doesn't occur when using
Tomcat-4.1.xx and actually didn't occur in early builds of Tomcat5 (sorry, not
sure when exactly it started).  I suspect the reason it is happening has more to
do with commons-logging than Log4j.  I put log4j-1.2.8.jar in
CATALINA_HOME/common/lib as a standard practice.  Since commons-logging sees
Log4j in its classpath, it uses it.  The app in question actually uses no
logging whatsoever so this message is coming from something in Tomcat itself (or
its 3rd party libraries) and not the example application.  If you are asking me
to  track down the issue in commons-logging, you are barking up the wrong tree.
 I have nothing to do with commons-logging and, personally, I feel it has caused
way more pain and suffering than it is worth.  The class loading tricks it uses
to proxy other logging api's fails in lots of situations and is incredibly hard
to debug.  If it were up to me, I'd drop commons-logging like a bad habit and
just use Log4j directly.  I know that won't happen, though, so I'm not going to
press the issue.  I can make Log4j work just fine for me in apps using Log4j
directly so the Log4j warning message in question is pretty innocuous to me. 
I'm not sure if the interaction is adversly affecting Tomcat5 logging when
commons-logging finds Log4j in its classpath or not?  As such, I'm not very
worried about it.  If you want to report a bug I'm all for it, but the only
people who will be able to fix it are either Tomcat guys like yourself or
commons-logging guys.  I don't think many people at Log4j will have much
interest or be able to help in any way other than maybe Yoav Shapira who has
more hands-on experience with commons-logging as well as being a Log4j developer.

Jake

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



Re: jk 1.2.25 release ?

2003-07-09 Thread Glenn Nielsen
I was hoping to get it released this week.

But I just noticed that under Apache 2 mod_jk piped logs there
are two instances of the piped log program running for the same
log file.  I want to track this down.
I also just implemented load balancing this morning on a production
server.  I noticed that when none of the workers for the load balancer
were available an HTTP status code of 200 was being logged in mod_jk.log
when request logging was enabled. So I want to look into this also.
Hopefully now that I have load balancing in place with 2 tomcat servers
instead of 1 the Missouri Lottery web site I administer will scale to
handle the big spike in load tonight for the $240 PowerBall jackpot. :-)
Regards,

Glenn

Henri Gomez wrote:
Any date ?

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


DO NOT REPLY [Bug 15795] - Request with mailformed URL causes NullPointerException

2003-07-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15795

Request with mailformed URL causes NullPointerException





--- Additional Comments From [EMAIL PROTECTED]  2003-07-09 14:06 ---
I have the same thing with the exact same stacktrace.

I think the problem is in FileDirContext.java. The javadoc for 
FileDirContext.file(String name) says it should return null if !(file.exists() 
&& file.canRead()). However, before it does that test it calls File(String 
base, String name) without checking for a null argument on name. File then does 
this:

public File(File parent, String child) {
//!!-->  ^^unchecked null
if (child == null) {
throw new NullPointerException();
}

...

My quick suggestion for a fix is this, at FileDirContext.java:879:

if(name == null) return null;

This should stop Catalina from throwing NullPointers for borken URLs and bring 
the behaviour inline with the javadoc comment. Whether there's another method 
that is returning null when it shouldn't, I haven't checked.

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



Re: cvs commit: jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/session SimpleTcpReplicationManager.java

2003-07-09 Thread Costin Manolache
I remember making a change in 5.0 jasper to make it configurable on a
per-page basis.

I agree that tag pooling has some cases where it is less efficient, but
there are also many pages where it is much better.

Costin

Bill Barker wrote:

> 
> - Original Message -
> From: "Remy Maucherat" <[EMAIL PROTECTED]>
> To: "Tomcat Developers List" <[EMAIL PROTECTED]>
> Sent: Tuesday, July 08, 2003 12:11 AM
> Subject: Re: cvs commit:
>
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluste
> r/session SimpleTcpReplicationManager.java
> 
> 
>> Bill Barker wrote:
>> > Now, if we could only convince the Jasper developers of this ... ;-).
>>
>> Tag pooling is definitely not the same situation and use case as session
>> pooling. Tag pooling *is* useful in many cases.
> 
> Just not in my use case (where it s*cks :-).  This is actually the last
> thing that I have to modify the source in 4.1.25 to get it to work-for-me.
> If it was actually configurable for a  servlet (without copying
> all of the JspServlet's init-params into my servlets, and rendering myapp
> hopelessly unportable), I'd be happy as well.
> 
> Needless to say, I haven't figured out a way to do this in the Catalina
> API, or I'd have done it long ago ;-).
> 
>>
>> Remy
>>
>>
>>
>> -
>> 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: jk 1.2.25 release ?

2003-07-09 Thread Henri Gomez
Glenn Nielsen a écrit :

I was hoping to get it released this week.

But I just noticed that under Apache 2 mod_jk piped logs there
are two instances of the piped log program running for the same
log file.  I want to track this down.
I also just implemented load balancing this morning on a production
server.  I noticed that when none of the workers for the load balancer
were available an HTTP status code of 200 was being logged in mod_jk.log
when request logging was enabled. So I want to look into this also.
Hopefully now that I have load balancing in place with 2 tomcat servers
instead of 1 the Missouri Lottery web site I administer will scale to
handle the big spike in load tonight for the $240 PowerBall jackpot. :-)
Regards,

Ok, so better wait some days to have something cleaner ;)



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


Re: Object pooling performance

2003-07-09 Thread Costin Manolache
Glenn Nielsen wrote:

> Remy Maucherat wrote:
>> Bill Barker wrote:
>> 
>>> Now, if we could only convince the Jasper developers of this ... ;-).
>> 
>> 
>> Tag pooling is definitely not the same situation and use case as session
>> pooling. Tag pooling *is* useful in many cases.
>> 
> 
> There are a number of things to consider when evaluating the performance
> of object pooling.
> 
> The performance hit of obtaining/recycling an object can be greater than
> instantiating a new object, it depends on the JVM.

And depending on the recyling mechanism :-)
Using per-thread objects ( like tomcat request objects ) doesn't require
sync, and I can't see any way creating/gc a new object by the VM could be
faster. 

Pools that use sync may be slower than modern VMs which use multiple 
memory areas to allocate objects ( or per thread ) - since the VM avoids
the sync. A smarter object pool that would use buckets of objects or 
per thread data would again be faster than VM.

The think to remember is that "one object" doesn't matter too much, but if 
you have big arrays or other data structures that could be reused - more
likely even the most stupid pool will beat the VM.


> But you also have to consider the impact on GC.  One big impact on
> performance of Tomcat is the frequency of and the time it takes to do
> incremental and Full GC's.
> 
> Full GC's can be especially nasty. In most JVM's a Full GC freezes
> processing of
> requests by Tomcat.  I would rather have a slight performance hit from
> recycling objects than see the frequency of Full GC's increase and the
> time they take increase.
> 
> I saw a huge performance boost when recycling of JSP custom tags was
> implemented in
> Jasper.  Most of that performance boost comes from reducing the frequency
> and length of GC's.

On the other hand, I've seen pages where JSP tag pooling was worse. 

That's why I think per page customization, and supporting per-thread pooling
are very important. This is a "fine-tune" operation for pages that are
frequently accessed, not a "one size fit all" problem.


Costin

> 
> To collect GC data add the -verbose:gc arg to java when you start Tomcat.
> 
> Regards,
> 
> Glenn



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



RE: Object pooling performance

2003-07-09 Thread Costin Manolache
Marc Saegesser wrote:

> Another thing to consider when evaluating object pooling is the expected
> lifetime of the objects.  On modern JVMs with generational memory stores,
> objects with a short lifespan (say the duration of a single HTTP request)
> will probably never leave the nursery.  Pooling these kinds of objects
> usually degrades performance rather than improving it.

The "lifetime of the object" is a tricky one :-)

There are a lot of cases ( tomcat Request object, JST tags ) where the
object can very well live as long as the server. In almost any program 
there are a set of objects that are used a lot - where the object can be 
made mutable and reused. 

For short span objects - I agree, GC is better. But again, in most cases 
"short lifespan" of an object is by programming it to be non-reusable,
and with a bit of work you can make it long-lived.



> I've just finished some performance research on Tomcat 3.2 (I know, I
> know...) and one of the things I found was that the o.a.u.MimeHeaders and
> related classes were a huge performance bottleneck.  The existing code
> went to great lengths to avoid creating 'garbage' and the result was code
> that

MimeHeaders in 3.2 had some performance problems, AFAIK we made a lot of
changes ( in both 3.3 and 5.0 )

Costin

> was very slow.  I replaced it with a much simpler set of classes that
> basically ignored the GC impact and saw a 15% performance improvement
> under load.
> 
> Marc
> 
>> -Original Message-
>> From: Glenn Nielsen [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, July 08, 2003 9:25 AM
>> To: Tomcat Developers List
>> Subject: Object pooling performance
>> 
>> Remy Maucherat wrote:
>> > Bill Barker wrote:
>> >
>> >> Now, if we could only convince the Jasper developers of this ... ;-).
>> >
>> >
>> > Tag pooling is definitely not the same situation and use case as
>> > session pooling. Tag pooling *is* useful in many cases.
>> >
>> 
>> There are a number of things to consider when evaluating the performance
>> of
>> object pooling.
>> 
>> The performance hit of obtaining/recycling an object can be greater than
>> instantiating a new object, it depends on the JVM.
>> 
>> But you also have to consider the impact on GC.  One big impact on
>> performance
>> of Tomcat is the frequency of and the time it takes to do incremental and
>> Full GC's.
>> 
>> Full GC's can be especially nasty. In most JVM's a Full GC freezes
>> processing of
>> requests by Tomcat.  I would rather have a slight performance hit from
>> recycling objects
>> than see the frequency of Full GC's increase and the time they take
>> increase.
>> 
>> I saw a huge performance boost when recycling of JSP custom tags was
>> implemented in
>> Jasper.  Most of that performance boost comes from reducing the frequency
>> and length
>> of GC's.
>> 
>> To collect GC data add the -verbose:gc arg to java when you start Tomcat.
>> 
>> Regards,
>> 
>> Glenn
>> 
>> 
>> 
>> -
>> 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]



jk 1.2.4 LB bug?

2003-07-09 Thread Hans Schmid
Hi,

I noticed the following with mod_jk 1.2.4, Apache 1.3.26 and
Tomcat 3.3.1a on Solaris 8 JDK 1.4.1_03.

Maybe a LB bug (Loadfactors do not recover after startup of new
tomcat/graceful Apache restart).

Let me explain my scenario first:

I want to gracefully upgrade our webapp without loosing sessions + have a
fail over scenario.
Therefor we have sticky sessions enabled.

Setup:
1 tomcat 01 running on Server A,
0 tomcat 02 running on Server A,
1 tomcat SB running on Server B

01 tomcat on Server A runs the application, SB tomcat on server B is
standby(fallback),
02 tomcat is shutdown on Server A at the moment.

All three Tomcats are in the same lb_worker:


worker.list=lb-worker

worker.ajp13-01.port=11009
worker.ajp13-01.host=A
worker.ajp13-01.type=ajp13
worker.ajp13-01.lbfactor=1
worker.ajp13-01.local_worker=1

worker.ajp13-02.port=11019
worker.ajp13-02.host=A
worker.ajp13-02.type=ajp13
worker.ajp13-02.lbfactor=1
worker.ajp13-02.local_worker=0

worker.ajp13-sb.port=11015
worker.ajp13-sb.host=B
worker.ajp13-sb.type=ajp13
worker.ajp13-sb.lbfactor=0
worker.ajp13-sb.local_worker=1

worker.lb-worker.type=lb
worker.lb-worker.balanced_workers=ajp13-01, ajp13-02, ajp13-sb
worker.lb-worker.local_worker_only=0


The worker List order should now be:
 1. worker.ajp13-01 lbfactor=1,local_worker=1  TC 01
 2. worker.ajp13-sb lbfactor=0,local_worker=1  TC SB
 3. worker.ajp13-02 lbfactor=1,local_worker=0) TC 02  (not running)

Now all requests go to worker.ajp13-01 (TC 01), none to worker.ajp13-sb (TC
SB lbfactor=0),
none to worker.ajp13-02.port (TC 02 not running).

If Server A crashes (TC 01) all new requests go to Server B (TC SB
worker.ajp13-sb)
since this is then the only running Tomcat FINE
This is our Fail-Over Solution (lost running sessions, but OK).

Now the webapp update Scenario:

1.) shutdown TC SB on Server B, update the webapp, start tc SB and test via
a seperate HTTPConnector port without Apache.
2.) this does not affect anything on production, since the lbfactor=0 on TC
SB
-> no sessions arrive on tc SB
3.) When the test was successful, our Standby Tomcat SB is updated
4.) Now upgrade the webapp on Server A TC 02, which is currently not
running.
5.) Start up TC 02 on Server A with the new version of the webapp,
immediately exchange the worker.properties with a different version and
gracefully restart apache:

worker.list=lb-worker

worker.ajp13-01.port=11009
worker.ajp13-01.host=A
worker.ajp13-01.type=ajp13
worker.ajp13-01.lbfactor=1
worker.ajp13-01.local_worker=0 < put old webapp on TC 01 to the
foreign worker list

worker.ajp13-02.port=11019
worker.ajp13-02.host=A
worker.ajp13-02.type=ajp13
worker.ajp13-02.lbfactor=1
worker.ajp13-02.local_worker=1 < put new webapp on TC 02 in front of
the local worker list

worker.ajp13-sb.port=11015
worker.ajp13-sb.host=B
worker.ajp13-sb.type=ajp13
worker.ajp13-sb.lbfactor=0
worker.ajp13-sb.local_worker=1

worker.lb-worker.type=lb
worker.lb-worker.balanced_workers=ajp13-01, ajp13-02, ajp13-sb
worker.lb-worker.local_worker_only=0

Just the two lines marked above with < swap
(local_worker values of TC 01 and TC 02)

6.) now all 3 Tomcats are running. All existing sessions still go to TC 01
(sticky sessions; we do not loose running sessions)
7.) What I expect:
TC 02 takes a while to startup.
The worker List order should now be:
 1. worker.ajp13-02 lbfactor=1,local_worker=1  TC 02
 2. worker.ajp13-sb lbfactor=0,local_worker=1  TC SB
 3. worker.ajp13-01 lbfactor=1,local_worker=0) TC 01  (old webapp)

Since TC 02 needs 3 minutes to start up (filling caches etc.) it is not
immediately availlable.
During this time new sessions arrive at TC SB, since it is the next in the
worker list. OK fine this works.
Since these sessions are sticky as well, all users connecting during this
time stay on TC SB
during their whole session life. FINE

8.) As soon as TC 02 is up and running (finished all load-on-startup servlet
initialisition stuff)
I would expect that TC 02 gets all new Sessions (Number 1 in the worker
List).

This is not the case! All new Sessions still arrive at TC SB.

9.) After a while (one hour) we shutdown TC 01. Since no new sessions
arrived there since our
graceful restart of Apache, all old Sessions should have expired.

10.) even now (only 2 Tomcats running TC 02  and TC SB) and even after a
graceful restart new Sessions
arrive at TC SB


Conclusion:
Now, do I misunderstand the supposed behaviour of lbfactor and local_worker
flag ?
I think that the behaviour in 8.) is wrong. 10.) is starange too.

Thanks for any suggestion if I am completely wrong here
or further looking into this.

Hans


> -Ursprungliche Nachricht-
> Von: Glenn Nielsen [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 9. Juli 2003 15:56
> An: Tomcat Developers List
> Betreff: Re: jk 1.2.25 release ?
>
>
> I was hoping to get it released this week.
>
> But I just noticed that under Apache 2 mod_jk piped logs there
> are two instances of the piped log program running for t

RE: Could you give some help for me (about mod_jk for solaris 9)

2003-07-09 Thread James Courtney
David,
From what I've been told you should NOT use the connectors release for 4.1.24 
found at http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.24/src.  
Instead you should use the current release of the connectors project found at 
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.4/src/ and 
build your own.  I just started playing with this and don't yet know how to build it 
as the ant script has issues and I haven't installed autoconf yet.  I'll be working on 
building it for Solaris 8 today and I'll happily post my procedure back to you if you 
would like if I get it working.  You may also want to check out 
http://www.johnturner.com/howto/apache2-tomcat4112-sol8-howto.html.

Generally speaking I think you probably want to direct requests like this to the 
Tomcat-Users list as yours is less an implementation question and more one of 
obtaining the program and procedures for building and running.  That said I've had 
mixed luck with this as the majority of posters know only what has "worked" for them 
and often don't have a detailed understanding of the build and configuration process.

Good luck!

Jamey

-Original Message-
From: David Choi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:40 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Could you give some help for me (about mod_jk for solaris 9)


I have got your E-mai from some forum for tomcat
I am from south korea, and study about JSP and SUN OS.
First, Sorry for my poor english~

I am wondering where and how I can get the mod_jk.so (the
apache module) for connecting tomcat with apache
before, I found jakarta project FTP site but there was not
module(mod_jk.so) for solaris 9(some module for solaris 8 had some
error)

So many time I tried to make mod_jk.so from source file
(jakarta_tomcat_connector 4.1.24) but I couldn't 


Actually, I would like to connect tomcat 4.1.24 with apache 2.X on the
solaris 9 platform. 

Please help me now~

Thanks for your time and efforts~

>From YH.Choi
South Korea 



Wishing you all the success in this business, we hope our transaction
makes much better world than before. 

We thank you for your time and efforts
Warm regards,

David Choi
Marketing Manager
SP KOREA Co.,LTD (Tel 82-53-588-0318, Cel 82-16-9775-3900, Fax
82-53-588-0319)
http://www.sp-korea.com  
http://www.kacci.net






 


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



tomcat startup: huge hardisc activity

2003-07-09 Thread hgadm
Dear all,

every time when I start up Tomcat it seems to scan my
whole harddrive (takes some 30 sec at least) just to
present with something like:

server properties not found - using default or command
line properties.

No I looked into the various config file but could find
a way to force Tomcat to use default properties without
scanning my disk everytime.

- Any ideas ??

regards,

Holger

___
The ALL NEW CS2000 from CompuServe
 Better!  Faster! More Powerful!
 250 FREE hours! Sign-on Now!
 http://www.compuserve.com/trycsrv/cs2000/webmail/





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



AJP socket lifecycle?

2003-07-09 Thread James Courtney
Hey Tomcat developers,
Does AJP13 behave similarly to HTTP 1.1 in terms of socket keep-alive?  Does 
Apache/mod_jk(2) maintain a pool of persistent connections to the Tomcat server or are 
the connections transient?  My exploration with netstat indicates that the connections 
are persistent which holds consistent with common practices for TCP efficiency.  If 
this is the case how are these persistent connections allocated to incoming HTTP 
requests?  I've seen 50-60 ESTABLISHED connections between my Apache 2.0.45 and each 
of two Tomcat 4.1.24 instances (so 100-120 total ESTABLISHED AJP connections) even 
though I know that my number of concurrent user HTTP requests is much smaller than 
that at 30 or so.  If the pool of consistent connections were being used as expected I 
would expect to see only 30 or so (maybe up to 50-60 for spikes) AJP connections or 
about 15-30 per Tomcat.  Any thoughts?

Many thanks!

Jamey


James Courtney
InPhonic, Inc.


need tutorial: Tomcat on Win XP prof + IIS

2003-07-09 Thread hgadm
Dear all,

could you please direct me to a tutorial using Tomcat
with XP professional and the IIS.

Thanks,
Holger

___
The ALL NEW CS2000 from CompuServe
 Better!  Faster! More Powerful!
 250 FREE hours! Sign-on Now!
 http://www.compuserve.com/trycsrv/cs2000/webmail/





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



DO NOT REPLY [Bug 21440] New: - whose target performs a 'forward' does not behave as expected

2003-07-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21440

 whose target performs a 'forward' does not behave as expected

   Summary:  whose target performs a 'forward' does not
behave as expected
   Product: Tomcat 4
   Version: 4.1.24
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Jasper 2
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]


It appears that tomcat does not behave properly when a JSP
page invokes a  whose target performs a 'forward'.

Details below.

---
SETUP

Foo.html
 
 FOO

ForwardServlet.java:
 /**
  * A servlet that performs a RequestDispatcher.forward()
  * to "Foo.html".
  */
 package tsc.servlet;
 
 import java.io.IOException;
 import javax.servlet.*;
 
 public class ForwardServlet extends GenericServlet {
 public void service(ServletRequest req, ServletResponse res)
 throws ServletException, IOException {
  ServletContext context = getServletContext();  String
path="/Foo.html";
  RequestDispatcher rd = context.getRequestDispatcher(path);
  rd.forward(req, res);
 }
 }
Forward.jsp:
 
 

---
TestCase 1

With the following example:

 TestCase1.jsp
 -
 ***1***
***2***
 <% System.out.println("TestCase1.jsp"); %>

The expected result is that only "FOO" will be displayed
on the resulting page, and "TestCase1.jsp" will be
displayed on the console.

Here is why:

In JSP 5.4, it is stated that:
 "Inclusion is into the current value of out."
 ...
 "An included page only has access to the JspWriter object  and it cannot set
headers. This precludes invoking methods  like setCookie. Attempts to invoke
these methods will be ignored.  The constraint is equivalent to the one imposed on
 the include method of the RequestDispatcher class."

Although it would not hurt the spec to be a little more specific, the assumption
here is that the RequestDispatcher.include()
has to be called with a response object whose 'writer' is shared
with the "including" page.

Given that the target of the 'include' is a servlet that performs
a RequestDispather.forward(), the following will happen
(as per SRV 8.4):
  - output data in the response buffer is cleared
  - response content is sent and committed, and closed.

> From the viewpoint of our original TestCase1.jsp page, this therefore 

means that:
- "***1***" is added to the response output
- "***1***" gets cleared from the response output
- FOO is added to the response output
- the response output is closed
- '***2***' does not get added to the response output because
  it has already been closed
- The 'System.out()' statement gets executed.

If this example is run with Tomcat 4.1.24, the output
is:
 ***1***
 FOO
and "TestCase1.jsp" is NOT displayed on the console.
Not as expected.

---
Moreover, with the following example:

 TestCase2.jsp
 -
 ***1***
***2***
 <% System.out.println("TestCase2-a.jsp"); %>
***3***
 <% System.out.println("TestCase2-b.jsp"); %>

The expected result is that "TestCase2-a.jsp" will be displayed on the console
and that an IllegalStateException will be
thrown.
[Exception should be thrown because the response has already been committed with
the first forward (via the first include), and a forward
cannot be done (via the second include) when a response has already
been committed.]

If this example is run with Tomcat 4.1.24, the output
is:
 ***1***
 FOO
nothing is displayed on the console, and no exception is thrown.

---
Also, in the above two test cases, if ForwardServlet is replaced by
Forward.jsp as the target of the 's:

TestCase1
 works as expected

TestCase2
 FOO
 "TestCase2-a.jsp" is displayed on the console  
 IllegalStateException is not thrown

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



cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup SetDocBaseRule.java

2003-07-09 Thread remm
remm2003/07/09 11:16:33

  Modified:catalina/src/share/org/apache/catalina/startup
SetDocBaseRule.java
  Log:
  - Fix bug 21419: failure to start when a Context element is included in server.xml.
  - Patch submitted by Torsten Fohrer.
  
  Revision  ChangesPath
  1.2   +11 -6 
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/SetDocBaseRule.java
  
  Index: SetDocBaseRule.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/SetDocBaseRule.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SetDocBaseRule.java   24 Jun 2003 22:37:05 -  1.1
  +++ SetDocBaseRule.java   9 Jul 2003 18:16:32 -   1.2
  @@ -35,7 +35,7 @@
*permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache"
  - *nor may "Apache" appear in their names without prior written
  + *nor may "Apache" appear in their names Torstenwithout prior written
*permission of the Apache Group.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  @@ -118,8 +118,13 @@
   
   Context child = (Context) digester.peek(0);
   Deployer parent = (Deployer) digester.peek(1);
  -Method method = parent.getClass().getMethod("getHost", null);
  -Host host = (Host) method.invoke(parent, null);
  +Host host = null;
  +if (!(parent instanceof StandardHost)) {
  +Method method = parent.getClass().getMethod("getHost", null);
  +host = (Host) method.invoke(parent, null);
  +} else {
  +host = (Host) parent;
  +}
   String appBase = host.getAppBase();
   
   if (!(host instanceof StandardHost)) {
  
  
  

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



DO NOT REPLY [Bug 21419] - error on startup - java.lang.NoSuchMethodException: org.apache.catalina.core.StandardHost.getHost()

2003-07-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21419

error on startup - java.lang.NoSuchMethodException: 
org.apache.catalina.core.StandardHost.getHost()

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2003-07-09 18:21 ---
Ok, I reproduced it. You only need to have a Context element defined in server.xml.
So since this is not the preferred way in TC 5, I forgot to test it. Torsten's
patch is correct, and I'll apply it. Thanks for the patch.

Jacob: Thanks for reporting the issue. About the log4j problem: I did change
things in the webapp classloader, but not in the main common classloader.

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



Re: cvs commit: jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/sessionSimpleTcpReplicationManager.java

2003-07-09 Thread Remy Maucherat
Costin Manolache wrote:
I remember making a change in 5.0 jasper to make it configurable on a
per-page basis.
That's a good feature, and I've been using it without problems. Since 
it's dynamic, I couldn't verify just yet that it did what it advertised, 
though ;-)

Remy

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


DO NOT REPLY [Bug 21440] - whose target performs a 'forward' does not behave as expected

2003-07-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21440

 whose target performs a 'forward' does not behave as expected

[EMAIL PROTECTED] changed:

   What|Removed |Added

   Severity|Normal  |Minor



--- Additional Comments From [EMAIL PROTECTED]  2003-07-09 18:56 ---
The test case 2 is giving me a headache, so I won't comment on it.
For the first one, I think that since you're inside an include, the forwarded
page can't close the response, which I think is very logical.
I think the report is invalid, sorry Pierre (and even if it's not, there are
many other, way more important request dispatcher issues which have an actual
impact unlike this report, waiting to be clarified by the specification, such as
req/resp wrapping).
I think I am against attempting to fix this bug (if confirmed it is actually
one) in 4.1.x.

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



Re: cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startupSetDocBaseRule.java

2003-07-09 Thread Tim Funk
Torstenwithout ??

copy paste oops?

>   - *nor may "Apache" appear in their names without prior written
>   + *nor may "Apache" appear in their names Torstenwithout prior written
-Tim



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


DO NOT REPLY [Bug 21440] - whose target performs a 'forward' does not behave as expected

2003-07-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21440

 whose target performs a 'forward' does not behave as expected





--- Additional Comments From [EMAIL PROTECTED]  2003-07-09 19:18 ---
Agree this is severity 'minor', since this is a corner case that 
should not occur often.

> The test case 2 is giving me a headache, so I won't comment on it.

With some more coffee, I know you can do it Remy :-)

> For the first one, I think that since you're inside an include, the forwarded
> page can't close the response, which I think is very logical.

That was my impression at first, but after checking with the spec leads,
it looks like the response object is to be shared between the including and
included pages. Given the following in the servlet spec:

  - response content is sent and committed, and closed.

This would mean that the output stream of the including page is closed.

> I think the report is invalid, sorry Pierre (and even if it's not, there are
> many other, way more important request dispatcher issues which have an actual
> impact unlike this report, waiting to be clarified by the specification, 
> such as req/resp wrapping).
> I think I am against attempting to fix this bug (if confirmed it is 
> actually one) in 4.1.x.

Not sure it is invalid, but clarifications from the spec leads would
be important. I'll copy the spec leads on this report to make sure
it eventually gets addressed.

As mentioned above, this is 'minor' and I understand this may not be
fixed in 4.1.x, and that there are way more important issues pending. 
Having it logged will hopefully ensure it does not fall 
through the cracks... 
(A JSTL bug report on  is what triggered this investigation
because the behavior of  in JSTL is defined in function of ).

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



Re: Object pooling performance

2003-07-09 Thread Peter Lin


Costin Manolache <[EMAIL PROTECTED]> wrote:
On the other hand, I've seen pages where JSP tag pooling was worse. 

That's why I think per page customization, and supporting per-thread pooling
are very important. This is a "fine-tune" operation for pages that are
frequently accessed, not a "one size fit all" problem.


Costin


I've also seen this happen for pages that only have a couple tags. from my own 
benchmarks, pages with less than 40 tags are better off not using tag pooling. the per 
page fine-tuning is a nice way to maximize performance :)
 
peter
 


-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup SetDocBaseRule.java

2003-07-09 Thread remm
remm2003/07/09 12:54:34

  Modified:catalina/src/share/org/apache/catalina/startup
SetDocBaseRule.java
  Log:
  - Copy paste oops. Thanks Tim :)
  
  Revision  ChangesPath
  1.3   +4 -4  
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/SetDocBaseRule.java
  
  Index: SetDocBaseRule.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/SetDocBaseRule.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SetDocBaseRule.java   9 Jul 2003 18:16:32 -   1.2
  +++ SetDocBaseRule.java   9 Jul 2003 19:54:34 -   1.3
  @@ -35,7 +35,7 @@
*permission, please contact [EMAIL PROTECTED]
*
* 5. Products derived from this software may not be called "Apache"
  - *nor may "Apache" appear in their names Torstenwithout prior written
  + *nor may "Apache" appear in their names without prior written
*permission of the Apache Group.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  
  
  

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



DO NOT REPLY [Bug 19799] - Tomcat dies after being up for a while (complains about maxThreads)

2003-07-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19799

Tomcat dies after being up for a while (complains about maxThreads)





--- Additional Comments From [EMAIL PROTECTED]  2003-07-09 20:52 ---
We are experiencing this problem in the Tomcat 4.1.24 release. We set 
maxProcessors to 150 threads and still this happens after running the server 
for some time. Not sure why it uses up all threads and requests more.

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



DO NOT REPLY [Bug 19799] - Tomcat dies after being up for a while (complains about maxThreads)

2003-07-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19799

Tomcat dies after being up for a while (complains about maxThreads)





--- Additional Comments From [EMAIL PROTECTED]  2003-07-09 20:55 ---
We are experiencing this problem in the Tomcat 4.1.24 release. We set 
maxProcessors to 150 threads and still this happens after running the server 
for some time. Not sure why it uses up all threads and requests more.

I will try to get some thread dumps and post it.

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



DO NOT REPLY [Bug 21448] New: - memory leak in PageContextImpl

2003-07-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21448

memory leak in PageContextImpl

   Summary: memory leak in PageContextImpl
   Product: Tomcat 4
   Version: 4.1.24
  Platform: All
OS/Version: All
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Jasper
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


When an exception occurr in a JSP page, the stackwriter is not cleared, and this
can cause memory leaks.
This patch clear stackWriter when the page is released.

Index: jasper/src/share/org/apache/jasper/runtime/PageContextImpl.java
===
RCS file:
/home/cvspublic/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/runtime/PageContextImpl.java,v
retrieving revision 1.17
diff -u -r1.17 PageContextImpl.java
--- jasper/src/share/org/apache/jasper/runtime/PageContextImpl.java 6 May
2002 23:32:42 -   1.17
+++ jasper/src/share/org/apache/jasper/runtime/PageContextImpl.java 9 Jul
2003 20:47:31 -
@@ -195,6 +195,7 @@
session  = null;

attributes.clear();
+   stackWriter.clear();
 }

 public Object getAttribute(String name) {

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



DO NOT REPLY [Bug 19799] - Tomcat dies after being up for a while (complains about maxThreads)

2003-07-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19799

Tomcat dies after being up for a while (complains about maxThreads)





--- Additional Comments From [EMAIL PROTECTED]  2003-07-09 21:03 ---
You can get a thread dump by doing a kill -3 on the Java process on Unix, or
using CTRL+BREAK on Windows. That should help see what the threads are doing,
and see where the problem is coming from.

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



cvs commit: jakarta-tomcat-4.0 build.properties.sample

2003-07-09 Thread remm
remm2003/07/09 15:23:13

  Modified:.build.properties.sample
  Log:
  - Update all dependencies.
  
  Revision  ChangesPath
  1.66  +12 -12jakarta-tomcat-4.0/build.properties.sample
  
  Index: build.properties.sample
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/build.properties.sample,v
  retrieving revision 1.65
  retrieving revision 1.66
  diff -u -r1.65 -r1.66
  --- build.properties.sample   14 Jun 2003 02:08:26 -  1.65
  +++ build.properties.sample   9 Jul 2003 22:23:13 -   1.66
  @@ -71,17 +71,17 @@
   
   
   # - Commons Digester, version 1.1.1 or later -
  -commons-digester.home=${base.path}/commons-digester-1.4.1
  +commons-digester.home=${base.path}/commons-digester-1.5
   commons-digester.lib=${commons-digester.home}
   commons-digester.jar=${commons-digester.lib}/commons-digester.jar
  
-commons-digester.loc=http://www.apache.org/dist/jakarta/commons/digester/binaries/commons-digester-1.4.1.tar.gz
  
+commons-digester.loc=http://www.apache.org/dist/jakarta/commons/digester/binaries/commons-digester-1.5.tar.gz
   
   
   # - Commons FileUpload, nightly build -
  -commons-fileupload.home=${base.path}/commons-fileupload-1.0-rc1
  +commons-fileupload.home=${base.path}/commons-fileupload-1.0
   commons-fileupload.lib=${commons-fileupload.home}
  -commons-fileupload.jar=${commons-fileupload.lib}/commons-fileupload-1.0-rc1.jar
  
-commons-fileupload.loc=http://www.apache.org/dist/jakarta/commons/fileupload/commons-fileupload-1.0-rc1.tar.gz
  +commons-fileupload.jar=${commons-fileupload.lib}/commons-fileupload-1.0.jar
  
+commons-fileupload.loc=http://www.apache.org/dist/jakarta/commons/fileupload/commons-fileupload-1.0.tar.gz
   
   
   # - Commons Logging, version 1.0.1 or later -
  @@ -124,9 +124,9 @@
   
   # - Xerces XML Parser, version 2.0.0 or later -
   # Note: Optional with JDK 1.4+, or if Xerces 1.x is present
  -xerces.home=${base.path}/xerces-2_3_0
  +xerces.home=${base.path}/xerces-2_4_0
   xerces.lib=${xerces.home}
  -xerces.loc=http://xml.apache.org/dist/xerces-j/old_xerces2/Xerces-J-bin.2.3.0.tar.gz
  +xerces.loc=http://xml.apache.org/dist/xerces-j/Xerces-J-bin.2.4.0.tar.gz
   xercesImpl.jar=${xerces.lib}/xercesImpl.jar
   xmlParserAPIs.jar=${xerces.lib}/xmlParserAPIs.jar
   
  @@ -157,10 +157,10 @@
   
   
   # - Commons Modeler, version 1.0 or later -
  -commons-modeler.home=${base.path}/commons-modeler-1.1M1
  +commons-modeler.home=${base.path}/commons-modeler-1.0
   commons-modeler.lib=${commons-modeler.home}
   commons-modeler.jar=${commons-modeler.lib}/commons-modeler.jar
  
-commons-modeler.loc=http://jakarta.apache.org/builds/jakarta-commons/release/commons-modeler/v1.1-M1/commons-modeler-1.1M1.tar.gz
  
+commons-modeler.loc=http://jakarta.apache.org/builds/jakarta-commons/release/commons-modeler/v1.0/commons-modeler-1.0.tar.gz
   
   
   # - Commons Pool, version 1.0 or later -
  @@ -227,10 +227,10 @@
   
   
   # - Struts, version 1.0.1 or later -
  -struts.home=${base.path}/jakarta-struts-1.0.2
  +struts.home=${base.path}/jakarta-struts-1.1
   struts.lib=${struts.home}/lib
   struts.jar=${struts.lib}/struts.jar
  
-struts.loc=http://jakarta.apache.org/builds/jakarta-struts/release/v1.0.2/jakarta-struts-1.0.2.tar.gz
  
+struts.loc=http://jakarta.apache.org/builds/jakarta-struts/release/v1.1/jakarta-struts-1.0.2.tar.gz
   
   
   # - Tyrex Data Source, version 1.0 -
  
  
  

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



DO NOT REPLY [Bug 21440] - whose target performs a 'forward' does not behave as expected

2003-07-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21440

 whose target performs a 'forward' does not behave as expected





--- Additional Comments From [EMAIL PROTECTED]  2003-07-09 22:40 ---
I believe I have a fix for testcase_1:

 wraps the response into an instance of
org.apache.jasper.runtime..ServletResponseWrapperInclude, so that the
included resource may append its output to the output buffer of the
including page.

Therefore, in the case of "ForwardServlet", the response object passed
to RequestDispatcher.forward() is an instance of
ServletResponseWrapperInclude. RequestDispatcher.forward() calls
resetBuffer() on the response object, which
ServletResponseWrapperInclude delegates to the wrapped response. At
this point, "***1***" has not been committed to the response buffer
yet: it was buffered in the JspWriter associated with the including
page, to which the PrintWriter associated with the
ServletResponseWrapperInclude appends. This means that calling
resetBuffer() on the response does not really have any effect, and
therefore, "FOO" gets appended to "***1***".

On the other hand, when replacing "ForwardServlet" with "forward.jsp",
the code generated for "forward.jsp" calls RequestDispatcher.forward()
with a response object obtained as follows:

  // Make sure that the response object is not the wrapper for include
  while (response instanceof ServletResponseWrapperInclude) {
response = ((ServletResponseWrapperInclude)response).getResponse();
  }

As a consequence of passing the original response to the
RequestDispatcher, the response consists of just "FOO", which does not
get appended to "***1***".

A fix is to override ServletResponseWrapperInclude.resetBuffer() as follows:

public void resetBuffer() {
try {
writer.clearBuffer();
} catch (IOException ioe) {
}
}

which clears the output buffer of the including page, which is what we want.

However, independently of this fix, running testcase_1 throws this exception:

  SEVERE: Servlet.service() for servlet jsp threw exception
  java.io.IOException: Stream closed
at
org.apache.jasper.runtime.JspWriterImpl.ensureOpen(JspWriterImpl.java:233)
at
org.apache.jasper.runtime.JspWriterImpl.clearBuffer(JspWriterImpl.java:188)
at org.apache.jsp.test1_jsp._jspService(test1_jsp.java:48)

When replacing "ForwardServlet" with "forward.jsp", it throws this exception:

  SEVERE: Servlet.service() for servlet jsp threw exception
  java.lang.IllegalStateException: getOutputStream() has already been called for
this response
at
org.apache.coyote.tomcat5.CoyoteResponse.getWriter(CoyoteResponse.java:628)
at
org.apache.coyote.tomcat5.CoyoteResponseFacade.getWriter(CoyoteResponseFacade.java:192)
at
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:165)
at
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:158)
at
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:245)
at
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:160)
at
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:120)
at org.apache.jsp.test11_jsp._jspService(test11_jsp.java:52)


Still investigating 


Jan

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



DO NOT REPLY [Bug 21440] - whose target performs a 'forward' does not behave as expected

2003-07-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21440

 whose target performs a 'forward' does not behave as expected





--- Additional Comments From [EMAIL PROTECTED]  2003-07-09 22:52 ---
I find the spec's section on the RD to be impossible to understand, and, IMO,
self contradicting. Wrapping is the most obvious issue. I think I'll veto any RD
change until all these issues are resolved, since I'm personally tired of trying
to hack something in the dark (and hopefully, the section will be reworked so
that it can be implemented without too many headaches) :)

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



DO NOT REPLY [Bug 21440] - whose target performs a 'forward' does not behave as expected

2003-07-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21440

 whose target performs a 'forward' does not behave as expected





--- Additional Comments From [EMAIL PROTECTED]  2003-07-09 23:09 ---
Remy, I agree in general with your comments about the RD.

However, I think this particular case (testcase_1) is covered by SRV.8.4:

"If output data exists in the response buffer that has not been committed, the
content must be cleared before the target servlet's service method is called."

and

"Before the forward method of the RequestDispatcher interface returns, the
response content must be sent and committed, and closed by the servlet
container."

My proposed change (in org.apache.jasper.runtime.ServletResponseWrapperInclude)
will make the "ForwardServlet" case consistent with , which already
implements the required behaviour.

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



DO NOT REPLY [Bug 21454] New: - OPTIONS * and TRACE * don't work as expected

2003-07-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21454

OPTIONS * and TRACE * don't work as expected

   Summary: OPTIONS * and TRACE * don't work as expected
   Product: Tomcat 3
   Version: 3.3.1 Final
  Platform: Other
OS/Version: Windows NT/2K
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Unknown
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Expected result:

>From RFC 2616, section 9.2, it should be possible to send an OPTIONS request of
the form:

OPTIONS * HTTP/1.1
...

and receive a valid options response for the server in general, rather than a
particular servlet.

Actual result:

I receive a 404 Not Found response instead. In addition, the Tomcat output
window shows an IOException, which I'll attach shortly.

I believe this should also apply for TRACE.

This behaviour works correctly on the Tomcat 4.1 series.

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



DO NOT REPLY [Bug 21454] - OPTIONS * and TRACE * don't work as expected

2003-07-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21454

OPTIONS * and TRACE * don't work as expected





--- Additional Comments From [EMAIL PROTECTED]  2003-07-10 02:58 ---
Created an attachment (id=7200)
Log file of error message when trying OPTIONS * request

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



DO NOT REPLY [Bug 21454] - OPTIONS * and TRACE * don't work as expected

2003-07-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21454

OPTIONS * and TRACE * don't work as expected





--- Additional Comments From [EMAIL PROTECTED]  2003-07-10 03:02 ---
Created an attachment (id=7201)
Connection to Tomcat showing OPTIONS * request and response

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



DO NOT REPLY [Bug 21454] - OPTIONS * and TRACE * don't work as expected

2003-07-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21454

OPTIONS * and TRACE * don't work as expected





--- Additional Comments From [EMAIL PROTECTED]  2003-07-10 05:06 ---
Technically, this is INVALID, since Tomcat 3.3.1 doesn't support HTTP/1.1 with 
it's stand-alone Connector.  However, it still fails using the CoyoteConnector 
with 3.3.2-dev, so I can't actually change the status.  I need to think about 
it more to patch the CoyoteConnector, but I consider this to be a WONTFIX for 
the Http10Connector (which will hopefully be deprecated by the time 3.3.2 is 
released).

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



RE: Could you give some help for me (about mod_jk for solaris 9)

2003-07-09 Thread James Courtney
This worked for me on Solaris 8 this evening:

Make sure you have properly compiled and installed Apache 2.x and Tomcat 4.1.24.  
We'll call these installation directories apache2.home and tomcat4.home.

Also make sure you have recent versions of m4, automake, and autoconf installed from 
www.sunfreeware.com.

Set the environment variable M4 to the location of your GNU m4 executable.

For example in bash: export M4=/usr/local/bin/m4

Download jakarta-tomcat-connectors-jk-1.2.4-src.tar.gz from
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.4/src/
and extract it to some directory, well call it jk.build.

cd ${jk.build}/jk/native

execute buildconf.sh

execute ./configure --with-apxs=${apache2.home}/bin/apxs

execute make

Locate mod_jk.so from the ${jk.build}/jk/native/apache-2.0 directory and copy it to 
your ${apache.home}/modules directory.  Just add the line
LoadModule jk_module ${apache.home}/modules/mod_jk.so
to your ${apache.home}/httpd.conf file and follow the configuration instructions for 
httpd.conf and workers.properties given at
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.4/doc/.

Good luck!

Jamey


-Original Message-
From: David Choi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 2:40 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Could you give some help for me (about mod_jk for solaris 9)


I have got your E-mai from some forum for tomcat
I am from south korea, and study about JSP and SUN OS.
First, Sorry for my poor english~

I am wondering where and how I can get the mod_jk.so (the
apache module) for connecting tomcat with apache
before, I found jakarta project FTP site but there was not
module(mod_jk.so) for solaris 9(some module for solaris 8 had some
error)

So many time I tried to make mod_jk.so from source file
(jakarta_tomcat_connector 4.1.24) but I couldn't 


Actually, I would like to connect tomcat 4.1.24 with apache 2.X on the
solaris 9 platform. 

Please help me now~

Thanks for your time and efforts~

>From YH.Choi
South Korea 



Wishing you all the success in this business, we hope our transaction
makes much better world than before. 

We thank you for your time and efforts
Warm regards,

David Choi
Marketing Manager
SP KOREA Co.,LTD (Tel 82-53-588-0318, Cel 82-16-9775-3900, Fax
82-53-588-0319)
http://www.sp-korea.com  
http://www.kacci.net






 


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