DO NOT REPLY [Bug 35393] - errorReportValveClass not cound

2005-06-17 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=35393.
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=35393





--- Additional Comments From [EMAIL PROTECTED]  2005-06-17 08:09 ---
Created an attachment (id=15446)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=15446action=view)
Java source file as testcase


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 35393] - errorReportValveClass not found

2005-06-17 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=35393.
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=35393


[EMAIL PROTECTED] changed:

   What|Removed |Added

Summary|errorReportValveClass not   |errorReportValveClass not
   |cound   |found




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 35393] New: - errorReportValveClass not cound

2005-06-17 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=35393.
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=35393

   Summary: errorReportValveClass not cound
   Product: Tomcat 5
   Version: 5.0.30
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


Configuration:

Tomcat 5.0.30
Red Hat Linux 9
j2sdk-1_4_2_08
All java including tomcat from jpackage.org

How to reproduce

- Install tomcat5-5.0.30-6jpp.noarch.rpm
- Add attribute to Host name=localhost in server.xml:
  errorReportValveClass=mypackage.MyErrorValve
- Compile the attached source and create a jar file from it
- Copy the jar file into /usr/share/tomcat5/shared/lib
- Start tomcat: /etc/init.d/tomcat5 start

Expected behavior:
The log file should be without errors, as it is when I use Tomcat 5.5.

Actual behavior:
The following error is printed in the log file:
Jun 17, 2005 8:04:43 PM org.apache.catalina.core.StandardHost start
SEVERE: Couldnt load specified error report valve class: {0}

Notes:

I completely de-installed tomcat5 and cleaned the system of all remaining files
before I made the only two changes:
- edited server.xml
- copied the jar file

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net AprEndpoint.java

2005-06-17 Thread mturk
mturk   2005/06/17 02:43:35

  Modified:http11/src/java/org/apache/coyote/http11
Http11AprProcessor.java Http11AprProtocol.java
   jk/java/org/apache/coyote/ajp AjpAprProcessor.java
AjpAprProtocol.java
   util/java/org/apache/tomcat/util/net AprEndpoint.java
  Log:
  Implement new socket abstraction.
  We don't need to maintain the pool, so the poll size can be half the size.
  
  Revision  ChangesPath
  1.15  +3 -3  
jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11AprProcessor.java
  
  Index: Http11AprProcessor.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11AprProcessor.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- Http11AprProcessor.java   26 May 2005 09:06:16 -  1.14
  +++ Http11AprProcessor.java   17 Jun 2005 09:43:35 -  1.15
  @@ -729,7 +729,7 @@
*
* @throws IOException error during an I/O operation
*/
  -public boolean process(long socket, long pool)
  +public boolean process(long socket)
   throws IOException {
   ThreadWithAttributes thrA=
   (ThreadWithAttributes)Thread.currentThread();
  @@ -779,7 +779,7 @@
   rp.setStage(org.apache.coyote.Constants.STAGE_ENDED);
   openSocket = true;
   // Add the socket to the poller
  -endpoint.getPoller().add(socket, pool);
  +endpoint.getPoller().add(socket);
   break;
   }
   request.setStartTime(System.currentTimeMillis());
  @@ -884,7 +884,7 @@
   // Do sendfile as needed: add socket to sendfile and end
   if (sendfileData != null) {
   sendfileData.socket = socket;
  -sendfileData.pool = pool;
  +sendfileData.pool = 0;
   if (!endpoint.getSendfile().add(sendfileData)) {
   keepAlive = false;
   }
  
  
  
  1.9   +2 -2  
jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11AprProtocol.java
  
  Index: Http11AprProtocol.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11AprProtocol.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Http11AprProtocol.java27 May 2005 15:40:23 -  1.8
  +++ Http11AprProtocol.java17 Jun 2005 09:43:35 -  1.9
  @@ -664,7 +664,7 @@
   return  thData;
   }
   
  -public boolean process(long socket, long pool) {
  +public boolean process(long socket) {
   Http11AprProcessor processor=null;
   try {
   // FIXME: It is also possible to use the TWA data, so keep 
init() [] for
  @@ -696,7 +696,7 @@
   processor.setSocket( socket );
   */
   
  -return processor.process(socket, pool);
  +return processor.process(socket);
   
   } catch(java.net.SocketException e) {
   // SocketExceptions are normal
  
  
  
  1.5   +2 -2  
jakarta-tomcat-connectors/jk/java/org/apache/coyote/ajp/AjpAprProcessor.java
  
  Index: AjpAprProcessor.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/coyote/ajp/AjpAprProcessor.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AjpAprProcessor.java  16 Jun 2005 11:52:26 -  1.4
  +++ AjpAprProcessor.java  17 Jun 2005 09:43:35 -  1.5
  @@ -352,7 +352,7 @@
*
* @throws IOException error during an I/O operation
*/
  -public boolean process(long socket, long pool)
  +public boolean process(long socket)
   throws IOException {
   ThreadWithAttributes thrA=
   (ThreadWithAttributes)Thread.currentThread();
  @@ -464,7 +464,7 @@
   
   // Add the socket to the poller
   if (!error) {
  -endpoint.getPoller().add(socket, pool);
  +endpoint.getPoller().add(socket);
   } else {
   openSocket = false;
   }
  
  
  
  1.2   +2 -2  
jakarta-tomcat-connectors/jk/java/org/apache/coyote/ajp/AjpAprProtocol.java
  
  Index: AjpAprProtocol.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/coyote/ajp/AjpAprProtocol.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- AjpAprProtocol.java   9 Jun 2005 16:14:51 

DO NOT REPLY [Bug 35393] - errorReportValveClass not found

2005-06-17 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=35393.
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=35393


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2005-06-17 12:34 ---
Valves need to be in the server classloader. Either server/lib or 
server/classes.

Please tomcat-user for more information.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



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

2005-06-17 Thread remm
remm2005/06/17 05:31:40

  Modified:util/java/org/apache/tomcat/util/net AprEndpoint.java
   http11/src/java/org/apache/coyote/http11
Http11AprProcessor.java
  Log:
  - Remove useless pool field in SendfileData.
  
  Revision  ChangesPath
  1.47  +3 -4  
jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/AprEndpoint.java
  
  Index: AprEndpoint.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/AprEndpoint.java,v
  retrieving revision 1.46
  retrieving revision 1.47
  diff -u -r1.46 -r1.47
  --- AprEndpoint.java  17 Jun 2005 09:43:35 -  1.46
  +++ AprEndpoint.java  17 Jun 2005 12:31:40 -  1.47
  @@ -1065,7 +1065,6 @@
   public long end;
   // Socket and socket pool
   public long socket;
  -public long pool;
   // Position
   public long pos;
   }
  @@ -1246,7 +1245,7 @@
   } else {
   
log.warn(sm.getString(endpoint.sendfile.addfail,  + rv));
   // Can't do anything: close the socket 
right away
  -Pool.destroy(data.pool);
  +Socket.destroy(data.socket);
   }
   }
   addS.clear();
  @@ -1267,7 +1266,7 @@
   // Destroy file descriptor pool, which 
should close the file
   Pool.destroy(state.fdpool);
   // Close the socket, as the reponse would be 
incomplete
  -Pool.destroy(state.pool);
  +Socket.destroy(state.socket);
   continue;
   }
   // Write some data using sendfile
  @@ -1279,7 +1278,7 @@
   remove(state);
   // Close the socket, as the reponse would be 
incomplete
   // This will close the file too.
  -Pool.destroy(state.pool);
  +Socket.destroy(state.socket);
   continue;
   }
   
  
  
  
  1.16  +0 -1  
jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11AprProcessor.java
  
  Index: Http11AprProcessor.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11AprProcessor.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- Http11AprProcessor.java   17 Jun 2005 09:43:35 -  1.15
  +++ Http11AprProcessor.java   17 Jun 2005 12:31:40 -  1.16
  @@ -884,7 +884,6 @@
   // Do sendfile as needed: add socket to sendfile and end
   if (sendfileData != null) {
   sendfileData.socket = socket;
  -sendfileData.pool = 0;
   if (!endpoint.getSendfile().add(sendfileData)) {
   keepAlive = false;
   }
  
  
  

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



Re: unsubscribe (KMM173346903V82773L0KM)

2005-06-17 Thread Banamex

ESTIMADO CLIENTE:

PARA PODER CONFIRMAR SU VISITA PARA EL DIA  SIGUIENTE  SOLICITAMOS SE
COMUNIQUE AL SIGUIENTE TELEFONO

91143279  SRITA. ANABELL  ORTIZ
ES IMPORTANTE  TENER  A MANO SU NUMERO DE FOLIO, PARA VALIDAR EL DOMICILIO,
LA  DOCUMENTACION Y EL DIA QUE SERIA LA RECOLECCION DE SU EXPEDIENTE.

LABORAMOS DE 9 A 5.30 DE LA TARDE DE LUNES  A  VIERNES

AGRADECEMOS  DE ANTEMANO SU ATENCION

ATENCION A CLIENTES
CONTACTO LOGISTICO
- Original Message -
From: eBay Customer Support [EMAIL PROTECTED]
To: Tomcat Developers List tomcat-dev@jakarta.apache.org
Sent: Thursday, June 16, 2005 1:47 PM
Subject: unsubscribe (KMM173346903V82773L0KM)


 unsubscribe

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





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



cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/coyote/ajp AjpAprProtocol.java

2005-06-17 Thread remm
remm2005/06/17 04:50:01

  Modified:http11/src/java/org/apache/coyote/http11
Http11AprProtocol.java
   jk/java/org/apache/coyote/ajp AjpAprProtocol.java
  Log:
  - Code cleanups (there will be quite a few of them in this class).
  
  Revision  ChangesPath
  1.10  +29 -48
jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11AprProtocol.java
  
  Index: Http11AprProtocol.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11AprProtocol.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- Http11AprProtocol.java17 Jun 2005 09:43:35 -  1.9
  +++ Http11AprProtocol.java17 Jun 2005 11:50:01 -  1.10
  @@ -613,9 +613,6 @@
   }
   
   //   Connection handler 
  -public static final int THREAD_DATA_PROCESSOR=1;
  -public static final int THREAD_DATA_OBJECT_NAME=2;
  -
   
   static class Http11ConnectionHandler implements Handler {
   Http11AprProtocol proto;
  @@ -627,61 +624,45 @@
   this.proto=proto;
   }
   
  -public Object[] init() {
  -Object thData[]=new Object[3];
  -
  -Http11AprProcessor  processor =
  -new Http11AprProcessor(proto.maxHttpHeaderSize, proto.ep);
  -processor.setAdapter( proto.adapter );
  -processor.setMaxKeepAliveRequests( proto.maxKeepAliveRequests );
  -processor.setTimeout( proto.timeout );
  -processor.setDisableUploadTimeout( proto.disableUploadTimeout );
  -processor.setCompression( proto.compression );
  -processor.setCompressionMinSize( proto.compressionMinSize);
  -processor.setNoCompressionUserAgents( 
proto.noCompressionUserAgents);
  -processor.setCompressableMimeTypes( proto.compressableMimeTypes);
  -processor.setRestrictedUserAgents( proto.restrictedUserAgents);
  -processor.setSocketBuffer( proto.socketBuffer );
  -processor.setMaxSavePostSize( proto.maxSavePostSize );
  -processor.setServer( proto.server );
  -
  -thData[Http11AprProtocol.THREAD_DATA_PROCESSOR]=processor;
  -
  -if( proto.getDomain() != null ) {
  -try {
  -RequestInfo 
rp=processor.getRequest().getRequestProcessor();
  -rp.setGlobalProcessor(global);
  -ObjectName rpName=new ObjectName
  -(proto.getDomain() + :type=RequestProcessor,worker=
  - + proto.getName() +,name=HttpRequest + count++ );
  -Registry.getRegistry(null, null).registerComponent( rp, 
rpName, null);
  -thData[Http11AprProtocol.THREAD_DATA_OBJECT_NAME]=rpName;
  -} catch( Exception ex ) {
  -log.warn(Error registering request);
  -}
  -}
  -
  -return  thData;
  -}
  -
   public boolean process(long socket) {
  -Http11AprProcessor processor=null;
  +Http11AprProcessor processor = null;
   try {
  -// FIXME: It is also possible to use the TWA data, so keep 
init() [] for
  -// now to test which is more efficient
   processor = (Http11AprProcessor) localProcessor.get();
   if (processor == null) {
  -processor = (Http11AprProcessor) 
(init()[Http11AprProtocol.THREAD_DATA_PROCESSOR]);
  +processor =
  +new Http11AprProcessor(proto.maxHttpHeaderSize, 
proto.ep);
  +processor.setAdapter(proto.adapter);
  +
processor.setMaxKeepAliveRequests(proto.maxKeepAliveRequests);
  +processor.setTimeout(proto.timeout);
  +
processor.setDisableUploadTimeout(proto.disableUploadTimeout);
  +processor.setCompression(proto.compression);
  +
processor.setCompressionMinSize(proto.compressionMinSize);
  +
processor.setNoCompressionUserAgents(proto.noCompressionUserAgents);
  +
processor.setCompressableMimeTypes(proto.compressableMimeTypes);
  +
processor.setRestrictedUserAgents(proto.restrictedUserAgents);
  +processor.setSocketBuffer(proto.socketBuffer);
  +processor.setMaxSavePostSize(proto.maxSavePostSize);
  +processor.setServer(proto.server);
   localProcessor.set(processor);
  +if (proto.getDomain() != null) {
  +synchronized (this) {
  +try {
  + 

cvs commit: jakarta-tomcat-connectors/jni/examples/org/apache/tomcat/jni Echo.java SSLServer.java BIOSSLServer.java

2005-06-17 Thread mturk
mturk   2005/06/17 05:03:51

  Modified:jni/examples/org/apache/tomcat/jni Echo.java SSLServer.java
  Removed: jni/examples/org/apache/tomcat/jni BIOSSLServer.java
  Log:
  Update examples and remove BIOSSLServer because now
  it needs a total rewrite.
  
  Revision  ChangesPath
  1.13  +2 -2  
jakarta-tomcat-connectors/jni/examples/org/apache/tomcat/jni/Echo.java
  
  Index: Echo.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jni/examples/org/apache/tomcat/jni/Echo.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- Echo.java 17 Jun 2005 11:23:33 -  1.12
  +++ Echo.java 17 Jun 2005 12:03:51 -  1.13
  @@ -242,7 +242,7 @@
   while (Socket.recv(clientSock, buf, 0, 1) == 1) {
   if (buf[0] == '\n')
   break;
  -else if (buf[0] == 'Q') {
  +else if (buf[0] == '!') {
   doClose = true;
   break;
   }
  
  
  
  1.9   +7 -6  
jakarta-tomcat-connectors/jni/examples/org/apache/tomcat/jni/SSLServer.java
  
  Index: SSLServer.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jni/examples/org/apache/tomcat/jni/SSLServer.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- SSLServer.java17 Jun 2005 11:23:33 -  1.8
  +++ SSLServer.java17 Jun 2005 12:03:51 -  1.9
  @@ -142,11 +142,11 @@
   }
   
   Socket.timeoutSet(clientSock, 1000);
  -long sslSocket = SSLSocket.attach(SSLServer.serverCtx, 
clientSock, pool);
  -i = SSLSocket.handshake(sslSocket);
  +SSLSocket.attach(SSLServer.serverCtx, clientSock, pool);
  +i = SSLSocket.handshake(clientSock);
   if (i == 0) {
   
  -Worker worker = new Worker(sslSocket, i++,
  +Worker worker = new Worker(clientSock, i++,
  
this.getClass().getName());
   SSLServer.incThreads();
   worker.start();
  @@ -154,7 +154,7 @@
   }
   else {
   System.out.println(Handshake error:  + 
SSL.getLastError());
  -Socket.destroy(sslSocket);
  +Socket.destroy(clientSock);
   }
   }
   }
  @@ -186,10 +186,11 @@
   while (Socket.recv(clientSock, buf, 0, 1) == 1) {
   if (buf[0] == '\n')
   break;
  -else if (buf[0] == 'Q') {
  +else if (buf[0] == '!') {
   doClose = true;
   break;
   }
  +Socket.send(clientSock, buf, 0, 1);
   }
   if (doClose) {
   try {
  
  
  

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



cvs commit: jakarta-tomcat-connectors/jni/native/src sslnetwork.c

2005-06-17 Thread mturk
mturk   2005/06/17 05:04:40

  Modified:jni/java/org/apache/tomcat/jni SSLSocket.java
   jni/native/src sslnetwork.c
  Log:
  Fix bug not setting the opaque for SSL socket.
  Attach now returns the status code, not new socket.
  
  Revision  ChangesPath
  1.14  +3 -3  
jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni/SSLSocket.java
  
  Index: SSLSocket.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni/SSLSocket.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- SSLSocket.java17 Jun 2005 11:22:04 -  1.13
  +++ SSLSocket.java17 Jun 2005 12:04:40 -  1.14
  @@ -33,9 +33,9 @@
* @param sock APR Socket that already did physical connect.
* @param pool The pool to use
* @param pool The pool to use
  - * @return The new socket that has been set up.
  + * @return APR_STATUS code.
*/
  -public static native long attach(long ctx, long sock, long pool)
  +public static native int attach(long ctx, long sock, long pool)
   throws Exception;
   
   /**
  
  
  
  1.14  +9 -149jakarta-tomcat-connectors/jni/native/src/sslnetwork.c
  
  Index: sslnetwork.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/src/sslnetwork.c,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- sslnetwork.c  17 Jun 2005 11:22:30 -  1.13
  +++ sslnetwork.c  17 Jun 2005 12:04:40 -  1.14
  @@ -245,147 +245,6 @@
   return (jint)rv;
   }
   
  -#define JFC_TEST 0
  -#if JFC_TEST
  -/*
  - * Use APR sockets directly
  - */
  -
  -static int jbs_apr_new(BIO *bi)
  -{
  -printf(jbs_apr_new\n);
  -fflush(stdout);
  -bi-shutdown = 1;
  -bi-init = 0;
  -bi-num  = -1;
  -bi-ptr  = NULL;
  -return 1;
  -}
  -
  -static int jbs_apr_free(BIO *bi)
  -{
  -if (bi == NULL)
  -return 0;
  -else
  -return 1;
  -}
  -
  -static int jbs_apr_write(BIO *b, const char *in, int inl)
  -{
  -apr_size_t j = inl;
  -apr_socket_t *sock=b-ptr;
  -printf(jbs_apr_write\n);
  -fflush(stdout);
  -return(apr_socket_send(sock, in, j));
  -}
  -
  -static int jbs_apr_read(BIO *b, char *out, int outl)
  -{
  -apr_size_t j = outl;
  -apr_socket_t *sock=b-ptr;
  -int ret;
  -printf(jbs_apr_read\n);
  -fflush(stdout);
  -ret = apr_socket_recv(sock, out, j);
  -if (ret == APR_SUCCESS)
  -  return(j);
  -return(-1);
  -}
  -
  -static int jbs_apr_puts(BIO *b, const char *in)
  -{
  -return 0;
  -}
  -
  -static int jbs_apr_gets(BIO *b, char *out, int outl)
  -{
  -return 0;
  -}
  -
  -static long jbs_apr_ctrl(BIO *b, int cmd, long num, void *ptr)
  -{
  -printf(jbs_apr_ctrl\n);
  -fflush(stdout);
  -if (cmd==BIO_CTRL_FLUSH || cmd==BIO_CTRL_DUP)
  -  return 1;
  -else
  -  return 0;
  -}
  -static BIO_METHOD jbs_apr_methods = {
  -BIO_TYPE_FILE,
  -APR Callback,
  -jbs_apr_write,
  -jbs_apr_read,
  -jbs_apr_puts,
  -jbs_apr_gets,
  -jbs_apr_ctrl,
  -jbs_apr_new,
  -jbs_apr_free,
  -NULL
  -};
  -static BIO_METHOD *BIO_jbs_apr()
  -{
  -return(jbs_apr_methods);
  -}
  -
  -TCN_IMPLEMENT_CALL(jint, SSLSocket, geterror)(TCN_STDARGS, jlong ctx, jint 
retcode)
  -{
  -tcn_ssl_conn_t *c = J2P(ctx, tcn_ssl_conn_t *);
  -UNREFERENCED_STDARGS;
  -TCN_ASSERT(ctx != 0);
  -printf(geterror for %d state: %.08x\n, retcode, c-ssl-state);
  -perror(geterror);
  -fflush(stdout);
  -return SSL_get_error(c-ssl, retcode);
  -}
  -
  -TCN_IMPLEMENT_CALL(jlong, SSLSocket, accept)(TCN_STDARGS, jlong ctx,
  - jlong sock, jlong pool)
  -{
  -tcn_ssl_ctxt_t *c = J2P(ctx, tcn_ssl_ctxt_t *);
  -apr_socket_t *s   = J2P(sock, apr_socket_t *);
  -apr_pool_t *p = J2P(pool, apr_pool_t *);
  -tcn_ssl_conn_t *con;
  -BIO *bio = NULL;
  -int retcode;
  -
  -UNREFERENCED(o);
  -TCN_ASSERT(pool != 0);
  -TCN_ASSERT(ctx != 0);
  -TCN_ASSERT(sock != 0);
  -
  -if ((con = ssl_create(e, c, p)) == NULL) {
  -tcn_ThrowException(e, Create SSL failed);
  -return 0;
  -}
  -con-sock = s;
  -
  -if ((bio = BIO_new(BIO_jbs_apr())) == NULL) {
  -tcn_ThrowException(e, Create BIO failed);
  -return 0;
  -}
  -bio-ptr = s;
  -
  -/* XXX cleanup ??? */
  -
  -/* the bio */
  -SSL_set_bio(con-ssl, bio, bio);
  -
  -/* do the handshake*/
  -retcode = SSL_accept(con-ssl);
  -if (retcode=0) {
  -printf(SSL_accept failed %d state: %.08x\n, retcode, 
con-ssl-state);
  -printf(SSL_accept %p cert\n, con-ssl-cert);
  -

cvs commit: jakarta-tomcat-connectors/jni/native/src network.c sslnetwork.c

2005-06-17 Thread mturk
mturk   2005/06/17 04:22:30

  Modified:jni/native/include tcn.h
   jni/native/src network.c sslnetwork.c
  Log:
  Update SSL socket functions as pointers to the socket implementation.
  
  Revision  ChangesPath
  1.20  +4 -8  jakarta-tomcat-connectors/jni/native/include/tcn.h
  
  Index: tcn.h
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/include/tcn.h,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- tcn.h 17 Jun 2005 09:41:30 -  1.19
  +++ tcn.h 17 Jun 2005 11:22:30 -  1.20
  @@ -96,7 +96,7 @@
   /* On stack buffer size */
   #define TCN_BUFFER_SZ   8192
   #define TCN_STDARGS JNIEnv *e, jobject o
  -#define TCN_IMPARGS JNIEnv *e, jobject o, void *opaque
  +#define TCN_IMPARGS JNIEnv *e, jobject o, void *sock
   #define TCN_IMPCALL(X)  e, o, X-opaque
   
   #define TCN_IMPLEMENT_CALL(RT, CL, FN)  \
  @@ -105,21 +105,17 @@
   #define TCN_IMPLEMENT_METHOD(RT, FN)\
   static RT method_##FN
   
  +#define TCN_GETNET_METHOD(FN)  method_##FN
  +
   #define TCN_SOCKET_APR  1
   #define TCN_SOCKET_SSL  2
   #define TCN_SOCKET_UNIX 4
   #define TCN_SOCKET_NTPIPE   5
   
  -#define TCN_SOCKET_APR_NAPR socket
  -#define TCN_SOCKET_SSL_NSSL socket
  -#define TCN_SOCKET_UNIX_N   UNIX local socket
  -#define TCN_SOCKET_NTPIPE_N NT named pipe
  -
   typedef struct {
   apr_pool_t   *pool;
   apr_socket_t *sock;
   void *opaque;
  -const char   *name;
   int  type;
   apr_status_t (*cleanup)(void *opaque);
   jint (*shutdown)(TCN_IMPARGS, jint how);
  
  
  
  1.28  +13 -7 jakarta-tomcat-connectors/jni/native/src/network.c
  
  Index: network.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/src/network.c,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- network.c 17 Jun 2005 09:41:30 -  1.27
  +++ network.c 17 Jun 2005 11:22:30 -  1.28
  @@ -189,7 +189,6 @@
   a-sock = s;
   a-pool = p;
   a-type = TCN_SOCKET_APR;
  -a-name = TCN_SOCKET_APR_N;
   apr_pool_cleanup_register(p, (const void *)a,
 sp_socket_cleanup,
 apr_pool_cleanup_null);
  @@ -225,7 +224,7 @@
   UNREFERENCED_STDARGS;
   TCN_ASSERT(sock != 0);
   if (s-shutdown)
  -return (jint)(*s-shutdown)(TCN_IMPCALL(s), how);
  +return (*s-shutdown)(TCN_IMPCALL(s), how);
   else
   return (jint)apr_socket_shutdown(s-sock, (apr_shutdown_how_e)how);
   }
  @@ -233,14 +232,20 @@
   TCN_IMPLEMENT_CALL(jint, Socket, close)(TCN_STDARGS, jlong sock)
   {
   tcn_socket_t *s = J2P(sock, tcn_socket_t *);
  -
  +jint rv = APR_SUCCESS;
   UNREFERENCED_STDARGS;
   TCN_ASSERT(sock != 0);
   
   #ifdef TCN_DO_STATISTICS
   apr_atomic_inc32(sp_closed);
   #endif
  -return (jint)apr_pool_cleanup_run(s-pool, s, sp_socket_cleanup);
  +if (s-close)
  +rv = (*s-close)(TCN_IMPCALL(s));
  +if (s-sock) {
  +rv = (jint)apr_socket_close(s-sock);
  +s-sock = NULL;
  +}
  +return rv;
   }
   
   TCN_IMPLEMENT_CALL(jint, Socket, bind)(TCN_STDARGS, jlong sock,
  @@ -285,7 +290,6 @@
   a-sock = n;
   a-pool = p;
   a-type = TCN_SOCKET_APR;
  -a-name = TCN_SOCKET_APR_N;
   apr_pool_cleanup_register(p, (const void *)a,
 sp_socket_cleanup,
 apr_pool_cleanup_null);
  @@ -689,7 +693,9 @@
   UNREFERENCED(o);
   TCN_ASSERT(sock != 0);
   TCN_ASSERT(file != 0);
  -
  +
  +if (s-type != TCN_SOCKET_APR)
  +return (jint)(-APR_ENOTIMPL);
   if (headers)
   nh = (*e)-GetArrayLength(e, headers);
   if (trailers)
  
  
  
  1.13  +75 -84jakarta-tomcat-connectors/jni/native/src/sslnetwork.c
  
  Index: sslnetwork.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/src/sslnetwork.c,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- sslnetwork.c  17 Jun 2005 09:41:30 -  1.12
  +++ sslnetwork.c  17 Jun 2005 11:22:30 -  1.13
  @@ -91,7 +91,7 @@
   return rc;
   }
   
  -static apr_status_t ssl_socket_cleanup(void *data)
  +TCN_IMPLEMENT_METHOD(apr_status_t, cleanup)(void *data)
   {
   tcn_ssl_conn_t *con = (tcn_ssl_conn_t *)data;
   
  @@ -105,10 +105,6 @@
   X509_free(con-peer);
   con-peer = NULL;
   }
  -if (con-sock) {
  -apr_socket_close(con-sock);
  -con-sock = NULL;
  -}
   }
   
   #ifdef TCN_DO_STATISTICS
  @@ -140,9 +136,6 @@
   

cvs commit: jakarta-tomcat-connectors/jni/examples/org/apache/tomcat/jni Echo.java SSLServer.java

2005-06-17 Thread mturk
mturk   2005/06/17 04:23:33

  Modified:jni/examples/org/apache/tomcat/jni Echo.java SSLServer.java
  Log:
  Update examples.
  
  Revision  ChangesPath
  1.12  +13 -14
jakarta-tomcat-connectors/jni/examples/org/apache/tomcat/jni/Echo.java
  
  Index: Echo.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jni/examples/org/apache/tomcat/jni/Echo.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- Echo.java 28 May 2005 12:13:02 -  1.11
  +++ Echo.java 17 Jun 2005 11:23:33 -  1.12
  @@ -153,23 +153,23 @@
   }
   }
   
  -public void add(long socket, int workerId) {
  -int rv = Poll.add(serverPollset, socket, workerId,
  +public void add(long socket) {
  +int rv = Poll.add(serverPollset, socket,
 Poll.APR_POLLIN);
   if (rv == Status.APR_SUCCESS) {
  -System.out.println(Added worker  + workerId +  to 
pollset);
  +System.out.println(Added worker to pollset);
   nsocks++;
   }
   }
   
  -public void remove(long socket, int workerId) {
  +public void remove(long socket) {
   int rv = Poll.remove(serverPollset, socket);
   if (rv == Status.APR_SUCCESS) {
  nsocks--;
  -   System.out.println(Removed worker  + workerId +  from 
pollset);
  +   System.out.println(Removed worker from pollset);
   }
   else {
  -   System.out.println(Failed removing worker  + workerId +  
from pollset);
  +   System.out.println(Failed removing worker from pollset);
   }
   }
   
  @@ -180,17 +180,16 @@
   Thread.sleep(1);
   continue;
   }
  -/* Four times size then  created pollset */
  +/* Two times size then  created pollset */
   long [] desc = new long[64];
   /* USe 1 second poll timeout */
   int rv = Poll.poll(serverPollset, 100, desc, false);
   if (rv  0) {
   for (int n = 0; n  rv; n++) {
  -long clientSock = desc[n*4+1];
  -int  workerId   = (int)desc[n*4+2];
  -System.out.println(Poll flags  + desc[n*4]);
  -remove(clientSock, workerId);
  -Worker worker = new Worker(clientSock, workerId,
  +long clientSock = desc[n*2+1];
  +System.out.println(Poll flags  + desc[n*2]);
  +remove(clientSock);
  +Worker worker = new Worker(clientSock, n,
  
this.getClass().getName());
   Echo.incThreads();
   worker.start();
  @@ -262,7 +261,7 @@
   Socket.send(clientSock, msg, 0, msg.length);
   } catch(Exception e) { }
   /* Put the socket to the keep-alive poll */
  -Echo.echoPoller.add(clientSock, workerId);
  +Echo.echoPoller.add(clientSock);
   }
   } catch (Exception e) {
   Socket.close(clientSock);
  
  
  
  1.8   +14 -12
jakarta-tomcat-connectors/jni/examples/org/apache/tomcat/jni/SSLServer.java
  
  Index: SSLServer.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jni/examples/org/apache/tomcat/jni/SSLServer.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- SSLServer.java15 Jun 2005 15:15:54 -  1.7
  +++ SSLServer.java17 Jun 2005 11:23:33 -  1.8
  @@ -154,7 +154,7 @@
   }
   else {
   System.out.println(Handshake error:  + 
SSL.getLastError());
  -SSLSocket.close(sslSocket);
  +Socket.destroy(sslSocket);
   }
   }
   }
  @@ -179,27 +179,29 @@
   public void run() {
   boolean doClose = false;
   try {
  -SSLSocket.send(clientSock, wellcomeMsg, 0, 
wellcomeMsg.length);
  +Socket.send(clientSock, wellcomeMsg, 0, wellcomeMsg.length);
   while (!doClose) {
   /* Do a blocking read byte at a time */
   byte [] buf = new byte[1];
  -int ret;
  -ret = SSLSocket.recv(clientSock, buf, 0, 1);
  - 

cvs commit: jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni Poll.java SSLSocket.java

2005-06-17 Thread mturk
mturk   2005/06/17 04:22:04

  Modified:jni/java/org/apache/tomcat/jni Poll.java SSLSocket.java
  Log:
  Update SSL socket functions as pointers to the socket implementation.
  
  Revision  ChangesPath
  1.12  +4 -10 
jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni/Poll.java
  
  Index: Poll.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni/Poll.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- Poll.java 17 Jun 2005 09:41:30 -  1.11
  +++ Poll.java 17 Jun 2005 11:22:04 -  1.12
  @@ -96,13 +96,11 @@
* @param pollset The pollset to use
* @param timeout Timeout in microseconds
* @param descriptors Array of signalled descriptors (output parameter)
  - *The desctiptor array must be four times the size of pollset.
  + *The desctiptor array must be two times the size of pollset.
*and are populated as follows:
* PRE
* descriptors[n + 0] - returned events
* descriptors[n + 1] - socket
  - * descriptors[n + 2] - client data
  - * descriptors[n + 2] - reserved
* /PRE
* @param remove Remove signaled descriptors from pollset
* @return Number of signalled descriptors (output parameter)
  @@ -115,13 +113,11 @@
* Maintain on the descriptor(s) in a pollset
* @param pollset The pollset to use
* @param descriptors Array of signalled descriptors (output parameter)
  - *The desctiptor array must be four times the size of pollset.
  + *The desctiptor array must be two times the size of pollset.
*and are populated as follows:
* PRE
* descriptors[n + 0] - returned events
* descriptors[n + 1] - socket
  - * descriptors[n + 2] - client data
  - * descriptors[n + 2] - reserved
* /PRE
* @param remove Remove signaled descriptors from pollset
* @return Number of signalled descriptors (output parameter)
  @@ -148,13 +144,11 @@
* Return all descriptor(s) in a pollset
* @param pollset The pollset to use
* @param descriptors Array of descriptors (output parameter)
  - *The desctiptor array must be four times the size of pollset.
  + *The desctiptor array must be two times the size of pollset.
*and are populated as follows:
* PRE
* descriptors[n + 0] - returned events
* descriptors[n + 1] - socket
  - * descriptors[n + 2] - client data
  - * descriptors[n + 2] - reserved
* /PRE
* @return Number of descriptors (output parameter) in the Poll
* or negative APR error code.
  
  
  
  1.13  +2 -191
jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni/SSLSocket.java
  
  Index: SSLSocket.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jni/java/org/apache/tomcat/jni/SSLSocket.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- SSLSocket.java15 Jun 2005 12:08:02 -  1.12
  +++ SSLSocket.java17 Jun 2005 11:22:04 -  1.13
  @@ -40,200 +40,11 @@
   
   /**
* Do a SSL handshake.
  - * @param thesocket The socket to close
  + * @param thesocket The socket to use
*/
   public static native int handshake(long thesocket);
   
   /**
  - * Shutdown a socket.
  - * br /
  - * This does not actually close the socket descriptor, it just
  - *  controls which calls are still valid on the socket.
  - * @param thesocket The socket to close
  - * @param how How to shutdown the socket.  One of:
  - * PRE
  - * SSL_SHUTDOWN_TYPE_UNSET
  - * SSL_SHUTDOWN_TYPE_STANDARD
  - * SSL_SHUTDOWN_TYPE_UNCLEAN
  - * SSL_SHUTDOWN_TYPE_ACCURATE
  - * /PRE
  - * If SSL_SHUTDOWN_TYPE_UNSET is used the default context shutdown
  - * type is used.
  - */
  -public static native int shutdown(long thesocket, int how);
  -
  -/**
  - * Close a socket.
  - * @param thesocket The socket to close
  - */
  -public static native int close(long thesocket);
  -
  -/**
  - * Destroy the socket.
  - * br /
  - * This function destroys the pool used for codeattach/code call.
  - * The main usage for this function is to allow the SSLSocket to be
  - * passed as client data to the Poll.
  - * @param thesocket The socket to destroy
  - */
  -public static native int destroy(long thesocket);
  -
  -/**
  - * Send data over a network.
  - * PRE
  - * This functions acts like a blocking write by default.  To change
  - * this behavior, use apr_socket_timeout_set() or the APR_SO_NONBLOCK
  - * socket option.
  - *
  - * 

DO NOT REPLY [Bug 34465] - jasper2 fails when there is no web.xml

2005-06-17 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=34465.
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=34465


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



Re: JavaOne volunteers?

2005-06-17 Thread Tim Funk

I can sit around for 2 or 3 hours.

-Tim

Henri Yandell wrote:


Unsure if the Tomcat community saw Geir's email asking for volunteers
at JavaOne.

The ASF have a booth there (donated to us) if we can get people to man
it etc. Given that it's the flagship product, will any Tomcat people
be interested in volunteering?

I think the idea is to spend 2 or 3 hours sitting at the desk etc,
being positive about Tomcat, ASF, Open-Source etc on June 27th-29th.

Wish I could convince my bosses to let me head out there :(
 


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



cvs commit: jakarta-tomcat-connectors/jni/native/src network.c sslnetwork.c

2005-06-17 Thread mturk
mturk   2005/06/17 07:17:00

  Modified:jni/native/include tcn.h
   jni/native/src network.c sslnetwork.c
  Log:
  Instead duplicating entire Socket API, duplicate APR API.
  
  Revision  ChangesPath
  1.21  +12 -16jakarta-tomcat-connectors/jni/native/include/tcn.h
  
  Index: tcn.h
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/include/tcn.h,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- tcn.h 17 Jun 2005 11:22:30 -  1.20
  +++ tcn.h 17 Jun 2005 14:17:00 -  1.21
  @@ -45,7 +45,7 @@
   #include process.h
   #else
   #include unistd.h
  -#endif 
  +#endif
   #include jni.h
   
   #if defined(_DEBUG) || defined(DEBUG)
  @@ -107,26 +107,22 @@
   
   #define TCN_GETNET_METHOD(FN)  method_##FN
   
  -#define TCN_SOCKET_APR  1
  -#define TCN_SOCKET_SSL  2
  -#define TCN_SOCKET_UNIX 4
  -#define TCN_SOCKET_NTPIPE   5
  +#define TCN_SOCKET_APR  0
  +#define TCN_SOCKET_SSL  1
  +#define TCN_SOCKET_UNIX 2
  +#define TCN_SOCKET_NTPIPE   3
   
   typedef struct {
   apr_pool_t   *pool;
   apr_socket_t *sock;
   void *opaque;
   int  type;
  -apr_status_t (*cleanup)(void *opaque);
  -jint (*shutdown)(TCN_IMPARGS, jint how);
  -jint (*close)(TCN_IMPARGS);
  -jint (*send)(TCN_IMPARGS, jbyteArray buf, jint offset, jint tosend);
  -jint (*sendb)(TCN_IMPARGS, jobject buf, jint offset, jint len);
  -jint (*sendv)(TCN_IMPARGS, jobjectArray bufs);
  -jint (*recv)(TCN_IMPARGS, jbyteArray buf, jint offset, jint toread);
  -jint (*recvt)(TCN_IMPARGS, jbyteArray buf, jint offset, jint toread, 
jlong timeout);
  -jint (*recvb)(TCN_IMPARGS, jobject buf, jint offset, jint len);
  -jint (*recvbt)(TCN_IMPARGS, jobject buf, jint offset, jint len, jlong 
timeout);
  +apr_status_t (*cleanup)(void *);
  +apr_status_t (APR_THREAD_FUNC *net_send) (void *, const char *, 
apr_size_t *);
  +apr_status_t (APR_THREAD_FUNC *net_sendv)(void *sock, const struct iovec 
*, apr_int32_t, apr_size_t *);
  +apr_status_t (APR_THREAD_FUNC *net_recv) (void *sock, char *, apr_size_t 
*);
  +apr_status_t (APR_THREAD_FUNC *net_close) (void *);
  +apr_status_t (APR_THREAD_FUNC *net_shutdown) (void *, 
apr_shutdown_how_e);
   
   } tcn_socket_t;
   
  
  
  
  1.29  +27 -34jakarta-tomcat-connectors/jni/native/src/network.c
  
  Index: network.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/src/network.c,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- network.c 17 Jun 2005 11:22:30 -  1.28
  +++ network.c 17 Jun 2005 14:17:00 -  1.29
  @@ -189,6 +189,12 @@
   a-sock = s;
   a-pool = p;
   a-type = TCN_SOCKET_APR;
  +a-net_recv = apr_socket_recv;
  +a-net_send = apr_socket_send;
  +a-net_sendv= apr_socket_sendv;
  +a-net_shutdown = apr_socket_shutdown;
  +a-net_close= NULL;
  +a-opaque   = s;
   apr_pool_cleanup_register(p, (const void *)a,
 sp_socket_cleanup,
 apr_pool_cleanup_null);
  @@ -223,10 +229,7 @@
   
   UNREFERENCED_STDARGS;
   TCN_ASSERT(sock != 0);
  -if (s-shutdown)
  -return (*s-shutdown)(TCN_IMPCALL(s), how);
  -else
  -return (jint)apr_socket_shutdown(s-sock, (apr_shutdown_how_e)how);
  +return (jint)(*s-net_shutdown)(s-opaque, how);
   }
   
   TCN_IMPLEMENT_CALL(jint, Socket, close)(TCN_STDARGS, jlong sock)
  @@ -239,9 +242,9 @@
   #ifdef TCN_DO_STATISTICS
   apr_atomic_inc32(sp_closed);
   #endif
  -if (s-close)
  -rv = (*s-close)(TCN_IMPCALL(s));
  -if (s-sock) {
  +if (s-net_close)
  +rv = (*s-net_close)(s-opaque);
  +if (s-sock) {
   rv = (jint)apr_socket_close(s-sock);
   s-sock = NULL;
   }
  @@ -290,6 +293,12 @@
   a-sock = n;
   a-pool = p;
   a-type = TCN_SOCKET_APR;
  +a-net_recv = apr_socket_recv;
  +a-net_send = apr_socket_send;
  +a-net_sendv= apr_socket_sendv;
  +a-net_shutdown = apr_socket_shutdown;
  +a-net_close= NULL;
  +a-opaque   = n;
   apr_pool_cleanup_register(p, (const void *)a,
 sp_socket_cleanup,
 apr_pool_cleanup_null);
  @@ -320,8 +329,6 @@
   UNREFERENCED(o);
   TCN_ASSERT(sock != 0);
   
  -if (s-send)
  -return (*s-send)(TCN_IMPCALL(s), buf, offset, tosend);
   if (tosend = TCN_BUFFER_SZ) {
   char sb[TCN_BUFFER_SZ];
   (*e)-GetByteArrayRegion(e, buf, offset, tosend, (jbyte *)sb);
  @@ -335,8 +342,7 @@
   bytes = 

Re: JavaOne volunteers?

2005-06-17 Thread Amy Roh

Tim Funk wrote:


I can sit around for 2 or 3 hours.


Me too...

Amy



-Tim

Henri Yandell wrote:


Unsure if the Tomcat community saw Geir's email asking for volunteers
at JavaOne.

The ASF have a booth there (donated to us) if we can get people to man
it etc. Given that it's the flagship product, will any Tomcat people
be interested in volunteering?

I think the idea is to spend 2 or 3 hours sitting at the desk etc,
being positive about Tomcat, ASF, Open-Source etc on June 27th-29th.

Wish I could convince my bosses to let me head out there :(
 



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




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



Domino Tomcat Redirector

2005-06-17 Thread Andy Armstrong
I'm the current maintainer of the Domino Tomcat redirector but I  
haven't had time to do any work on it for the last year or so and I  
can't see that situation improving any time soon. I've made a couple  
of attempts to contact someone at IBM who might be interested in  
providing some (minimal) support without any success.


Accordingly I'd like to pass the reigns to someone else so if  
anyone's interested could they contact me please.


Thanks - it's been fun :)

--
Andy Armstrong, hexten.net


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



DO NOT REPLY [Bug 35402] New: - ServletResponse.getOutputStream() high CPU utilization (on apache process), using ajp13:8009

2005-06-17 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=35402.
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=35402

   Summary: ServletResponse.getOutputStream() high CPU utilization
(on apache process), using ajp13:8009
   Product: Tomcat 5
   Version: 5.0.9
  Platform: Other
OS/Version: Windows 2000
Status: NEW
  Severity: major
  Priority: P2
 Component: Native:JK
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


The native Apache process show full CPU utilization when long byte streams are
passed into ServletResponse.getOutputStream().

My testing is based on Apache/2.0.48, Win2000, mod_jk/1.2.13. A maximum
sustained throughput of 1-2 MB was achieved on a 2GHZ cpu machine.

This didn't seem to occur in JNI based connections, though I believe some JK_mod
soket channel optimization would also resolve this.

Simplified example code:

InputStream is = new FileInputStream(/some-large-file);
OutputStream o = response.getOutputStream();
byte[] b = new byte[1024*16];
int nread = is.read(b);
while (nread!=-1)
{
 o.write(b, 0, nread);
 nread = is.read(b);
}
o.flush();
is.close();
o.close();

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



Re: Domino Tomcat Redirector

2005-06-17 Thread Mladen Turk

Andy Armstrong wrote:
I'm the current maintainer of the Domino Tomcat redirector but I  
haven't had time to do any work on it for the last year or so and I  
can't see that situation improving any time soon. I've made a couple  of 
attempts to contact someone at IBM who might be interested in  providing 
some (minimal) support without any success.


Accordingly I'd like to pass the reigns to someone else so if  anyone's 
interested could they contact me please.




Well, IMO even IBM has give his hands out of the Domino.
If someone wish to roll a dice, we have 1.2.6 that 'should'
support a Domino, at least version 5.
I've tried to make (newer, even 1.2.6) it work with version 6
(just as intellectual exercise) but never had any luck.

IMHO there is no reason to try to maintain something that
has no real-world usage or at least a support from the
(well IBM-lke company).

I'm trying to maintain a Netscape (SunOne now) port,
just because you can find a relatively new release,
and just because their API didn't change a lot.
Although I think that maintaining that is useless too.



Thanks - it's been fun :)



You can always find some other web server :)


Regards,
Mladen.


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



Re: Domino Tomcat Redirector

2005-06-17 Thread Mladen Turk

Andy Armstrong wrote:


I haven't used Domino for nearly two years and I have to say, without  
wishing to be unkind to the people who developed it, that my head is  a 
lot better these days :)




Well, frankly I don't mind to have a support for XYZ server, if
at least that server is maintained by the publisher itself.

For example, I'll (personally) drop a support even for
SunOne (Netscape), simply because my 6 month free license just went out.

The fact that I only use Apache myself has made it difficult to stay  
interested in Domino...




Right.
Feel free to contribute to the Apache1/2 part of the mod_jk.


Regards,
Mladen.

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



Re: Domino Tomcat Redirector

2005-06-17 Thread Andy Armstrong

On 17 Jun 2005, at 20:52, Mladen Turk wrote:

Right.
Feel free to contribute to the Apache1/2 part of the mod_jk.


Thanks - I intend to just as soon as I get some slack in my schedule :)

--
Andy Armstrong, hexten.net


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



DO NOT REPLY [Bug 35347] - class-path entry in webapp's jar's manifest.mf ignored.

2005-06-17 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=35347.
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=35347





--- Additional Comments From [EMAIL PROTECTED]  2005-06-17 22:45 ---
Fwiw, most servlet containers we have deployed to support this.
( Sun reference, websphere, weblogic, jboss  4.0.2 )

So far jboss 4.0.2, caucho, and tomcat and have been the only
problems.

And funny enough it looks like the diff between jboss 4.0.1 and 4.0.2 is 
that for the case when servlet spec compliant class loading is used they
switched to using a subclass of the Tomcat class loader.  i.e.  They
inherited the 'problem'.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



DO NOT REPLY [Bug 35378] - Unknown worker type jni for worker inprocess, using worker.inprocess.type=jni

2005-06-17 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=35378.
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=35378


[EMAIL PROTECTED] changed:

   What|Removed |Added

Summary|workers.properties:worker.i|Unknown worker type jni for
   |nprocess.type=jni logs |worker inprocess, using
   |Unknown worker type jni for|worker.inprocess.type=jni
   |worker inprocess   |




--- Additional Comments From [EMAIL PROTECTED]  2005-06-17 16:48 ---
made subject more readable

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



[jira] Resolved: (INFRA-387) Create tomcat.apache.org vhost (fwd)

2005-06-17 Thread Henri Yandell


tomcat.apache.org now exists :)

-- Forwarded message --
Date: Fri, 17 Jun 2005 20:46:36 +0200 (CEST)
From: Joshua Slive (JIRA) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [jira] Resolved: (INFRA-387) Create tomcat.apache.org vhost

  [ http://issues.apache.org/jira/browse/INFRA-387?page=all ]

Joshua Slive resolved INFRA-387:


 Resolution: Fixed

Done.  I also created a unix group tomcat and gave it ownership over the 
relevant directory.  The group membership should be equal to the tomcat-pmc membership.


Create tomcat.apache.org vhost
--

 Key: INFRA-387
 URL: http://issues.apache.org/jira/browse/INFRA-387
 Project: Infrastructure
Type: Task
  Components: HTTP Server
Reporter: Henri Yandell




Tomcat is moving to TLP, so will need a tomcat.apache.org location for their 
website.


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira

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



DO NOT REPLY [Bug 35347] - class-path entry in webapp's jar's manifest.mf ignored.

2005-06-17 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=35347.
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=35347





--- Additional Comments From [EMAIL PROTECTED]  2005-06-17 22:34 ---
Isn't it what SRV.9.7.1 is about ?

It is a very vague requirement, but if extension needs to be supported, Class-
Path seems to be needed as well considering what is described here:
http://java.sun.com/j2se/1.4.2/docs/guide/extensions/spec.html


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



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

2005-06-17 Thread billbarker
billbarker2005/06/17 21:14:39

  Modified:jk   build.xml
  Log:
  Update to include the APR classes.
  
  This is mostly to get Remy's stuff in the Gump build.  It likely to be a very 
long time before jakarta-tomcat-5's dependencies build, and hopefully by then 
I'll have modified the gumpy-build target to use the Gump jars instead of 
re-building.
  
  Doesn't effect the TC 5.5 build at all, the TC 3.3 patch is to follow, and 
AFAIK, those are the only versions using HEAD.
  
  Revision  ChangesPath
  1.82  +4 -0  jakarta-tomcat-connectors/jk/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/build.xml,v
  retrieving revision 1.81
  retrieving revision 1.82
  diff -u -r1.81 -r1.82
  --- build.xml 16 Jun 2005 17:03:12 -  1.81
  +++ build.xml 18 Jun 2005 04:14:39 -  1.82
  @@ -28,6 +28,7 @@
   property name=tomcat-jkshm.jar value=${jk.build}/lib/jkshm.jar /
   property name=tomcat-jk2.jar value=${jk.build}/lib/tomcat-jk2.jar /
   property name=tomcat-jni.jar value=${jk.build}/lib/tomcat-jni.jar /
  +property name=tomcat-apr.jar 
value=../jni/dist/tomcat-native-1.0.0.jar /
   
   !-- default locations, overrident by properties --
   property name=base.path location=/usr/share/java/
  @@ -202,12 +203,14 @@
  optimize=${optimize}
  verbose=off 
   include name=org/apache/jk/**/
  +include name=org/apache/coyote/ajp/** /
exclude name=org/apache/jk/common/JkMX.java unless=jmx.detect/
exclude name=org/apache/jk/common/ModJkMX.java 
unless=jmx.detect/
exclude name=org/apache/jk/common/Shm14.java 
unless=jdk14.detect/
   exclude name=org/apache/jk/config/*Config.java  /
   exclude name=org/apache/jk/ant/** /
classpath
  +pathelement location=${tomcat-apr.jar} /
   path refid=xml-apis.classpath/
   path refid=build-main.classpath/
/classpath
  @@ -223,6 +226,7 @@
manifest=conf/tomcat-jk2.manifest
 basedir=${jk.build}/classes 
   include name=org/apache/jk/** /
  +include name=org/apache/coyote/ajp/** /
   exclude name=org/apache/jk/ant/** /
   /jar

  
  
  

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



cvs commit: jakarta-tomcat build.xml

2005-06-17 Thread billbarker
billbarker2005/06/17 21:16:57

  Modified:.build.xml
  Log:
  Update to support building the APR connectors.
  
  This was actually badly broken before (like, for months :).  It's nice to see 
that the TC 3.3 community is so active ;-).
  
  Revision  ChangesPath
  1.208 +7 -2  jakarta-tomcat/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat/build.xml,v
  retrieving revision 1.207
  retrieving revision 1.208
  diff -u -r1.207 -r1.208
  --- build.xml 15 Apr 2005 03:17:08 -  1.207
  +++ build.xml 18 Jun 2005 04:16:56 -  1.208
  @@ -428,7 +428,7 @@
  property name=version value=1.0.0 /
/ant
 /target
  -  target name=dep.tomcat-util unless=tomcat-util.is.uptodate
  +  target name=dep.tomcat-util  unless=tomcat-util.is.uptodate
 depends=dep.tomcat-jni
 description=Build j-t-c util which we depend on. To be called 
before main
   ant dir=${jtc.util.home} /
  @@ -448,9 +448,13 @@
   property name=tomcat-jni.jar value=${tomcat-jni.jar} /
   /ant
   
  -ant dir=${jtc.jk.home} target=build-jk
  +ant dir=${jtc.jk.home} target=build-jk inheritAll=false
   property name=tomcat33.home value=${tomcat.build}/
   property name=servlet-api.jar 
value=${basedir}/${servlet22.jar}/
  +property name=tomcat-apr.jar value=${tomcat-jni.jar} /
  +property name=jmx.jar value=${jmx.jar} /
  +property name=commons-modeler.jar 
value=${commons-modeler.jar} /
  +property name=commons-logging.jar 
value=${commons-logging.jar} /
   /ant
 /target
   
  @@ -1236,6 +1240,7 @@
   ant dir=${jakarta-tomcat-connectors}/coyote target=clean /
   ant dir=${jakarta-tomcat-connectors}/http11 target=clean /
   ant dir=${jakarta-tomcat-connectors}/jk target=clean /
  +ant dir=${jakarta-tomcat-connectors}/jni target=clean /
 /target
   
 target name=all depends=clean,dist/
  
  
  

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



How can I using Jasper 2 JSP Engine back-compile the java file to jsp file?

2005-06-17 Thread Kingfish (Wang Yu)
I deleted all my project files by misoperation.
Using the FinalDate+GoogleDesktop makes all java and xml files back. But 
some jsp ... ;-(


 Advance