DO NOT REPLY [Bug 7873] - Null pointer renders servlet unusable with out tomcat restart

2002-04-10 Thread bugzilla

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

Null pointer renders servlet unusable with out tomcat restart





--- Additional Comments From [EMAIL PROTECTED]  2002-04-10 07:09 ---
the null pointer exception did occour once before i upgraded to the coyote 
connector

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




Re: Watchdog problems on 3.3.x

2002-04-10 Thread Remy Maucherat

 The current Coyote connector (almost, but more on that later) passes
 Watchdog on port 80.  It fails badly on port 8080.  From the discussions
on
 list between Remy and Costin, this is because the Watchdog tests
incorrectly
 fail to include the port in the Host header for the HTTP/1.1 protocol.

I thought Watchdog used HTTP/1.0 (at least Watchdog 4 does).

If it uses HTTP/1.0, then it's a problem with Coyote.
If it uses HTTP/1.1, then it's a problem with the old Watchdog.

 Given that Watchdog *is* the test that Tomcat has to pass to be the
 reference implementation, I'd like some word that we can change the 2.2
 Watchdog to be HTTP/1.1 compliant.

 The failed test on port 80 (same as the old CoyoteIntercepter) has to do
 with un-safe escapes in the URL, which by default, DecodeInterceptor
faults.

Remy


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




FW: Your tomcat 4.0 example application is... uh...

2002-04-10 Thread Pier Fumagalli

Nack! :/

Pier

-- Forwarded Message
 From: Michael L. Davis [EMAIL PROTECTED]
 Date: Tue, 09 Apr 2002 07:41:08 -0600
 To: [EMAIL PROTECTED]
 Subject: Your tomcat 4.0 example application is... uh...
 
 
 non existant... the servlet is a bad link and the jsp needs to be wrapped in
 html.
 
 http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/sample/web/
 
 Onward,
 Mike.
 
 
 

-- End of Forwarded Message


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




Re: Why won't you die?

2002-04-10 Thread Pier Fumagalli

Remy Maucherat [EMAIL PROTECTED] wrote:

 Ok... I'm facing this little problem... I have a servlet creating a RMI
 registry, and that binds to a port, creates a non-daemon Thread...
 Yadayadayada... You know where I want to end up to...
 
 Now, catalina.sh stop doesn't work anymore, because I found no apparent way
 of shutting down that RMI registry...
 
 Do some of you know HOW to shut down a RMI registry?
 
 Sorry, I don't.

Crap...

 Otherwise I'd propose
 to revert back to org.apache.catalina.startup.Catalina version 1.44.
 
 -1. No, because it's equivalent to not attempting to shutdown cleanly.

We can control the threads invoking destroy() in the different contexts, and
when they all exit, well, we exit...
If a servlet creates a thread, and during its destruction doesn't
synchronize its own thread reentrance (doesn't wait for it to die before
returning from destroy()), then it's a servlet problem, but we won't hold a
process on the server forever.

 If you want to do that, write a servlet with System.exit() in its destroy
 method, it would be the same. Or you can kill the process.

Yeah, so that when my context gets reloaded because of a change the whole
f***ing servlet engine falls over :) RAD! :)

Pier


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




DO NOT REPLY [Bug 7922] New: - Can't use DBCS path name for jsp

2002-04-10 Thread bugzilla

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

Can't use DBCS path name for jsp

   Summary: Can't use DBCS path name for jsp
   Product: Tomcat 4
   Version: 4.0.1 Final
  Platform: All
OS/Version: All
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Catalina
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


I cat'use the UTF-8 encoding http request to browser the DBCS path or file.

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




Building modapp for Tomcat4.0 and apache1_3.23

2002-04-10 Thread Noaman Ahmed

I am getting following o/p at the time of builng webapp module .

./configure with all appropriate action succeds.

Even 
make Succeds

But I get following error at the time of make install



make[1]: Entering directory lib
make[1]: Invoking make  build
/usr/local/bin/gcc -g -O2   -g -O2 -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -D_RE
ENTRANT   -I/usr/local/apr/include -I/software/user/webapp_module/include -c pr
_warp.c -o pr_warp.o
pr_warp.c: In function `headers':
pr_warp.c:198: `TYPE_REQ_HEADER' undeclared (first use in this function)
pr_warp.c:198: (Each undeclared identifier is reported only once
pr_warp.c:198: for each function it appears in.)
pr_warp.c: In function `warp_handle':
pr_warp.c:245: `TYPE_REQ_INIT' undeclared (first use in this function)
pr_warp.c:279: `TYPE_REQ_CONTENT' undeclared (first use in this function)
pr_warp.c:291: `TYPE_REQ_SCHEME' undeclared (first use in this function)
pr_warp.c:303: `TYPE_REQ_AUTH' undeclared (first use in this function)
pr_warp.c:329: `TYPE_REQ_CLIENT' undeclared (first use in this function)
pr_warp.c:345: `TYPE_REQ_SERVER' undeclared (first use in this function)
pr_warp.c:359: `TYPE_REQ_PROCEED' undeclared (first use in this function)
pr_warp.c:372: `TYPE_RES_STATUS' undeclared (first use in this function)
pr_warp.c:380: `TYPE_RES_HEADER' undeclared (first use in this function)
pr_warp.c:391: `TYPE_RES_COMMIT' undeclared (first use in this function)
pr_warp.c:396: `TYPE_RES_BODY' undeclared (first use in this function)
pr_warp.c:403: `TYPE_RES_DONE' undeclared (first use in this function)
pr_warp.c:408: `TYPE_CBK_READ' undeclared (first use in this function)
pr_warp.c:416: `TYPE_CBK_DONE' undeclared (first use in this function)
pr_warp.c:418: `TYPE_CBK_DATA' undeclared (first use in this function)
pr_warp.c:421: `TYPE_ERROR' undeclared (first use in this function)
pr_warp.c:373: warning: unreachable code at beginning of switch statement
pr_warp.c:373: warning: unreachable code at beginning of switch statement
*** Error code 1
make: Fatal error: Command failed for target `pr_warp.o'
Current working directory /software/user/webapp_module/lib
*** Error code 1
make: Fatal error: Command failed for target `template'
Current working directory /software/user/webapp_module
*** Error code 1
make: Fatal error: Command failed for target `lib-build'
you have mail  



tomcat 4.0.3 shares the sessions between the same app on a http andhttps instance

2002-04-10 Thread Ismael Blesa Part

I have tested my webapp with last tomcat 4.0.3. I have uncommented the 
ssl section and I have installed my webapp putting the app.war file on 
the webapps folder.

My apps has a load-on-startup section that initializes the db connection 
and shows the progress on the console, before tomcat 4.0.3 I got an 
initialization per server (one for http and another one for https), but 
with tomcat 4.0.3 I only gets one for the two connectors (http  https)

I think the servlet context is shared between http and https. I thought 
that only orionserver supported this.
Is this a bug ?
Is there a way to make 4.0.3 work as the previous versions (that is 
without sharing the webcontext) ?
Is this behavious defined on the standard ?



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




DO NOT REPLY [Bug 7922] - Can't use DBCS path name for jsp

2002-04-10 Thread bugzilla

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

Can't use DBCS path name for jsp





--- Additional Comments From [EMAIL PROTECTED]  2002-04-10 16:41 ---
I don't understand the report.
Please give more details (in English).

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




DO NOT REPLY [Bug 7831] - [PATCH] JNDIRealm does not work with CLIENT-CERT auth method

2002-04-10 Thread bugzilla

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

[PATCH] JNDIRealm does not work with CLIENT-CERT auth method

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
  everconfirmed|0   |1

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




Cookie problem with nsapi_redirector.so and netscape server 3.6

2002-04-10 Thread DLewis

Last year, there was a posting regarding problems with using Tomcat and
Netscape Enterprise Server 3.6 using nsapi_redirector.so:

http://w6.metronet.com/~wjm/tomcat/2000/Jun/msg00095.html

I didn't see any helpful answers in archive on this issue. I am having a
similar problem: One netscape webserver 3.6 instance, one Tomcat 4.0.1
instance, multiple users accessing URLs via the
webserver/nsapi_connector/AJP13 get mixed-up cookies, same users accessing
same Tomcat instance via HTTP connector works fine.

Has anyone else seen strange cookie behavior using this configuration, and
do you have a workaround?

---
David Lewis
Pershing Technology Group
[EMAIL PROTECTED]



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




jspc -compiler switch

2002-04-10 Thread Alan Arvesen

Hello Dev,

flame off 
I've read the posting guidelines for the list, the submission guidelines for 
jakarta,  and the archives for the tomcat-dev.  I'm still not quite sure of sending in 
a diff for my change, etc.  Please be kind :)
/flame off


We've been using the jspc code shipped with tomcat for a few months now.  Over time, 
our code base has grown large enough for it to be irritating to recompile from scratch 
each time (5 minutes on my old PII at home).  One of the long processes was that jspc 
would recompile every jsp file each time.
I grepped through the code and saw that Compiler was subclassable (in 
particular, the isOutDated method is what I was interested in), but that JspC was hard 
coded to always call the CommandLineCompiler class.  To get around this, I've done two 
things:

1)  added a -compiler switch to JspC that takes a class name as an argument 
2)  written a very simple NewerCompiler class that compares the last modified date (as 
reported by java.io.File) for the .jsp file and the resultant .java file.

Results have been excellent:  an incremental compile will now take 40 seconds on a 
machine that takes 3 minutes 4 seconds for a full compile.  The new class does not try 
to anything sophisticated about dependency checking, etc.  At worst, we just do a 
clean install to force all the .jsps to recompile.

I read through the tomcat mailing lists and didn't see that anyone had addressed this 
(that is, plugging in a new compiler into jspc).  I don't want to duplicate anything 
and I also don't want to bloat the code base with non-needed features :)  What does 
the mailing list think?  Is this is useful mod?


Thanks for your time,
Alan

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




Re: Watchdog problems on 3.3.x

2002-04-10 Thread Bill Barker


- Original Message -
From: Remy Maucherat [EMAIL PROTECTED]
To: Tomcat Developers List [EMAIL PROTECTED]
Sent: Wednesday, April 10, 2002 12:33 AM
Subject: Re: Watchdog problems on 3.3.x


  The current Coyote connector (almost, but more on that later) passes
  Watchdog on port 80.  It fails badly on port 8080.  From the discussions
 on
  list between Remy and Costin, this is because the Watchdog tests
 incorrectly
  fail to include the port in the Host header for the HTTP/1.1 protocol.

 I thought Watchdog used HTTP/1.0 (at least Watchdog 4 does).

Yes, it does use HTTP/1.0.  It also (at least for the 3.x one) sends a Host
header.  It seems that the problem is that we are enforcing the HTTP/1.1 RFC
based only on the presence of a Host header.  We should probably fall back
to using the socket port for HTTP/1.0 clients who send a Host header without
a port.


 If it uses HTTP/1.0, then it's a problem with Coyote.
 If it uses HTTP/1.1, then it's a problem with the old Watchdog.

  Given that Watchdog *is* the test that Tomcat has to pass to be the
  reference implementation, I'd like some word that we can change the 2.2
  Watchdog to be HTTP/1.1 compliant.
 
  The failed test on port 80 (same as the old CoyoteIntercepter) has to do
  with un-safe escapes in the URL, which by default, DecodeInterceptor
 faults.

 Remy


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



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




DO NOT REPLY [Bug 7931] New: - A url that contains %2F in the path, tomcat returns 400 bad request.

2002-04-10 Thread bugzilla

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

A url that contains %2F in the path, tomcat returns 400 bad request.

   Summary: A url that contains %2F in the path, tomcat returns 400
bad request.
   Product: Tomcat 4
   Version: 4.0.4 Beta 2
  Platform: All
OS/Version: All
Status: NEW
  Severity: Major
  Priority: Other
 Component: Connector:HTTP/1.1 (deprecated)
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


If I do a request to a url such as:
http://localhost:8080/test/foo%2Fbar
tomcat returns 400 Bad Request and the request is not logged in the access 
log.  It should not return this, apache processes the request correctly.

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




cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/server JkServlet.java

2002-04-10 Thread costin

costin  02/04/10 13:42:45

  Removed: jk/java/org/apache/jk/server JkServlet.java
  Log:
  Forgot this one - Coyote is now the connector.

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




cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/server JkCoyoteHandler.java JkMain.java

2002-04-10 Thread costin

costin  02/04/10 13:43:41

  Modified:jk/java/org/apache/jk/server JkCoyoteHandler.java
JkMain.java
  Log:
  Few tweaks, pass attributes to jk components, etc.
  
  Revision  ChangesPath
  1.9   +12 -7 
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.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- JkCoyoteHandler.java  9 Apr 2002 20:51:06 -   1.8
  +++ JkCoyoteHandler.java  10 Apr 2002 20:43:41 -  1.9
  @@ -97,6 +97,8 @@
*/
   public void setAttribute( String name, Object value ) {
   log.info(setAttribute  + name +   + value );
  +if( value instanceof String )
  +jkMain.setProperty( name, (String)value );
   }
   
   public Object getAttribute( String name ) {
  @@ -260,13 +262,11 @@
   msg.appendBytes( hV );
   }
   ep.getChannel().send( msg, ep );
  -}
  -if( actionCode==ActionCode.ACTION_RESET ) {
  +} else if( actionCode==ActionCode.ACTION_RESET ) {
   if( log.isInfoEnabled() )
   log.info(RESET  );
   
  -}
  -if( actionCode==ActionCode.ACTION_CLOSE ) {
  +} else if( actionCode==ActionCode.ACTION_CLOSE ) {
   if( log.isInfoEnabled() )
   log.info(CLOSE  );
   org.apache.coyote.Response res=(org.apache.coyote.Response)param;
  @@ -278,11 +278,16 @@
   msg.appendInt( 1 );
   
   ep.getChannel().send(msg, ep );
  -}
  -if( actionCode==ActionCode.ACTION_ACK ) {
  +} else if( actionCode==ActionCode.ACTION_REQ_SSL_ATTRIBUTE ) {
  +
  +
  +} else if( actionCode==ActionCode.ACTION_REQ_HOST_ATTRIBUTE ) {
  +
  +
  +} else if( actionCode==ActionCode.ACTION_ACK ) {
   if( log.isInfoEnabled() )
   log.info(ACK  );
  -
  +// What should we do here ? Who calls it ? 
   }
   } catch( Exception ex ) {
   log.error( Error in action code , ex );
  
  
  
  1.13  +3 -5  
jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkMain.java
  
  Index: JkMain.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkMain.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- JkMain.java   20 Feb 2002 23:43:43 -  1.12
  +++ JkMain.java   10 Apr 2002 20:43:41 -  1.13
  @@ -70,10 +70,9 @@
   import org.apache.tomcat.util.http.*;
   import org.apache.tomcat.util.IntrospectionUtils;
   
  -/** Main class used for testing jk core and common code and tunning.
  +/** Main class used to startup jk. 
*
  - *  It'll just start/init jk and use a dummy endpoint ( i.e. no servlet
  - *  container ).
  + * It is also useable standalone for testing or as a minimal socket server.
*/
   public class JkMain
   {
  @@ -137,6 +136,7 @@
   String home=wEnv.getJkHome();
   if( home==null ) {
   // XXX use IntrospectionUtil to find myself
  +jkMain.guessHome();
   }
   if( home != null ) {
   File hF=new File(home);
  @@ -252,8 +252,6 @@
   IntrospectionUtils.processArgs( jkMain, args, new String[] {},
   null, new Hashtable());
   
  -jkMain.guessHome();
  -
   jkMain.init();
   jkMain.start();
   } catch( Exception ex ) {
  
  
  

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




cvs commit: jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/servlet JspServlet.java

2002-04-10 Thread kinman

kinman  02/04/10 14:14:20

  Modified:jasper/src/share/org/apache/jasper/compiler
JspParseEventListener.java
   jasper/src/share/org/apache/jasper/servlet JspServlet.java
  Removed: jasper/src/share/org/apache/jasper JasperError.java
  Log:
  - Fixed 7880.  Spec requires that tag validation messages be returned with
a status of 500.  Removed JasperError, and throw JasperException instead.
  
Thanks Ryan Lubke for the patch.
  
  Revision  ChangesPath
  1.37  +9 -9  
jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/JspParseEventListener.java
  
  Index: JspParseEventListener.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/JspParseEventListener.java,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- JspParseEventListener.java4 Dec 2001 02:49:05 -   1.36
  +++ JspParseEventListener.java10 Apr 2002 21:14:20 -  1.37
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/JspParseEventListener.java,v
 1.36 2001/12/04 02:49:05 larryi Exp $
  - * $Revision: 1.36 $
  - * $Date: 2001/12/04 02:49:05 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/JspParseEventListener.java,v
 1.37 2002/04/10 21:14:20 kinman Exp $
  + * $Revision: 1.37 $
  + * $Date: 2002/04/10 21:14:20 $
*
* 
*
  @@ -78,7 +78,6 @@
   import javax.servlet.jsp.tagext.TagLibraryInfo;
   import javax.servlet.jsp.tagext.ValidationMessage;
   
  -import org.apache.jasper.JasperError;
   import org.apache.jasper.JasperException;
   import org.apache.jasper.Constants;
   import org.apache.jasper.JspCompilationContext;
  @@ -1134,16 +1133,17 @@
  new Object[]{tli.getShortName()}));
   errMessage.append(/h3);
   for (int i = 0; i  errors.length; i++) {
  -errMessage.append(p);
  -errMessage.append(errors[i].getId());
  -errMessage.append(: );
  +String id = errors[i].getId();
  +if (id != null) {
  +errMessage.append(errors[i].getId());
  +errMessage.append(: );
  +}
   errMessage.append(errors[i].getMessage());
  -errMessage.append(/p);
   }
   }
   }
if (hasErrors)
  -throw new JasperError(errMessage.toString());
  +throw new JasperException(errMessage.toString());
   }
   
   /**
  
  
  
  1.28  +0 -4  
jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/servlet/JspServlet.java
  
  Index: JspServlet.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/servlet/JspServlet.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- JspServlet.java   2 Apr 2002 16:10:40 -   1.27
  +++ JspServlet.java   10 Apr 2002 21:14:20 -  1.28
  @@ -83,7 +83,6 @@
   import java.security.Policy;
   import java.security.PrivilegedAction;
   
  -import org.apache.jasper.JasperError;
   import org.apache.jasper.JasperException;
   import org.apache.jasper.Constants;
   import org.apache.jasper.Options;
  @@ -474,9 +473,6 @@
   serviceJspFile(request, response, jspUri, null, precompile);
} catch (RuntimeException e) {
throw e;
  -} catch (JasperError ex) {
  -response.setContentType(text/html);
  -response.getWriter().print(ex.getMessage());
} catch (ServletException e) {
throw e;
} catch (IOException e) {
  
  
  

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




cvs commit: jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/servlet JspServlet.java

2002-04-10 Thread kinman

kinman  02/04/10 14:23:04

  Modified:jasper/src/share/org/apache/jasper/compiler Tag:
tomcat_40_branch JspParseEventListener.java
   jasper/src/share/org/apache/jasper/servlet Tag:
tomcat_40_branch JspServlet.java
  Removed: jasper/src/share/org/apache/jasper Tag: tomcat_40_branch
JasperError.java
  Log:
  - Fixed 7880.  Apply patch from head branch.
  
  Revision  ChangesPath
  No   revision
  
  
  No   revision
  
  
  1.33.2.4  +9 -9  
jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/JspParseEventListener.java
  
  Index: JspParseEventListener.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/JspParseEventListener.java,v
  retrieving revision 1.33.2.3
  retrieving revision 1.33.2.4
  diff -u -r1.33.2.3 -r1.33.2.4
  --- JspParseEventListener.java4 Dec 2001 02:47:03 -   1.33.2.3
  +++ JspParseEventListener.java10 Apr 2002 21:23:04 -  1.33.2.4
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/JspParseEventListener.java,v
 1.33.2.3 2001/12/04 02:47:03 larryi Exp $
  - * $Revision: 1.33.2.3 $
  - * $Date: 2001/12/04 02:47:03 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/JspParseEventListener.java,v
 1.33.2.4 2002/04/10 21:23:04 kinman Exp $
  + * $Revision: 1.33.2.4 $
  + * $Date: 2002/04/10 21:23:04 $
*
* 
*
  @@ -78,7 +78,6 @@
   import javax.servlet.jsp.tagext.TagLibraryInfo;
   import javax.servlet.jsp.tagext.ValidationMessage;
   
  -import org.apache.jasper.JasperError;
   import org.apache.jasper.JasperException;
   import org.apache.jasper.Constants;
   import org.apache.jasper.JspCompilationContext;
  @@ -1134,16 +1133,17 @@
  new Object[]{tli.getShortName()}));
   errMessage.append(/h3);
   for (int i = 0; i  errors.length; i++) {
  -errMessage.append(p);
  -errMessage.append(errors[i].getId());
  -errMessage.append(: );
  +String id = errors[i].getId();
  +if (id != null) {
  +errMessage.append(errors[i].getId());
  +errMessage.append(: );
  +}
   errMessage.append(errors[i].getMessage());
  -errMessage.append(/p);
   }
   }
   }
if (hasErrors)
  -throw new JasperError(errMessage.toString());
  +throw new JasperException(errMessage.toString());
   }
   
   /**
  
  
  
  No   revision
  
  
  No   revision
  
  
  1.21.2.7  +0 -4  
jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/servlet/JspServlet.java
  
  Index: JspServlet.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/servlet/JspServlet.java,v
  retrieving revision 1.21.2.6
  retrieving revision 1.21.2.7
  diff -u -r1.21.2.6 -r1.21.2.7
  --- JspServlet.java   2 Apr 2002 16:11:13 -   1.21.2.6
  +++ JspServlet.java   10 Apr 2002 21:23:04 -  1.21.2.7
  @@ -83,7 +83,6 @@
   import java.security.Policy;
   import java.security.PrivilegedAction;
   
  -import org.apache.jasper.JasperError;
   import org.apache.jasper.JasperException;
   import org.apache.jasper.Constants;
   import org.apache.jasper.Options;
  @@ -474,9 +473,6 @@
   serviceJspFile(request, response, jspUri, null, precompile);
} catch (RuntimeException e) {
throw e;
  -} catch (JasperError ex) {
  -response.setContentType(text/html);
  -response.getWriter().print(ex.getMessage());
} catch (ServletException e) {
throw e;
} catch (IOException e) {
  
  
  

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




DO NOT REPLY [Bug 7880] - If a TLV flags flags an error during the translation phase, a fatal translation error is not returned (HTTP 500).

2002-04-10 Thread bugzilla

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

If a TLV flags flags an error during the translation phase, a fatal translation error 
is not returned (HTTP 500).

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2002-04-10 21:25 ---
Fixed, both in the head branch and 4.0 branch.

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




cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/server JkMain.java

2002-04-10 Thread costin

costin  02/04/10 15:15:10

  Modified:jk/java/org/apache/jk/server JkMain.java
  Log:
  
  
  Revision  ChangesPath
  1.14  +1 -1  
jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkMain.java
  
  Index: JkMain.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkMain.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- JkMain.java   10 Apr 2002 20:43:41 -  1.13
  +++ JkMain.java   10 Apr 2002 22:15:10 -  1.14
  @@ -136,7 +136,7 @@
   String home=wEnv.getJkHome();
   if( home==null ) {
   // XXX use IntrospectionUtil to find myself
  -jkMain.guessHome();
  +this.guessHome();
   }
   if( home != null ) {
   File hF=new File(home);
  
  
  

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




cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/log CommonLogHandler.java LogManager.java

2002-04-10 Thread costin

costin  02/04/10 15:57:22

  Modified:util/java/org/apache/tomcat/util/log LogManager.java
  Added:   util/java/org/apache/tomcat/util/log CommonLogHandler.java
  Log:
  A small Log impl. on top of common-log, to get all logs go to the
  same logger. It's not set by default.
  
  Various components use Log and some are using commonns-logging. It seems
  commons-logging is used in the new stuff and I think it should be recommended
  for all new code.
  
  However 3.x and some utils are using this Log interface. This class will
  allow old code to have the log go to the new log interface.
  
  Revision  ChangesPath
  1.2   +1 -0  
jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/log/LogManager.java
  
  Index: LogManager.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/log/LogManager.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LogManager.java   6 Jan 2002 08:34:56 -   1.1
  +++ LogManager.java   10 Apr 2002 22:57:22 -  1.2
  @@ -73,6 +73,7 @@
   public class LogManager {
   
   static LogHandler defaultChannel=new LogHandler();
  +// static LogHandler defaultChannel=new CommonLogHandler();
   
   protected Hashtable loggers=new Hashtable();
   protected Hashtable channels=new Hashtable();
  
  
  
  1.1  
jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/log/CommonLogHandler.java
  
  Index: CommonLogHandler.java
  ===
  /*
   * 
   * 
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights 
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *notice, this list of conditions and the following disclaimer. 
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *notice, this list of conditions and the following disclaimer in
   *the documentation and/or other materials provided with the
   *distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *any, must include the following acknowlegement:  
   *   This product includes software developed by the 
   *Apache Software Foundation (http://www.apache.org/).
   *Alternately, this acknowlegement may appear in the software itself,
   *if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names The Jakarta Project, Tomcat, and Apache Software
   *Foundation must not be used to endorse or promote products derived
   *from this software without prior written permission. For written 
   *permission, please contact [EMAIL PROTECTED]
   *
   * 5. Products derived from this software may not be called Apache
   *nor may Apache appear in their names without prior written
   *permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * 
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * http://www.apache.org/.
   *
   */ 
  package org.apache.tomcat.util.log;
  
  import org.apache.tomcat.util.log.*;
  import java.io.Writer;
  import java.io.PrintWriter;
  import java.io.FileWriter;
  import java.io.File;
  import java.io.OutputStreamWriter;
  import java.io.IOException;
  import java.io.StringWriter;
  
  import java.util.*;
  
  import org.apache.commons.logging.*;
  
  /**
   *  Log using common-logging.
   *
   * @author Costin Manolache
   */
  public  class CommonLogHandler extends LogHandler {
  
  private Hashtable loggers=new Hashtable();
  
  /**
   * Prints log message and 

cvs commit: jakarta-tomcat-connectors/util build.xml

2002-04-10 Thread costin

costin  02/04/10 15:57:47

  Modified:util build.xml
  Log:
  Add test and include for commons-logging
  
  Revision  ChangesPath
  1.6   +6 -0  jakarta-tomcat-connectors/util/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/util/build.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- build.xml 8 Apr 2002 02:35:06 -   1.5
  +++ build.xml 10 Apr 2002 22:57:47 -  1.6
  @@ -16,11 +16,15 @@
   property name=puretls.lib location=${puretls.home}/build/
   property name=puretls.jar location=${puretls.lib}/puretls.jar/
   
  +property name=commons-logging.jar value=../lib/commons-logging.jar /
  +
   target name=detect
   available property=jsse.present
  file=${jsse.jar}/
   available property=puretls.present
   file=${puretls.jar}/
  +available property=commons-logging.present
  +file=${commons-logging.jar}/
   /target
   
   target name=build-prepare depends=detect
  @@ -44,7 +48,9 @@
   classpath location=${jnet.jar} /
   classpath location=${jcert.jar} /
   classpath location=${puretls.jar} /
  +classpath location=${commons-logging.jar} /
   exclude name=**/util/net/JSSE* unless=jsse.present/
  +exclude name=**/util/log/CommonLogHandler.java 
unless=commons-logging.present/
   exclude name=**/util/net/PureTLS* unless=puretls.present/
/javac
   
  
  
  

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




cvs commit: jakarta-tomcat-connectors/jk/native2 build.xml

2002-04-10 Thread costin

costin  02/04/10 16:41:22

  Modified:jk/native2 build.xml
  Log:
  Added a call to build ( or check for) jkant. It's easier than remembering
  ( or documenting ) that you need to build jkant before native.
  
  Revision  ChangesPath
  1.19  +2 -0  jakarta-tomcat-connectors/jk/native2/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/build.xml,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- build.xml 9 Apr 2002 21:46:42 -   1.18
  +++ build.xml 10 Apr 2002 23:41:22 -  1.19
  @@ -70,6 +70,8 @@
   echo message=Apache13 ${apache13.home} ${apache13.detect} /
   echo message=IIS ${iis.home} ${iis.detect} /
   echo message=Iplanet ${iplanet.home} ${iplanet.detect} /
  +
  +ant dir=${jk.src} target=jkant/
 /target
   
 target name=apache20 depends=init if=apache2.detect
  
  
  

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




cvs commit: jakarta-tomcat-connectors/jk/native2/common jk_registry.h jk_registry.c

2002-04-10 Thread costin

costin  02/04/10 16:44:29

  Modified:jk/native2/common jk_registry.h jk_registry.c
  Log:
  Add jk_shm to the registry.
  
  The general structure of the shared memory will be very simple - a number
   of 'slots', each following its own rules. That will allow multiple
  components to use the shm.
  
  My goal is to get at least 2 'slots' working - one for the worker status,
  similar with mod_jserv, and one for the config 'generation', allowing
  apache processes to refresh themself when config changes.
  ( this is not the most urgent piece for jk2, but I wanted to get it at least
  in a basic state - maybe other people will help )
  
  Revision  ChangesPath
  1.11  +7 -2  jakarta-tomcat-connectors/jk/native2/common/jk_registry.h
  
  Index: jk_registry.h
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_registry.h,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- jk_registry.h 23 Mar 2002 17:25:11 -  1.10
  +++ jk_registry.h 10 Apr 2002 23:44:29 -  1.11
  @@ -62,7 +62,7 @@
   
   /***
* Description: Worker list*
  - * Version: $Revision: 1.10 $   *
  + * Version: $Revision: 1.11 $   *
***/
   
   /** Static declarations for all 'hardcoded' modules. This is a hack, 
  @@ -124,7 +124,12 @@
   #ifdef HAS_APR
   int JK_METHOD jk2_channel_apr_socket_factory(jk_env_t *env, jk_pool_t *pool,
jk_bean_t *result,
  -  const char *type, 
const char *name);
  + const char *type, const char *name);
  +
  +int JK_METHOD jk2_shm_factory(jk_env_t *env, jk_pool_t *pool,
  +  jk_bean_t *result,
  +  const char *type, const char *name);
  +
   #endif
   
   int JK_METHOD jk2_channel_jni_factory(jk_env_t *env, jk_pool_t *pool,
  
  
  
  1.16  +4 -1  jakarta-tomcat-connectors/jk/native2/common/jk_registry.c
  
  Index: jk_registry.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_registry.c,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- jk_registry.c 23 Mar 2002 17:25:11 -  1.15
  +++ jk_registry.c 10 Apr 2002 23:44:29 -  1.16
  @@ -63,7 +63,7 @@
   #include jk_registry.h
   /***
* Description: Worker list*
  - * Version: $Revision: 1.15 $   *
  + * Version: $Revision: 1.16 $   *
***/
   
   /** Static declarations for all 'hardcoded' modules. This is a hack, 
  @@ -126,6 +126,9 @@
   #ifdef HAS_APR
 env-registerFactory( env, channel.apr,
   jk2_channel_apr_socket_factory );
  +#if APR_HAS_SHARED_MEMORY
  +  env-registerFactory( env, shm, jk2_shm_factory );
  +#endif
   #endif
 env-registerFactory( env, channel.socket, jk2_channel_socket_factory );
   
  
  
  

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




cvs commit: jakarta-tomcat-connectors/jk/native2/common jk_shm.c

2002-04-10 Thread costin

costin  02/04/10 16:44:56

  Modified:jk/native2/common jk_shm.c
  Added:   jk/native2/include jk_shm.h
  Log:
  A bit more code in the shm area.
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-connectors/jk/native2/include/jk_shm.h
  
  Index: jk_shm.h
  ===
  /* = *
   *   *
   * The Apache Software License,  Version 1.1 *
   *   *
   *  Copyright (c) 1999-2001 The Apache Software Foundation.  *
   *   All rights reserved.*
   *   *
   * = *
   *   *
   * Redistribution and use in source and binary forms,  with or without modi- *
   * fication, are permitted provided that the following conditions are met:   *
   *   *
   * 1. Redistributions of source code  must retain the above copyright notice *
   *notice, this list of conditions and the following disclaimer.  *
   *   *
   * 2. Redistributions  in binary  form  must  reproduce the  above copyright *
   *notice,  this list of conditions  and the following  disclaimer in the *
   *documentation and/or other materials provided with the distribution.   *
   *   *
   * 3. The end-user documentation  included with the redistribution,  if any, *
   *must include the following acknowlegement: *
   *   *
   *   This product includes  software developed  by the Apache  Software *
   *Foundation http://www.apache.org/.  *
   *   *
   *Alternately, this acknowlegement may appear in the software itself, if *
   *and wherever such third-party acknowlegements normally appear. *
   *   *
   * 4. The names  The  Jakarta  Project,  Jk,  and  Apache  Software *
   *Foundation  must not be used  to endorse or promote  products derived *
   *from this  software without  prior  written  permission.  For  written *
   *permission, please contact [EMAIL PROTECTED].*
   *   *
   * 5. Products derived from this software may not be called Apache nor may *
   *Apache appear in their names without prior written permission of the *
   *Apache Software Foundation.*
   *   *
   * THIS SOFTWARE IS PROVIDED AS IS AND ANY EXPRESSED OR IMPLIED WARRANTIES *
   * INCLUDING, BUT NOT LIMITED TO,  THE IMPLIED WARRANTIES OF MERCHANTABILITY *
   * AND FITNESS FOR  A PARTICULAR PURPOSE  ARE DISCLAIMED.  IN NO EVENT SHALL *
   * THE APACHE  SOFTWARE  FOUNDATION OR  ITS CONTRIBUTORS  BE LIABLE  FOR ANY *
   * DIRECT,  INDIRECT,   INCIDENTAL,  SPECIAL,  EXEMPLARY,  OR  CONSEQUENTIAL *
   * DAMAGES (INCLUDING,  BUT NOT LIMITED TO,  PROCUREMENT OF SUBSTITUTE GOODS *
   * OR SERVICES;  LOSS OF USE,  DATA,  OR PROFITS;  OR BUSINESS INTERRUPTION) *
   * HOWEVER CAUSED AND  ON ANY  THEORY  OF  LIABILITY,  WHETHER IN  CONTRACT, *
   * STRICT LIABILITY, OR TORT  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN *
   * ANY  WAY  OUT OF  THE  USE OF  THIS  SOFTWARE,  EVEN  IF  ADVISED  OF THE *
   * POSSIBILITY OF SUCH DAMAGE.   *
   *   *
   * = *
   *   *
   * This software  consists of voluntary  contributions made  by many indivi- *
   * duals on behalf of the  Apache Software Foundation.  For more information *
   * on the Apache Software Foundation, please see http://www.apache.org/.   *
   *   *
   * = */
  
  #ifndef JK_SHM_H
  #define JK_SHM_H
  
  #include jk_global.h
  #include jk_env.h
  #include jk_logger.h
  #include 

cvs commit: jakarta-tomcat-connectors/jk/native2/include jk_workerEnv.h

2002-04-10 Thread costin

costin  02/04/10 16:48:03

  Modified:jk/native2/include jk_workerEnv.h
  Log:
  Added a pointer to the shm object.
  
  Note that the 'shm' doesn't depend directly on APR or shared memory availability.
  Other implementations are possible to support 'strange' OSes or
  workarounds, or 'native' libraries.
  
  For what we need it may not even be necesary to use shared memory -
  another form of IPC could also work as long as it allow some way to
  keep some data in (relative) sync among processes.
  
  Revision  ChangesPath
  1.14  +3 -1  jakarta-tomcat-connectors/jk/native2/include/jk_workerEnv.h
  
  Index: jk_workerEnv.h
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/include/jk_workerEnv.h,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- jk_workerEnv.h18 Mar 2002 17:56:40 -  1.13
  +++ jk_workerEnv.h10 Apr 2002 23:48:03 -  1.14
  @@ -58,7 +58,7 @@
   /***
* Description: Workers controller header file *
* Author:  Gal Shachor [EMAIL PROTECTED]   * 
  - * Version: $Revision: 1.13 $   *
  + * Version: $Revision: 1.14 $   *
***/
   
   #ifndef JK_WORKERENV_H
  @@ -73,6 +73,7 @@
   #include jk_uriEnv.h
   #include jk_handler.h
   #include jk_service.h
  +#include jk_shm.h
   #include jk_vm.h
   
   #ifdef __cplusplus
  @@ -187,6 +188,7 @@
   struct jk_map * envvars;
   
   struct jk_config *config;
  +struct jk_shm *shm;
   
   /* Handlers. This is a dispatch table for messages, for
* each message id we have an entry containing the jk_handler_t.
  
  
  

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




cvs commit: jakarta-tomcat-connectors/jk/native2/common jk_workerEnv.c

2002-04-10 Thread costin

costin  02/04/10 16:48:33

  Modified:jk/native2/common jk_workerEnv.c
  Log:
  Add shm initialization ( does nothing at the moment )
  
  Revision  ChangesPath
  1.25  +14 -2 jakarta-tomcat-connectors/jk/native2/common/jk_workerEnv.c
  
  Index: jk_workerEnv.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_workerEnv.c,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- jk_workerEnv.c9 Apr 2002 21:00:38 -   1.24
  +++ jk_workerEnv.c10 Apr 2002 23:48:33 -  1.25
  @@ -59,13 +59,14 @@
* Description: Workers controller *
* Author:  Gal Shachor [EMAIL PROTECTED]   *
* Author:  Henri Gomez [EMAIL PROTECTED]   *
  - * Version: $Revision: 1.24 $   *
  + * Version: $Revision: 1.25 $   *
***/
   
   #include jk_env.h
   #include jk_workerEnv.h 
   #include jk_config.h
   #include jk_worker.h
  +#include jk_shm.h
   #include jk_channel.h
   #include jk_registry.h
   
  @@ -243,6 +244,10 @@
   
   jk2_workerEnv_initWorkers( env, wEnv );
   jk2_workerEnv_initHandlers( env, wEnv );
  +
  +if( wEnv-shm != NULL ) {
  +wEnv-shm-init( env, wEnv-shm );
  +}
   
   wEnv-uriMap-init(env, wEnv-uriMap );
   
  @@ -554,8 +559,15 @@
   wEnv-config-file = NULL;
   wEnv-config-workerEnv = wEnv;
   wEnv-config-map = wEnv-initData;
  -
   
  +jkb=env-createBean2(env, wEnv-pool,shm, );
  +if( jkb==NULL ) {
  +wEnv-shm=NULL;
  +} else {
  +env-alias(env, shm:, shm);
  +wEnv-shm=(jk_shm_t *)jkb-object;
  +}
  +
   wEnv-uriMap-workerEnv = wEnv;
   wEnv-perThreadWorker=0;
   
  
  
  

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




cvs commit: jakarta-tomcat-connectors/jk/native2/jni jk_jni_aprImpl.c

2002-04-10 Thread costin

costin  02/04/10 16:49:02

  Modified:jk/native2/jni jk_jni_aprImpl.c
  Log:
  I don't know why apr_initialize was commented out.
  
  Revision  ChangesPath
  1.9   +2 -1  jakarta-tomcat-connectors/jk/native2/jni/jk_jni_aprImpl.c
  
  Index: jk_jni_aprImpl.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/jni/jk_jni_aprImpl.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- jk_jni_aprImpl.c  8 Apr 2002 19:17:35 -   1.8
  +++ jk_jni_aprImpl.c  10 Apr 2002 23:49:02 -  1.9
  @@ -97,7 +97,8 @@
   JNIEXPORT jint JNICALL 
   Java_org_apache_jk_apr_AprImpl_initialize(JNIEnv *jniEnv, jobject _jthis)
   {
  -/* apr_initialize(); */
  +/* fprintf(stderr, XXX AprInitialize\n); */
  +apr_initialize(); 
   return 0;
   }
   
  
  
  

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




cvs commit: jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4 CoyoteConnector.java

2002-04-10 Thread costin

costin  02/04/10 16:50:33

  Modified:coyote/src/java/org/apache/coyote/tomcat3
CoyoteInterceptor2.java
   coyote/src/java/org/apache/coyote/tomcat4
CoyoteConnector.java
  Log:
  Set 'jkHome' with the server-specific values ( catalina.base or tomcat.home )
  
  Revision  ChangesPath
  1.9   +2 -0  
jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/CoyoteInterceptor2.java
  
  Index: CoyoteInterceptor2.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat3/CoyoteInterceptor2.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- CoyoteInterceptor2.java   10 Apr 2002 05:01:01 -  1.8
  +++ CoyoteInterceptor2.java   10 Apr 2002 23:50:33 -  1.9
  @@ -150,6 +150,8 @@
   } catch( Exception ex ) {
   ex.printStackTrace();
   }
  +
  +this.setAttribute(jkHome, cm.getHome());
   
   proto.setAdapter( adapter );
   try {
  
  
  
  1.8   +5 -4  
jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteConnector.java
  
  Index: CoyoteConnector.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteConnector.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- CoyoteConnector.java  9 Apr 2002 22:27:11 -   1.7
  +++ CoyoteConnector.java  10 Apr 2002 23:50:33 -  1.8
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteConnector.java,v
 1.7 2002/04/09 22:27:11 remm Exp $
  - * $Revision: 1.7 $
  - * $Date: 2002/04/09 22:27:11 $
  + * $Header: 
/home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteConnector.java,v
 1.8 2002/04/10 23:50:33 costin Exp $
  + * $Revision: 1.8 $
  + * $Date: 2002/04/10 23:50:33 $
*
* 
*
  @@ -112,7 +112,7 @@
*
* @author Craig R. McClanahan
* @author Remy Maucherat
  - * @version $Revision: 1.7 $ $Date: 2002/04/09 22:27:11 $
  + * @version $Revision: 1.8 $ $Date: 2002/04/10 23:50:33 $
*/
   
   
  @@ -945,6 +945,7 @@
   }
   protocolHandler.setAdapter(adapter);
   
  +IntrospectionUtils.setProperty(protocolHandler, jkHome, 
System.getProperty(catalina.base));
   // Set attributes
   IntrospectionUtils.setProperty(protocolHandler, port,  + port);
   IntrospectionUtils.setProperty(protocolHandler, maxThreads, 
  
  
  

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




cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/server JkCoyoteHandler.java JkMain.java

2002-04-10 Thread costin

costin  02/04/10 16:53:11

  Modified:jk/java/org/apache/jk/apr AprImpl.java
   jk/java/org/apache/jk/common ChannelUn.java
   jk/java/org/apache/jk/core JkHandler.java
   jk/java/org/apache/jk/server JkCoyoteHandler.java
JkMain.java
  Log:
  More fixes for the new env.
  
  The properties will find their way to the target jk component ( assuming
  you want to use attributes in server.xml for config - I strongly disagree with this )
  
  conf/jk2.properties ( or whatever name you set ) will be read.
  
  Also: AprImpl and ChannelUn work - assuming you know the magic incantations.
  ( i.e. jk2.properties and LD_LIBRARY_PATH )
  
  Revision  ChangesPath
  1.4   +27 -11jakarta-tomcat-connectors/jk/java/org/apache/jk/apr/AprImpl.java
  
  Index: AprImpl.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/apr/AprImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AprImpl.java  12 Jan 2002 04:01:47 -  1.3
  +++ AprImpl.java  10 Apr 2002 23:53:11 -  1.4
  @@ -10,6 +10,7 @@
   public class AprImpl {
   String baseDir;
   String aprHome;
  +String soExt=so;
   
   /** Initialize APR
*/
  @@ -51,7 +52,11 @@
   public void setBaseDir(String s) {
   baseDir=s;
   }
  -
  +
  +public void setSoExt(String s ) {
  +soExt=s;
  +}
  +
   // XXX maybe install the jni lib in apr-home ?
   public void setAprHome( String s ) {
   aprHome=s;
  @@ -71,16 +76,27 @@
   public void loadNative() {
   if( aprHome==null )
   aprHome=baseDir;
  -File dir=new File(aprHome);
  -// XXX platform independent, etc...
  -File apr=new File( dir, libapr.so);
  -
  -loadNative( apr.getAbsolutePath() );
  -
  -dir=new File(baseDir);
  -File jniConnect=new File( dir, jni_connect.so);
  -
  -loadNative( jniConnect.getAbsolutePath() );
  +if( aprHome==null ) {
  +// Use load()
  +try {
  +System.loadLibrary( apr );
  +System.loadLibrary( jni_connect );
  +} catch( Throwable ex ) {
  +ok=false;
  +ex.printStackTrace();
  +}
  +} else {
  +File dir=new File(aprHome);
  +// XXX platform independent, etc...
  +File apr=new File( dir, libapr. + soExt );
  +
  +loadNative( apr.getAbsolutePath() );
  +
  +dir=new File(baseDir);
  +File jniConnect=new File( dir, jni_connect. + soExt );
  +
  +loadNative( jniConnect.getAbsolutePath() );
  +}
   }
   
   boolean ok=true;
  
  
  
  1.8   +20 -5 
jakarta-tomcat-connectors/jk/java/org/apache/jk/common/ChannelUn.java
  
  Index: ChannelUn.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/common/ChannelUn.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ChannelUn.java4 Apr 2002 00:55:35 -   1.7
  +++ ChannelUn.java10 Apr 2002 23:53:11 -  1.8
  @@ -82,6 +82,7 @@
   String file;
   ThreadPool tp=new ThreadPool();
   String jkHome;
  +String aprHome;
   
   /*  Tcp socket options  */
   
  @@ -100,6 +101,12 @@
   jkHome=s;
   }
   
  +/** Directory where APR and jni_connect are installed.
  + */
  +public void setAprHome( String s ) {
  +aprHome=s;
  +}
  +
   /*   */
   long unixListenSocket;
   int socketNote=1;
  @@ -120,14 +127,22 @@
   
   public void init() throws IOException {
   apr=new AprImpl();
  -File f=new File( jkHome );
  -File aprBase=new File( jkHome, /WEB-INF/jk2/jni );
  -apr.setBaseDir( aprBase.getAbsolutePath() );
  -apr.loadNative();
  +if( aprHome==null  jkHome != null ) {
  +File f=new File( jkHome );
  +File aprBase=new File( jkHome, jk2/jni );
  +if( aprBase.exists() ) {
  +aprHome=aprBase.getAbsolutePath();
  +}
  +}
  +if( aprHome != null ) {
  +apr.setBaseDir( aprHome );
  +}
   
  +apr.loadNative();
  +
   apr.initialize();
  +if( log.isDebugEnabled() ) log.debug( Creating pool  + gPool );
   gPool=apr.poolCreate( 0 );
  -if( log.isDebugEnabled() ) log.debug( Create pool  + gPool );
   
   File socketFile=new File( file );
   if( socketFile.exists() ) {
  
  
  
  1.5   +1 -1  

JNI

2002-04-10 Thread costinm

Need help and feedback...

As you know, the new Coyote supports both HTTP/1.1 and JK. And the new 
JK supports some new communication channels and APR functions that need JNI. 

The 'idealistic' goal was to do that transparently - using System.load(),
so that the user will not have to set LD_LIBRARY_PATH. We would set 
aprHome in jk2.properties - and that's it. 

I don't think this will work very well - there are many small problems
on different systems. LD_LIBRARY_PATH may be required before starting 
tomcat. 

What has to be included is the dirs where various binaries are installed.
To use the jni stuff you need libapr.so and libjni_connect.so - and both
need to be in the path.

If anyone knows a way to avoid LD_LIBRARY_PATH - let me know. If not - 
I need someone to check if this works and maybe help modify the scripts
for both tomcats. It's not required to use jk ( AJP13 over socket will 
allways work ), but it'll be much faster.

Costin  




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




cvs commit: jakarta-tomcat build.xml

2002-04-10 Thread costin

costin  02/04/10 17:05:16

  Modified:.build.xml
  Log:
  Copy commons-logging in common. Roll back if you think it's a problem, but
  it shouldn't be. There are few things that will work better - especially
  if you use log4j or another logger.
  
  Copy jk2.properties.
  
  Revision  ChangesPath
  1.172 +4 -1  jakarta-tomcat/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat/build.xml,v
  retrieving revision 1.171
  retrieving revision 1.172
  diff -u -r1.171 -r1.172
  --- build.xml 10 Apr 2002 03:24:44 -  1.171
  +++ build.xml 11 Apr 2002 00:05:16 -  1.172
  @@ -239,7 +239,7 @@
   copy file =src/build/readme/readme.common
 tofile=${tomcat.build}/lib/common/README /
   
  -copy tofile=${tomcat.build}/lib/container/commons-logging.jar
  +copy tofile=${tomcat.build}/lib/common/commons-logging.jar
 file=${commons-logging.jar}/
   
   !-- This act as a default, Tomcat3.3 will not load it in
  @@ -534,6 +534,9 @@
   
   copy todir=${tomcat.build}/lib/container
 file=${jakarta-tomcat-connectors}/jk/build/lib/tomcat-jk2.jar/
  +
  +copy todir=${tomcat.build}/conf
  +  file=${jakarta-tomcat-connectors}/jk/conf/jk2.properties/
   
 /target
   
  
  
  

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




DO NOT REPLY [Bug 7942] New: - test for a Filter wrapping a servlet fails

2002-04-10 Thread bugzilla

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

test for a Filter wrapping a servlet fails

   Summary: test for a Filter wrapping a servlet fails
   Product: Tomcat 4
   Version: Nightly Build
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Critical
  Priority: Other
 Component: Catalina
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


The folowing Filter should add some discription (a html table) as part of the 
response. But the response lost that part.

public class FilterWEG extends GenericFilter
{

public FilterWEG () {
log(FilterWEG initialized);
}

public void doFilter(final ServletRequest request, final ServletResponse 
response, FilterChain chain) throws java.io.IOException,
javax.servlet.ServletException
{
String message = Filtered !;
GenericResponseWrapper wrapper = new GenericResponseWrapper
((HttpServletResponse)response);
chain.doFilter(request, wrapper);
ServletOutputStream out = response.getOutputStream();
//message = getFilterConfig().getInitParameter(message);

ByteArrayOutputStream respStream = manipulateResp(wrapper.output());
response.setContentLength(respStream.size());
response.setContentType(text/html);
out.write(respStream.toByteArray());
// the following should appear in the response
out.println(pp);
out.println(pThis table is generated from the FilterWEGSp);
out.println(table BORDER COLS=2 WIDTH=\100%\ NOSAVE );
out.println(tr);
out.println(tdTest Name:/td);
out.println(tdFilterERES/td);
out.println(/tr);
out.println(tr);
out.println(tdCharacterEncoding:/td);
out.println(td+response.getCharacterEncoding()+/td);
out.println(/tr);
out.println(tr);
out.println(tdResult:/td);
out.println(tdThe content before this table should be all 
capital/td);
out.println(/tr);
out.println(tr);
out.println(tdAuthor:/td);
out.println(tdJames/td);
out.println(/tr);
out.println(/table);
out.println(/body);
out.println(/html);

out.flush();
out.close();
}

public ByteArrayOutputStream manipulateResp(byte[] respData) throws 
ServletException
{
//change every character in the response to higher case

int i;
int o;
char a='a';
char A='A';
int diff = A-a;
ByteArrayInputStream readStream;
ByteArrayOutputStream respStream;
respStream = new ByteArrayOutputStream();

try{
readStream = new ByteArrayInputStream(respData);

do {
i = readStream.read();
   
//log(get char:+((char) i));
//log(FilterWEG 125: read readStream);
if (i != -1) 
{
if ( (((char) i)='a')(((char) i)='z') )
{
o= i+diff;
respStream.write(o);
}
else
{
respStream.write(i);
}
}
} while (i != -1);

readStream.close();

}
catch (IOException e)
{
System.out.println(IOExcption: + e);
}

return respStream;
}
}


This filter is mapped to a servlet named FilterWEGServlet (which is just a 
single line printout). But the output does not contain the table add in the 
filter.

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




Classloader troubles

2002-04-10 Thread gummi

Hi,

I'm having classloader problems with Tomcat (3.3.1/4.0.1/4.0.3).
The thing is, I'm trying to use the same classes (jars) in
two webapps, but it seems like the classloaders get mixed up.

From what I know about class loading in Tomcat (and servlet
engines in general), a separate classloader should be created
for each webapp, and it should be completely isolated from
the classloaders of other webapps. This should make it
possible to have two webapps with the same codebase, but running
separately, for example, using different values for static
members etc.

Now, when I try to do this with webapp A and webapp B, all
requests to webapp B are run with the objects from webapp A!
(I use A and B to indicate the startup order of the servlets)
It's not just that static members get mixed up, but it seems
like webapp B does not create a new servlet instance, but
uses the same servlet object as A... that would make sense
if the request was coming to the same webapp, since the
servlet engine is not allowed to create many instances of
a servlet, but it should create new instances for separate
webapps, since the classloaders are separate, right?
I've tried trivial stuff like using different names in web.xml
but no luck so far.

Has anyone else seen this behavior?
Am I misunderstanding something, or isn't this incorrect?
If I'm wrong in my diagnosis, any ideas of what I might be
doing wrong in my serlvet?

Regards,
Gummi Haf

--
Gudmundur Hafsteinsson - [EMAIL PROTECTED]
Dimon Software - www.dimonsoftware.com

... 'cause that's what tiggers do the best! - Tigger
--



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




tomcat-dev@jakarta.apache.org

2002-04-10 Thread bluebird

Hello!
Could you send me the documents on the architecture and the design of Tomcat4.0.x .
Thanks.

bluebird



cvs commit: jakarta-tomcat-site/xdocs bugreport.xml

2002-04-10 Thread glenn

glenn   02/04/10 18:31:49

  Added:   docs bugreport.html
   xdocsbugreport.xml
  Log:
  Create a bug report document to point to instead of bugzilla
  
  Revision  ChangesPath
  1.1  jakarta-tomcat-site/docs/bugreport.html
  
  Index: bugreport.html
  ===
  !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN 
http://www.w3.org/TR/html4/loose.dtd;
  
  !-- Content Stylesheet for Site --
  
  
  !-- start the processing --
  !-- == --
  !-- Main Page Section --
  !-- == --
  html
  head
  meta http-equiv=Content-Type content=text/html; charset=iso-8859-1/
  
  meta name=author value=Glenn 
L. Nielsen
  meta name=email value=$au.getAttributeValue(email)
  
 
  
  titleThe Jakarta Site - Report a Tomcat Bug/title
  /head
  
  body bgcolor=#ff text=#00 link=#525D76
  table border=0 width=100% cellspacing=0
  !-- TOP IMAGE --
  tr
  td align=left
  a href=http://jakarta.apache.org;img 
src=http://jakarta.apache.org/images/jakarta-logo.gif; border=0//a
  /td
  td align=right
  a href=http://jakarta.apache.org/tomcat;img src=./images/tomcat.gif alt=The 
Apache Tomcat Project border=0//a
  /td
  /tr
  /table
  table border=0 width=100% cellspacing=4
  trtd colspan=2
  hr noshade= size=1/
  /td/tr
  
  tr
  !-- LEFT SIDE NAVIGATION --
  td width=20% valign=top nowrap=true
  pstrongTomcat/strong/p
  ul
  lia href=./index.htmlFront Page/a
  /li
  lia href=./news.htmlNews  Status/a
  /li
  lia href=./resources.htmlResources/a
  /li
  /ul
  pstrongDocumentation/strong/p
  ul
  lia href=./tomcat-3.2-doc/index.htmlTomcat 3.2/a
  /li
  lia href=./tomcat-3.3-doc/index.htmlTomcat 3.3/a
  /li
  lia href=./tomcat-4.0-doc/index.htmlTomcat 4.0/a
  /li
  lia href=./tomcat-4.1-doc/index.htmlTomcat 4.next/a
  /li
  /ul
  pstrongDownload/strong/p
  ul
  lia 
href=http://jakarta.apache.org/site/binindex.html;Binaries/a
  /li
  lia 
href=http://jakarta.apache.org/site/sourceindex.html;Source Code/a
  /li
  /ul
  pstrongJakarta/strong/p
  ul
  lia href=./index.htmlFront Page/a
  /li
  lia href=http://jakarta.apache.org/site/news.html;News 
 Status/a
  /li
  lia 
href=http://jakarta.apache.org/site/mission.html;Mission/a
  /li
  lia 
href=http://jakarta.apache.org/site/guidelines.html;Guidelines Notes/a
  /li
  lia 
href=http://jakarta.apache.org/site/faqs.html;FAQs/a
  /li
  /ul
  pstrongGet Involved/strong/p
  ul
  lia 
href=http://jakarta.apache.org/site/getinvolved.html;Overview/a
  /li
  lia 
href=http://jakarta.apache.org/site/cvsindex.html;CVS Repositories/a
  /li
  lia 
href=http://jakarta.apache.org/site/mail.html;Mailing Lists/a
  /li
  lia href=./irc.htmlIRC/a
  /li
  lia 
href=http://jakarta.apache.org/site/library.html;Reference Library/a
  /li
  lia href=http://jakarta.apache.org/site/bugs.html;Bug 
Database/a
  /li
  /ul
  pstrongMisc/strong/p
  ul
  lia 
href=http://jakarta.apache.org/site/whoweare.html;Who We Are/a
  /li
  lia 
href=http://jakarta.apache.org/site/acknowledgements.html;Acknowledgements/a
  /li
  lia 
href=http://jakarta.apache.org/site/contact.html;Contact/a
  /li
  lia 
href=http://jakarta.apache.org/site/legal.html;Legal/a
  /li
  /ul
  /td
  td width=80% align=left valign=top
  table 
border=0 cellspacing=0 cellpadding=2 width=100%
trtd bgcolor=#525D76
  font color=#ff face=arial,helvetica,sanserif
a name=Before you report a bugstrongBefore you report a 
bug/strong/a
  

cvs commit: jakarta-tomcat-site/xdocs bugreport.xml

2002-04-10 Thread glenn

glenn   02/04/10 18:47:29

  Modified:docs bugreport.html
   xdocsbugreport.xml
  Log:
  Fix typos
  
  Revision  ChangesPath
  1.2   +4 -3  jakarta-tomcat-site/docs/bugreport.html
  
  Index: bugreport.html
  ===
  RCS file: /home/cvs/jakarta-tomcat-site/docs/bugreport.html,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- bugreport.html11 Apr 2002 01:31:49 -  1.1
  +++ bugreport.html11 Apr 2002 01:47:29 -  1.2
  @@ -219,7 +219,7 @@
 or a href=mailto:[EMAIL PROTECTED];tomcat-dev/a
 discussion lists you can ask about the problem on those lists.
 If you are not subscribed, you can learn about the lists and subscribe
  -  a herf=http://jakarta.apache.org/site/mail.html;here/a.
  +  a href=http://jakarta.apache.org/site/mail.html;here/a.
   /p
   /blockquote
 /td/tr
  @@ -277,8 +277,9 @@
 libExample/b - Example configuration files or web applications which
   demonstrate the bug.  When submitting an example which reproduces the bug,
   please try to make it as simple as possible./li
  -  libBug Fix Patch/b - A patch created using diff -u which fixes the bug.
  -(If you have found a bug fixwhich can be applied to the Tomcat code)/li
  +  libBug Fix Patch/b - A patch created using codediff -u/code which 
  +fixes the bug.
  +(If you have found a bug fix which can be applied to the Tomcat code)/li
 libMiscellaneous/b - Any other information you feel will help track
   down the problem.  For example other Java API's and versions being used
   with Tomcat./li
  
  
  
  1.2   +4 -3  jakarta-tomcat-site/xdocs/bugreport.xml
  
  Index: bugreport.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-site/xdocs/bugreport.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- bugreport.xml 11 Apr 2002 01:31:49 -  1.1
  +++ bugreport.xml 11 Apr 2002 01:47:29 -  1.2
  @@ -80,7 +80,7 @@
 or a href=mailto:[EMAIL PROTECTED];tomcat-dev/a
 discussion lists you can ask about the problem on those lists.
 If you are not subscribed, you can learn about the lists and subscribe
  -  a herf=http://jakarta.apache.org/site/mail.html;here/a.
  +  a href=http://jakarta.apache.org/site/mail.html;here/a.
   /p
 /subsection
   
  @@ -119,8 +119,9 @@
 libExample/b - Example configuration files or web applications which
   demonstrate the bug.  When submitting an example which reproduces the bug,
   please try to make it as simple as possible./li
  -  libBug Fix Patch/b - A patch created using diff -u which fixes the bug.
  -(If you have found a bug fixwhich can be applied to the Tomcat code)/li
  +  libBug Fix Patch/b - A patch created using codediff -u/code which 
  +fixes the bug.
  +(If you have found a bug fix which can be applied to the Tomcat code)/li
 libMiscellaneous/b - Any other information you feel will help track
   down the problem.  For example other Java API's and versions being used
   with Tomcat./li
  
  
  

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




cvs commit: jakarta-tomcat/proposals/PasswordPrompter build.xml

2002-04-10 Thread larryi

larryi  02/04/10 19:03:26

  Modified:proposals/PasswordPrompter build.xml
  Log:
  Add needed tomcat-util.jar
  
  Revision  ChangesPath
  1.2   +1 -1  jakarta-tomcat/proposals/PasswordPrompter/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat/proposals/PasswordPrompter/build.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build.xml 8 Oct 2001 05:23:57 -   1.1
  +++ build.xml 11 Apr 2002 02:03:26 -  1.2
  @@ -49,7 +49,7 @@
   optimize=${optimize}
  debug=${debug}
   destdir=${tomcat.build.modules}/PasswordPrompter/WEB-INF/classes 
  -classpath=${tomcat.build}/classes/
  +
classpath=${tomcat.build}/classes;${tomcat.build}/lib/common/tomcat-util.jar/
   
   mkdir dir=${tomcat.build.modules}/PasswordPrompter/WEB-INF/lib/
   
  
  
  

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




cvs commit: jakarta-tomcat build.xml

2002-04-10 Thread larryi

larryi  02/04/10 19:05:13

  Modified:.build.xml
  Log:
  The needed depency is already in the add-ons build.xml files.  Removing
  it from here to avoid building twice.
  
  Revision  ChangesPath
  1.173 +1 -1  jakarta-tomcat/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat/build.xml,v
  retrieving revision 1.172
  retrieving revision 1.173
  diff -u -r1.172 -r1.173
  --- build.xml 11 Apr 2002 00:05:16 -  1.172
  +++ build.xml 11 Apr 2002 02:05:12 -  1.173
  @@ -693,7 +693,7 @@
   ant antfile=proposals/StreamHandler/build.xml /
 /target
   
  -  target name=sample.add-ons.dist depends=sample.add-ons
  +  target name=sample.add-ons.dist
   ant antfile=proposals/PasswordPrompter/build.xml 
target=password.prompter.war/
   ant antfile=proposals/StreamHandler/build.xml target=stream.handler.war /
 /target
  
  
  

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




cvs commit: jakarta-tomcat-connectors/jk/native2 build.xml

2002-04-10 Thread costin

costin  02/04/10 22:20:49

  Modified:jk/native2 build.xml
  Log:
  A bigger change in the way we build native2.
  
  So far we had a jni_connect ( I changed the name to libjkjni since it conflicts with 
jk1 )
  It contained a subset of jk and the native methods ( the minimum amount required to 
get
  jni working ). I changed this to include the whole thing - that will allow java to
  access all the features of jk, including the future scoreboard and all channels/etc.
  ( and more APR features will be used/exposed directly or in jk objects at a higher 
level)
  
  A second change is in the mod_jk2.so - it didn't include any jni method. That's
  a source of big problems since the jni worker will try to load jni_connect and is
  likely to run into conflicts.
  
  The JNI methods do not have _any_ dependency on java - just plain C methods taking
  some pointer parameters. The JNI header and the pointers to functions are doing
  all the magic. So if we include support for the JNI worker ( i.e. we have jni.h )
  we can also include the jni methods in the same .so
  
  Revision  ChangesPath
  1.20  +6 -8  jakarta-tomcat-connectors/jk/native2/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/build.xml,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- build.xml 10 Apr 2002 23:41:22 -  1.19
  +++ build.xml 11 Apr 2002 05:20:48 -  1.20
  @@ -97,6 +97,7 @@
include name=server/apache2/*.c /
include name=common/*.c /
include name=common/apr/*.c /
  + include name=jni/*.c /
 /src
 includes
include name=${native.dir}/common /
  @@ -155,20 +156,15 @@
 
 target name=jni depends=init
   mkdir dir=${build.dir}/jni /
  -so sofile=jni_connect 
  +so sofile=libjkjni 
buildDir=${build.dir}/jni 
optimize=${so.optimize}
debug=${so.debug}
profile=${so.profile} 
 src dir=${native.dir}
include name=jni/*.c /
  - include name=common/jk_map.c /
  - include name=common/jk_util.c /
  - include name=common/jk_pool.c /
  - include name=common/jk_logger.c /
  -include name=common/jk_nwmain.c if=netware /
  -include name=apr/*.c if=HAVE_APR /
  -exclude name=jni/jk_jni_aprImpl.c unless=HAVE_APR /
  + include name=common/*.c /
  +exclude name=common/jk_nwmain.c unless=netware /
 /src
 includes
include name=${native.dir}/common /
  @@ -329,6 +325,7 @@
   exclude name=jk_nwmain.c 
unless=netware /
   include name=common/apr/*.c unless=HAVE_APR /
  + include name=jni/*.c /
 /src
 includes
   include name=${java.home}/../include /
  @@ -378,6 +375,7 @@
   exclude name=jk_nwmain.c 
 unless=netware /
   include name=common/apr/*.c unless=HAVE_APR /
  + include name=jni/*.c /
 /src
 includes
include name=${native.dir}/common /
  
  
  

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




cvs commit: jakarta-tomcat-connectors/jk/native2/common jk_channel_apr_socket.c

2002-04-10 Thread costin

costin  02/04/10 22:44:46

  Modified:jk/native2/common jk_channel_apr_socket.c
  Log:
  Got unix socket to work again.
  
  Note that we still use 'direct' unix calls, not the APR wrappers ( is it
  finished ? I read about adding it in the plain apr sockets, but didn't see the
  code yet ).
  
  I also changed the names and messages to show the real source ( the code was
  cutpasted from channel_socket ).
  
  Support the same 'trick' of using the object name as the constructor/URL.
  
  All you need is:
  
  [worker.ajp13:apr]
  channel=channel.apr:${jkHome}/work/jk2.socket
  
  Revision  ChangesPath
  1.5   +88 -65
jakarta-tomcat-connectors/jk/native2/common/jk_channel_apr_socket.c
  
  Index: jk_channel_apr_socket.c
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_channel_apr_socket.c,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- jk_channel_apr_socket.c   18 Mar 2002 18:25:05 -  1.4
  +++ jk_channel_apr_socket.c   11 Apr 2002 05:44:46 -  1.5
  @@ -92,7 +92,7 @@
   
   /** Information specific for the socket channel
*/
  -struct jk_channel_socket_private {
  +struct jk_channel_apr_private {
   int ndelay;
   apr_sockaddr_t *addr;
   struct sockaddr_un unix_addr;
  @@ -103,43 +103,46 @@
   
   /** Informations for each connection
*/
  -typedef struct jk_channel_socket_data {
  +typedef struct jk_channel_apr_data {
   int type; /* AF_INET or AF_UNIX */
   apr_socket_t *sock;
   int unixsock;
  -} jk_channel_socket_data_t;
  +} jk_channel_apr_data_t;
   
  -typedef struct jk_channel_socket_private jk_channel_socket_private_t;
  +typedef struct jk_channel_apr_private jk_channel_apr_private_t;
   
   /*
 We use the _privateInt field directly. Long term we can define our own
  -  jk_channel_socket_t structure and use the _private field, etc - but we 
  +  jk_channel_apr_t structure and use the _private field, etc - but we 
 just need to store an int.
   
 XXX We could also use properties or 'notes'
   */
   
  -static int JK_METHOD jk2_channel_socket_resolve(jk_env_t *env, char *host,
  +static int JK_METHOD jk2_channel_apr_resolve(jk_env_t *env, char *host,
   short port,
  -jk_channel_socket_private_t *rc);
  +jk_channel_apr_private_t *rc);
   
  -static int JK_METHOD jk2_channel_socket_close(jk_env_t *env, jk_channel_t *_this,
  +static int JK_METHOD jk2_channel_apr_close(jk_env_t *env, jk_channel_t *_this,
 jk_endpoint_t *endpoint);
   
   
  -static int JK_METHOD jk2_channel_socket_setProperty(jk_env_t *env,
  +static int JK_METHOD jk2_channel_apr_setProperty(jk_env_t *env,
   jk_bean_t *mbean, 
   char *name, void *valueP)
   {
   jk_channel_t *_this=(jk_channel_t *)mbean-object;
   char *value=valueP;
  -jk_channel_socket_private_t *socketInfo=
  -(jk_channel_socket_private_t *)(_this-_privatePtr);
  +jk_channel_apr_private_t *socketInfo=
  +(jk_channel_apr_private_t *)(_this-_privatePtr);
   
   if( strcmp( host, name ) == 0 ) {
   socketInfo-host=value;
   } else if( strcmp( port, name ) == 0 ) {
   socketInfo-port=atoi( value );
  +} else if( strcmp( file, name ) == 0 ) {
  +socketInfo-host=value;
  +socketInfo-type=AF_UNIX;
   } else {
   return JK_FALSE;
   }
  @@ -148,51 +151,64 @@
   
   /** resolve the host IP ( jk_resolve ) and initialize the channel.
*/
  -static int JK_METHOD jk2_channel_socket_init(jk_env_t *env,
  +static int JK_METHOD jk2_channel_apr_init(jk_env_t *env,
jk_channel_t *_this)
   {
  -jk_channel_socket_private_t *socketInfo=
  -(jk_channel_socket_private_t *)(_this-_privatePtr);
  +jk_channel_apr_private_t *socketInfo=
  +(jk_channel_apr_private_t *)(_this-_privatePtr);
   int rc;
  -char *host=socketInfo-host;
   short port=socketInfo-port;
  +
  +if( socketInfo-host==NULL ) {
  +char *localName=_this-mbean-localName;
  +env-l-jkLog(env, env-l, JK_LOG_INFO,
  +  channelApr.init(): use name %s\n, localName );
  +
  +if (localName[0]=='/') {
  +_this-mbean-setAttribute( env, _this-mbean, file, localName );
  +} else {
  +_this-mbean-setAttribute( env, _this-mbean, host, localName );
  +}
  +}
   
  -if( port=0 )
  -port=8007;
  +if( socketInfo-port=0 )
  +socketInfo-port=8009;
   
  -if( host==NULL )
  -host=DEFAULT_HOST;
  +if( socketInfo-host==NULL )
  +

cvs commit: jakarta-tomcat-connectors/jk/native2/common jk_registry.c

2002-04-10 Thread costin

costin  02/04/10 22:45:56

  Modified:jk/native2/common jk_registry.c
  Log:
  Small fix
  
  Revision  ChangesPath
  1.17  +7 -1  jakarta-tomcat-connectors/jk/native2/common/jk_registry.c
  
  Index: jk_registry.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_registry.c,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- jk_registry.c 10 Apr 2002 23:44:29 -  1.16
  +++ jk_registry.c 11 Apr 2002 05:45:56 -  1.17
  @@ -60,10 +60,16 @@
   #include jk_service.h
   #include jk_env.h
   
  +#ifdef HAS_APR
  +#include apr.h
  +#endif
  +
   #include jk_registry.h
  +
  +
   /***
* Description: Worker list*
  - * Version: $Revision: 1.16 $   *
  + * Version: $Revision: 1.17 $   *
***/
   
   /** Static declarations for all 'hardcoded' modules. This is a hack, 
  
  
  

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




cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/server JkMain.java

2002-04-10 Thread costin

costin  02/04/10 22:46:51

  Modified:jk/java/org/apache/jk/apr AprImpl.java
   jk/java/org/apache/jk/common ChannelUn.java
   jk/java/org/apache/jk/server JkMain.java
  Log:
  Update the name, few fixes to get the substitution working
  
  Revision  ChangesPath
  1.5   +1 -1  jakarta-tomcat-connectors/jk/java/org/apache/jk/apr/AprImpl.java
  
  Index: AprImpl.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/apr/AprImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AprImpl.java  10 Apr 2002 23:53:11 -  1.4
  +++ AprImpl.java  11 Apr 2002 05:46:51 -  1.5
  @@ -80,7 +80,7 @@
   // Use load()
   try {
   System.loadLibrary( apr );
  -System.loadLibrary( jni_connect );
  +System.loadLibrary( jkjni );
   } catch( Throwable ex ) {
   ok=false;
   ex.printStackTrace();
  
  
  
  1.9   +3 -1  
jakarta-tomcat-connectors/jk/java/org/apache/jk/common/ChannelUn.java
  
  Index: ChannelUn.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/common/ChannelUn.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- ChannelUn.java10 Apr 2002 23:53:11 -  1.8
  +++ ChannelUn.java11 Apr 2002 05:46:51 -  1.9
  @@ -152,8 +152,10 @@
   }
   unixListenSocket=apr.unSocketListen( gPool, file, 10 );
   if (unixListenSocket0)
  -throw(new IOException(Cannot create listening socket));
  +throw(new IOException(Cannot create listening socket  + file));
   
  +log.info(Listening on unix socket:  + file );
  +
   // Run a thread that will accept connections.
   tp.start();
   AprAcceptor acceptAjp=new AprAcceptor(  this );
  
  
  
  1.16  +8 -5  
jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkMain.java
  
  Index: JkMain.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkMain.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- JkMain.java   10 Apr 2002 23:53:11 -  1.15
  +++ JkMain.java   11 Apr 2002 05:46:51 -  1.16
  @@ -102,9 +102,8 @@
   public void setProperty( String n, String v ) {
   if( jkHome.equals( n ) ) {
   setJkHome( v );
  -} else {
  -props.put( n, v );
  -}
  +} 
  +props.put( n, v );
   }
   
   /**
  @@ -217,19 +216,23 @@
  up the clean get/set
   */
   public void setProperty( Object target, String name, String val ) {
  +if( val!=null )
  +val=IntrospectionUtils.replaceProperties( val, props );
   if( log.isDebugEnabled())
   log.debug( setProperty  + target +   + name + = + val );
  +
   IntrospectionUtils.setProperty( target, name, val );
   }
   
   /* 
* Set a handler property
*/
  -public void setProperty( String handlerN, String name, String val ) {
  +public void setPropertyString( String handlerN, String name, String val ) {
   if( log.isDebugEnabled() )
   log.debug( setProperty  + handlerN +   + name + = + val );
   Object target=wEnv.getHandler( handlerN );
  -IntrospectionUtils.setProperty( target, name, val );
  +
  +setProperty( target, name, val );
   }
   
   public long getStartTime() {
  
  
  

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




cvs commit: jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11 Http11Processor.java

2002-04-10 Thread billbarker

billbarker02/04/10 22:58:03

  Modified:http11/src/java/org/apache/coyote/http11
Http11Processor.java
  Log:
  Multiple Issues.
  
  -- Degrade to the socket port on HTTP/1.0 requests with a Host header but no port 
number.
  
  -- Default to port 443 if an HTTP/1.1 request with no port header, but we are 
configured to be Secure.
  
  -- Remember the RemoteHost/RemoteAddr per-connection so that only one lookup is 
necessary (the 3.3.x Adapter recycles these, so memory is good).
  
  Revision  ChangesPath
  1.23  +24 -5 
jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Processor.java
  
  Index: Http11Processor.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Processor.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- Http11Processor.java  9 Apr 2002 18:21:23 -   1.22
  +++ Http11Processor.java  11 Apr 2002 05:58:03 -  1.23
  @@ -222,6 +222,15 @@
*/
   protected Socket socket;
   
  +/**
  + * Remote Address associated with the current connection.
  + */
  +protected String remoteAddr = null;
  +
  +/**
  + * Remote Host associated with the current connection.
  + */
  +protected String remoteHost = null;
   
   // - Public Methods
   
  @@ -332,8 +341,9 @@
   throws IOException {
   
   // Set the remote address
  -String remoteAddr = socket.getInetAddress().getHostAddress();
  +remoteAddr = socket.getInetAddress().getHostAddress();
   request.remoteAddr().setString(remoteAddr);
  +remoteHost = null;
   
   // Setting up the I/O
   inputBuffer.setInputStream(input);
  @@ -519,8 +529,9 @@
   }
   
   } else if (actionCode == ActionCode.ACTION_REQ_HOST_ATTRIBUTE) {
  -
  -String remoteHost = socket.getInetAddress().getHostName();
  +request.remoteAddr().setString(remoteAddr);
  +if( remoteHost == null )
  +remoteHost = socket.getInetAddress().getHostName();
   request.remoteHost().setString(remoteHost);
   
   }
  @@ -729,7 +740,7 @@
   MessageBytes valueMB = req.getMimeHeaders().getValue(host);
   
   ByteChunk valueBC = null;
  -if (valueMB == null) {
  +if (valueMB == null || valueMB.isNull()) {
   // HTTP/1.0
   // Default is what the socket tells us. Overriden if a host is 
   // found/parsed
  @@ -756,7 +767,15 @@
   }
   
   if (colonPos  0) {
  -req.setServerPort(80);
  +if( http11 ) {
  +if(sslSupport == null) // not configured Secure
  +req.setServerPort(80);
  +else
  +req.setServerPort(443); // if Secure, assume https
  +} else {
  +// Assume that non-HTTP/1.1 clients are broken
  +req.setServerPort(socket.getLocalPort());
  +}
   req.serverName().setBytes( valueB, valueS, valueL);
   } else {
   req.serverName().setBytes( valueB, valueS, colonPos);
  
  
  

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




How can I accomplish this:

2002-04-10 Thread Roland

Hello,

we want to accomplish the following:
We want ao make JSP pages to represent several lists with different lenths.
Each JSP page will be a form that looks the same way:

Item1: ___
Item2: ___
...
ItemN: ___

That is, you have a list of items representing the list, each one has an 
associated text field to enter the data.
If JSP had more flexibility we could do that with ONE JSP and ONE JavaBean:

We would have a loop to create a form which each text field having data 
through:
jsp:getProperty name=testBean property=info/

That's the way it works now. What I do, is that for the first call to 
getInfo I return the first element for the list, and so on...

The problem is with the setInfo method.

My form posts the data to the test.jsp
FORM name=menu method=post action=test.jsp 
ENCODE=application/x-www-form-urlencoded

Which in turn sets the properties of the testBean.
jsp:setProperty name=testBean property=*/

I wanted to make the same with the setInfo method. The first setting should 
apply to the first list element, the second to the second, and so on. But 
it doesn't work unfortunately. It seems that the setInfo method is only 
called once, even if the form has several fields with the name info.

What I really would need is a way for the setter and getter methods to an 
additional parameter, something like

setInfo(1,Bla);
setInfo(2,jflad);

getInfo(1);
getInfo(2);

This way I could implement what I want.
The way it is now it doesn't work, but I have to create a JSP and a Bean 
for every list, instead of having just one for all the lists.
And I have to create a set and get method for every element of the list. 
Boring.
Is there a way out of it? Maybe using a pure servlet approach without JSP? 
Or any other related tecnology?
Any help would be appreciated,

Roland





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