DO NOT REPLY [Bug 27820] New: - SecurityConstraint.findAuthRoles()

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=27820

SecurityConstraint.findAuthRoles()

   Summary: SecurityConstraint.findAuthRoles()
   Product: Tomcat 5
   Version: 5.0.19
  Platform: All
OS/Version: All
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Unknown
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


The description for SecurityConstraint.findAuthRoles() states that 
"Return the set of roles that are permitted access to the resources protected by
this security constraint. If none have been defined, a zero-length array is
returned (which implies that all authenticated users are permitted access)."

Reading the servlet 2.4 spec, it states that 
"An authorization constraint that names no roles indicates that access to the
constrained requests must not be permitted under any circumstances." 

This seems opposite of the findAuthRoles() description. I haven't checked how
that method is actually being used, so I don't know if it's a security risk, but
the description is obviously wrong.

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



cvs commit: jakarta-tomcat-connectors/jk/native2/server/apache2 mod_jk2.dsp

2004-03-20 Thread mturk
mturk   2004/03/20 23:03:29

  Modified:jk/native2/server/apache2 mod_jk2.dsp
  Log:
  Change the module extension to .so so we can use the same config samples.
  
  Revision  ChangesPath
  1.9   +4 -4  jakarta-tomcat-connectors/jk/native2/server/apache2/mod_jk2.dsp
  
  Index: mod_jk2.dsp
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/server/apache2/mod_jk2.dsp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- mod_jk2.dsp   27 Feb 2004 19:14:33 -  1.8
  +++ mod_jk2.dsp   21 Mar 2004 07:03:29 -  1.9
  @@ -53,7 +53,7 @@
   # ADD BSC32 /nologo
   LINK32=link.exe
   # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 
/nologo /dll /machine:I386
  -# ADD LINK32 libhttpd.lib libapr.lib libaprutil.lib pcre.lib pcreposix.lib 
wsock32.lib advapi32.lib /nologo /dll /machine:I386 /libpath:"$(APACHE2_HOME)\lib"
  +# ADD LINK32 libhttpd.lib libapr.lib libaprutil.lib pcre.lib pcreposix.lib 
wsock32.lib advapi32.lib /nologo /dll /machine:I386 /out:"Release/mod_jk2.so" 
/libpath:"$(APACHE2_HOME)\lib"
   
   !ELSEIF  "$(CFG)" == "mod_jk2 - Win32 Debug"
   
  @@ -80,7 +80,7 @@
   # ADD BSC32 /nologo
   LINK32=link.exe
   # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 
/nologo /dll /debug /machine:I386 /pdbtype:sept
  -# ADD LINK32 libhttpd.lib libapr.lib libaprutil.lib pcre.lib pcreposix.lib 
wsock32.lib advapi32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept 
/libpath:"$(APACHE2_HOME)\lib"
  +# ADD LINK32 libhttpd.lib libapr.lib libaprutil.lib pcre.lib pcreposix.lib 
wsock32.lib advapi32.lib /nologo /dll /debug /machine:I386 /out:"Debug/mod_jk2.so" 
/pdbtype:sept /libpath:"$(APACHE2_HOME)\lib"
   
   !ENDIF 
   
  @@ -358,7 +358,7 @@
   !IF  "$(CFG)" == "mod_jk2 - Win32 Release"
   
   # Begin Custom Build - Creating resources from $(InputPath)
  -InputDir=\WORK\apache\jakarta-tomcat-connectors\jk\native2\common
  +InputDir=\WRKPLACE\PROJECTS\jtc\jk\native2\common
   InputPath=..\..\common\jk_logger_win32_message.mc
   
   "..\..\common\jk_logger_win32_message.rc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
  @@ -369,7 +369,7 @@
   !ELSEIF  "$(CFG)" == "mod_jk2 - Win32 Debug"
   
   # Begin Custom Build - Creating resources from $(InputPath)
  -InputDir=\WORK\apache\jakarta-tomcat-connectors\jk\native2\common
  +InputDir=\WRKPLACE\PROJECTS\jtc\jk\native2\common
   InputPath=..\..\common\jk_logger_win32_message.mc
   
   "..\..\common\jk_logger_win32_message.rc" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
  
  
  

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



Gracias por tu correo, Suscribeme

2004-03-20 Thread [EMAIL PROTECTED]
Gracias por tu correo, Suscribeme 

Hola,   
   
Esto es a lo que me dedico...

Vendemos propiedades en diferentes ciudades, puedes ofertar desde $100.

Quieres que te envie una lista regular de nuestras propiedades?

No te preocupes si te cansas de mi, Solo me escribes y ya no no te vio nada mas.

En la informacion que te envio, voy a incluir fotos y videos mios y de mis amigas, 
donde mostramos las propiedades que ofrecemos.

Gracias, espero verte pronto.
 
Besitos.



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



cvs commit: jakarta-tomcat-connectors/jk/native2/server/apache13 mod_jk2.dsp

2004-03-20 Thread mturk
mturk   2004/03/20 23:03:17

  Modified:jk/native2/server/apache13 mod_jk2.dsp
  Log:
  Change the module extension to .so so we can use the same config samples.
  
  Revision  ChangesPath
  1.6   +9 -9  jakarta-tomcat-connectors/jk/native2/server/apache13/mod_jk2.dsp
  
  Index: mod_jk2.dsp
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/native2/server/apache13/mod_jk2.dsp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- mod_jk2.dsp   3 Feb 2004 16:27:56 -   1.5
  +++ mod_jk2.dsp   21 Mar 2004 07:03:17 -  1.6
  @@ -55,7 +55,7 @@
   # ADD BSC32 /nologo
   LINK32=link.exe
   # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 
/nologo /dll /machine:I386
  -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 
ApacheCore.lib ws2_32.lib /nologo /dll /machine:I386 /libpath:"$(APACHE_HOME)\lib" 
/libpath:"$(APACHE2_HOME)\lib"
  +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 
ApacheCore.lib ws2_32.lib /nologo /dll /machine:I386 /out:"Release/mod_jk2.so" 
/libpath:"$(APACHE_HOME)\lib" /libpath:"$(APACHE2_HOME)\lib"
   
   !ELSEIF  "$(CFG)" == "mod_jk2 - Win32 Debug"
   
  @@ -81,7 +81,7 @@
   # ADD BSC32 /nologo
   LINK32=link.exe
   # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 
/nologo /dll /debug /machine:I386 /pdbtype:sept
  -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 
ApacheCore.lib wsock32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept 
/libpath:"$(APACHE_HOME)\lib" /libpath:"$(APACHE2_HOME)\lib"
  +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 
ApacheCore.lib wsock32.lib /nologo /dll /debug /machine:I386 /out:"Debug/mod_jk2.so" 
/pdbtype:sept /libpath:"$(APACHE_HOME)\lib" /libpath:"$(APACHE2_HOME)\lib"
   
   !ELSEIF  "$(CFG)" == "mod_jk2 - Win32 Debug APR"
   
  @@ -108,7 +108,7 @@
   # ADD BSC32 /nologo
   LINK32=link.exe
   # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 
ApacheCore.lib wsock32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept 
/libpath:"$(APACHE_HOME)\lib" /libpath:"$(APACHE2_HOME)\lib"
  -# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 
ApacheCore.lib wsock32.lib libapr.lib libaprutil.lib /nologo /dll /debug /machine:I386 
/pdbtype:sept /libpath:"$(APACHE_HOME)\lib" /libpath:"$(APACHE2_HOME)\lib"
  +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 
ApacheCore.lib wsock32.lib libapr.lib libaprutil.lib /nologo /dll /debug /machine:I386 
/out:"DebugA/mod_jk2.so" /pdbtype:sept /libpath:"$(APACHE_HOME)\lib" 
/libpath:"$(APACHE2_HOME)\lib"
   
   !ELSEIF  "$(CFG)" == "mod_jk2 - Win32 Release APR"
   
  @@ -125,7 +125,7 @@
   # PROP Ignore_Export_Lib 0
   # PROP Target_Dir ""
   # ADD BASE CPP /nologo /MD /W3 /GX /O2 /I "..\..\include" /I 
"$(APACHE_HOME)\include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" 
/D "SHARED_MODULE" /D "WIN32_LEAN_AND_MEAN" /YX /FD /c
  -# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\..\include" /I "$(JAVA_HOME)\include" /I 
"$(JAVA_HOME)\include\win32" /I "$(APACHE_HOME)\include" /I "$(APACHE2_HOME)\include" 
/D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "SHARED_MODULE" /D 
"WIN32_LEAN_AND_MEAN" /D "HAVE_JNI" /D "HAS_APR" /YX /FD /c
  +# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\..\include" /I "$(JAVA_HOME)\include" /I 
"$(JAVA_HOME)\include\win32" /I "C:\WRKPLACE\PROJECTS\jtc\apache13\include" /I 
"$(APACHE2_HOME)\include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" 
/D "SHARED_MODULE" /D "WIN32_LEAN_AND_MEAN" /D "HAVE_JNI" /D "HAS_APR" /D "EAPI" /YX 
/FD /c
   # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
   # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
   # ADD BASE RSC /l 0x41a /d "NDEBUG"
  @@ -135,7 +135,7 @@
   # ADD BSC32 /nologo
   LINK32=link.exe
   # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 
ApacheCore.lib ws2_32.lib /nologo /dll /machine:I386 /libpath:"$(APACHE_HOME)

cvs commit: jakarta-tomcat-connectors/jk/native2 INSTALL.txt

2004-03-20 Thread mturk
mturk   2004/03/20 07:37:43

  Modified:jk/native2 INSTALL.txt
  Log:
  IIS quick install info.
  
  Revision  ChangesPath
  1.2   +16 -1 jakarta-tomcat-connectors/jk/native2/INSTALL.txt
  
  Index: INSTALL.txt
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/INSTALL.txt,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- INSTALL.txt   17 Mar 2004 15:51:48 -  1.1
  +++ INSTALL.txt   20 Mar 2004 15:37:43 -  1.2
  @@ -13,11 +13,26 @@
 $ ./configure --with-apxs2=PREFIX/bin/apxs
 $ make
 $ make install
  -  $ PREFIX/bin/apachectl start
   
NOTES: * Replace PREFIX with the filesystem path under which 
 Apache should be installed.  A typical installation
 might use "/usr/local/apache2" for PREFIX (without the
 quotes).
   
  +
  +  Quick Start - IIS
  +  
  +  Use the provided install4iss.js script file.
  +  Put the isapi_redirector2.dll and install4iis.js to the path
  +  /bin .
  +  Copy the workers2.properties file to the path
  +  /conf .
  +  Now open the command prompt and cd to the tomcat bin directory.
  +  
  +  C:\Tomcat\bin> cscript install4iis.js
  +  
  +  The provided script will install the isapi filter and create the
  +  virtual directory named /jakarta with execute permission.
  +
  +  Restart the WWW service and you are ready to use the isapi_redirector2.
   
  
  
  

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



Gracias por tu correo, Suscribeme

2004-03-20 Thread [EMAIL PROTECTED]
Gracias por tu correo, Suscribeme 

Hola,   
   
Esto es a lo que me dedico...

Vendemos propiedades en diferentes ciudades, puedes ofertar desde $100.

Quieres que te envie una lista regular de nuestras propiedades?

No te preocupes si te cansas de mi, Solo me escribes y ya no no te vio nada mas.

En la informacion que te envio, voy a incluir fotos y videos mios y de mis amigas, 
donde mostramos las propiedades que ofrecemos.

Gracias, espero verte pronto.
 
Besitos.



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



cvs commit: jakarta-tomcat-connectors/jk/native2 BUILD.txt

2004-03-20 Thread mturk
mturk   2004/03/20 07:29:40

  Modified:jk/native2 BUILD.txt
  Log:
  IIS quick build info.
  
  Revision  ChangesPath
  1.4   +21 -5 jakarta-tomcat-connectors/jk/native2/BUILD.txt
  
  Index: BUILD.txt
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/BUILD.txt,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- BUILD.txt 19 Mar 2004 15:26:57 -  1.3
  +++ BUILD.txt 20 Mar 2004 15:29:40 -  1.4
  @@ -2,13 +2,13 @@
   
   Starting with 2.0.4, APR is mandatory for jk2 so you should be
   sure to have it installed on your system, probably because you
  -allready have an Apache 2.0 installed or have apr and apr-utils
  +already have an Apache 2.0 installed or have apr and apr-utils
   sources tarball ready, since jk2 will first build APR/APR-UTILS
  -for itw own purpose (Apache 1.3 case).
  +for its own purpose (Apache 1.3 case).
   
   
   If you want to have JNI support, add --with-jni and be sure to
  -have JAVA_HOME env var point to your Java Environnement.
  +have JAVA_HOME env var point to your Java Environment.
   
   * Linux distributions using Apache 2.0
   
  @@ -37,9 +37,25 @@
   
   There is a known issue with the latest APR 1.0 and MSVC6.
   If you want to use MSVC6, please use APR 0.9.x for now.
  -MSVC7 doesnt have this issue, and could be used with APR 1.0.
  +MSVC7 doesn't have this issue, and could be used with APR 1.0.
  +
  +Isapi redirector requires the following libraries to build:
  +apr, apr-util, apr-iconv and pcre.
  +The easiest way to obtain all those libraries is to download
  +the httpd-2.0.49-win32-src.zip from http://www.apache.org/dist/httpd or
  +from any of the mirror sites.
  +You will only need the srclib part (apr, apr-util, apr-iconv and pcre)
  +Unzip the entire srclib folder to j-t-c native2 folder.
  +Now open the isapi.dsw from MSVC6 and build.
  +
  +Building using VS.NET:
  +Make sure that the required libraries are inside native2/srclib.
  +Open the idapi.dsw and select 'Yes to all' when prompted to convert the project.
  +During conversion the custom build adds extra quotations for
  +jk_logger_win32_message.mc. Right click on that file and select Properties.
  +For Custom Build Step remove all the quotations around ${InputDir}
  +and ${InputPath}.
   
  ---> Mladen ?
   
   
   * Netware
  
  
  

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



DO NOT REPLY [Bug 27141] - spontaneous clean tomcat shutdown

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=27141

spontaneous clean tomcat shutdown





--- Additional Comments From [EMAIL PROTECTED]  2004-03-20 12:21 ---
done, although that last few weeks, it didn't happen. I'll report if it happens
again!

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



DO NOT REPLY [Bug 27141] - spontaneous clean tomcat shutdown

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=27141

spontaneous clean tomcat shutdown





--- Additional Comments From [EMAIL PROTECTED]  2004-03-20 11:41 ---
Just had a thought. Try throwing an exception in your destroy() method, 
catching it and logging the associated stack trace. This might at least give 
us somewhere to start looking.

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



DO NOT REPLY [Bug 18369] - NullPointerException in StoreBase

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=18369

NullPointerException in StoreBase

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2004-03-20 11:12 ---
This has been fixed for both Tomcat 4 and Tomcat 5 in CVS. The fix will be 
included in the next release.

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



cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session JDBCStore.java

2004-03-20 Thread markt
markt   2004/03/20 03:11:07

  Modified:catalina/src/share/org/apache/catalina/session
JDBCStore.java
  Log:
  - Fix bug 18369. Prevent npe in StoreBase if a sql exception occurs.
  - Ported from TC4.
  
  Revision  ChangesPath
  1.9   +2 -1  
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/JDBCStore.java
  
  Index: JDBCStore.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/JDBCStore.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- JDBCStore.java27 Feb 2004 14:58:46 -  1.8
  +++ JDBCStore.java20 Mar 2004 11:11:07 -  1.9
  @@ -469,6 +469,7 @@
   keys = (String[]) tmpkeys.toArray(new String[tmpkeys.size()]);
   } catch (SQLException e) {
   log(sm.getString(getStoreName() + ".SQLException", e));
  +keys = new String[0];
   // Close the connection so that it gets reopened next time
   if (dbConnection != null)
   close(dbConnection);
  
  
  

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



cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/session JDBCStore.java

2004-03-20 Thread markt
markt   2004/03/20 02:57:18

  Modified:catalina/src/share/org/apache/catalina/session
JDBCStore.java
  Log:
  - Fix bug 18369. Prevent npe in StoreBase if a sql exception occurs.
  - Remove unused imports identified by Eclipse.
  
  Revision  ChangesPath
  1.12  +6 -8  
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/session/JDBCStore.java
  
  Index: JDBCStore.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/session/JDBCStore.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- JDBCStore.java12 Mar 2003 01:19:03 -  1.11
  +++ JDBCStore.java20 Mar 2004 10:57:18 -  1.12
  @@ -65,16 +65,13 @@
   package org.apache.catalina.session;
   
   import java.io.InputStream;
  -import java.io.OutputStream;
   import java.io.BufferedInputStream;
   import java.io.BufferedOutputStream;
   import java.io.ByteArrayInputStream;
   import java.io.ByteArrayOutputStream;
   import java.io.IOException;
  -import java.io.InputStream;
   import java.io.ObjectInputStream;
   import java.io.ObjectOutputStream;
  -import java.io.ObjectStreamClass;
   import java.sql.Connection;
   import java.sql.DriverManager;
   import java.sql.PreparedStatement;
  @@ -470,6 +467,7 @@
   keys = (String[]) tmpkeys.toArray(new String[tmpkeys.size()]);
   } catch(SQLException e) {
   log(sm.getString(getStoreName()+".SQLException", e));
  +keys = new String[0];
   } finally {
   try {
   if(rst != null) {
  @@ -482,7 +480,7 @@
   release(_conn);
   }
   }
  -
  +
   return(keys);
   }
   
  
  
  

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



DO NOT REPLY [Bug 13499] - Jasper throws an exception on an immediate pageContext.forward()

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=13499

Jasper throws an exception on an immediate pageContext.forward()

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2004-03-20 09:54 ---
I have now committed an improved patch for TC4 and TC5.

You will need to be very careful that there has been absolutely no output 
before the forward. For example a page that starts

<%@ page buffer="none" %>
<% pageContext.forward("/index.jsp"; %>

will still throw an exception due to the newline output as a result of the 
first line. You would need to format the start of the jsp on a single line eg

<%@ page buffer="none" %><% pageContext.forward("/index.jsp"); %>

or use the (non-spec conformant) trimSpaces option on TC5.

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



cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime JspWriterImpl.java

2004-03-20 Thread markt
markt   2004/03/20 01:44:00

  Modified:jasper2/src/share/org/apache/jasper/runtime Tag:
tomcat_4_branch JspWriterImpl.java
  Log:
  - Fix bug 13499 (again). If page output is unbuffered, illegal state exception is no 
longer
  thrown on forward if and only if nothing has been written to the page. The ise will 
still be
  thrown on forward if there has been any unbuffered output (JSP.5.5)
  - Ported from TC5
  
  Revision  ChangesPath
  No   revision
  No   revision
  1.3.2.4   +5 -4  
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/JspWriterImpl.java
  
  Index: JspWriterImpl.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/JspWriterImpl.java,v
  retrieving revision 1.3.2.3
  retrieving revision 1.3.2.4
  diff -u -r1.3.2.3 -r1.3.2.4
  --- JspWriterImpl.java19 Mar 2004 17:34:32 -  1.3.2.3
  +++ JspWriterImpl.java20 Mar 2004 09:44:00 -  1.3.2.4
  @@ -180,7 +180,8 @@
* Discard the output buffer.
*/
   public final void clear() throws IOException {
  -if (bufferSize == 0)
  +if ((bufferSize == 0) && (out != null))
  +// clear() is illegal after any unbuffered output (JSP.5.5)
   throw new 
IllegalStateException(Constants.getString("jsp.error.ise_on_clear"));
   if (flushed)
   throw new 
IOException(Constants.getString("jsp.error.attempt_to_clear_flushed_buffer"));
  
  
  

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



[ANN] The Reference Scanner and Jakarta Tomcat - Heap Profiling, Memory Leaks

2004-03-20 Thread Joerg Baumgaertel
Hi all,

because often requested,
I added a Jakarta-Tomcat-Howto to the 'jb2works.com' website.
You find the following documents
- How to scan a Java webapplication
  http://jb2works.com/refscan/tomcat.html
- How to scan Jakarta-Tomcat full-space
  http://jb2works.com/refscan/tomcatfull.html
About the Reference Scanner itself,

[From Announcement in c.l.j.p]

The Reference Scanner

Use this memory profiler .jar to inspect your running Java application
from your web browser. Get heap snapshots and snapshot diffs. Find
memory leaks. Analyze the reference graph for objects kept in memory.
Do simulate Cuts for found memory leaks.
Your application runs at normal speed. Does not require the JVM debug
mode. Low memory consumption.
The software is free downloadable. Only 810k .jar file.

usage
http://jb2works.com/refscan/usage.html
screenshots
http://jb2works.com/refscan/usage.html#heapprofile
feature matrix
http://jb2works.com/refscan/matrix.html
download
http://jb2works.com/refscan/status.html#status
faq
http://jb2works.com/refscan/faq.html
junit
http://jb2works.com/refscan/junit.html
I would like to see you enjoying this software!

Best regards,
Joerg Baumgaertel, jb2works.com 2004


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