DO NOT REPLY [Bug 17088] - Can't bring up Tomcat - any builds SEVERE:PARSE Fatal Error
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17088. 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=17088 Can't bring up Tomcat - any builds SEVERE:PARSE Fatal Error [EMAIL PROTECTED] changed: What|Removed |Added Severity|Critical|Blocker Priority|Other |High - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[GUMP] Build Failure - jakarta-tomcat-catalina
This email is autogenerated from the output from: http://cvs.apache.org/builds/gump/2003-02-16/jakarta-tomcat-catalina.html Buildfile: build.xml deploy-prepare: [mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-catalina/build deploy-static: deploy-catalina: [echo] Target: Catalina - Deploy ... flags: flags.display: [echo] --- Build environment for Catalina --- [echo] If ${property_name} is displayed, then the property is not set) [echo] --- Build options --- [echo] full.dist=${full.dist} [echo] build.sysclasspath=only [echo] compile.debug=${compile.debug} [echo] compile.deprecation=${compile.deprecation} [echo] compile.optimize=${compile.optimize} [echo] --- Ant Flags --- [echo] style task available (required)=true [echo] --- JDK --- [echo] jdk.1.2.present=true [echo] jdk.1.3.present=true [echo] jdk.1.4.present=true [echo] --- Source Dependencies --- [echo] jtc.home.present=true [echo] --- Required Libraries --- [echo] beanutils.present=true [echo] collections.present=true [echo] digester.present=true [echo] jaxp.present=true [echo] jndi.present=true [echo] logging.present=true [echo] regexp.present=true [echo] --- Optional Libraries --- [echo] dbcp.present=true [echo] fileupload.present=true [echo] jaas.present=true [echo] javamail.present=true [echo] jmx.present=true [echo] jsse.present=true [echo] jta.present=true [echo] junit.present=true [echo] lang.present=${lang.present} [echo] launcher.present=${launcher.present} [echo] launcher.bootstrap.present=${launcher.bootstrap.present} [echo] ldap.present=true [echo] modeler.present=true [echo] pool.present=true [echo] tyrex.present=${tyrex.present} [echo] --- Required JARs --- [echo] jndi.jar.present(except JDK 1.3+)=true [echo] regexp.jar.present=true [echo] servlet-api.jar.present=true [echo] xerces2.jars.present(except JDK 1.4+)=true [echo] --- Optional JARs --- [echo] dbcp.jar.present=true [echo] fileupload.jar.present=true [echo] jaas.jar.present=true [echo] javamail.jar.present=true [echo] jdbc20ext.jar.present=true [echo] jmx.jar.present=true [echo] jta.jar.present=true [echo] junit.jar.present=${junit.jar.present} [echo] modeler.jar.present=true [echo] pool.jar.present=true [echo] tyrex.jar.present=${tyrex.jar.present} [echo] --- Conditional compilation flags --- [echo] compile.dbcp=true [echo] compile.jaas=true [echo] compile.javamail=true [echo] compile.jmx=true [echo] compile.jndi=true [echo] compile.jsse=true [echo] compile.jta=true [echo] compile.junit=true [echo] compile.ldap=true [echo] compile.ssi=true [echo] compile.tyrex=${compile.tyrex} [echo] --- Distribution flags --- [echo] copy.dbcp.jar=true [echo] copy.jmx.jar=true [echo] copy.launcher.jars=${copy.launcher.jars} [echo] copy.logging.jar=true [echo] copy.modeler.jar=true [echo] copy.pool.jar=true build-prepare: [mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-catalina/build/bin [mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-catalina/build/common/classes [mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-catalina/build/common/lib [mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-catalina/build/common/endorsed [mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-catalina/build/conf [mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-catalina/build/logs [mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-catalina/build/server/classes [mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-catalina/build/server/lib [mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-catalina/build/shared/classes [mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-catalina/build/shared/lib [mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-catalina/build/work [mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-catalina/build/temp copy-dbcp.jar: [copy] Copying 1 file to /home/rubys/jakarta/jakarta-tomcat-catalina/build/common/lib copy-fileupload.jar: [copy] Copying 1 file to /home/rubys/jakarta/jakarta-tomcat-catalina/build/server/lib copy-jmx.jar: [copy] Copying 1 file to /home/rubys/jakarta/jakarta-tomcat-catalina/build/server/lib [copy] Copying 1 file to /home/rubys/jakarta/jakarta-tomcat-catalina/build/server/lib copy-launcher.jars: copy-modeler.jar: [copy] Copying 1 file to /home/rubys/jakarta/jakarta-tomcat-catalina/build/server/lib copy-pool.jar: [copy] Copying 1 file to /home/rubys/jakarta/jakarta-tomcat-catalina/build/common/lib copy-xerces2.jars:
[GUMP] Build Failure - jakarta-tomcat-jk-native
This email is autogenerated from the output from: http://cvs.apache.org/builds/gump/2003-02-16/jakarta-tomcat-jk-native.html Buildfile: build.xml init: [echo] /home/rubys [mkdir] Created dir: /home/rubys/jakarta/jakarta-tomcat-connectors/jk/build/jk 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 Compiling /home/rubys/jakarta/jakarta-tomcat-connectors/jk/native/common/jk_util.c Compiling /home/rubys/jakarta/jakarta-tomcat-connectors/jk/native/jni/jk_jnicb.c [so] Compile failed 1 /home/rubys/jakarta/jakarta-tomcat-connectors/jk/native/jni/jk_jnicb.c [so] Command:libtool --mode=compile cc -c -o /home/rubys/jakarta/jakarta-tomcat-connectors/jk/build/jk/jni/jni/jk_jnicb.o -I/home/rubys/jakarta/jakarta-tomcat-connectors/jk/native/common -I/home/rubys/jakarta/jakarta-tomcat-connectors/jk/native/jni -I/usr/java/j2sdk1.4.1_01/jre/../include -I${build.compiler.base}/include -g -W /home/rubys/jakarta/jakarta-tomcat-connectors/jk/native/jni/jk_jnicb.c [so] Output: [so] mkdir /home/rubys/jakarta/jakarta-tomcat-connectors/jk/build/jk/jni/jni/.libs [so] cc -c -I/home/rubys/jakarta/jakarta-tomcat-connectors/jk/native/common -I/home/rubys/jakarta/jakarta-tomcat-connectors/jk/native/jni -I/usr/java/j2sdk1.4.1_01/jre/../include -I\${build.compiler.base}/include -g -W /home/rubys/jakarta/jakarta-tomcat-connectors/jk/native/jni/jk_jnicb.c -fPIC -DPIC -o /home/rubys/jakarta/jakarta-tomcat-connectors/jk/build/jk/jni/jni/.libs/jk_jnicb.lo [so] StdErr: [so] In file included from /home/rubys/jakarta/jakarta-tomcat-connectors/jk/native/jni/jk_jnicb.h:2, [so] from /home/rubys/jakarta/jakarta-tomcat-connectors/jk/native/jni/jk_jnicb.c:64: [so] /usr/java/j2sdk1.4.1_01/include/jni.h:27:20: jni_md.h: No such file or directory BUILD FAILED file:///home/rubys/jakarta/jakarta-tomcat-connectors/jk/native/build.xml:63: Compile failed /home/rubys/jakarta/jakarta-tomcat-connectors/jk/native/jni/jk_jnicb.c Total time: 7 seconds - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 17088] - Can't bring up Tomcat - any builds SEVERE:PARSE Fatal Error
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17088. 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=17088 Can't bring up Tomcat - any builds SEVERE:PARSE Fatal Error [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||INVALID --- Additional Comments From [EMAIL PROTECTED] 2003-02-16 11:49 --- This is obviously a user error. Sorry, but I can't debug your XML files for you ... Note that you *must* use the Xerces bins bundled with Tomcat. Please don't replace them unless you know what you're doing. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-catalina/catalina build.xml
remm2003/02/16 04:40:54 Modified:catalina build.xml Log: - Gump doesn't have a definition for Tyrex, so it seems less painful to add it back to the conditional dependency list. Revision ChangesPath 1.41 +2 -2 jakarta-tomcat-catalina/catalina/build.xml Index: build.xml === RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/build.xml,v retrieving revision 1.40 retrieving revision 1.41 diff -u -r1.40 -r1.41 --- build.xml 14 Feb 2003 15:29:43 - 1.40 +++ build.xml 16 Feb 2003 12:40:54 - 1.41 @@ -658,6 +658,8 @@ unless=compile.javamail/ exclude name=org/apache/catalina/valves/CertificatesValve.java unless=compile.jsse/ + exclude name=org/apache/naming/factory/Tyrex*.java + unless=compile.tyrex/ !-- exclude name=org/apache/catalina/util/ProcessHelper.java unless=jdk.1.3.present/ @@ -667,8 +669,6 @@ unless=fileupload.present/ exclude name=org/apache/naming/factory/DbcpDataSourceFactory.java unless=compile.dbcp/ - exclude name=org/apache/naming/factory/Tyrex*.java - unless=compile.tyrex/ exclude name=org/apache/catalina/ssi/** unless=compile.ssi/ exclude name=org/apache/catalina/startup/EmbeddedManager.java - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 17088] - Can't bring up Tomcat - any builds SEVERE:PARSE Fatal Error
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17088. 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=17088 Can't bring up Tomcat - any builds SEVERE:PARSE Fatal Error [EMAIL PROTECTED] changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALID | --- Additional Comments From [EMAIL PROTECTED] 2003-02-16 17:29 --- These are Brand New INstallations with NO files touched by the user. We even re-installed Windows 2000 once. I can get a Brand New Tomcat, either LE or the FULL, of the 4.1.8 version we get the same error messages. Please note, these errors happen right-out-ofthe-box without us touching any of the TOMCAT files. We need your help to bring up tomcat on this NEW WIndows Machine. We haven't even modified the server.xml file. Can you at least tell us what XML file is causing the problem ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-5 build.properties.default build.xml tomcat.nsi
remm2003/02/16 10:28:48 Modified:.build.properties.default build.xml tomcat.nsi Log: - Update to use procrun instead of JavaService. - Unfortunately, procrun doesn't work as advertised yet. Revision ChangesPath 1.68 +12 -7 jakarta-tomcat-5/build.properties.default Index: build.properties.default === RCS file: /home/cvs/jakarta-tomcat-5/build.properties.default,v retrieving revision 1.67 retrieving revision 1.68 diff -u -r1.67 -r1.68 --- build.properties.default 12 Feb 2003 17:26:15 - 1.67 +++ build.properties.default 16 Feb 2003 18:28:47 - 1.68 @@ -67,6 +67,17 @@ commons-launcher.loc=http://jakarta.apache.org/builds/jakarta-commons/release/commons-launcher/v0.9/commons-launcher-0.9.tar.gz +# - Commons Daemon - +commons-daemon.home=${base.path}/commons-daemon +commons-daemon.lib=${commons-daemon.home}/dist +commons-daemon.jar=${commons-daemon.lib}/commons-daemon.jar +commons-daemon.procrun.home=${commons-daemon.home}/src/native/nt/procrun/bin +commons-daemon.procrun.exe=${commons-daemon.procrun.home}/procrun.exe +commons-daemon.procrunw.exe=${commons-daemon.procrun.home}/procrunw.exe +commons-daemon.loc=jakarta-commons-sandbox/daemon +commons-daemon.cvs.loc=jakarta-commons-sandbox/daemon + + # - Commons Digester, version 1.4 or later - commons-digester.home=${base.path}/commons-digester-1.4 commons-digester.lib=${commons-digester.home} @@ -168,12 +179,6 @@ javagroups.lib=${javagroups.home} javagroups.jar=${javagroups.lib}/javagroups-all.jar javagroups.loc=http://telia.dl.sourceforge.net/sourceforge/javagroups/JavaGroups-2.0.3.bin.zip - - -# - JavaService, version 1.2.0 or later - -javaservice.home=${base.path}/javaservice -javaservice.exe=${javaservice.home}/bin/JavaService.exe -javaservice.loc=http://www.alexandriasc.com/software/JavaService/JavaService-bin-1.2.0.zip # - Java Management Extensions (JMX), JMX RI 1.0.1 or later or MX4J 1.1 or later - 1.81 +10 -4 jakarta-tomcat-5/build.xml Index: build.xml === RCS file: /home/cvs/jakarta-tomcat-5/build.xml,v retrieving revision 1.80 retrieving revision 1.81 diff -u -r1.80 -r1.81 --- build.xml 15 Feb 2003 22:33:23 - 1.80 +++ build.xml 16 Feb 2003 18:28:48 - 1.81 @@ -42,8 +42,6 @@ !-- Build Defaults -- property name=catalina.build value=${catalina.home}/build/ property name=jasper.build value=${jasper.home}/build/ - property name=javaservice.home value=../javaservice/ - property name=nsis.homevalue=c:\program files\nsis/ property name=servlet.home value=../jakarta-servletapi-5/jsr154/dist/ property name=jsp.home value=../jakarta-servletapi-5/jsr152/dist/ property name=tomcat.build value=${basedir}/build/ @@ -827,7 +825,8 @@ fileset dir=resources / /copy copy file=${nsis.installoptions.dll} todir=${tomcat.dist} / -copy file=${javaservice.exe} tofile=${tomcat.dist}/bin/tomcat.exe / +copy file=${commons-daemon.procrun.exe} tofile=${tomcat.dist}/bin/tomcat.exe / +copy file=${commons-daemon.procrunw.exe} tofile=${tomcat.dist}/bin/tomcatw.exe / filter token=VERSION value=${version}/ copy file=tomcat.nsi tofile=${tomcat.dist}/tomcat.nsi filtering=true/ @@ -907,7 +906,8 @@ condition property=execute.installer and os family=windows / -available file=${javaservice.exe} / +available file=${commons-daemon.procrun.exe} / +available file=${commons-daemon.procrunw.exe} / available file=${nsis.exe} / available file=${nsis.installoptions.dll} / /and @@ -1063,6 +1063,12 @@ param name=sourcefile value=${junit.loc}/ param name=destfile value=${junit.jar}/ param name=destdir value=${base.path}/ +/antcall + +antcall target=cvsbuild + param name=location value=${commons-daemon.cvs.loc}/ + param name=subdir value=${commons-daemon.home}/ + param name=destfile value=${commons-daemon.jar}/ /antcall antcall target=downloadgz 1.22 +19 -22jakarta-tomcat-5/tomcat.nsi Index: tomcat.nsi === RCS file: /home/cvs/jakarta-tomcat-5/tomcat.nsi,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- tomcat.nsi13 Feb 2003 14:45:44 - 1.21 +++ tomcat.nsi16 Feb 2003 18:28:48 - 1.22 @@ -111,7 +111,6 @@ File tomcat.ico File LICENSE File /r bin - Delete $INSTDIR\bin\tomcat.exe File /r common File /r conf File /r shared @@ -124,7
RE: Request to Fix Tomcat Standalone 302 redirect Issue
Aha! That's exactly what I was looking for - a forward rather than a redirect! Great, I will check out the thread and keep my fingers crossed that this is an optional behavior in Tomcat 5. As for the status, might I suggest that so long as this behavior is not changed and not optional that it should be well documented. This can be a serious caveat ... and a quite unexpected one. The documentation for Tomcat standalone gives no indication that it is inferior or that it implements an alternative standard due to the existance of apache. But if that's the case it should be noted as a guide for people new to the product who need to make informed decisions. Thanks. Neal -Original Message- From: Reinhard Moosauer [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 4:47 AM To: Tomcat Developers List Subject: Re: Request to Fix Tomcat Standalone 302 redirect Issue Hi, at Jan 03, 2003 Matt Parker published a patch in this list: [PATCH] forward instead of redirect for welcome files which was discussed thourougly with Costin, Remy and others. I'm not sure about the conclusion of this. But it seemed that 5.0 should reintroduce this behavior by option. Please read that thread. Maybe there are some hints to get further. (I am also very interested in this changing this, but as long as apache ist an option, the priority stays medium...) Kind regards, Reinhard Am Sonntag, 16. Februar 2003 00:41 schrieb neal: Has anyone considered fixing the following Tomcat standalone issue: if a request is made to www.xyz.com, tomcat auto redirects (per the welcome files list) to www.xyz.com/index.html. That's a 302 http redirect. Aside from this being a very non-standard approach th handling default files within a directory, it is extremely problematic when dealing with Search Engines. Search engines hate 302s and penalize most sites that utilize them, particularly as their default page. Further in the case of Google, a page rank is assigned to a url based upon inboind links. If the inboind links are all to www.xyz.com and that url is just a redirect, you will never benefit from the inbound links to your default url and never achieve a nigh ranking. For these reasons this feature of tomcat renders the standalone http server virtually commercially non-viable. This is a major concern for any commercial site that reaps traffic from search engines, or from inbound links. I setup my site using tomcat standalone because I saw no reason to set it up with Apache initially. But this one single reason is making me seriously second guess that choice. Is this not somehting that can be easily fixed in a future version? And if it can be fixed I would like to beg ... grovel ... anything ... to have this changed. Otherwise, re-setting up with apache is going to cost me a fair amount of $$$ and time at this point. :-\ - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[5.0] Procrun problems / New loader
Hi, I've switched (temporarily, maybe) away from JavaService to Procrun. The problem is that I couldn't get it to work. In the install script, I'm using the following command: ExecWait '$INSTDIR\bin\tomcatw.exe //IS//Tomcat5 --DisplayName Apache Tomcat @VERSION@ --Description Apache Tomcat @VERSION@ Server http://jakarta.apache.org/tomcat; --Install $INSTDIR\bin\tomcat.exe --ImagePath $INSTDIR\bin\bootstrap.jar --StartupClass org.apache.catalina.startup.Bootstrap;main;start --ShutdownClass org.apache.catalina.startup.Bootstrap;main;stop --Java auto --JavaOptions -Djava.endorsed.dirs=$INSTDIR\common\endorsed#-Dcatalina.home=$INSTDIR --StdOutputFile $INSTDIR\logs\stdout.log --StdErrorFile $INSTDIR\logs\stderr.log --WorkingPath $INSTDIR' I believe this is correct, and using the test mode sort of works (except that the console output doesn't get redirected). Trying to run the service doesn't work at all, and looking in the registry, it doesn't seem to have the needed parameters (so I wonder how the test mode does work). Also, Procrun doesn't seem to be designed to handle Tomcat in service mode (that is, where Tomcat doesn't block and wait for a shutdown command). Mladen, I think I need some help :) Other that that, there are now too many ways to start Tomcat in standalone mode: - Bootstrap - The launcher - JMX I think the most compelling is to use the launcher + JMX (and allow JMX only also). Basically, in the Windows distribution, there are some incosistencies, as the scripts use the launcher, while the service uses direct invocation of Bootstrap. I can't do those changes alone. Comments ? Remy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Request to Fix Tomcat Standalone 302 redirect Issue
Actually, How can I check the archives of this list? I did a search for the thread on google groups and nothing was found. I looked for the archives on apache.org but it looks like archives haven't been kept since then end of 2001. :( Thanks Neal -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 10:54 AM To: Tomcat Developers List Subject: RE: Request to Fix Tomcat Standalone 302 redirect Issue Aha! That's exactly what I was looking for - a forward rather than a redirect! Great, I will check out the thread and keep my fingers crossed that this is an optional behavior in Tomcat 5. As for the status, might I suggest that so long as this behavior is not changed and not optional that it should be well documented. This can be a serious caveat ... and a quite unexpected one. The documentation for Tomcat standalone gives no indication that it is inferior or that it implements an alternative standard due to the existance of apache. But if that's the case it should be noted as a guide for people new to the product who need to make informed decisions. Thanks. Neal -Original Message- From: Reinhard Moosauer [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 4:47 AM To: Tomcat Developers List Subject: Re: Request to Fix Tomcat Standalone 302 redirect Issue Hi, at Jan 03, 2003 Matt Parker published a patch in this list: [PATCH] forward instead of redirect for welcome files which was discussed thourougly with Costin, Remy and others. I'm not sure about the conclusion of this. But it seemed that 5.0 should reintroduce this behavior by option. Please read that thread. Maybe there are some hints to get further. (I am also very interested in this changing this, but as long as apache ist an option, the priority stays medium...) Kind regards, Reinhard Am Sonntag, 16. Februar 2003 00:41 schrieb neal: Has anyone considered fixing the following Tomcat standalone issue: if a request is made to www.xyz.com, tomcat auto redirects (per the welcome files list) to www.xyz.com/index.html. That's a 302 http redirect. Aside from this being a very non-standard approach th handling default files within a directory, it is extremely problematic when dealing with Search Engines. Search engines hate 302s and penalize most sites that utilize them, particularly as their default page. Further in the case of Google, a page rank is assigned to a url based upon inboind links. If the inboind links are all to www.xyz.com and that url is just a redirect, you will never benefit from the inbound links to your default url and never achieve a nigh ranking. For these reasons this feature of tomcat renders the standalone http server virtually commercially non-viable. This is a major concern for any commercial site that reaps traffic from search engines, or from inbound links. I setup my site using tomcat standalone because I saw no reason to set it up with Apache initially. But this one single reason is making me seriously second guess that choice. Is this not somehting that can be easily fixed in a future version? And if it can be fixed I would like to beg ... grovel ... anything ... to have this changed. Otherwise, re-setting up with apache is going to cost me a fair amount of $$$ and time at this point. :-\ - 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] - 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: Request to Fix Tomcat Standalone 302 redirect Issue
Actually, I just went to download tomcat 5 and it looks like there's no release candidate of Tomcat 5 yet ... that its still in testing. Is this correct? Does anyone know a timeframe for release? Thanks. Neal -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 11:12 AM To: Tomcat Developers List Subject: RE: Request to Fix Tomcat Standalone 302 redirect Issue Actually, I found the archives by doing a google web search. In the thread it *sounds* like it has been added to Tomcat 5.0 and is not something I can toggle within the web.xml file. Is there any documentation on this? What precisely do I change within the web.xml file to get this behavior? In the meantime I suppose I'll download tomcat 5.0 and play around to see if its something I can figure out. Thanks Neal -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 10:58 AM To: Tomcat Developers List Subject: RE: Request to Fix Tomcat Standalone 302 redirect Issue Actually, How can I check the archives of this list? I did a search for the thread on google groups and nothing was found. I looked for the archives on apache.org but it looks like archives haven't been kept since then end of 2001. :( Thanks Neal -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 10:54 AM To: Tomcat Developers List Subject: RE: Request to Fix Tomcat Standalone 302 redirect Issue Aha! That's exactly what I was looking for - a forward rather than a redirect! Great, I will check out the thread and keep my fingers crossed that this is an optional behavior in Tomcat 5. As for the status, might I suggest that so long as this behavior is not changed and not optional that it should be well documented. This can be a serious caveat ... and a quite unexpected one. The documentation for Tomcat standalone gives no indication that it is inferior or that it implements an alternative standard due to the existance of apache. But if that's the case it should be noted as a guide for people new to the product who need to make informed decisions. Thanks. Neal -Original Message- From: Reinhard Moosauer [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 4:47 AM To: Tomcat Developers List Subject: Re: Request to Fix Tomcat Standalone 302 redirect Issue Hi, at Jan 03, 2003 Matt Parker published a patch in this list: [PATCH] forward instead of redirect for welcome files which was discussed thourougly with Costin, Remy and others. I'm not sure about the conclusion of this. But it seemed that 5.0 should reintroduce this behavior by option. Please read that thread. Maybe there are some hints to get further. (I am also very interested in this changing this, but as long as apache ist an option, the priority stays medium...) Kind regards, Reinhard Am Sonntag, 16. Februar 2003 00:41 schrieb neal: Has anyone considered fixing the following Tomcat standalone issue: if a request is made to www.xyz.com, tomcat auto redirects (per the welcome files list) to www.xyz.com/index.html. That's a 302 http redirect. Aside from this being a very non-standard approach th handling default files within a directory, it is extremely problematic when dealing with Search Engines. Search engines hate 302s and penalize most sites that utilize them, particularly as their default page. Further in the case of Google, a page rank is assigned to a url based upon inboind links. If the inboind links are all to www.xyz.com and that url is just a redirect, you will never benefit from the inbound links to your default url and never achieve a nigh ranking. For these reasons this feature of tomcat renders the standalone http server virtually commercially non-viable. This is a major concern for any commercial site that reaps traffic from search engines, or from inbound links. I setup my site using tomcat standalone because I saw no reason to set it up with Apache initially. But this one single reason is making me seriously second guess that choice. Is this not somehting that can be easily fixed in a future version? And if it can be fixed I would like to beg ... grovel ... anything ... to have this changed. Otherwise, re-setting up with apache is going to cost me a fair amount of $$$ and time at this point. :-\ - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For
Re: Request to Fix Tomcat Standalone 302 redirect Issue
5 will *probably* not be final until - The specs(Serlvet 2.4, jsp 2.) become final - The many internal changes are tested more - The committers vote to declare it so From seeing past messages - it looks like the specs being declared final is the buggest hurdle (to wait for). (But there have been some significant internal changes which need more testing) But anyone is free to use it since the source is available to make their own release. -Tim neal wrote: Actually, I just went to download tomcat 5 and it looks like there's no release candidate of Tomcat 5 yet ... that its still in testing. Is this correct? Does anyone know a timeframe for release? Thanks. Neal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core ContainerBase.java
costin 2003/02/16 11:44:47 Modified:catalina/src/share/org/apache/catalina/core ContainerBase.java Log: Reduce verbosity Revision ChangesPath 1.7 +3 -2 jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/ContainerBase.java Index: ContainerBase.java === RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/ContainerBase.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- ContainerBase.java9 Feb 2003 02:31:08 - 1.6 +++ ContainerBase.java16 Feb 2003 19:44:47 - 1.7 @@ -1562,7 +1562,8 @@ } public ObjectName createObjectName(String domain, ObjectName parent) { -log.info(Create ObjectName + domain + + parent ); +if( log.isDebugEnabled()) +log.debug(Create ObjectName + domain + + parent ); return null; } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/modules/mappers DecodeInterceptor.java
larryi 2003/02/16 14:22:16 Modified:src/share/org/apache/tomcat/modules/mappers DecodeInterceptor.java Log: If a trailing /. is being trimmed to /, rather that being removed, then a trailing /foo/.. should have the same result. Revision ChangesPath 1.20 +1 -1 jakarta-tomcat/src/share/org/apache/tomcat/modules/mappers/DecodeInterceptor.java Index: DecodeInterceptor.java === RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/mappers/DecodeInterceptor.java,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- DecodeInterceptor.java26 Jan 2003 03:06:43 - 1.19 +++ DecodeInterceptor.java16 Feb 2003 22:22:16 - 1.20 @@ -289,7 +289,7 @@ buff[end-1]=='.' buff[end-2]=='.' buff[end-3]=='/' ) { - end-=4; + end-=3; if(end start) { end = start; } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat/src/tests/webpages/WEB-INF test-tomcat.xml
larryi 2003/02/16 14:23:08 Modified:src/tests/webpages/WEB-INF test-tomcat.xml Log: Update test to reflect new behavior for trailing /. and /foo/... Revision ChangesPath 1.54 +3 -6 jakarta-tomcat/src/tests/webpages/WEB-INF/test-tomcat.xml Index: test-tomcat.xml === RCS file: /home/cvs/jakarta-tomcat/src/tests/webpages/WEB-INF/test-tomcat.xml,v retrieving revision 1.53 retrieving revision 1.54 diff -u -r1.53 -r1.54 --- test-tomcat.xml 27 Apr 2002 01:44:11 - 1.53 +++ test-tomcat.xml 16 Feb 2003 22:23:08 - 1.54 @@ -1252,15 +1252,12 @@ httpClient unless=not.standalone httpRequest path=/test/jsp/ShowPathInfo.jsp/. method=GET / - httpStatusMatch match=200/ - responseMatch match=getRequestURI: /test/jsp/ShowPathInfo.jsp/ + httpStatusMatch match=404/ /httpClient httpClient unless=not.standalone httpRequest path=/test/jsp/ShowPathInfo.jsp/foo/.. method=GET / - httpStatusMatch match=200/ - responseMatch match=getRequestURI: /test/jsp/ShowPathInfo.jsp/ - responseMatch match=getPathInfo: null/ + httpStatusMatch match=404/ /httpClient httpClient httpRequest path=/test/ShowPathInfo.jsp/./ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/util/test/matchers SessionMatch.java
larryi 2003/02/16 15:18:50 Modified:src/share/org/apache/tomcat/util/test HttpClient.java src/share/org/apache/tomcat/util/test/matchers SessionMatch.java Log: Add some session handling ability. Revision ChangesPath 1.11 +3 -0 jakarta-tomcat/src/share/org/apache/tomcat/util/test/HttpClient.java Index: HttpClient.java === RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/test/HttpClient.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- HttpClient.java 22 Sep 2001 21:10:50 - 1.10 +++ HttpClient.java 16 Feb 2003 23:18:50 - 1.11 @@ -188,6 +188,9 @@ public void addResponseMatchFile( ResponseMatchFile m ) { addMatcher( m ); } +public void addSessionMatch( SessionMatch m ) { +addMatcher( m ); +} // Access to the actions 1.3 +24 -2 jakarta-tomcat/src/share/org/apache/tomcat/util/test/matchers/SessionMatch.java Index: SessionMatch.java === RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/test/matchers/SessionMatch.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- SessionMatch.java 22 Sep 2001 21:10:50 - 1.2 +++ SessionMatch.java 16 Feb 2003 23:18:50 - 1.3 @@ -69,6 +69,7 @@ public class SessionMatch extends Matcher { String id; String cookieName=JSESSIONID; +String property; public SessionMatch() { } @@ -83,6 +84,10 @@ id=v; } +public void setProperty(String prop) { +property = prop; +} + public String getTestDescription() { return Session extract; } @@ -105,7 +110,24 @@ { Hashtable headers=response.getHeaders(); - Header resH=(Header)headers.get(Cookie); +Header resH=(Header)headers.get(Set-Cookie); +if (null != resH) { +String temp = resH.getValue(); +if (null != temp) { +int begin = temp.indexOf(JSESSIONID); +if (begin = 0) { +if (null != property) { +int end = temp.indexOf(;,begin); +if (end = 0) { +temp = temp.substring(begin,end); +} else { +temp = temp.substring(begin); +} +client.getProject().setUserProperty(property,temp); +} +result = true; +} +} +} } - } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat/src/etc server.xml
larryi 2003/02/16 15:21:18 Modified:src/etc server.xml Log: Doing MxInterceptor as an add-on. Revision ChangesPath 1.100 +0 -27 jakarta-tomcat/src/etc/server.xml Index: server.xml === RCS file: /home/cvs/jakarta-tomcat/src/etc/server.xml,v retrieving revision 1.99 retrieving revision 1.100 diff -u -r1.99 -r1.100 --- server.xml19 Sep 2002 11:14:30 - 1.99 +++ server.xml16 Feb 2003 23:21:18 - 1.100 @@ -69,33 +69,6 @@ Jdk12Interceptor / - !-- Use MxInterceptor to enable JMX monitoring. - -options are : - -port : http adaptor will listen to this port - -If you're using the MX4J HTTP Adaptor, you could also -set host and authentication : - -host : the MX4J http adaptor will listen to this IP/host - -authentication: the MX4J http adaptor will use HTTP authentification -method which could be (none, basic, digest) - -user: set the user to be entered when asking for user/password in - HTTP authentification. - -password : define the password for HTTP authentification - -Note, if you're using a JMX console, you don't have to -use the http adaptor - -MxInterceptor port=8999 authentification=basic - user=admin password=changeillico/ - - -- - !-- Non-standard invoker, for backward compat. ( /servlet/* ) -- InvokerInterceptor / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-connectors/coyote build.xml
costin 2003/02/16 17:03:50 Modified:coyote build.xml Log: Make the dir - if this is the first to be built. Revision ChangesPath 1.20 +2 -1 jakarta-tomcat-connectors/coyote/build.xml Index: build.xml === RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/build.xml,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- build.xml 16 Jan 2003 22:31:00 - 1.19 +++ build.xml 17 Feb 2003 01:03:49 - 1.20 @@ -189,6 +189,7 @@ target name=compile.shared description=Compile shareable components +mkdir dir=${build.home}/classes/ javac srcdir=${source.home} destdir=${build.home}/classes debug=${compile.debug} - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5 CoyoteConnector.java
costin 2003/02/16 17:17:29 Modified:coyote/src/java/org/apache/coyote/tomcat5 CoyoteConnector.java Log: More checks on start/stop - to deal with the dynamics of JMX Revision ChangesPath 1.15 +35 -4 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/CoyoteConnector.java Index: CoyoteConnector.java === RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/CoyoteConnector.java,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- CoyoteConnector.java 10 Feb 2003 00:51:20 - 1.14 +++ CoyoteConnector.java 17 Feb 2003 01:17:28 - 1.15 @@ -1195,9 +1195,11 @@ public void stop() throws LifecycleException { // Validate and update our current state -if (!started) -throw new LifecycleException -(sm.getString(coyoteConnector.notStarted)); +if (!started) { +log.error(sm.getString(coyoteConnector.notStarted)); +return; + +} lifecycle.fireLifecycleEvent(STOP_EVENT, null); started = false; @@ -1274,6 +1276,35 @@ } public void postDeregister() { +try { +if( started ) { +stop(); +} +} catch( Throwable t ) { +log.error( Unregistering - can't stop, t); +} +} + +public void init() throws Exception { + +if( this.getService() != null ) { +log.info( Already configured ); +return; +} + +// Register to the service +ObjectName parentName=new ObjectName( domain + : + +type=Service,name=Tomcat-Standalone); +log.info(Adding to + parentName ); + +mserver.invoke(parentName, addConnector, new Object[] { this }, +new String[] {org.apache.catalina.Connector}); +// initialize(); - is called by addConnector } +public void destroy() throws Exception { +if( getService() == null) +return; +getService().removeConnector(this); +} } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat/src/webpages/WEB-INF/classes SnoopServlet.java
larryi 2003/02/16 17:39:43 Removed: src/webpages/WEB-INF/classes SnoopServlet.java Log: Rather that fix for cross site scripting, remove since there is a duplicate in the examples webapp. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http Cookies.java
larryi 2003/02/16 17:40:55 Modified:util/java/org/apache/tomcat/util/http Cookies.java Log: Fix to return values instead of the names. Revision ChangesPath 1.3 +3 -3 jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/Cookies.java Index: Cookies.java === RCS file: /home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/Cookies.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- Cookies.java 31 Dec 2001 18:20:05 - 1.2 +++ Cookies.java 17 Feb 2003 01:40:55 - 1.3 @@ -321,13 +321,13 @@ continue; } if( equals( $Path, bytes, startName, endName ) ) { - sc.getPath().setBytes( bytes, startName, endName-startName ); + sc.getPath().setBytes( bytes, startValue, endValue-startValue ); } if( equals( $Domain, bytes, startName, endName ) ) { - sc.getDomain().setBytes( bytes, startName, endName-startName ); + sc.getDomain().setBytes( bytes, startValue, endValue-startValue ); } if( equals( $Port, bytes, startName, endName ) ) { - // sc.getPort().setBytes( bytes, startName, endName-startName ); + // sc.getPort().setBytes( bytes, startValue, endValue-startValue ); } } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11 Http11Protocol.java
costin 2003/02/16 17:41:19 Modified:http11/src/java/org/apache/coyote/http11 Http11Protocol.java Log: Cosmetic changes in the jmx names ( this isn't used in admin/) Revision ChangesPath 1.21 +5 -3 jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Protocol.java Index: Http11Protocol.java === RCS file: /home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Protocol.java,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- Http11Protocol.java 20 Jan 2003 23:47:05 - 1.20 +++ Http11Protocol.java 17 Feb 2003 01:41:19 - 1.21 @@ -164,7 +164,7 @@ if( this.domain != null ) { try { Registry.getRegistry().registerComponent(tp, domain,ThreadPool, -type=ThreadPool,worker=http11,name=http% + ep.getPort()); +type=ThreadPool,name=http + ep.getPort()); } catch (Exception e) { log.error(Can't register threadpool ); } @@ -386,13 +386,15 @@ global=new RequestGroupInfo(); Registry.getRegistry().registerComponent( global, proto.getDomain(), GlobalRequestProcessor, -type=GlobalRequestProcessor,name=http); +type=GlobalRequestProcessor,name=http + +proto.ep.getPort()); } RequestInfo rp=processor.getRequest().getRequestProcessor(); rp.setGlobalProcessor(global); Registry.getRegistry().registerComponent( rp, proto.getDomain(), RequestProcessor, -type=RequestProcessor,name=HttpRequest + count++ ); +type=RequestProcessor,worker=http + +proto.ep.getPort() +,name=HttpRequest + count++ ); } catch( Exception ex ) { log.warn(Error registering request); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http Cookies.java
larryi 2003/02/16 17:45:24 Modified:util/java/org/apache/tomcat/util/http Tag: coyote_10 Cookies.java Log: Port fix from HEAD. Revision ChangesPath No revision No revision 1.2.2.1 +3 -3 jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/Cookies.java Index: Cookies.java === RCS file: /home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/Cookies.java,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -u -r1.2 -r1.2.2.1 --- Cookies.java 31 Dec 2001 18:20:05 - 1.2 +++ Cookies.java 17 Feb 2003 01:45:24 - 1.2.2.1 @@ -321,13 +321,13 @@ continue; } if( equals( $Path, bytes, startName, endName ) ) { - sc.getPath().setBytes( bytes, startName, endName-startName ); +sc.getPath().setBytes( bytes, startValue, endValue-startValue ); } if( equals( $Domain, bytes, startName, endName ) ) { - sc.getDomain().setBytes( bytes, startName, endName-startName ); +sc.getDomain().setBytes( bytes, startValue, endValue-startValue ); } if( equals( $Port, bytes, startName, endName ) ) { - // sc.getPort().setBytes( bytes, startName, endName-startName ); +// sc.getPort().setBytes( bytes, startValue, endValue-startValue ); } } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-connectors/coyote build.xml
larryi 2003/02/16 17:47:36 Modified:coyote build.xml Log: Allow some independence from the version of util. Revision ChangesPath 1.21 +6 -3 jakarta-tomcat-connectors/coyote/build.xml Index: build.xml === RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/build.xml,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- build.xml 17 Feb 2003 01:03:49 - 1.20 +++ build.xml 17 Feb 2003 01:47:36 - 1.21 @@ -21,6 +21,9 @@ !-- The directories corresponding to your necessary dependencies -- property name=junit.home value=/usr/local/junit3.5/ + !-- Dependencies within jakarta-tomcat-connectors -- + property name=util.home value=../util/ + !-- == Derived Values -- @@ -81,7 +84,7 @@ !-- Construct compile classpath -- path id=compile.classpath pathelement location=${build.home}/classes/ -pathelement location=../util/build/classes/ +pathelement location=${util.home}/build/classes/ pathelement location=${commons-logging.jar}/ pathelement location=${commons-modeler.jar}/ pathelement location=${jmx.jar}/ @@ -91,7 +94,7 @@ /path path id=compile.classpath.tomcat33 pathelement location=${build.home}/classes/ -pathelement location=../util/build/classes/ +pathelement location=${util.home}/build/classes/ pathelement location=${tomcat33.home}/lib/container/container_util.jar/ pathelement location=${tomcat33.home}/lib/container/tomcat_modules.jar/ pathelement location=${tomcat33.home}/lib/common/tomcat_core.jar/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-connectors/coyote build.xml
larryi 2003/02/16 17:48:08 Modified:coyote Tag: coyote_10 build.xml Log: Allow some independence from the version of util. Revision ChangesPath No revision No revision 1.16.2.1 +6 -3 jakarta-tomcat-connectors/coyote/build.xml Index: build.xml === RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/build.xml,v retrieving revision 1.16 retrieving revision 1.16.2.1 diff -u -r1.16 -r1.16.2.1 --- build.xml 11 Jan 2003 00:03:01 - 1.16 +++ build.xml 17 Feb 2003 01:48:08 - 1.16.2.1 @@ -21,6 +21,9 @@ !-- The directories corresponding to your necessary dependencies -- property name=junit.home value=/usr/local/junit3.5/ + !-- Dependencies within jakarta-tomcat-connectors -- + property name=util.home value=../util/ + !-- == Derived Values -- @@ -77,7 +80,7 @@ !-- Construct compile classpath -- path id=compile.classpath pathelement location=${build.home}/classes/ -pathelement location=../util/build/classes/ +pathelement location=${util.home}/build/classes/ pathelement location=${jmx.jar}/ pathelement location=${tomcat-util.jar}/ pathelement location=${catalina.home}/server/lib/catalina.jar/ @@ -85,7 +88,7 @@ /path path id=compile.classpath.tomcat33 pathelement location=${build.home}/classes/ -pathelement location=../util/build/classes/ +pathelement location=${util.home}/build/classes/ pathelement location=${tomcat33.home}/lib/container/container_util.jar/ pathelement location=${tomcat33.home}/lib/container/tomcat_modules.jar/ pathelement location=${tomcat33.home}/lib/common/tomcat_core.jar/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-connectors/http11 build.xml
larryi 2003/02/16 17:49:12 Modified:http11 build.xml Log: Allow some independence from the version of util, and coyote if desired. Revision ChangesPath 1.11 +8 -4 jakarta-tomcat-connectors/http11/build.xml Index: build.xml === RCS file: /home/cvs/jakarta-tomcat-connectors/http11/build.xml,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- build.xml 16 Jan 2003 22:29:51 - 1.10 +++ build.xml 17 Feb 2003 01:49:12 - 1.11 @@ -21,15 +21,19 @@ !-- The directories corresponding to your necessary dependencies -- property name=junit.home value=/usr/local/junit3.5/ + !-- Dependencies within jakarta-tomcat-connectors -- + property name=util.home value=../util/ + property name=coyote.home value=../coyote/ + !-- == Derived Values -- !-- The locations of necessary jar files -- - property name=tomcat-util.jar value=../util/build/lib/tomcat-util.jar/ - property name=tomcat-coyote.jar value=../coyote/build/lib/tomcat-coyote.jar/ + property name=tomcat-util.jar value=${util.home}/build/lib/tomcat-util.jar/ + property name=tomcat-coyote.jar value=${coyote.home}/build/lib/tomcat-coyote.jar/ property name=tomcat33-coyote.jar - value=../coyote/build/lib/tomcat33-coyote.jar/ + value=${coyote.home}/build/lib/tomcat33-coyote.jar/ property name=junit.jarvalue=${junit.home}/junit.jar/ property name=jmx.jar location=../lib/mx4j.jar / property name=commons-modeler.jar location=../../jakarta-commons/modeler/dist/commons-modeler.jar / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-connectors/http11 build.xml
larryi 2003/02/16 17:50:02 Modified:http11 Tag: coyote_10 build.xml Log: Allow some independence from the version of util, and coyote if desired. Revision ChangesPath No revision No revision 1.9.2.1 +8 -4 jakarta-tomcat-connectors/http11/build.xml Index: build.xml === RCS file: /home/cvs/jakarta-tomcat-connectors/http11/build.xml,v retrieving revision 1.9 retrieving revision 1.9.2.1 diff -u -r1.9 -r1.9.2.1 --- build.xml 13 Nov 2002 00:14:25 - 1.9 +++ build.xml 17 Feb 2003 01:50:02 - 1.9.2.1 @@ -21,15 +21,19 @@ !-- The directories corresponding to your necessary dependencies -- property name=junit.home value=/usr/local/junit3.5/ + !-- Dependencies within jakarta-tomcat-connectors -- + property name=util.home value=../util/ + property name=coyote.home value=../coyote/ + !-- == Derived Values -- !-- The locations of necessary jar files -- - property name=tomcat-util.jar value=../util/build/lib/tomcat-util.jar/ - property name=tomcat-coyote.jar value=../coyote/build/lib/tomcat-coyote.jar/ + property name=tomcat-util.jar value=${util.home}/build/lib/tomcat-util.jar/ + property name=tomcat-coyote.jar value=${coyote.home}/build/lib/tomcat-coyote.jar/ property name=tomcat33-coyote.jar - value=../coyote/build/lib/tomcat33-coyote.jar/ + value=${coyote.home}/build/lib/tomcat33-coyote.jar/ property name=junit.jarvalue=${junit.home}/junit.jar/ property name=commons-logging.jar value=../lib/commons-logging.jar / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3 Tomcat3Response.java
larryi 2003/02/16 17:54:00 Modified:coyote/src/java/org/apache/coyote/tomcat3 Tomcat3Response.java Log: Add overrides to keep Tomcat's and Coyote's local and Revision ChangesPath 1.7 +24 -0 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/Tomcat3Response.java Index: Tomcat3Response.java === RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/Tomcat3Response.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- Tomcat3Response.java 4 Jun 2002 03:09:56 - 1.6 +++ Tomcat3Response.java 17 Feb 2003 01:54:00 - 1.7 @@ -175,4 +175,28 @@ coyoteResponse.acknowledge(); acknowledged=true; } + +public void setLocale(Locale locale) { +if (locale == null || included) { +return; // throw an exception? +} +this.locale = locale; +coyoteResponse.setLocale(locale); +contentLanguage = coyoteResponse.getContentLanguage(); +// maintain Tomcat 3.3 behavior by setting the header too +// and by not trying to guess the characterEncoding +headers.setValue(Content-Language).setString(contentLanguage); +} + +public void setContentType(String contentType) { +if (included) { +return; +} +coyoteResponse.setContentType(contentType); +this.contentType = coyoteResponse.getContentType(); +this.characterEncoding = coyoteResponse.getCharacterEncoding(); +// maintain Tomcat 3.3 behavior by setting the header too +headers.setValue(Content-Type).setString(contentType); +} + } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3 Tomcat3Response.java
larryi 2003/02/16 17:57:10 Modified:coyote/src/java/org/apache/coyote/tomcat3 Tag: coyote_10 Tomcat3Response.java Log: Port fix from HEAD. Add overrides to keep Tomcat's and Coyote's local and content type in sync. This time with full commit comment. Revision ChangesPath No revision No revision 1.6.2.1 +24 -0 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/Tomcat3Response.java Index: Tomcat3Response.java === RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/Tomcat3Response.java,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -u -r1.6 -r1.6.2.1 --- Tomcat3Response.java 4 Jun 2002 03:09:56 - 1.6 +++ Tomcat3Response.java 17 Feb 2003 01:57:10 - 1.6.2.1 @@ -175,4 +175,28 @@ coyoteResponse.acknowledge(); acknowledged=true; } + +public void setLocale(Locale locale) { +if (locale == null || included) { +return; // throw an exception? +} +this.locale = locale; +coyoteResponse.setLocale(locale); +contentLanguage = coyoteResponse.getContentLanguage(); +// maintain Tomcat 3.3 behavior by setting the header too +// and by not trying to guess the characterEncoding +headers.setValue(Content-Language).setString(contentLanguage); +} + +public void setContentType(String contentType) { +if (included) { +return; +} +coyoteResponse.setContentType(contentType); +this.contentType = coyoteResponse.getContentType(); +this.characterEncoding = coyoteResponse.getCharacterEncoding(); +// maintain Tomcat 3.3 behavior by setting the header too +headers.setValue(Content-Type).setString(contentType); +} + } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat build.xml
larryi 2003/02/16 17:59:03 Modified:.build.xml Log: Update to allow independent control over location of util, coyote, and http11 locations. Revision ChangesPath 1.193 +17 -11jakarta-tomcat/build.xml Index: build.xml === RCS file: /home/cvs/jakarta-tomcat/build.xml,v retrieving revision 1.192 retrieving revision 1.193 diff -u -r1.192 -r1.193 --- build.xml 26 Jan 2003 03:05:31 - 1.192 +++ build.xml 17 Feb 2003 01:59:02 - 1.193 @@ -70,6 +70,13 @@ property name=tomcat-util.jar location=${jtc.util.build}/lib/tomcat-util.jar/ + property name=jtc.coyote.home location=${jakarta-tomcat-connectors}/coyote/ + + property name=jtc.http11.home location=${jakarta-tomcat-connectors}/http11/ + property name=jtc.http11.lib location=${jtc.http11.home}/build/lib/ + + property name=jtc.jk.home location=${jakarta-tomcat-connectors}/jk/ + property name=jsse.home location=${install.dir}/jsse1.0.2/ property name=jsse.lib location=${jsse.home}/lib/ property name=jsse.jar location=${jsse.lib}/jsse.jar/ @@ -100,9 +107,6 @@ property name=commons-modeler.lib location=${commons-modeler.home} / property name=commons-modeler.jar location=${commons-modeler.lib}/commons-modeler.jar / - property name=jtc.http11.home location=${jakarta-tomcat-connectors}/http11/ - property name=jtc.http11.lib location=${jtc.http11.home}/build/lib/ - property name=jmx.jar location=${jakarta-tomcat-connectors}/lib/mx4j.jar/ property name=jmxtools.jar location=${jakarta-tomcat-connectors}/lib/mx4j-tools.jar/ @@ -382,19 +386,21 @@ target name=dep.tomcat-util unless=tomcat-util.is.uptodate description=Build j-t-c util which we depend on. To be called before main -ant dir=${jakarta-tomcat-connectors}/util / +ant dir=${jtc.util.home} / /target target name=deps description=Build repositoried that depends on. To be called before main -ant dir=${jakarta-tomcat-connectors}/coyote +ant dir=${jtc.coyote.home} property name=tomcat33.home value=${tomcat.build}/ +property name=util.home value=${jtc.util.home}/ /ant -ant dir=${jakarta-tomcat-connectors}/http11 inheritAll=false +ant dir=${jtc.http11.home} inheritAll=false +property name=util.home value=${jtc.util.home}/ property name=commons-modeler.jar value=${commons-modeler.jar}/ /ant -ant dir=${jakarta-tomcat-connectors}/jk target=build-jk +ant dir=${jtc.jk.home} target=build-jk property name=tomcat33.home value=${tomcat.build}/ property name=servlet-api.jar value=${basedir}/${servlet22.jar}/ /ant @@ -444,7 +450,7 @@ !-- Add jakarta-tomcat-connectors utils -- !-- Includes the tomcat-utils.jar and common-logging.jar -- copy todir=${tomcat.build}/lib/common - fileset dir=${jakarta-tomcat-connectors}/util/build/lib + fileset dir=${jtc.util.build}/lib include name=*.jar/ /fileset /copy @@ -665,7 +671,7 @@ !-- This can't be compiled while j-t-c is built - tomcat is built after, so files depending on 3.3 are ignored -- -ant dir=${jakarta-tomcat-connectors}/coyote target=compile.tomcat33 +ant dir=${jtc.coyote.home} target=compile.tomcat33 property name=tomcat33.home value=${tomcat.build}/ /ant @@ -679,10 +685,10 @@ file=${jtc.http11.lib}/tomcat33-coyote.jar/ copy todir=${tomcat.build}/lib/container - file=${jakarta-tomcat-connectors}/jk/build/lib/tomcat-jk2.jar/ + file=${jtc.jk.home}/build/lib/tomcat-jk2.jar/ copy todir=${tomcat.build}/conf - file=${jakarta-tomcat-connectors}/jk/conf/jk2.properties/ + file=${jtc.jk.home}/conf/jk2.properties/ /target - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-connectors/jk/native2/common jk_worker_status.c
costin 2003/02/16 18:09:59 Modified:jk/native2/common jk_worker_status.c Log: Added few simple requests to get/set/list mbeans in the web server. Needs to be proxied by a java mbean. Revision ChangesPath 1.33 +114 -1jakarta-tomcat-connectors/jk/native2/common/jk_worker_status.c Index: jk_worker_status.c === RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_worker_status.c,v retrieving revision 1.32 retrieving revision 1.33 diff -u -r1.32 -r1.33 --- jk_worker_status.c4 Feb 2003 07:39:58 - 1.32 +++ jk_worker_status.c17 Feb 2003 02:09:58 - 1.33 @@ -436,11 +436,124 @@ /** Process the query string. */ if( s-query_string == NULL ) { -s-query_string=get=*; +s-query_string=all; } if( strcmp( s-query_string, scoreboard.reset ) == 0 ) { jk2_worker_status_resetScoreboard(env, s, s-workerEnv ); +} + +if( strncmp( s-query_string, get=, 4) == 0 ) { +/* Get a jmx-like attribute. Very inefficient ( only one attribute per req ) - but it doesn't + happen too often. We should do a POST */ +char *cName=s-query_string + 4; +char *attName=rindex(cName, ':' ); +int i; + +if( attName == NULL ) { +s-jkprintf( env, s, ERROR: no attribute found %s\n, cName); +return JK_OK; +} +*attName='\0'; +attName++; +for( i=0; i env-_objects-size( env, env-_objects ); i++ ) { +char *name=env-_objects-nameAt( env, env-_objects, i ); +jk_bean_t *mbean=env-_objects-valueAt( env, env-_objects, i ); + +if( mbean==NULL ) +continue; + +if( strcmp( name, cName ) == 0 +mbean-getAttribute != NULL ) { +char *value=mbean-getAttribute( env, mbean, attName ); +if( value!=NULL (*value != '\0') ) { +s-jkprintf( env, s, %s, value ); +} else { +s-jkprintf( env, s, NULL ); +} +return JK_OK; +} +} +s-jkprintf( env, s, ERROR: attribute not found %s %s, cName, attName ); +return JK_OK; +} +if( strncmp( s-query_string, qry=, 4) == 0 ) { +char *cName=s-query_string + 4; +int i,j; + +if( *cName== '\0' ) { +/* No string - list all components */ +for( i=0; i env-_objects-size( env, env-_objects ); i++ ) { +char *name=env-_objects-nameAt( env, env-_objects, i ); +jk_bean_t *mbean=env-_objects-valueAt( env, env-_objects, i ); +char **getAtt=mbean-getAttributeInfo; +char **setAtt=mbean-setAttributeInfo; + +if( mbean==NULL ) +continue; + +s-jkprintf(env, s, %s %s\n, name, mbean-type ); +} +} else { +/* List all attributes of an object */ + +for( i=0; i env-_objects-size( env, env-_objects ); i++ ) { +char *name=env-_objects-nameAt( env, env-_objects, i ); +jk_bean_t *mbean=env-_objects-valueAt( env, env-_objects, i ); +char **getAtt=mbean-getAttributeInfo; +char **setAtt=mbean-setAttributeInfo; + +if( mbean==NULL || getAtt==NULL ) +continue; + +if( strcmp( name, cName ) == 0 ) { +while( getAtt != NULL *getAtt != NULL **getAtt!='\0' ) { +char *attName=*getAtt; +char *val=mbean-getAttribute(env, mbean, *getAtt ); +s-jkprintf(env, s, %s %s %s\n, name, *getAtt, (val==NULL)? NULL: val); +getAtt++; +} +} +} +} +return JK_OK; +} +if( strncmp( s-query_string, set=, 4) == 0 ) { +char *cName=s-query_string + 4; +char *attVal=rindex(cName, ':' ); +char *attName; +int i; + +if( attVal == NULL ) { +s-jkprintf( env, s, ERROR: no attribute value found %s\n, cName); +return JK_OK; +} +*attVal='\0'; +attVal++; + +attName=rindex( cName, ':' ); +if( attName == NULL ) { +s-jkprintf( env, s, ERROR: attribute name not found\n, cName); +return JK_OK; +} +*attName='\0'; +attName++; +for( i=0; i env-_objects-size( env, env-_objects ); i++ ) { +
cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/server JkCoyoteHandler.java
costin 2003/02/16 18:10:29 Modified:jk/java/org/apache/jk/server JkCoyoteHandler.java Log: Reduce verbosity Revision ChangesPath 1.36 +2 -2 jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkCoyoteHandler.java Index: JkCoyoteHandler.java === RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkCoyoteHandler.java,v retrieving revision 1.35 retrieving revision 1.36 diff -u -r1.35 -r1.36 --- JkCoyoteHandler.java 20 Jan 2003 23:48:40 - 1.35 +++ JkCoyoteHandler.java 17 Feb 2003 02:10:29 - 1.36 @@ -347,8 +347,8 @@ appendHead( res ); } } else if( actionCode==ActionCode.ACTION_RESET ) { -if( log.isInfoEnabled() ) -log.info(RESET ); +if( log.isDebugEnabled() ) +log.debug(RESET ); } else if( actionCode==ActionCode.ACTION_CLIENT_FLUSH ) { if( log.isDebugEnabled() ) log.debug(CLIENT_FLUSH ); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/common JkMX.java
costin 2003/02/16 18:12:46 Modified:jk/java/org/apache/jk/common JkMX.java Log: If the RMI adapter fails, we can still load http. This should be deprecated/removed - there are better ways to load jmx console, and the magic it is doing to avoid deps on JMX is no longer needed. Revision ChangesPath 1.9 +37 -33jakarta-tomcat-connectors/jk/java/org/apache/jk/common/JkMX.java Index: JkMX.java === RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/common/JkMX.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- JkMX.java 20 Jan 2003 19:20:32 - 1.8 +++ JkMX.java 17 Feb 2003 02:12:46 - 1.9 @@ -116,40 +116,7 @@ if( host!=null ) mserver.setAttribute(serverName, new Attribute(Host, host)); mserver.setAttribute(serverName, new Attribute(Port, new Integer(port))); - -ObjectName serverName2 = new ObjectName(Naming:name=rmiregistry); -mserver.createMBean(mx4j.tools.naming.NamingService, serverName2, null); -mserver.invoke(serverName2, start, null, null); -log.info( Creating + serverName2 ); - -// Create the JRMP adaptor -ObjectName adaptor = new ObjectName(Adaptor:protocol=jrmp); -mserver.createMBean(mx4j.adaptor.rmi.jrmp.JRMPAdaptor, adaptor, null); - -//mx4j.adaptor.rmi.jrmp.JRMPAdaptorMBean mbean = (mx4j.adaptor.rmi.jrmp.JRMPAdaptorMBean)mx4j.util.StandardMBeanProxy. -//create(mx4j.adaptor.rmi.jrmp.JRMPAdaptorMBean.class, mserver, adaptor); -mserver.setAttribute(adaptor, new Attribute(JNDIName, jrmp)); - -mserver.invoke( adaptor, putNamingProperty, -new Object[] { -javax.naming.Context.INITIAL_CONTEXT_FACTORY, -com.sun.jndi.rmi.registry.RegistryContextFactory}, -new String[] { java.lang.Object, java.lang.Object }); - -mserver.invoke( adaptor, putNamingProperty, -new Object[] { -javax.naming.Context.PROVIDER_URL, -rmi://localhost:1099}, -new String[] { java.lang.Object, java.lang.Object }); - -//mbean.putNamingProperty(javax.naming.Context.INITIAL_CONTEXT_FACTORY, com.sun.jndi.rmi.registry.RegistryContextFactory); -//mbean.putNamingProperty(javax.naming.Context.PROVIDER_URL, rmi://localhost:1099); -// Registers the JRMP adaptor in JNDI and starts it -mserver.invoke(adaptor, start, null, null); -// mbean.start(); -log.info( Creating + adaptor ); - ObjectName processorName = new ObjectName(Http:name=XSLTProcessor); mserver.createMBean(mx4j.adaptor.http.XSLTProcessor, processorName, null); @@ -182,6 +149,43 @@ } catch( Throwable t ) { log.error( Can't load the MX4J http adapter + t.toString() ); } +try { +ObjectName serverName2 = new ObjectName(Naming:name=rmiregistry); +mserver.createMBean(mx4j.tools.naming.NamingService, serverName2, null); +mserver.invoke(serverName2, start, null, null); +log.info( Creating + serverName2 ); + +// Create the JRMP adaptor +ObjectName adaptor = new ObjectName(Adaptor:protocol=jrmp); +mserver.createMBean(mx4j.adaptor.rmi.jrmp.JRMPAdaptor, adaptor, null); + +//mx4j.adaptor.rmi.jrmp.JRMPAdaptorMBean mbean = (mx4j.adaptor.rmi.jrmp.JRMPAdaptorMBean)mx4j.util.StandardMBeanProxy. +//create(mx4j.adaptor.rmi.jrmp.JRMPAdaptorMBean.class, mserver, adaptor); + +mserver.setAttribute(adaptor, new Attribute(JNDIName, jrmp)); + +mserver.invoke( adaptor, putNamingProperty, +new Object[] { +javax.naming.Context.INITIAL_CONTEXT_FACTORY, +com.sun.jndi.rmi.registry.RegistryContextFactory}, +new String[] { java.lang.Object, java.lang.Object }); + +mserver.invoke( adaptor, putNamingProperty, +new Object[] { +javax.naming.Context.PROVIDER_URL, +rmi://localhost:1099}, +new String[] { java.lang.Object, java.lang.Object }); + +//mbean.putNamingProperty(javax.naming.Context.INITIAL_CONTEXT_FACTORY, com.sun.jndi.rmi.registry.RegistryContextFactory); +//mbean.putNamingProperty(javax.naming.Context.PROVIDER_URL, rmi://localhost:1099); +
cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/common ChannelSocket.java
costin 2003/02/16 18:17:15 Modified:jk/java/org/apache/jk/common ChannelSocket.java Log: More JMX code. The channel will act as a standalone mbean receiving messages and dispatching via either direct call ( JkHandler ) or JMX notifications. Also few cosmetic changes ( better name for the thread pool mbean, less verbosity ) Revision ChangesPath 1.34 +80 -6 jakarta-tomcat-connectors/jk/java/org/apache/jk/common/ChannelSocket.java Index: ChannelSocket.java === RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/common/ChannelSocket.java,v retrieving revision 1.33 retrieving revision 1.34 diff -u -r1.33 -r1.34 --- ChannelSocket.java28 Jan 2003 05:42:24 - 1.33 +++ ChannelSocket.java17 Feb 2003 02:17:15 - 1.34 @@ -66,6 +66,13 @@ import org.apache.jk.core.*; import org.apache.commons.modeler.Registry; +import javax.management.NotificationBroadcaster; +import javax.management.NotificationBroadcasterSupport; +import javax.management.NotificationListener; +import javax.management.NotificationFilter; +import javax.management.ListenerNotFoundException; +import javax.management.MBeanNotificationInfo; +import javax.management.Notification; /* XXX Make the 'message type' pluggable @@ -96,7 +103,7 @@ * @jmx:notification-handler name=org.apache.jk.JK_RECEIVE_PACKET * @jmx:notification-handler name=org.apache.jk.JK_FLUSH */ -public class ChannelSocket extends JkHandler { +public class ChannelSocket extends JkHandler implements NotificationBroadcaster { private static org.apache.commons.logging.Log log= org.apache.commons.logging.LogFactory.getLog( ChannelSocket.class ); @@ -263,6 +270,7 @@ int socketNote=1; int isNote=2; int osNote=3; +int notifNote=4; public void accept( MsgContext ep ) throws IOException { if( sSocket==null ) return; @@ -301,7 +309,7 @@ destroy(); init(); } - + /** * @jmx:managed-operation */ @@ -344,7 +352,8 @@ if( serverTimeout 0 ) sSocket.setSoTimeout( serverTimeout ); -if( next==null ) { +// XXX Reverse it - this is a notification generator !! +if( next==null wEnv!=null ) { if( nextName!=null ) setNext( wEnv.getHandler( nextName ) ); if( next==null ) @@ -360,17 +369,27 @@ if( this.domain != null ) { try { Registry.getRegistry().registerComponent(tp, domain,ThreadPool, -type=ThreadPool,worker=jk,name=Jk + port); +type=ThreadPool,name=jk + port); } catch (Exception e) { log.error(Can't register threadpool ); } } +// XXX Move to start, make sure the caller calls start tp.start(); SocketAcceptor acceptAjp=new SocketAcceptor( this ); tp.runIt( acceptAjp); } +public void start() throws IOException{ +if( sSocket==null ) +init(); +} + +public void stop() throws IOException { +destroy(); +} + public void open(MsgContext ep) throws IOException { } @@ -563,7 +582,7 @@ int status= this.receive( recv, ep ); if( status = 0 ) { if( status==-3) -log.info( server has been restarted or reset this connection ); +log.debug( server has been restarted or reset this connection ); else log.warn(Closing ajp connection + status ); break; @@ -571,6 +590,7 @@ ep.setLong( MsgContext.TIMER_RECEIVED, System.currentTimeMillis()); ep.setType( 0 ); +// Will call next status= this.invoke( recv, ep ); if( status!= JkHandler.OK ) { log.warn(processCallbacks status + status ); @@ -601,11 +621,13 @@ } } +// XXX This should become handleNotification public int invoke( Msg msg, MsgContext ep ) throws IOException { int type=ep.getType(); switch( type ) { case JkHandler.HANDLE_RECEIVE_PACKET: +if( log.isDebugEnabled()) log.debug(RECEIVE_PACKET ?? ); return receive( msg, ep ); case JkHandler.HANDLE_SEND_PACKET: return send( msg, ep ); @@ -613,7 +635,26 @@ return flush( msg, ep ); } -return next.invoke( msg, ep ); +if( log.isDebugEnabled() ) +log.debug(Call next
Re: Request to Fix Tomcat Standalone 302 redirect Issue
If I remember that thread correctly, the functionality was not been added according to the code. http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/servlets/DefaultServlet.java?rev=1.5content-type=text/vnd.viewcvs-markup -Tim neal wrote: I just took a look at the web.xml file found within the tomcat 5 download (jakarta-tomcat-catalina/catalina/conf) and saw no indication of the inclusion of this patch. Per indications in the thread referred to below, I looked for an indication that an init parameter was included that could be toggled to achieve this behavior but nothing was denoted in the comments above this node that would suggest it is a new feature. Could someone please confirm that this feature has been included into tomcat 5 and instruct me as to how I would access this new functionality? I really really really want the forward behavior for my default page. :-\ Thanks Neal -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 11:39 AM To: Tomcat Developers List Subject: Re: Request to Fix Tomcat Standalone 302 redirect Issue 5 will *probably* not be final until - The specs(Serlvet 2.4, jsp 2.) become final - The many internal changes are tested more - The committers vote to declare it so From seeing past messages - it looks like the specs being declared final is the buggest hurdle (to wait for). (But there have been some significant internal changes which need more testing) But anyone is free to use it since the source is available to make their own release. -Tim neal wrote: Actually, I just went to download tomcat 5 and it looks like there's no release candidate of Tomcat 5 yet ... that its still in testing. Is this correct? Does anyone know a timeframe for release? Thanks. Neal - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat build.xml
larryi 2003/02/16 19:12:05 Modified:.build.xml Log: Remove task to build SnoopServlet removed from ROOT webapp Revision ChangesPath 1.194 +0 -4 jakarta-tomcat/build.xml Index: build.xml === RCS file: /home/cvs/jakarta-tomcat/build.xml,v retrieving revision 1.193 retrieving revision 1.194 diff -u -r1.193 -r1.194 --- build.xml 17 Feb 2003 01:59:02 - 1.193 +++ build.xml 17 Feb 2003 03:12:05 - 1.194 @@ -800,10 +800,6 @@ copy todir=${tomcat.build}/webapps/ROOT/doc fileset dir=src/doc/ /copy -javac srcdir=src/webpages/WEB-INF/classes - optimize=${optimize} - destdir=${tomcat.build}/webapps/ROOT/WEB-INF/classes - classpath=${tomcat.build}/classes;${servlet22.jar}/ !-- admin context -- mkdir dir=${tomcat.build}/webapps/admin/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Request to Fix Tomcat Standalone 302 redirect Issue
Seriously?!?! Why does this effort keep getting blocked?!?!? This is a huge Search engine issue. For crying out loud .. Search engines SLAM sites that use redirects, particularly on the main page!!! If its not going to be fixed, Apache should seriously consider saving other developers the grief I've been going through by either (a) scrapping the standlone notion altogether so as not to confuse or (b) puttin a HUGE red dislclaimer on the download page that says the product is not commercially viable. Could someone please confirm for me if this will be fixed in a near-term future release? If not, I guess I need to completely scrap use of Tomcat standalone and start looking at other products. :-\ Thanks. Neal -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 6:44 PM To: Tomcat Developers List Subject: Re: Request to Fix Tomcat Standalone 302 redirect Issue If I remember that thread correctly, the functionality was not been added according to the code. http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/share /org/apache/catalina/servlets/DefaultServlet.java?rev=1.5content-type=text/ vnd.viewcvs-markup -Tim neal wrote: I just took a look at the web.xml file found within the tomcat 5 download (jakarta-tomcat-catalina/catalina/conf) and saw no indication of the inclusion of this patch. Per indications in the thread referred to below, I looked for an indication that an init parameter was included that could be toggled to achieve this behavior but nothing was denoted in the comments above this node that would suggest it is a new feature. Could someone please confirm that this feature has been included into tomcat 5 and instruct me as to how I would access this new functionality? I really really really want the forward behavior for my default page. :-\ Thanks Neal -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 11:39 AM To: Tomcat Developers List Subject: Re: Request to Fix Tomcat Standalone 302 redirect Issue 5 will *probably* not be final until - The specs(Serlvet 2.4, jsp 2.) become final - The many internal changes are tested more - The committers vote to declare it so From seeing past messages - it looks like the specs being declared final is the buggest hurdle (to wait for). (But there have been some significant internal changes which need more testing) But anyone is free to use it since the source is available to make their own release. -Tim neal wrote: Actually, I just went to download tomcat 5 and it looks like there's no release candidate of Tomcat 5 yet ... that its still in testing. Is this correct? Does anyone know a timeframe for release? Thanks. Neal - 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] - 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]
cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/mapper Mapper.java
billbarker2003/02/16 19:38:55 Modified:util/java/org/apache/tomcat/util/http/mapper Mapper.java Log: First shot at allowing internal-redirects to welcome-files. Also adding in c-l. To Do: Rule 4 and Rule 6 should probably be merged, since I think that it broken wrt the spec otherwise. Implement a welcome-file cache to avoid the JNDI lookup on every request. Revision ChangesPath 1.5 +80 -36 jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/mapper/Mapper.java Index: Mapper.java === RCS file: /home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/http/mapper/Mapper.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- Mapper.java 29 Jan 2003 20:54:55 - 1.4 +++ Mapper.java 17 Feb 2003 03:38:54 - 1.5 @@ -58,6 +58,9 @@ */ package org.apache.tomcat.util.http.mapper; +import javax.naming.NamingException; +import javax.naming.directory.DirContext; + import org.apache.tomcat.util.buf.CharChunk; import org.apache.tomcat.util.buf.MessageBytes; @@ -70,6 +73,8 @@ public final class Mapper { +private static org.apache.commons.logging.Log logger = +org.apache.commons.logging.LogFactory.getLog(Mapper.class); // - Instance Variables @@ -468,42 +473,11 @@ } // Rule 3 -- Extension Match +Wrapper[] extensionWrappers = context.extensionWrappers; if (mappingData.wrapper == null) { -Wrapper[] extensionWrappers = context.extensionWrappers; -char[] buf = path.getBuffer(); -int slash = -1; -for (int i = pathEnd - 1; i = servletPath; i--) { -if (buf[i] == '/') { -slash = i; -break; -} -} -if (slash = 0) { -int period = -1; -for (int i = pathEnd - 1; i slash; i--) { -if (buf[i] == '.') { -period = i; -break; -} -} -if (period = 0) { -path.setOffset(period + 1); -path.setEnd(pathEnd); -int pos = find(extensionWrappers, path); -if ((pos != -1) - (path.equals(extensionWrappers[pos].name))) { -mappingData.wrapperPath.setChars -(buf, servletPath, pathEnd - servletPath); -mappingData.requestPath.setChars -(buf, servletPath, pathEnd - servletPath); -mappingData.wrapper = extensionWrappers[pos].object; -} -path.setOffset(servletPath); -path.setEnd(pathEnd); -} -} +internalMapExtensionWrapper(extensionWrappers, path, mappingData); } - + // Rule 4 -- Welcome resources processing for servlets if (mappingData.wrapper == null) { char[] buf = path.getBuffer(); @@ -532,8 +506,37 @@ } // Rule 6 -- Welcome resources processing for physical folder -if (processWelcomeResources) { - +if (processWelcomeResources mappingData.wrapper == null) { +char[] buf = path.getBuffer(); +if( context.resources != null buf[pathEnd - 1] == '/') { +for (int i = 0; (i context.welcomeResources.length) + (mappingData.wrapper == null); i++) { +path.setOffset(pathOffset); +path.setEnd(pathEnd); +path.append(context.welcomeResources[i], 0, +context.welcomeResources[i].length()); +path.setOffset(servletPath); +Object file = null; +try { +file = context.resources.lookup(path.toString()); +} catch(NamingException nex) { +// Swallow not found, since this is normal +} +if(file != null !(file instanceof DirContext) ) { +if(logger.isTraceEnabled()) +logger.trace(Found welcome-file: + path); +internalMapExtensionWrapper(extensionWrappers, +path, mappingData); +if(mappingData.wrapper == null) { +mappingData.wrapper =
RE: Request to Fix Tomcat Standalone 302 redirect Issue
So it *will* be in tomcat 5? My head is spinning...so confusing. How does one access o.a.t.u.http.mapper.Mapper? Is this something that will be configurable via web.xml? Anyone have a ballpark idea on when Tomcat 5 will be released? Or at least when a release-candidate-quality binary will be available? :) Thanks. Neal -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 8:01 PM To: Tomcat Developers List Subject: Re: Request to Fix Tomcat Standalone 302 redirect Issue For TC 5, it isn't in DefaultServlet (which gets called way too late). It's in o.a.t.u.http.mapper.Mapper. - Original Message - From: Tim Funk [EMAIL PROTECTED] To: Tomcat Developers List [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 6:43 PM Subject: Re: Request to Fix Tomcat Standalone 302 redirect Issue If I remember that thread correctly, the functionality was not been added according to the code. http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/share /org/apache/catalina/servlets/DefaultServlet.java?rev=1.5content-type=text/ vnd.viewcvs-markup -Tim neal wrote: I just took a look at the web.xml file found within the tomcat 5 download (jakarta-tomcat-catalina/catalina/conf) and saw no indication of the inclusion of this patch. Per indications in the thread referred to below, I looked for an indication that an init parameter was included that could be toggled to achieve this behavior but nothing was denoted in the comments above this node that would suggest it is a new feature. Could someone please confirm that this feature has been included into tomcat 5 and instruct me as to how I would access this new functionality? I really really really want the forward behavior for my default page. :-\ Thanks Neal -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 11:39 AM To: Tomcat Developers List Subject: Re: Request to Fix Tomcat Standalone 302 redirect Issue 5 will *probably* not be final until - The specs(Serlvet 2.4, jsp 2.) become final - The many internal changes are tested more - The committers vote to declare it so From seeing past messages - it looks like the specs being declared final is the buggest hurdle (to wait for). (But there have been some significant internal changes which need more testing) But anyone is free to use it since the source is available to make their own release. -Tim neal wrote: Actually, I just went to download tomcat 5 and it looks like there's no release candidate of Tomcat 5 yet ... that its still in testing. Is this correct? Does anyone know a timeframe for release? Thanks. Neal - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-5 build.xml
costin 2003/02/16 20:29:08 Modified:.build.xml Log: Moved jasper to a separate target. Added commons-el to depends Use uptodate to avoid useless compilation Revision ChangesPath 1.82 +38 -10jakarta-tomcat-5/build.xml Index: build.xml === RCS file: /home/cvs/jakarta-tomcat-5/build.xml,v retrieving revision 1.81 retrieving revision 1.82 diff -u -r1.81 -r1.82 --- build.xml 16 Feb 2003 18:28:48 - 1.81 +++ build.xml 17 Feb 2003 04:29:08 - 1.82 @@ -197,6 +197,17 @@ /ant /target + target name=build-jasper + unless=jasper.build.notrequired + depends=init +echo== Building: jasper /echo + +ant dir=${jasper.home} target=deploy + property name=catalina.home value=${tomcat.build}/ + property name=commons-el.jar location=${tomcat.build}/common/lib/commons-el.jar / +/ant + /target + target name=build-admin unless=admin.build.notrequired depends=init echo== Building: admin /echo @@ -363,11 +374,7 @@ antcall target=build-tomcathttp11/ -echo== Building: jasper /echo - -ant dir=${jasper.home} target=deploy - property name=catalina.home value=${tomcat.build}/ -/ant +antcall target=build-jasper/ !-- Correct permissions and line endings on bin scripts -- fixcrlf srcdir=${tomcat.build}/bin includes=*.sh eol=lf/ @@ -398,11 +405,35 @@ /ant /target + target name=build-commons-el unless=commons-el.build.notrequired +echo== Building: commons-el /echo + +ant dir=${cvs.base}/jakarta-commons/el target=jar-only +property name=servlet-api.jar location=${tomcat.build}/common/lib/servlet-api.jar / +property name=commons-el.jar location=${tomcat.build}/common/lib/commons-el.jar / +property name=jsp-api.jar value=${tomcat.build}/common/lib/jsp-api.jar/ +property name=compile.optimize value=false / +property name=build.home value=${tomcat.build} / +/ant + /target + target name=build-depends depends=init description=Builds various dependent components +uptodate property=commons-logging.build.notrequired + targetfile=${tomcat.build}/server/lib/commons-logging.jar + srcfiles dir=${cvs.base}/jakarta-commons/logging/src/java includes=** / +/uptodate +uptodate property=commons-modeler.build.notrequired + targetfile=${tomcat.build}/server/lib/commons-modeler.jar + srcfiles dir=${cvs.base}/jakarta-commons/modeler/src/java includes=** / +/uptodate +uptodate property=commons-el.build.notrequired + targetfile=${tomcat.build}/common/lib/commons-el.jar + srcfiles dir=${cvs.base}/jakarta-commons/el/src/java includes=** / +/uptodate antcall target=build-commons-logging / antcall target=build-commons-modeler / - +antcall target=build-commons-el / /target @@ -458,10 +489,7 @@ fileset dir=${api.home}/jsr154/build/examples/ /copy -echoTarget: Jasper - Deploy .../echo -ant dir=${jasper.home} target=deploy - property name=catalina.home value=${tomcat.build}/ -/ant +antcall target=build-jasper/ !-- Correct permissions and line endings on bin scripts -- fixcrlf srcdir=${tomcat.build}/bin includes=*.sh eol=lf/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-5/resources mbeans.xml
costin 2003/02/16 20:38:45 Modified:resources mbeans.xml Log: Few cosmetic changes in names. Add a context using JMX ( /admin1 ). The procedure is simple: 1. create an mbean using the o.aStandardContext as code and the JSR77 name. 2. Call start() 3. Enjoy :-) The context will use the domain to locate the engine and will insert itself in the running server. To remove the context - just call the stop method on the JSR77 name. Revision ChangesPath 1.5 +30 -5 jakarta-tomcat-5/resources/mbeans.xml Index: mbeans.xml === RCS file: /home/cvs/jakarta-tomcat-5/resources/mbeans.xml,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- mbeans.xml16 Jan 2003 23:16:12 - 1.4 +++ mbeans.xml17 Feb 2003 04:38:45 - 1.5 @@ -11,8 +11,10 @@ property name=tomcat.src location=.. / property name=catalina.src location=../../jakarta-tomcat-catalina / property name=jakarta-commons location=${base.src}/jakarta-commons / +!-- + property name=jmx.home location=${base.dir}/mx4j-1.1.1 / +-- property name=jmx.home location=${base.dir}/jmx-ri_1.2 / - property name=tomcat.home location=${tomcat.src}/build / property name=commons-modeler.home location=${jakarta-commons}/modeler/dist / @@ -23,6 +25,11 @@ path id=tomcatCP-extra / + !-- + taskdef name=commons-logger classname=org.apache.tools.ant.listener.CommonsLoggingListener/ + commons-logger/ + -- + target name=init unless=init.done property name=tomcat.home location=.. / @@ -156,21 +163,39 @@ target name=run depends=init description=Start tomcat as an mbean using server.xml config and returns +property name=domain value=Catalina / modeler code=org.apache.catalina.startup.Catalina - name=Catalina:type=server / + name=${domain}:type=server / -jmxSet objectName=Catalina:type=server +jmxSet objectName=${domain}:type=server attribute=catalinaHome value=${tomcat.home}/ !-- We could also call init and set other properties - init should load the modules -- -jmx objectName=Catalina:type=server +jmx objectName=${domain}:type=server operation=start / - + + echo message=Tomcat5 running/ + +!-- let's add a context - using JMX -- +property name=admin1Name + value=${domain}:j2eeType=WebModule,name=//localhost/admin1,J2EEApplication=none,J2EEServer=none / + +modeler code=org.apache.catalina.core.StandardContext + name=${admin1Name} / + +jmxSet objectName=${admin1Name} +attribute=docBase +value=${tomcat.home}/server/webapps/admin / + +jmx objectName=${admin1Name} + operation=init / + + /target !-- Await - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Request to Fix Tomcat Standalone 302 redirect Issue
- Original Message - From: neal [EMAIL PROTECTED] To: Tomcat Developers List [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 8:00 PM Subject: RE: Request to Fix Tomcat Standalone 302 redirect Issue So it *will* be in tomcat 5? My head is spinning...so confusing. How does one access o.a.t.u.http.mapper.Mapper? Is this something that will be configurable via web.xml? It will be in configurable in 'server.xml' (or, at least it will be when I do my next commit :). Anyone have a ballpark idea on when Tomcat 5 will be released? Or at least when a release-candidate-quality binary will be available? :) Thanks. Neal -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 8:01 PM To: Tomcat Developers List Subject: Re: Request to Fix Tomcat Standalone 302 redirect Issue For TC 5, it isn't in DefaultServlet (which gets called way too late). It's in o.a.t.u.http.mapper.Mapper. - Original Message - From: Tim Funk [EMAIL PROTECTED] To: Tomcat Developers List [EMAIL PROTECTED] Sent: Sunday, February 16, 2003 6:43 PM Subject: Re: Request to Fix Tomcat Standalone 302 redirect Issue If I remember that thread correctly, the functionality was not been added according to the code. http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/share /org/apache/catalina/servlets/DefaultServlet.java?rev=1.5content-type=text/ vnd.viewcvs-markup -Tim neal wrote: I just took a look at the web.xml file found within the tomcat 5 download (jakarta-tomcat-catalina/catalina/conf) and saw no indication of the inclusion of this patch. Per indications in the thread referred to below, I looked for an indication that an init parameter was included that could be toggled to achieve this behavior but nothing was denoted in the comments above this node that would suggest it is a new feature. Could someone please confirm that this feature has been included into tomcat 5 and instruct me as to how I would access this new functionality? I really really really want the forward behavior for my default page. :-\ Thanks Neal -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 16, 2003 11:39 AM To: Tomcat Developers List Subject: Re: Request to Fix Tomcat Standalone 302 redirect Issue 5 will *probably* not be final until - The specs(Serlvet 2.4, jsp 2.) become final - The many internal changes are tested more - The committers vote to declare it so From seeing past messages - it looks like the specs being declared final is the buggest hurdle (to wait for). (But there have been some significant internal changes which need more testing) But anyone is free to use it since the source is available to make their own release. -Tim neal wrote: Actually, I just went to download tomcat 5 and it looks like there's no release candidate of Tomcat 5 yet ... that its still in testing. Is this correct? Does anyone know a timeframe for release? Thanks. Neal - 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] - 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] - 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]
cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5 CoyoteConnector.java
billbarker2003/02/16 21:07:31 Modified:coyote/src/java/org/apache/coyote/tomcat5 CoyoteConnector.java Log: Add the 'processWelcomeResources' attribute to a place that it can be configured. Revision ChangesPath 1.16 +15 -1 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/CoyoteConnector.java Index: CoyoteConnector.java === RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/CoyoteConnector.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- CoyoteConnector.java 17 Feb 2003 01:17:28 - 1.15 +++ CoyoteConnector.java 17 Feb 2003 05:07:30 - 1.16 @@ -844,6 +844,20 @@ maxKeepAliveRequests = mkar; } + /** + * Set the flag to see if we do internal redirects to welcome-files. + */ + public void setProcessWelcomeResources(boolean pwr) { + mapper.setProcessWelcomeResources(pwr); + } + + /** + * Return the flag to see if we do internal redirects to welcome-files. + */ + public boolean getProcessWelcomeResources() { + return mapper.getProcessWelcomeResources(); + } + /** * Return the scheme that will be assigned to requests received * through this connector. Default value is http. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5 MapperListener.java
billbarker2003/02/16 21:13:14 Modified:coyote/src/java/org/apache/coyote/tomcat5 MapperListener.java Log: Convert to using c-l methods. Revision ChangesPath 1.5 +4 -4 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/MapperListener.java Index: MapperListener.java === RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/MapperListener.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- MapperListener.java 10 Feb 2003 00:51:20 - 1.4 +++ MapperListener.java 17 Feb 2003 05:13:14 - 1.5 @@ -168,7 +168,7 @@ mBeanServer.addNotificationListener(objectName, this, null, null); } catch (Exception e) { -e.printStackTrace(); +log.warn(Error registering contexts,e); } } @@ -191,13 +191,13 @@ try { registerContext(objectName); } catch (Throwable t) { -t.printStackTrace(); +log.warn(Error registering Context + objectName,t); } } else if (j2eeType.equals(Servlet)) { try { registerWrapper(objectName); } catch (Throwable t) { -t.printStackTrace(); +log.warn(Error registering Wrapper + objectName,t); } } } @@ -209,7 +209,7 @@ try { unregisterContext(objectName); } catch (Throwable t) { -t.printStackTrace(); +log.warn(Error unregistering webapp + objectName,t); } } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-5 tomcat.nsi
remm2003/02/16 23:43:42 Modified:.tomcat.nsi Log: - Small update. The command lines used seem correct. - However, neither JavaOptions nor WorkingPath seem to have any effect, which causes the service to fail on startup. Revision ChangesPath 1.23 +7 -10 jakarta-tomcat-5/tomcat.nsi Index: tomcat.nsi === RCS file: /home/cvs/jakarta-tomcat-5/tomcat.nsi,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- tomcat.nsi16 Feb 2003 18:28:48 - 1.22 +++ tomcat.nsi17 Feb 2003 07:43:42 - 1.23 @@ -76,7 +76,7 @@ LangString DESC_SecExamples ${LANG_ENGLISH} Installs some examples web applications. ;Folder-select dialog - InstallDir $PROGRAMFILES\Apache Group\Tomcat 5.0 + InstallDir $PROGRAMFILES\Apache Software Foundation\Tomcat 5.0 ;Install types InstType Normal @@ -84,7 +84,7 @@ InstType Full ; Main registry key - InstallDirRegKey HKLM SOFTWARE\Apache Group\Tomcat\5.0 + InstallDirRegKey HKLM SOFTWARE\Apache Software Foundation\Tomcat\5.0 !insertmacro MUI_RESERVEFILE_WELCOMEFINISHPAGE !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS @@ -140,11 +140,7 @@ Call findJVMPath Pop $2 - ExecWait '$INSTDIR\bin\tomcatw.exe //IS//Tomcat5 --DisplayName Apache Tomcat @VERSION@ --Description Apache Tomcat @VERSION@ Server http://jakarta.apache.org/tomcat; --Install $INSTDIR\bin\tomcat.exe --ImagePath $INSTDIR\bin\bootstrap.jar --StartupClass org.apache.catalina.startup.Bootstrap;main;start --ShutdownClass org.apache.catalina.startup.Bootstrap;main;stop --Java auto --JavaOptions -Djava.endorsed.dirs=$INSTDIR\common\endorsed#-Dcatalina.home=$INSTDIR --StdOutputFile $INSTDIR\logs\stdout.log --StdErrorFile $INSTDIR\logs\stderr.log --WorkingPath $INSTDIR' - - ;ExecWait '$INSTDIR\bin\tomcatw.exe //US//Tomcat5 --ImagePath $INSTDIR\bin\bootstrap.jar --StartupClass org.apache.catalina.startup.Bootstrap;main;start --ShutdownClass org.apache.catalina.startup.Bootstrap;main;stop --Java auto --StdOutputFile $INSTDIR\logs\stdout.log --StdErrorFile $INSTDIR\logs\stderr.log --WorkingPath $INSTDIR' - -;--JavaOptions -Djava.endorsed.dirs=$INSTDIR\common\endorsed#-Dcatalina.home=$INSTDIR + ExecWait '$INSTDIR\bin\tomcat.exe //IS//Tomcat5 --DisplayName Apache Tomcat @VERSION@ --Description Apache Tomcat @VERSION@ Server - http://jakarta.apache.org/tomcat/; --Install $INSTDIR\bin\tomcat.exe --ImagePath $INSTDIR\bin\bootstrap.jar --StartupClass org.apache.catalina.startup.Bootstrap;main;start --ShutdownClass org.apache.catalina.startup.Bootstrap;main;stop --Java auto --JavaOptions -Djava.endorsed.dirs=$INSTDIR\common\endorsed#-Dcatalina.home=$INSTDIR --StdOutputFile $INSTDIR\logs\stdout.log --StdErrorFile $INSTDIR\logs\stderr.log --WorkingPath $INSTDIR' BringToFront ClearErrors @@ -229,7 +225,8 @@ WriteUninstaller $INSTDIR\Uninstall.exe - WriteRegStr HKLM SOFTWARE\Apache Group\Tomcat\5.0 $INSTDIR + WriteRegStr HKLM SOFTWARE\Apache Software Foundation\Tomcat\5.0 InstallPath $INSTDIR + WriteRegStr HKLM SOFTWARE\Apache Software Foundation\Tomcat\5.0 Version @VERSION@ WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\Apache Tomcat 5.0 \ DisplayName Apache Tomcat 5.0 (remove only) WriteRegStr HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\Apache Tomcat 5.0 \ @@ -519,7 +516,7 @@ DeleteRegKey HKCR JSPFile DeleteRegKey HKLM Software\Microsoft\Windows\CurrentVersion\Uninstall\Apache Tomcat 5.0 - DeleteRegKey HKLM SOFTWARE\Apache Group\Tomcat\5.0 + DeleteRegKey HKLM SOFTWARE\Apache Software Foundation\Tomcat\5.0 RMDir /r $SMPROGRAMS\Apache Tomcat 5.0 Delete $INSTDIR\tomcat.ico Delete $INSTDIR\LICENSE - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: jakarta-tomcat-5 build.xml
costin 2003/02/16 23:47:50 Modified:.build.xml Log: It seems build.deploy fails. I'm using the build target almost exclusively - I'll try to merge them. The big problem with the default target - it calls all the javadoc and a lot of other overheads, and at least on my machine is very slow. Revision ChangesPath 1.83 +1 -1 jakarta-tomcat-5/build.xml Index: build.xml === RCS file: /home/cvs/jakarta-tomcat-5/build.xml,v retrieving revision 1.82 retrieving revision 1.83 diff -u -r1.82 -r1.83 --- build.xml 17 Feb 2003 04:29:08 - 1.82 +++ build.xml 17 Feb 2003 07:47:50 - 1.83 @@ -204,7 +204,7 @@ ant dir=${jasper.home} target=deploy property name=catalina.home value=${tomcat.build}/ - property name=commons-el.jar location=${tomcat.build}/common/lib/commons-el.jar / + property name=commons-el.jar location=${commons-el.jar} / /ant /target - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]