Custom Compoents

2003-12-19 Thread Sreejith
Hi all,
I am fairly new to TC. Can any body tell how to develop and deploy
custom components in Tomcat.

TIA
Sreejith.




cvs commit: jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp ReplicationListener.java ReplicationTransmitter.java TcpReplicationThread.java ThreadPool.java WorkerThread.java

2003-12-19 Thread fhanik
fhanik  2003/12/19 16:48:52

  Modified:modules/cluster/src/share/org/apache/catalina/cluster/io
XByteBuffer.java
   modules/cluster/src/share/org/apache/catalina/cluster/tcp
ReplicationListener.java
ReplicationTransmitter.java
TcpReplicationThread.java ThreadPool.java
WorkerThread.java
  Log:
  removed a lot of synchronization that created overhead.
  
  Revision  ChangesPath
  1.4   +10 -10
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/io/XByteBuffer.java
  
  Index: XByteBuffer.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/io/XByteBuffer.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XByteBuffer.java  19 Dec 2003 21:22:13 -  1.3
  +++ XByteBuffer.java  20 Dec 2003 00:48:52 -  1.4
  @@ -128,7 +128,7 @@
* Returns the bytes in the buffer, in its exact length
* @return
*/
  -public synchronized byte[] getBytes() {
  +public byte[] getBytes() {
   byte[] b = new byte[bufSize];
   System.arraycopy(buf,0,b,0,bufSize);
   return b;
  @@ -137,7 +137,7 @@
   /**
* Resets the buffer
*/
  -public synchronized void clear() {
  +public void clear() {
   bufSize = 0;
   }
   
  @@ -149,7 +149,7 @@
* @param len - the number of bytes to append.
* @return true if the data was appended correctly. Returns false if the 
package is incorrect, ie missing header or something, or the length of data is 0
*/
  -public synchronized boolean append(byte[] b, int off, int len) {
  +public boolean append(byte[] b, int off, int len) {
   if ((off < 0) || (off > b.length) || (len < 0) ||
   ((off + len) > b.length) || ((off + len) < 0))  {
   throw new IndexOutOfBoundsException();
  @@ -180,7 +180,7 @@
* within the buffer
* @return - true if a complete package (header,size,data,footer) exists within 
the buffer
*/
  -protected synchronized int packageExists()
  +protected int packageExists()
   {
   int pos = START_DATA.length;
   //first check start header
  @@ -204,7 +204,7 @@
* Method to check if a package exists in this byte buffer.
* @return - true if a complete package (header,size,data,footer) exists within 
the buffer
*/
  -public synchronized boolean doesPackageExist()  {
  +public boolean doesPackageExist()  {
   return (packageExists()>0);
   }//doesPackageExist
   
  @@ -214,7 +214,7 @@
* @param clearFromBuffer - if true, the package will be removed from the byte 
buffer
* @return - returns the actual message bytes (header, size and footer not 
included).
*/
  -public synchronized byte[] extractPackage(boolean clearFromBuffer) throws 
java.io.IOException {
  +public byte[] extractPackage(boolean clearFromBuffer) throws 
java.io.IOException {
   int size = packageExists();
   if ( size == 0 ) throw new java.lang.IllegalStateException("No package 
exists in XByteBuffer");
   byte[] data = new byte[size];
  
  
  
  1.7   +8 -5  
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ReplicationListener.java
  
  Index: ReplicationListener.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ReplicationListener.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ReplicationListener.java  18 Dec 2003 04:20:15 -  1.6
  +++ ReplicationListener.java  20 Dec 2003 00:48:52 -  1.7
  @@ -229,8 +229,11 @@
   // thread becomes available.  This design could
   // be improved.
   return;
  +} else {
  +// invoking this wakes up the worker thread then returns
  +worker.serviceChannel(key, synchronous);
  +return;
   }
  -// invoking this wakes up the worker thread then returns
  -worker.serviceChannel (key,synchronous);
   }
  +
   }
  
  
  
  1.11  +4 -4  
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ReplicationTransmitter.java
  
  Index: ReplicationTransmitter.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ReplicationTransmitter.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ReplicationTransmitter.java   19 Dec 2003 21:29:22 - 

DO NOT REPLY [Bug 25555] - SingleSignOn valve config doc missing 'requireReauthentication' attribute

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

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

SingleSignOn valve config doc missing 'requireReauthentication' attribute

[EMAIL PROTECTED] changed:

   What|Removed |Added

Summary|SingleSignOn valve config   |SingleSignOn valve config
   |doc missing |doc missing
   |"requireReauthentication"   |'requireReauthentication'
   |attribute   |attribute

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



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

2003-12-19 Thread fhanik
fhanik  2003/12/19 14:59:24

  Modified:modules/cluster/src/share/org/apache/catalina/cluster/tcp
SocketSender.java
  Log:
  TCP replication is now pretty stable,
  
  Revision  ChangesPath
  1.8   +29 -17
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/SocketSender.java
  
  Index: SocketSender.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/SocketSender.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- SocketSender.java 19 Dec 2003 21:22:13 -  1.7
  +++ SocketSender.java 19 Dec 2003 22:59:24 -  1.8
  @@ -77,12 +77,15 @@
   public class SocketSender implements IDataSender
   {
   
  +private static org.apache.commons.logging.Log log =
  +org.apache.commons.logging.LogFactory.getLog( 
org.apache.catalina.cluster.tcp.SimpleTcpCluster.class );
  +
   private InetAddress address;
   private int port;
   private Socket sc = null;
   private boolean isSocketConnected = false;
   private boolean suspect;
  -private long ackTimeout = 5*1000;
  +private long ackTimeout = 150*1000;  //15 seconds socket read timeout (for 
acknowledgement)
   private long keepAliveTimeout = 60*1000; //keep socket open for no more than 
one min
   private int keepAliveMaxRequestCount = 100; //max 100 requests before 
reconnecting
   private long keepAliveConnectTime = 0;
  @@ -108,7 +111,7 @@
   public void connect() throws java.io.IOException
   {
   sc = new Socket(getAddress(),getPort());
  -//sc.setSoTimeout((int)ackTimeout);
  +sc.setSoTimeout((int)ackTimeout);
   isSocketConnected = true;
   this.keepAliveCount = 0;
   this.keepAliveConnectTime = System.currentTimeMillis();
  @@ -129,6 +132,14 @@
   return isSocketConnected;
   }
   
  +private void checkIfDisconnect() {
  +long ctime = System.currentTimeMillis() - this.keepAliveConnectTime;
  +if ( (ctime > this.keepAliveTimeout) ||
  + (this.keepAliveCount >= this.keepAliveMaxRequestCount) ) {
  +disconnect();
  +}
  +}
  +
   /**
* Blocking send
* @param data
  @@ -136,16 +147,10 @@
*/
   public synchronized void sendMessage(String sessionId, byte[] data) throws 
java.io.IOException
   {
  -long ctime = System.currentTimeMillis() - this.keepAliveConnectTime;
  -if ( (ctime > this.keepAliveTimeout) ||
  - (this.keepAliveCount >= this.keepAliveMaxRequestCount) ) {
  -disconnect();
  -}
  +checkIfDisconnect();
   if ( !isConnected() ) connect();
   try
   {
  -
  -
   sc.getOutputStream().write(data);
   sc.getOutputStream().flush();
   waitForAck(ackTimeout);
  @@ -159,13 +164,20 @@
   waitForAck(ackTimeout);
   }
   this.keepAliveCount++;
  +checkIfDisconnect();
  +
   }
   
  -private void waitForAck(long timeout)  throws java.io.IOException,
  -java.net.SocketTimeoutException {
  -int i = sc.getInputStream().read();
  -while ( (i!=-1) && (i!=3) ) {
  -i = sc.getInputStream().read();
  +private void waitForAck(long timeout)  throws java.io.IOException {
  +try {
  +int i = sc.getInputStream().read();
  +while ( (i != -1) && (i != 3)) {
  +i = sc.getInputStream().read();
  +}
  +} catch (java.net.SocketTimeoutException x ) {
  +log.warn("Wasn't able to read acknowledgement from server in 
"+this.ackTimeout+" ms."+
  + " Disconnecting socket, and trying again.");
  +throw x;
   }
   }
   
  
  
  

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



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

2003-12-19 Thread fhanik
fhanik  2003/12/19 13:29:22

  Modified:modules/cluster/src/share/org/apache/catalina/cluster/tcp
ReplicationTransmitter.java
  Log:
  set suspect correction, instead of printing a gazillion error messages, we only 
print one when the connection fails
  
  Revision  ChangesPath
  1.10  +5 -5  
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ReplicationTransmitter.java
  
  Index: ReplicationTransmitter.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ReplicationTransmitter.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ReplicationTransmitter.java   19 Dec 2003 21:22:13 -  1.9
  +++ ReplicationTransmitter.java   19 Dec 2003 21:29:22 -  1.10
  @@ -144,8 +144,8 @@
   if (!sender.isConnected())
   sender.connect();
   sender.sendMessage(sessionId,data);
  -addStats(data.length);
   sender.setSuspect(false);
  +addStats(data.length);
   }catch ( Exception x)
   {
   if ( !sender.getSuspect() ) {
  @@ -153,6 +153,7 @@
x);
   }
   sender.setSuspect(true);
  +
   }
   
   }
  @@ -175,7 +176,6 @@
   try
   {
   sendMessageData(sessionId,data,sender);
  -sender.setSuspect(false);
   }catch ( Exception x)
   {
   
  
  
  

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



cvs commit: jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/tcp ReplicationTransmitter.java SocketSender.java TcpReplicationThread.java

2003-12-19 Thread fhanik
fhanik  2003/12/19 13:22:14

  Modified:modules/cluster/src/share/org/apache/catalina/cluster/io
Jdk13ObjectReader.java ObjectReader.java
XByteBuffer.java
   modules/cluster/src/share/org/apache/catalina/cluster/tcp
ReplicationTransmitter.java SocketSender.java
TcpReplicationThread.java
  Log:
  implemented compression of the data sent over the wire
  
  Revision  ChangesPath
  1.2   +5 -5  
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/io/Jdk13ObjectReader.java
  
  Index: Jdk13ObjectReader.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/io/Jdk13ObjectReader.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Jdk13ObjectReader.java18 Dec 2003 04:20:14 -  1.1
  +++ Jdk13ObjectReader.java19 Dec 2003 21:22:13 -  1.2
  @@ -93,7 +93,7 @@
   this.buffer = new XByteBuffer();
   }
   
  -public int append(byte[] data,int off,int len) {
  +public int append(byte[] data,int off,int len) throws java.io.IOException {
   boolean result = false;
   buffer.append(data,off,len);
   int pkgCnt = 0;
  @@ -107,7 +107,7 @@
   return pkgCnt;
   }
   
  -public int execute() {
  +public int execute() throws java.io.IOException {
   return append(new byte[0],0,0);
   }
   
  
  
  
  1.3   +6 -6  
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/io/ObjectReader.java
  
  Index: ObjectReader.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/io/ObjectReader.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ObjectReader.java 18 Dec 2003 04:20:14 -  1.2
  +++ ObjectReader.java 19 Dec 2003 21:22:13 -  1.3
  @@ -102,7 +102,7 @@
   return this.channel;
   }
   
  -public int append(byte[] data,int off,int len) {
  +public int append(byte[] data,int off,int len) throws java.io.IOException {
   boolean result = false;
   buffer.append(data,off,len);
   int pkgCnt = 0;
  @@ -116,7 +116,7 @@
   return pkgCnt;
   }
   
  -public int execute() {
  +public int execute() throws java.io.IOException {
   return append(new byte[0],0,0);
   }
   
  
  
  
  1.3   +28 -9 
jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/io/XByteBuffer.java
  
  Index: XByteBuffer.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/modules/cluster/src/share/org/apache/catalina/cluster/io/XByteBuffer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- XByteBuffer.java  16 Nov 2003 22:22:45 -  1.2
  +++ XByteBuffer.java  19 Dec 2003 21:22:13 -  1.3
  @@ -214,16 +214,29 @@
* @param clearFromBuffer - if true, the package will be removed from the byte 
buffer
* @return - returns the actual message bytes (header, size and footer not 
included).
*/
  -public synchronized byte[] extractPackage(boolean clearFromBuffer) {
  +public synchronized byte[] extractPackage(boolean clearFromBuffer) throws 
java.io.IOException {
   int size = packageExists();
   if ( size == 0 ) throw new java.lang.IllegalStateException("No package 
exists in XByteBuffer");
  -byte[] result = new byte[size];
  -System.arraycopy(buf,START_DATA.length+4,result,0,size);
  +byte[] data = new byte[size];
  +System.arraycopy(buf,START_DATA.length+4,data,0,size);
   if ( clearFromBuffer ) {
   int totalsize = START_DATA.length + 4 + size + END_DATA.length;
   bufSize = bufSize - totalsize;
   System.arraycopy(buf, totalsize, buf, 0, bufSize);
   }
  +java.io.ByteArrayInputStream bin = new java.io.ByteArrayInputStream(data);
  +java.util.zip.GZIPInputStream gin = new java.util.zip.GZIPInputStream(bin);
  +byte[] tmp = new byte[1024];
  +byte[] result = new byte[0];
  +int length = gin.read(tmp);
  +while ( length > 0 ) {
  +byte[] tmpdata = result;
  +result = new byte[result.length+length];
  +System.arraycopy(tmpdata,0,result,0,tmpdata.length);
  +System.arraycopy(tmp,0,result,tmpdata.length,length);
  +length = gin.read(tmp);
  +}
  +gin.close();
   return result;
   }//extractPackage
   
  @@ -354,7 +367,13 @@
* @param data - the message data to be contained within the package

DO NOT REPLY [Bug 25665] - JSP example raises JasperException

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

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

JSP example raises JasperException

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2003-12-19 20:56 ---
Well, this is the only JSP that has to becompiled dynamically in the examples,
because it uses JSP configurations.
This works for me, obviously. On your OS and JDK, this apparently causes
problems. I recommend using a newer JDK.

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



DO NOT REPLY [Bug 25665] New: - JSP example raises JasperException

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

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

JSP example raises JasperException

   Summary: JSP example raises JasperException
   Product: Tomcat 5
   Version: 5.0.16
  Platform: Macintosh
OS/Version: MacOS X
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Jasper
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


This is on MacOS X 10.1.5, JDK 1.3.1. 

To reproduce, start tomcat, and go to the JSP Samples page off of the default
tomcat home page. click on the JSP configuration example
(http://localhost:8080/jsp-examples/jsp2/misc/config.jsp).

This gives an error page:

type Exception report

message

description The server encountered an internal error () that prevented it from
fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: zip
file closed
at 
org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:210)
at
org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.java:181)
at
org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:516)
at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:457)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:523)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1577)
at org.apache.jasper.compiler.Parser.parse(Parser.java:171)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:247)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:149)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:135)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

note The full stack trace of the root cause is available in the Tomcat logs.

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



IIS 6.0 Worker Process Isolation Mode and Tomcat

2003-12-19 Thread John Babbidge
Hi all,

We are wishing to migrate our IIS 5.0/Tomcat app to run on IIS
6.0/Win2003/Tomcat specifically in Worker Process Isolation mode rather than
IIS 5 isolation mode, and have a couple of questions that I've found very
little info on.

First question: Are there real benefits of WP isolation mode vs. the
limitations IIS 5 isolation mode for the application as from what I've seen
the reasons to move to WPIM are mostly aimed at protecting the IIS kernel
and in situations of multiple web apps (which is not a factor) and for me,
even a separate WP crashing due to our app would be a "very bad thing". So
removing, IIS core vulnerability and the single http queue from the melee,
what's left?

Second question:Is the Jakarta ISAPI connector (JK2) compatible with
WP isolation mode (I have seen nothing so far that indicates it is and info
is hard to come by) and if not is the Tomcat team planning a migration in
the future?

Thanks,

John
---
John Babbidge   tel:   +1 (510) 745-6267
ActivCard Inc.  fax:  +1 (510) 574-0137
6623 Dumbarton Circle   http://www.activcard.com/
Fremont, CA  94555  [EMAIL PROTECTED]



New releases

2003-12-19 Thread Remy Maucherat
Hi,

I plan to put new tags for both 4.1.x and 5.0.x within about 10 days to 
2 weeks (this is tentative, I don't know if it can actually happen ;-) 
). The idea is to pick up some bugfixes, including:
- configuration options for URI related stuff in 4.1.x (which I'll port, 
unless someone does it first)
- proper implementation for security constraints in 5.0.x

I think 5.0.16 quality is quite good, given the bug reports we got so 
far, and this is extremely encouraging for the quality of future 
releases made from that branch.

Rémy



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


cvs commit: jakarta-tomcat-catalina/webapps/docs manager-howto.xml

2003-12-19 Thread remm
remm2003/12/19 10:59:44

  Modified:webapps/docs manager-howto.xml
  Log:
  - The war attribute of the deploy task should point to a .war. Sorry for the
trouble :-(
  
  Revision  ChangesPath
  1.12  +3 -2  jakarta-tomcat-catalina/webapps/docs/manager-howto.xml
  
  Index: manager-howto.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/manager-howto.xml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- manager-howto.xml 6 Dec 2003 17:55:08 -   1.11
  +++ manager-howto.xml 19 Dec 2003 18:59:44 -  1.12
  @@ -964,13 +964,14 @@
   
 
 
  -
  +
 
   
 
   
  +path="${path}" war="${build}${path}.war"/>
 
   
 

cvs commit: jakarta-tomcat-catalina/webapps/docs jasper-howto.xml

2003-12-19 Thread remm
remm2003/12/19 10:58:51

  Modified:webapps/docs jasper-howto.xml
  Log:
  - Use development mode by default: mappedFile is now true.
  
  Revision  ChangesPath
  1.12  +1 -1  jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml
  
  Index: jasper-howto.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/jasper-howto.xml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- jasper-howto.xml  17 Nov 2003 07:50:12 -  1.11
  +++ jasper-howto.xml  19 Dec 2003 18:58:51 -  1.12
  @@ -114,7 +114,7 @@
   
   mappedfile - Should we generate static content with one 
   print statement per input line, to ease debugging?
  -true or false, default false.
  +true or false, default true.
   
   reloading - Should Jasper check for modified JSPs?
   true or false, default true.
  
  
  

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



cvs commit: jakarta-tomcat-catalina/catalina/src/conf web.xml

2003-12-19 Thread remm
remm2003/12/19 10:58:31

  Modified:catalina/src/conf web.xml
  Log:
  - Use development mode by default: mappedFile is now true.
  
  Revision  ChangesPath
  1.28  +1 -1  jakarta-tomcat-catalina/catalina/src/conf/web.xml
  
  Index: web.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/conf/web.xml,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- web.xml   10 Dec 2003 22:10:08 -  1.27
  +++ web.xml   19 Dec 2003 18:58:31 -  1.28
  @@ -146,7 +146,7 @@
 
 
 
  -  
  +  
 
 
 
  
  
  

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



DO NOT REPLY [Bug 8328] - webdav with User Directories do not work

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

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

webdav with User Directories do not work

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME



--- Additional Comments From [EMAIL PROTECTED]  2003-12-19 18:25 ---
This works for me with 4.1.27. Please try the latest version of tomcat. If you 
still experience the problem please provide more information regarding your 
setup.

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



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

2003-12-19 Thread remm
remm2003/12/19 10:15:51

  Modified:jasper2/src/share/org/apache/jasper
EmbeddedServletOptions.java
  Log:
  - Use development mode by default: mappedFile is now true.
  
  Revision  ChangesPath
  1.8   +4 -4  
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/EmbeddedServletOptions.java
  
  Index: EmbeddedServletOptions.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/EmbeddedServletOptions.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- EmbeddedServletOptions.java   10 Nov 2003 22:26:20 -  1.7
  +++ EmbeddedServletOptions.java   19 Dec 2003 18:15:51 -  1.8
  @@ -119,7 +119,7 @@
* servlet that has a print statement per line of the JSP file.
* This seems like a really nice feature to have for debugging.
*/
  -private boolean mappedFile = false;
  +private boolean mappedFile = true;
   
   /**
* Do you want stack traces and such displayed in the client's
  
  
  

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



cvs commit: jakarta-tomcat-site/xdocs-faq memory.xml

2003-12-19 Thread yoavs
yoavs   2003/12/19 09:23:59

  Modified:docs/faq memory.html
   docs/faq/printer memory.html
   xdocs-faq memory.xml
  Log:
  Added yet another note regarding JSP recompilation memory leak.
  
  Revision  ChangesPath
  1.7   +14 -0 jakarta-tomcat-site/docs/faq/memory.html
  
  Index: memory.html
  ===
  RCS file: /home/cvs/jakarta-tomcat-site/docs/faq/memory.html,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- memory.html   26 Aug 2003 09:08:17 -  1.6
  +++ memory.html   19 Dec 2003 17:23:59 -  1.7
  @@ -41,6 +41,8 @@
 
   
   
  +
  +
   Also look at
   http://java.quest.com/jprobe/jprobe.shtml";>JProbe,
   or http://www.borland.com/optimizeit/";>OptimizeIt, or other
  @@ -48,6 +50,18 @@
   This is not an endorsement for them, I just
   notice other people like them.
   
  +
  +  JSP 
Recompilation
  +  
  +If your application uses JSPs which are frequently recompiled
  +at runtime, e.g. headers that change value hourly, please make
  +sure to read the JSP HOW-TO page and RELEASE NOTES documents.
  +You may wish to tune the JSP compiler configuration to prevent
  +memory leaks.  Of course, these are documents you should have
  +read by now anyways..
  +
  +  
  +
   Questions
   
 
  
  
  
  1.4   +157 -143  jakarta-tomcat-site/docs/faq/printer/memory.html
  
  Index: memory.html
  ===
  RCS file: /home/cvs/jakarta-tomcat-site/docs/faq/printer/memory.html,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- memory.html   21 Aug 2003 00:56:40 -  1.3
  +++ memory.html   19 Dec 2003 17:23:59 -  1.4
  @@ -1,144 +1,158 @@
  -Tomcat FAQ - Memory
  -  dt { font-size : larger;  font-weight : bold }
  -  dd {padding-bottom : 10px;}
  -http://jakarta.apache.org/";>http://jakarta.apache.org//images/jakarta-logo.gif";>http://jakarta.apache.org/tomcat/";>Tomcat 
FAQMemoryPreface
  -  
  -This page discusses various memory issues. In a nutshell - if your
  -computer has less than 128MB of ram - you will probably have trouble.
  -Anyhow, also read the following threads for other memory related issues:
  -
  -  
  -http://marc.theaimsgroup.com/?t=10438897306&r=1&w=2";>
  -  java.lang.OutOfMemoryError during deploy
  -
  -  
  -
  -  
  -http://marc.theaimsgroup.com/?t=10437834777&r=1&w=2";>
  -  Memory requirements
  -
  -  
  -
  -  
  -http://marc.theaimsgroup.com/?t=10433306644&r=1&w=2";>
  -  Memory Mgmt Tomcat
  -
  -  
  -
  -  
  -http://marc.theaimsgroup.com/?t=10301137976&r=1&w=2";>
  -  Tomcat Out of memory
  -
  -  
  -
  -  
  -http://marc.theaimsgroup.com/?t=10451996172&r=1&w=2";>
  -  Tracking memory usage over time
  -
  -  
  -
  -
  -Also look at
  -http://java.quest.com/jprobe/jprobe.shtml";>JProbe,
  -or http://www.borland.com/optimizeit/";>OptimizeIt, or other
  -profiling tools. Lots of people recommend these tools.
  -This is not an endorsement for them, I just
  -notice other people like them.
  -
  -Questions
  -
  -  
  - How do I adjust memory settings?
  - Why do I get OutOfMemoryError errors?
  - How much memory is tomcat/webapp/??? using?
  -  
  -
  -Answers
  -
  -  
  -
  -  How do I adjust memory settings?
  -
  -  
  -  
  -First look at java -X to determine what parameters to set.
  -Then you can set them via the environment variable JAVA_OPTS.
  -Read the files catalina.bat or catalina.sh for
  -more information on JAVA_OPTS.
  -  
  -
  -
  -  
  -
  -  Why do I get OutOfMemoryError errors?
  -
  -  
  -  
  -Many reasons.
  -
  -  
  -  You're out of memory. Simple as that - add more to your heap.
  -  
  -  You're out of memory. You have code which is hanging onto object
  -  references and the garbage collector can't do its job. Get a
  -  profiler to debug this one.
  -  
  -  You ran out of file descriptors. If you are on a *nix system,
  -  it has been observed that an OutOfMemoryError can be thrown
  -  if you run out of file descriptors. This can occur if your
  -  threshold is too low. The ulimit program
  -  can help you out here. You also may need to account for
  -  socket connections too when thinking about these thresholds.
  -  Google is your friend for getting more information about this
  -  topic.
  -  
  -  You have too many threads running. Some OS's have a limit to the number
  -  of threads which may be executed b

cvs commit: jakarta-tomcat-5 build.xml

2003-12-19 Thread remm
remm2003/12/19 08:47:55

  Modified:.build.xml
  Log:
  - Fix packaging of the deployer JAR.
  
  Revision  ChangesPath
  1.172 +2 -16 jakarta-tomcat-5/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-5/build.xml,v
  retrieving revision 1.171
  retrieving revision 1.172
  diff -u -r1.171 -r1.172
  --- build.xml 25 Nov 2003 14:57:58 -  1.171
  +++ build.xml 19 Dec 2003 16:47:55 -  1.172
  @@ -766,23 +766,9 @@
  file="${tomcat.build}/server/lib/catalina-ant.jar"/>
   
   
  -
  +
  
  -  
  -  
  -  
  -  
  -  
  -  
  -  
  -  
  -  
  -  
  -  
  -  
  -  
  -  
  +  
 
 
  
  
  
  

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



cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ant ValidatorTask.java

2003-12-19 Thread remm
remm2003/12/19 08:45:11

  Modified:catalina/src/share/org/apache/catalina/ant
ValidatorTask.java
  Log:
  - Fix the validator task after the digester factory refactoring.
  
  Revision  ChangesPath
  1.5   +7 -6  
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ant/ValidatorTask.java
  
  Index: ValidatorTask.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/ant/ValidatorTask.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ValidatorTask.java1 Oct 2003 07:15:59 -   1.4
  +++ ValidatorTask.java19 Dec 2003 16:45:11 -  1.5
  @@ -68,8 +68,9 @@
   import java.io.FileInputStream;
   import java.io.InputStream;
   
  +import org.apache.catalina.core.StandardContext;
   import org.apache.catalina.startup.Constants;
  -import org.apache.catalina.startup.ContextConfig;
  +import org.apache.catalina.startup.DigesterFactory;
   import org.apache.commons.digester.Digester;
   import org.apache.tools.ant.BuildException;
   import org.apache.tools.ant.Task;
  @@ -134,7 +135,7 @@
   Thread.currentThread().setContextClassLoader
   (ValidatorTask.class.getClassLoader());
   
  -Digester digester = ContextConfig.createWebXmlDigester(true, true);
  +Digester digester = DigesterFactory.newDigester(true, true, null);
   try {
   file = file.getCanonicalFile();
   InputStream stream = 
  
  
  

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



cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/loader WebappClassLoader.java

2003-12-19 Thread remm
remm2003/12/19 08:44:13

  Modified:catalina/src/share/org/apache/catalina/loader
WebappClassLoader.java
  Log:
  - Reset the repositories array on certain methos calls.
  - Override addURL to set hasExternalRepositories to true.
  
  Revision  ChangesPath
  1.30  +12 -1 
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/loader/WebappClassLoader.java
  
  Index: WebappClassLoader.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/loader/WebappClassLoader.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- WebappClassLoader.java11 Dec 2003 16:41:28 -  1.29
  +++ WebappClassLoader.java19 Dec 2003 16:44:13 -  1.30
  @@ -586,6 +586,7 @@
   URL url = new URL(repository);
   super.addURL(url);
   hasExternalRepositories = true;
  +repositoryURLs = null;
   } catch (MalformedURLException e) {
   throw new IllegalArgumentException(e.toString());
   }
  @@ -848,6 +849,16 @@
   
   
   //  ClassLoader Methods
  +
  +
  + /**
  +  * Add the specified URL to the classloader.
  +  */
  + protected void addURL(URL url) {
  + super.addURL(url);
  + hasExternalRepositories = true;
  + repositoryURLs = null;
  + }
   
   
   /**
  
  
  

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



Re: Intro/question possible buglet with Content-Type and Charsets .

2003-12-19 Thread Remy Maucherat
[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:

Ah this still does not fix it I am afraid.

Neither does the CVS patch.

:-(

Any objections to reopening the bug?
Well, yes. Please do not reopen the report. Revisions 1.30 or 1.31 do 
(really) resolve the issue.


Pulled 1.31 from CVS - complied it with some debug statements and it appears
that Response.java setContentType is being called with:
application/vnd.ms-excel;charset=ISO-8859-1
When my code is:

<[EMAIL PROTECTED] contentType="application/vnd.ms-excel"%>
Ok, now I understand. Your problem is that you're trying to generate 
binary data using JSPs. You can't do that, basically (Jasper will always 
use a Writer, and it will also always set the encoding). I'm sure you 
can hack your way around by using the "right" encoding, but you should 
really use a servlet.

There's a "fix" for you though: you can use revision 1.30 or Response, 
which strips out the charset if it's the default encoding.

Rémy

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


cvs commit: jakarta-tomcat-site/docs/faq/printer misc.html

2003-12-19 Thread yoavs
yoavs   2003/12/19 08:08:35

  Modified:docs/faq misc.html
   docs/faq/printer misc.html
  Log:
  Updated misc to include EJB question.
  
  Revision  ChangesPath
  1.13  +18 -0 jakarta-tomcat-site/docs/faq/misc.html
  
  Index: misc.html
  ===
  RCS file: /home/cvs/jakarta-tomcat-site/docs/faq/misc.html,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- misc.html 20 Nov 2003 15:24:52 -  1.12
  +++ misc.html 19 Dec 2003 16:08:35 -  1.13
  @@ -142,6 +142,11 @@
   Can I run tomcat with the JRE only, or do I need the full JDK?
 
   
  +
  +  
  +Is tomcat an EJB server?  Can I use EJBs with tomcat?
  +  
  +
 
   
   
  @@ -646,6 +651,19 @@
   on a JRE only, but you do so at your own risk.
 
   
  +  
  +
  +  Is tomcat an EJB server?  Can I use EJBs with tomcat?
  +
  +  
  +  
  +Tomcat is not an EJB server.  Tomcat is not a full J2EE
  +server.  Tomcat is a Servlet container.  Tomcat does support
  +those parts of the J2EE specification that are required
  +for Servlets, such as a subset of JNDI functionality.
  +Furthermore, you can connect to remote J2EE servers, or
  +run tomcat embedded inside a full J2EE server.
  +  
   
   Copyright © 1999-2003, Apache Software Foundation
   
  
  
  
  1.10  +18 -0 jakarta-tomcat-site/docs/faq/printer/misc.html
  
  Index: misc.html
  ===
  RCS file: /home/cvs/jakarta-tomcat-site/docs/faq/printer/misc.html,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- misc.html 20 Nov 2003 15:24:52 -  1.9
  +++ misc.html 19 Dec 2003 16:08:35 -  1.10
  @@ -141,6 +141,11 @@
   Can I run tomcat with the JRE only, or do I need the full JDK?
 
   
  +
  +  
  +Is tomcat an EJB server?  Can I use EJBs with tomcat?
  +  
  +
 
   
   
  @@ -645,6 +650,19 @@
   on a JRE only, but you do so at your own risk.
 
   
  +  
  +
  +  Is tomcat an EJB server?  Can I use EJBs with tomcat?
  +
  +  
  +  
  +Tomcat is not an EJB server.  Tomcat is not a full J2EE
  +server.  Tomcat is a Servlet container.  Tomcat does support
  +those parts of the J2EE specification that are required
  +for Servlets, such as a subset of JNDI functionality.
  +Furthermore, you can connect to remote J2EE servers, or
  +run tomcat embedded inside a full J2EE server.
  +  
   
   Copyright © 1999-2003, Apache Software Foundation
   
  
  
  

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



cvs commit: jakarta-tomcat-site/xdocs-faq misc.xml

2003-12-19 Thread yoavs
yoavs   2003/12/19 08:04:53

  Modified:xdocs-faq misc.xml
  Log:
  Added EJB question.
  
  Revision  ChangesPath
  1.9   +18 -0 jakarta-tomcat-site/xdocs-faq/misc.xml
  
  Index: misc.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-site/xdocs-faq/misc.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- misc.xml  20 Nov 2003 15:24:52 -  1.8
  +++ misc.xml  19 Dec 2003 16:04:53 -  1.9
  @@ -154,6 +154,11 @@
   Can I run tomcat with the JRE only, or do I need the full JDK?
 
   
  +
  +  
  +Is tomcat an EJB server?  Can I use EJBs with tomcat?
  +  
  +
 
   
   
  @@ -661,6 +666,19 @@
   on a JRE only, but you do so at your own risk.
 
   
  +  
  +
  +  Is tomcat an EJB server?  Can I use EJBs with tomcat?
  +
  +  
  +  
  +Tomcat is not an EJB server.  Tomcat is not a full J2EE
  +server.  Tomcat is a Servlet container.  Tomcat does support
  +those parts of the J2EE specification that are required
  +for Servlets, such as a subset of JNDI functionality.
  +Furthermore, you can connect to remote J2EE servers, or
  +run tomcat embedded inside a full J2EE server.
  +  
   
   
   
  
  
  

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



RE: Intro/question possible buglet with Content-Type and Charsets .

2003-12-19 Thread Greg . Cope
> [EMAIL PROTECTED] wrote:
> > Ah this still does not fix it I am afraid.
> > 
> > Neither does the CVS patch.
> > 
> > :-(
> > 
> > Any objections to reopening the bug?
> 
> Well, yes. Please do not reopen the report. Revisions 1.30 or 1.31 do 
> (really) resolve the issue.

Pulled 1.31 from CVS - complied it with some debug statements and it appears
that Response.java setContentType is being called with:
application/vnd.ms-excel;charset=ISO-8859-1

When my code is:

<[EMAIL PROTECTED] contentType="application/vnd.ms-excel"%>

Can someone tell me where the glue code between my JSP page is and the
Response.class

> You can also use Tomcat 5.0.16, or 4.1.27; neither have this issue.

In our environment it takes about 2 weeks of work to upgrade tomcat
(testing, number of instances, and lot of documentation/evidence) hence I
need a hotfix.

> New Tomcat releases will (likely) appear early in 2004 to 
> include a few 
> bugfixes, including this one for 4.1.x.

Please see above.

:-(

## my debug statements:

Response.java setContentType is starting with:
application/vnd.ms-excel;charset=ISO-8859-1
Response.java setContentType has ended up with:
application/vnd.ms-excel;charset=ISO-8859-1
Response.java getContentType is hase content type of:
application/vnd.ms-excel
Response.java getContentType charsetSet and characterEncoding are true and
is add+returning: application/vnd.ms-excel;charset=ISO-8859-1


> 
> Rémy
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



Re: Intro/question possible buglet with Content-Type and Charsets .

2003-12-19 Thread Remy Maucherat
[EMAIL PROTECTED] wrote:
Ah this still does not fix it I am afraid.

Neither does the CVS patch.

:-(

Any objections to reopening the bug?
Well, yes. Please do not reopen the report. Revisions 1.30 or 1.31 do 
(really) resolve the issue.
You can also use Tomcat 5.0.16, or 4.1.27; neither have this issue.

New Tomcat releases will (likely) appear early in 2004 to include a few 
bugfixes, including this one for 4.1.x.

Rémy

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


DO NOT REPLY [Bug 25651] New: - Erro when loading admin servlet javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.webapp.admin.ApplicationServle or a class it depends on

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

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

Erro when loading admin servlet javax.servlet.ServletException: Wrapper cannot find 
servlet class org.apache.webapp.admin.ApplicationServle or a class it depends on

   Summary: Erro when loading admin servlet
javax.servlet.ServletException: Wrapper cannot find
servlet class org.apache.webapp.admin.ApplicationServle
or a class it depends on
   Product: Tomcat 4
   Version: 4.1.29
  Platform: HP
OS/Version: Other
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Webapps:Administration
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Hello,
I recenty upgraded fromt Tomcat 4.0.6 to Tomcat 4.1.29 the reson for upgrade 
was following excpetion :
javax.servlet.ServletException: Wrapper cannot find servlet class 
org.apache.webapp.admin.ApplicationServle or a class it depends on
On this site I found that resolution was to upgrade  to Tomcat 4.1.X so I 
installed lates version which is 4.1.29 but now I get following exception when 
starting the Tomcat :
2003-12-19 13:56:39 StandardContext[/admin]: Servlet /admin threw load() 
exception
javax.servlet.ServletException: Wrapper cannot find servlet class 
org.apache.webapp.admin.ApplicationServle or a class it depends on
at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:891)
at org.apache.catalina.core.StandardWrapper.load
(StandardWrapper.java:823)
at org.apache.catalina.core.StandardContext.loadOnStartup
(StandardContext.java:3422)
at org.apache.catalina.core.StandardContext.start
(StandardContext.java:3623)
at org.apache.catalina.core.ContainerBase.addChildInternal
(ContainerBase.java:821)
at org.apache.catalina.core.ContainerBase.addChild
(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.addChild
(StandardHostDeployer.java:700)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.beanutils.MethodUtils.invokeMethod
(MethodUtils.java:252)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement
(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.
dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at org.apache.catalina.core.StandardHostDeployer.install
(StandardHostDeployer.java:385)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:819)
at org.apache.catalina.startup.HostConfig.deployDescriptors
(HostConfig.java:442)
at org.apache.catalina.startup.HostConfig.deployApps
(HostConfig.java:399)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at org.apache.catalina.startup.HostConfig.lifecycleEvent
(HostConfig.java:358)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start
(StandardEngine.java:363)
at org.apache.catalina.core.StandardService.start
(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start
(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina

DO NOT REPLY [Bug 25508] - JNDI Does Not Set Up "comp" namespace

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

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

JNDI Does Not Set Up "comp" namespace

[EMAIL PROTECTED] changed:

   What|Removed |Added

   Severity|Major   |Minor



--- Additional Comments From [EMAIL PROTECTED]  2003-12-19 14:11 ---
Bumped severity down to minor as this is a rarely used configuration (more than 
one Service) in a no-longer-developed branch (4.1).

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



RE: Intro/question possible buglet with Content-Type and Charsets .

2003-12-19 Thread Greg . Cope
Ah this still does not fix it I am afraid.

Neither does the CVS patch.

:-(

Any objections to reopening the bug?

Greg

> -Original Message-
> From: Tim Funk [mailto:[EMAIL PROTECTED]
> Sent: 19 December 2003 13:55
> To: Tomcat Developers List
> Subject: Re: Intro/question possible buglet with Content-Type and
> Charsets .
> 
> 
> In the bug report, from "Sven 2003-11-26 19:36" - he uploaded 
> a file called 
> Response.java. Whether it is a patched version, version from CVS, an 
> incorrectly patched version, or a trojan is a matter of trust.
> 
> But make sure the file is called Response.class, not Request.class
> 
> 
> -Tim

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



Re: Intro/question possible buglet with Content-Type and Charsets .

2003-12-19 Thread Tim Funk
In the bug report, from "Sven 2003-11-26 19:36" - he uploaded a file called 
Response.java. Whether it is a patched version, version from CVS, an 
incorrectly patched version, or a trojan is a matter of trust.

But make sure the file is called Response.class, not Request.class

-Tim

[EMAIL PROTECTED] wrote:

Tim,

Is this a CVS snapshot of Request.java/class? 

If so it does not appear to fix my problem (see other thread): Content-Type:
application/vnd.ms-excel;charset=ISO-8859-1
Unless of course I am a complete idiot (highly probable)

Thanks for your help thus far.

Greg




Instructions added to 
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24970

-Tim

Tim Funk wrote:



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



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


RE: Intro/question possible buglet with Content-Type and Charsets .

2003-12-19 Thread Greg . Cope
Tim,

Is this a CVS snapshot of Request.java/class? 

If so it does not appear to fix my problem (see other thread): Content-Type:
application/vnd.ms-excel;charset=ISO-8859-1

Unless of course I am a complete idiot (highly probable)

Thanks for your help thus far.

Greg



> Instructions added to 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24970
> 
> -Tim
> 
> Tim Funk wrote:
> 

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



Re: Intro/question possible buglet with Content-Type and Charsets .

2003-12-19 Thread Tim Funk
Instructions added to http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24970

-Tim

Tim Funk wrote:

Yeah, nagoya.apache.org seems down. Hopefully it will be back soon. The 
bug has good detail of what and how to fix.

-Tim

[EMAIL PROTECTED] wrote:

Thanks Tim,

Having a little trouble getting anything from bugzilla, nagoya.apache.org
seems to be having a little trouble!
Looking in the archives for this id, I see that someone has a 4.1.29 
patch
and a complied class, but cannot see either email address or content 
via the
archive.


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


DO NOT REPLY [Bug 24970] - charset appended to content-type even if not text/*

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

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

charset appended to content-type even if not text/*





--- Additional Comments From [EMAIL PROTECTED]  2003-12-19 13:39 ---
*(BIG trusting assumption: the attachment is a valid file for Response.class)*

If one wishes to get a hotfix without compiling the fix themself ...

Take the attachment 9309 in this bug report and save it as Response.class.

Then move Response.class (creating the approprite dirs) to 
{TOMCAT INSTALL}/server/classes/org/apache/coyote/Response.class

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



RE: Intro/question possible buglet with Content-Type and Charsets - now more of an RFC

2003-12-19 Thread Greg . Cope
Hello All,

I know it may be considered rude to reply to my own post, but it seems to
have fallen on deaf ears.

In trying to solve the problems I seem to be going round in circles trying
to find a fix within the tomcat source - can someone point me in right
direction?

Any clues as to how to proceed would be most welcome.  Should I reopen the
bug, as it would appear that the supplied fix, does not.

Not wishing to put anyones backs up, Thanks,

Greg


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



DO NOT REPLY [Bug 8200] - include (PageContext) does not throw IOException if resource not available

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

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

include (PageContext) does not throw IOException if resource not available

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WONTFIX



--- Additional Comments From [EMAIL PROTECTED]  2003-12-19 13:12 ---
I would prefer to fix this to conform with the spec but in light of Bill's 
comments, I am going to resolve this as WONTFIX.  My reasons are as follows 
(most important first):

- I can't see a clean solution for all possible cases. The points where the 
exception needs to be thrown may be reached from a number of include methods 
and there is no easy way to determine if it was PageContext.include
- It has been like this for a while and has not caused a large number of 
problems.
- The 2.0 spec changes.

If anyone can see a clean solution, then I would be happy for it to be applied.

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



DO NOT REPLY [Bug 24478] - Incorrect usage of perl

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

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

Incorrect usage of perl

[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]



--- Additional Comments From [EMAIL PROTECTED]  2003-12-19 11:49 ---
*** Bug 25639 has been marked as a duplicate of this bug. ***

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



DO NOT REPLY [Bug 25639] - CGIServlet only runs perl code

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

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

CGIServlet only runs perl code

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE



--- Additional Comments From [EMAIL PROTECTED]  2003-12-19 11:49 ---
This has already been fixed in CVS and will be included in the next release.

*** This bug has been marked as a duplicate of 24478 ***

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



DO NOT REPLY [Bug 25528] - WebappClassloader does not register with RMI codebase cache

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

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

WebappClassloader does not register with RMI codebase cache





--- Additional Comments From [EMAIL PROTECTED]  2003-12-19 09:21 ---
Yes I agree with you Daniel. The caching of getURLs() as done by Remy in TC5 is 
a good enough fix that does not mess with the delicate communication between 
tomcat classloaders and RMI.

However, the fix by Remy in 5 simply caches the urls array. Remy, what if 
someone calls addJar etc. after the cache has been initialized? Several methods 
will add/remove jars from the list and should be updated in the cache?

Who will post the fix to tomcat 4.1? My company needs a new official version 
with a cached url list to recommend to upgrade to.

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