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

2002-10-28 Thread remm
remm2002/10/28 23:24:41

  Modified:jasper2/src/share/org/apache/jasper/compiler
ImplicitTagLibraryInfo.java
  Log:
  - Fix compilation problem.
  
  Revision  ChangesPath
  1.13  +4 -4  
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/ImplicitTagLibraryInfo.java
  
  Index: ImplicitTagLibraryInfo.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/ImplicitTagLibraryInfo.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- ImplicitTagLibraryInfo.java   17 Oct 2002 20:43:06 -  1.12
  +++ ImplicitTagLibraryInfo.java   29 Oct 2002 07:24:41 -  1.13
  @@ -96,7 +96,7 @@
  String prefix,
  String tagdir,
  ErrorDispatcher err) throws JasperException {
  -super(prefix, null, tagdir);
  +super(prefix, tagdir);
this.pc = pc;
this.tagFileMap = new Hashtable();
this.vec = new Vector();
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Fwd: [urgent] Help pleeeeez--context problem--logfiles attached

2002-10-28 Thread Vishal Gupta
 
 Note: forwarded message attached.Vishal GuptaSchlumberger Measurement & Systems India Ltd 10th Floor, HMG AmbassadorBangalore 560 025Tel: +91 98451 32104 off: +91 80 2075052-55 Ext: 117 Fax:+91 80 2075056 E-Mail :- [EMAIL PROTECTED] and   [EMAIL PROTECTED]Do you Yahoo!?
HotJobs - Search new jobs daily now--- Begin Message ---
Hi,
Please help me out as tomcat is crashing as soon as i add myApp context to it.
But it works fine without it. Please give me the possible reasons and the solution for it. Any help will be appreciated.
Also attached is log file and config files.
sever.xml.bak1   is the file when tomcat works fine.server.xml   is file when tomcat crashes.debug.txt    gives outputs of ps -ef | grep tomcat debug*   are logfiles of tomcatProblem is sever.xml file as tomcat works fine with sever.xml.bak1.Best Regards,VishalVishal GuptaSchlumberger Measurement & Systems India Ltd 10th Floor, HMG AmbassadorBangalore 560 025Tel: +91 98451 32104 off: +91 80 2075052-55 Ext: 117 Fax:+91 80 2075056 E-Mail :- [EMAIL PROTECTED] and   [EMAIL PROTECTED]Do you Yahoo!?
HotJobs - Search new jobs daily now

hpb1.zip
Description: hpb1.zip
--
To unsubscribe, e-mail:   
For additional commands, e-mail: 
--- End Message ---
--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


cvs commit: jakarta-tomcat-4.0 RELEASE-NOTES-4.1.txt

2002-10-28 Thread billbarker
billbarker2002/10/28 20:52:28

  Modified:.RELEASE-NOTES-4.1.txt
  Log:
  Belatedly documenting SSL fixes in 4.1.13.
  
  Revision  ChangesPath
  1.25  +3 -1  jakarta-tomcat-4.0/RELEASE-NOTES-4.1.txt
  
  Index: RELEASE-NOTES-4.1.txt
  ===
  RCS file: /home/cvs/jakarta-tomcat-4.0/RELEASE-NOTES-4.1.txt,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- RELEASE-NOTES-4.1.txt 23 Oct 2002 14:13:45 -  1.24
  +++ RELEASE-NOTES-4.1.txt 29 Oct 2002 04:52:28 -  1.25
  @@ -539,6 +539,8 @@
JK2 JkMain:
Initialize https URLs if only JK connector is used.
   
  +[4.1.13] Fix broken JSSE/SSL-support and include support for Cert-Auth with
  + JSSE 1.1.x.
   
   
   Jasper Bug Fixes:
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup ContextConfig.java

2002-10-28 Thread billbarker
billbarker2002/10/28 20:17:25

  Modified:catalina/src/share/org/apache/catalina/startup
ContextConfig.java
  Log:
  The previous version was failing badly, at least with FileDirContext.
  
  I can't see that the new version could create any problems with any context, so Here 
goes.
  
  Revision  ChangesPath
  1.67  +5 -5  
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup/ContextConfig.java
  
  Index: ContextConfig.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup/ContextConfig.java,v
  retrieving revision 1.66
  retrieving revision 1.67
  diff -u -r1.66 -r1.67
  --- ContextConfig.java23 Jun 2002 20:35:30 -  1.66
  +++ ContextConfig.java29 Oct 2002 04:17:25 -  1.67
  @@ -1052,7 +1052,7 @@
   // FIXME - Servlet 2.3 DTD implies that the location MUST be
   // a context-relative path starting with '/'?
   if (!resourcePath.startsWith("/")) {
  -resourcePath = "/WEB-INF/web.xml/../" + resourcePath;
  +resourcePath = "/WEB-INF/" + resourcePath;
   }
   if (debug >= 3) {
   log("   Adding path '" + resourcePath +
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




tools to monitor a tomcat application

2002-10-28 Thread Chakradhar Tallam
hi all,

are there any tools available to monitor a tomcat web application? please
provide me with few pointers.

thanks,
-
Chakradhar Tallam
Consultant
Object Consulting
Level 11 / 75 Miller Street, North Sydney, NSW - 2060
Phone: +61 2 9459 3356 Fax: +61 2 9955 6659 
Email: [EMAIL PROTECTED]
Web: http://www.objectconsulting.com.au/
consulting | development | training | support
our experience makes the difference



cvs commit: jakarta-servletapi-5/jsr152/src/share/javax/servlet/jsp/tagext BodyContent.java BodyTag.java BodyTagSupport.java DynamicAttributes.java FunctionInfo.java IterationTag.java JspFragment.java JspTag.java SimpleTag.java SimpleTagSupport.java Tag.java TagAdapter.java TagAttributeInfo.java TagData.java TagExtraInfo.java TagFileInfo.java TagInfo.java TagLibraryInfo.java TagLibraryValidator.java TagSupport.java TagVariableInfo.java VariableInfo.java

2002-10-28 Thread kinman
kinman  2002/10/28 17:18:13

  Modified:jsr152/src/share/dtd web-jsptaglibrary_2_0.xsd
   jsr152/src/share/javax/servlet/jsp ErrorData.java
JspContext.java JspException.java
JspTagException.java JspWriter.java
PageContext.java SkipPageException.java
   jsr152/src/share/javax/servlet/jsp/el ELException.java
ELParseException.java Expression.java
ExpressionEvaluator.java FunctionMapper.java
VariableResolver.java
   jsr152/src/share/javax/servlet/jsp/tagext BodyContent.java
BodyTag.java BodyTagSupport.java
DynamicAttributes.java FunctionInfo.java
IterationTag.java JspFragment.java JspTag.java
SimpleTag.java SimpleTagSupport.java Tag.java
TagAdapter.java TagAttributeInfo.java TagData.java
TagExtraInfo.java TagFileInfo.java TagInfo.java
TagLibraryInfo.java TagLibraryValidator.java
TagSupport.java TagVariableInfo.java
VariableInfo.java
  Log:
  - Patch by Mark Roth
  
  This is a rather large patch to the API workspace.  Much of it is
  cosmetic changes and tightening of the javadocs so that the APIs are
  more testable.  We also removed some newer APIs we don't need anymore.
  
  Ryan Lubke helped with some of these changes.  Thanks, Ryan!
  
  No files added or deleted.  Change summary:
  
  jsr152/src/share/dtd/web-jsptaglibrary_2_0.xsd:
  jsr154/src/share/dtd/web-jsptaglibrary_2_0.xsd:
   - Clarified description of path element for .
   - Clarified description of variableType w.r.t. TagExtraInfo classes
  
  jsr152/src/share/javax/servlet/jsp/tagext/TagLibraryInfo.java
   - Removed getTagdir(), which is useless
   - Removed corresponding tagdir protected attribute
   - Removed JSP 2.0 constructor, which was only unique in that
 it took a tagdir parameter.
  
  jsr152/src/share/javax/servlet/jsp/tagext/Tag.java
   - Clarified synchronization must be done for both variables declared
 in both TEI and TLD.
  
  jsr152/src/share/javax/servlet/jsp/tagext/BodyTag.java
   - Clarified synchronization must be done for both variables declared
 in both TEI and TLD.
  
  jsr152/src/share/javax/servlet/jsp/tagext/IterationTag.java
   - Clarified synchronization must be done for both variables declared
 in both TEI and TLD.
  
  jsr152/src/share/javax/servlet/jsp/tagext/TagData.java
   - Tightened up description of getId(), as the jsp:id attribute is
 now required to be generated as per JSP.6.2.13.
  
  jsr152/src/share/javax/servlet/jsp/tagext/TagExtraInfo.java
   - TagExtraInfo.getVariableInfo() [if no variables, can return
 null or [0], default abstract class returns [0]
 (zero-length array).
 NOTE: It is a (translation time) error for a
 tag definition in a TLD with one or more variable subelements
 to have an associated TagExtraInfo implementation that returns
 a VariableInfo array with one or more elements from a call
 to getVariableInfo().  The previous version of the spec was not
 clear on this.]
  
  jsr152/src/share/javax/servlet/jsp/tagext/TagInfo.java
   - TagInfo.getAttributes() must return zero-length array if no
 attributes.
   - TagInfo.getVariableInfo() must return zero-length array if
 associated TagExtraInfo defines no variables
   - TagInfo.getTagVariableInfos() must return zero-length array
 if no variables have been delcared.
   - TagInfo.getTagName() returns null if not defined
   - TagInfo.getBodyContent() if bodycontent not defined,
 JSP is returned
   - TagInfo.getInfoString() if not defined, null is returned
   - TagInfo.getDisplayName() if not defined, null is returned
   - TagInfo.getSmallIcon() if not defined, null is returned
   - TagInfo.getLargeIcon() if not defined, null is returned
  
  jsr152/src/share/javax/servlet/jsp/tagext/TagLibraryInfo.java
   - TagLibraryInfo.getTags() if tag library contains no tags, a
 zero-length array must be returned.
   - TagLibraryInfo.getTagFiles() if tag library contains no tag
 files, a zero-length array must be returned.
   - TagLibraryInfo.getTag() if no such tag is found, null is returned
   - TagLibraryInfo.getTagFile() if no such tag files is found, null
 is returned
   - TagLibraryInfo.getFunctions() if no fuctions defined, a
 zero-length array is returned.
   - TagLibraryInfo.getFunction() if no function exists, null
 is returned
  
  jsr152/src/share/javax/servlet/jsp/tagext/VariableInfo.java
   - Clarified description for when to syncrhonize variables.
  
  jsr152/src/share/j

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

2002-10-28 Thread kinman
kinman  2002/10/28 16:53:02

  Modified:jasper2/src/share/org/apache/jasper/runtime
JspSourceDependent.java JspWriterImpl.java
PageContextImpl.java
  Log:
  - Protected fields are made private.
  
  Revision  ChangesPath
  1.2   +4 -3  
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/JspSourceDependent.java
  
  Index: JspSourceDependent.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/JspSourceDependent.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- JspSourceDependent.java   28 Aug 2002 23:00:19 -  1.1
  +++ JspSourceDependent.java   29 Oct 2002 00:53:02 -  1.2
  @@ -58,9 +58,10 @@
   /**
* Interface for tracking the source files dependencies, for the purpose
* of compiling out of date pages.  This is used for
  - * 1) files that are included by pge directives
  - * 2) Files that are included by include-prelude and include-coda in jsp:config
  - * 3) Files that are tag files and referenced
  + * 1) files that are included by page directives
  + * 2) files that are included by include-prelude and include-coda in jsp:config
  + * 3) files that are tag files and referenced
  + * 4) TLDs referenced
*/
   
   public interface JspSourceDependent {
  
  
  
  1.5   +11 -11
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/JspWriterImpl.java
  
  Index: JspWriterImpl.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/JspWriterImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- JspWriterImpl.java7 Oct 2002 22:52:22 -   1.4
  +++ JspWriterImpl.java29 Oct 2002 00:53:02 -  1.5
  @@ -84,12 +84,12 @@
*/
   public class JspWriterImpl extends JspWriter {
   
  -protected Writer out;
  -protected ServletResponse response;
  -protected char cb[];
  -protected int nextChar;
  -protected boolean flushed = false;
  -protected boolean closed = false;
  +private Writer out;
  +private ServletResponse response;
  +private char cb[];
  +private int nextChar;
  +private boolean flushed = false;
  +private boolean closed = false;
   
   public JspWriterImpl() {
super( Constants.DEFAULT_BUFFER_SIZE, true );
  @@ -159,7 +159,7 @@
   nextChar = 0;
   }
   
  -protected void initOut() throws IOException {
  +private void initOut() throws IOException {
   if (out == null) {
   out = response.getWriter();
}
  @@ -226,7 +226,7 @@
   }
   
   /** check to make sure that the stream has not been closed */
  -protected void ensureOpen() throws IOException {
  +private void ensureOpen() throws IOException {
if (response == null || closed)
throw new IOException("Stream closed");
   }
  
  
  
  1.28  +23 -23
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/PageContextImpl.java
  
  Index: PageContextImpl.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/runtime/PageContextImpl.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- PageContextImpl.java  24 Oct 2002 19:18:55 -  1.27
  +++ PageContextImpl.java  29 Oct 2002 00:53:02 -  1.28
  @@ -145,7 +145,7 @@
_initialize(servlet, request, response, errorPageURL, needsSession, 
bufferSize, autoFlush);
   }
   
  -void _initialize(Servlet servlet, ServletRequest request,
  +private void _initialize(Servlet servlet, ServletRequest request,
  ServletResponse response, String errorPageURL,
  boolean needsSession, int bufferSize,
  boolean autoFlush)
  @@ -495,8 +495,8 @@
   }
   }
   
  -protected BodyContentImpl[] outs = new BodyContentImpl[0];
  -protected int depth = -1;
  +private BodyContentImpl[] outs = new BodyContentImpl[0];
  +private int depth = -1;
   
   public BodyContent pushBody() {
return (BodyContent) pushBody(null);
  @@ -642,7 +642,7 @@
   }
   }
   
  -protected JspWriterImpl _createOut(int bufferSize, boolean autoFlush)
  +private JspWriterImpl _createOut(int bufferSize, boolean autoFlush)
   throws IOException, IllegalArgumentException {
   try {
   return new JspWriterImpl(response, bufferSize, autoFlush);
  @@ -658,36 +658,36 @@
   
   // per Servlet state
   
  -protectedServlet servlet;
  -protectedServletConfig   conf

Re: TOMCAT memory usage : how to manage and benchmark ?

2002-10-28 Thread Denis Benoit
On Mon, 28 Oct 2002 [EMAIL PROTECTED] wrote:

> JAVA_OPTS=" -server -Xms128m -Xmx256m"
> 
> --> The memory used by my tomcat reach 300 MO or more with 0 user
> connected...

The memory usage of the process is not the total of the memory of all
the threads.  Take ONE thread memory usage (in top for example), this
is the memory usage of your process.  You can confirm this output
with a call to Runtime.getRuntime().totalMemory().

-- 
Denis Benoit


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[PATCH] jakarta-servletapi-5: javadoc tightening and cleanup

2002-10-28 Thread Mark Roth
This is a rather large patch to the API workspace.  Much of it is 
cosmetic changes and tightening of the javadocs so that the APIs are 
more testable.  We also removed some newer APIs we don't need anymore.

Ryan Lubke helped with some of these changes.  Thanks, Ryan!

No files added or deleted.  Change summary:

jsr152/src/share/dtd/web-jsptaglibrary_2_0.xsd:
jsr154/src/share/dtd/web-jsptaglibrary_2_0.xsd:
- Clarified description of path element for .
- Clarified description of variableType w.r.t. TagExtraInfo classes

jsr152/src/share/javax/servlet/jsp/tagext/TagLibraryInfo.java
- Removed getTagdir(), which is useless
- Removed corresponding tagdir protected attribute
- Removed JSP 2.0 constructor, which was only unique in that
  it took a tagdir parameter.

jsr152/src/share/javax/servlet/jsp/tagext/Tag.java
- Clarified synchronization must be done for both variables declared
  in both TEI and TLD.

jsr152/src/share/javax/servlet/jsp/tagext/BodyTag.java
- Clarified synchronization must be done for both variables declared
  in both TEI and TLD.

jsr152/src/share/javax/servlet/jsp/tagext/IterationTag.java
- Clarified synchronization must be done for both variables declared
  in both TEI and TLD.

jsr152/src/share/javax/servlet/jsp/tagext/TagData.java
- Tightened up description of getId(), as the jsp:id attribute is
  now required to be generated as per JSP.6.2.13.

jsr152/src/share/javax/servlet/jsp/tagext/TagExtraInfo.java
- TagExtraInfo.getVariableInfo() [if no variables, can return
  null or [0], default abstract class returns [0]
  (zero-length array).
  NOTE: It is a (translation time) error for a
  tag definition in a TLD with one or more variable subelements
  to have an associated TagExtraInfo implementation that returns
  a VariableInfo array with one or more elements from a call
  to getVariableInfo().  The previous version of the spec was not
  clear on this.]

jsr152/src/share/javax/servlet/jsp/tagext/TagInfo.java
- TagInfo.getAttributes() must return zero-length array if no
  attributes.
- TagInfo.getVariableInfo() must return zero-length array if
  associated TagExtraInfo defines no variables
- TagInfo.getTagVariableInfos() must return zero-length array
  if no variables have been delcared.
- TagInfo.getTagName() returns null if not defined
- TagInfo.getBodyContent() if bodycontent not defined,
  JSP is returned
- TagInfo.getInfoString() if not defined, null is returned
- TagInfo.getDisplayName() if not defined, null is returned
- TagInfo.getSmallIcon() if not defined, null is returned
- TagInfo.getLargeIcon() if not defined, null is returned

jsr152/src/share/javax/servlet/jsp/tagext/TagLibraryInfo.java
- TagLibraryInfo.getTags() if tag library contains no tags, a
  zero-length array must be returned.
- TagLibraryInfo.getTagFiles() if tag library contains no tag
  files, a zero-length array must be returned.
- TagLibraryInfo.getTag() if no such tag is found, null is returned
- TagLibraryInfo.getTagFile() if no such tag files is found, null
  is returned
- TagLibraryInfo.getFunctions() if no fuctions defined, a
  zero-length array is returned.
- TagLibraryInfo.getFunction() if no function exists, null
  is returned

jsr152/src/share/javax/servlet/jsp/tagext/VariableInfo.java
- Clarified description for when to syncrhonize variables.

jsr152/src/share/javax/servlet/jsp/SkipPageException.java
- Clarified that SkipPageException is only to be used in
  JSP Fragments and SimpleTag handlers.

jsr152/src/share/javax/servlet/jsp/PageContext.java
- Removed SecurityException javadocs for both handlePageException()
  methods, as their include() and forward() counterparts no longer
  declare this exception.

jsr152/src/share/javax/servlet/jsp/JspFragment.java
- Clarified how to pass variables to/from JspFragments.

Includes Minor Cosmetic changes
---
  - jsr152/src/share/javax/servlet/jsp/ErrorData.java
  - jsr152/src/share/javax/servlet/jsp/JspContext.java
  - jsr152/src/share/javax/servlet/jsp/JspException.java
  - jsr152/src/share/javax/servlet/jsp/JspWriter.java
  - jsr152/src/share/javax/servlet/jsp/PageContext.java
  - jsr152/src/share/javax/servlet/jsp/SkipPageException.java
  - jsr152/src/share/javax/servlet/jsp/el/ELException.java
  - jsr152/src/share/javax/servlet/jsp/el/ELParseException.java
  - jsr152/src/share/javax/servlet/jsp/el/Expression.java
  - jsr152/src/share/javax/servlet/jsp/el/FunctionMapper.java
  - jsr152/src/share/javax/servlet/jsp/el/VariableResolver.java
  - jsr152/src/share/javax/servlet/jsp/tagext/BodyContent.java
  - jsr152/src/share/javax/servlet/jsp/tagext/BodyTagSupport.java
  - jsr152/src/share/javax/servlet/jsp/tagext/DynamicAttributes.java
  - jsr152/src/share/javax/servlet/jsp/tagext/FunctionInfo.java
  - jsr152/src/share/jav

DO NOT REPLY [Bug 6617] - Iterating over session attribute name enumeration fails with a ConcurrentModificationException on org.apache.catalina.util.Enumerator.nextElement(Enumerator.java:166);

2002-10-28 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=6617

Iterating over session attribute name enumeration fails with a 
ConcurrentModificationException on 
org.apache.catalina.util.Enumerator.nextElement(Enumerator.java:166);

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|INVALID |



--- Additional Comments From [EMAIL PROTECTED]  2002-10-29 00:02 ---
I've seen this exception as well under different circumstances that are 
definitely valid.  

Suppose that while enumerating through the session attributes, another request 
is made that accesses the same session and removes an attributes.  Since the 
Session attributes are accessed by different threads and different requests, 
the use of the Enumerator is definitely valid.  

This can happen either during stress testing when multiple requests are 
performed for a single user with little time between or when a user opens 
multiple browsers and performs two concurrent requests.

In either case, this is a vliad bug.  The session attributes Collection should 
be cloned before an Enumerator is returned.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DO NOT REPLY [Bug 14030] New: - Can find source for mod_jk

2002-10-28 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=14030

Can find source for mod_jk

   Summary: Can find source for mod_jk
   Product: Tomcat 4
   Version: 4.1.12
  Platform: Sun
OS/Version: Other
Status: NEW
  Severity: Major
  Priority: Other
 Component: Catalina
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


I'm trying to build mod_jk for Apache 2.0.40.  I downloaded jakarta-tomcat
4.1.12-src, but the source code is not there.  I also looked at
jakarta-tomcat 3.3a-src.  It does have source code for Apache 1.3, but not 2.x.
Where can I find it?  The README in the tomcat 3.3a source distribution says is
should be in jakarta-tomcat-3.3a-src/src/native/mod_jk, but it's not.

Thanks,
  Margi Klemp

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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

2002-10-28 Thread luehe
luehe   2002/10/28 15:34:14

  Modified:jasper2/src/share/org/apache/jasper/compiler
TagFileProcessor.java
  Log:
  - Removed TagFileProcessor.fragmentInputDirectiveAttrs (no longer needed)
  
  - Renamed
  TagFileProcessor.TagFileVisitor
to
  TagFileProcessor.TagFileDirectiveVisitor
which is a more descriptive name for this visitor's duties
  
  Revision  ChangesPath
  1.33  +8 -15 
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/TagFileProcessor.java
  
  Index: TagFileProcessor.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/TagFileProcessor.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- TagFileProcessor.java 28 Oct 2002 18:16:20 -  1.32
  +++ TagFileProcessor.java 28 Oct 2002 23:34:14 -  1.33
  @@ -87,7 +87,7 @@
   /**
* A visitor the tag file
*/
  -private static class TagFileVisitor extends Node.Visitor {
  +private static class TagFileDirectiveVisitor extends Node.Visitor {
   
   private static final JspUtil.ValidAttribute[] tagDirectiveAttrs = {
   new JspUtil.ValidAttribute("display-name"),
  @@ -119,14 +119,6 @@
new JspUtil.ValidAttribute("description")
};
   
  - private static final JspUtil.ValidAttribute[] fragmentInputDirectiveAttrs = {
  - new JspUtil.ValidAttribute("name", true),
  - new JspUtil.ValidAttribute("fragment", true),
  - new JspUtil.ValidAttribute("required"),
  - new JspUtil.ValidAttribute("type"),
  - new JspUtil.ValidAttribute("description")
  - };
  -
   private ErrorDispatcher err;
private TagLibraryInfo tagLibInfo;
   
  @@ -143,8 +135,9 @@
   private Vector attributeVector = new Vector();
   private Vector variableVector = new Vector();
   
  -public TagFileVisitor(Compiler compiler, TagLibraryInfo tagLibInfo,
  -   String name) {
  +public TagFileDirectiveVisitor(Compiler compiler,
  +TagLibraryInfo tagLibInfo,
  +String name) {
   err = compiler.getErrorDispatcher();
this.tagLibInfo = tagLibInfo;
this.name = name;
  @@ -307,8 +300,8 @@
   "jsp.error.file.not.found", tagfile);
}
   
  -TagFileVisitor tagFileVisitor = new TagFileVisitor(pc.getCompiler(),
  -tagLibInfo, name);
  +TagFileDirectiveVisitor tagFileVisitor
  + = new TagFileDirectiveVisitor(pc.getCompiler(), tagLibInfo, name);
   page.visit(tagFileVisitor);
   
   return tagFileVisitor.getTagInfo();
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler JspDocumentParser.java ParserController.java TagConstants.java

2002-10-28 Thread luehe
luehe   2002/10/28 15:21:08

  Modified:jasper2/src/share/org/apache/jasper/compiler
JspDocumentParser.java ParserController.java
TagConstants.java
  Log:
  Added support for tag files in XML syntax
  
  Revision  ChangesPath
  1.22  +34 -21
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspDocumentParser.java
  
  Index: JspDocumentParser.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspDocumentParser.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- JspDocumentParser.java28 Oct 2002 19:25:47 -  1.21
  +++ JspDocumentParser.java28 Oct 2002 23:21:08 -  1.22
  @@ -113,6 +113,7 @@
   
   private ErrorDispatcher err;
   private boolean isTagFile;
  +private boolean directivesOnly;
   
   /*
* Constructor
  @@ -120,7 +121,8 @@
   public JspDocumentParser(ParserController pc,
 String path,
 InputStreamReader reader,
  -  boolean isTagFile) {
  +  boolean isTagFile,
  +  boolean directivesOnly) {
this.parserController = pc;
this.ctxt = pc.getJspCompilationContext();
this.pageInfo = pc.getCompiler().getPageInfo();
  @@ -129,6 +131,7 @@
this.path = path;
this.inputSource = new InputSource(reader);
this.isTagFile = isTagFile;
  + this.directivesOnly = directivesOnly;
   }
   
   /*
  @@ -140,10 +143,13 @@
   String path,
   InputStreamReader reader,
   Node parent,
  -boolean isTagFile) throws JasperException {
  +boolean isTagFile,
  +boolean directivesOnly)
  + throws JasperException {
   
JspDocumentParser handler = new JspDocumentParser(pc, path, reader,
  -   isTagFile);
  +   isTagFile,
  +   directivesOnly);
Node.Nodes pageNodes = null;
Node.JspRoot jspRoot = null;
   
  @@ -196,24 +202,28 @@
 String qName,
 Attributes attrs) throws SAXException {
   
  + if (directivesOnly && !qName.startsWith(JSP_DIRECTIVE)) {
  + return;
  + }
  +
Mark start = new Mark(path, locator.getLineNumber(),
  locator.getColumnNumber());
  - Attributes attrsCopy;
  + Attributes attrsCopy = null;
   
Node node = null;
   
  -// XXX - As of JSP 2.0, xmlns: can appear in any node (not just
  -// ).  The spec still needs clarification here.
  -// What we implement is that it can appear in any node and
  -// is valid from that point forward.  Redefinitions cause an
  -// error.  This isn't quite consistent with how xmlns: normally
  -// works.
  -try {
  -attrsCopy = addCustomTagLibraries(attrs);
  -} catch (JasperException je) {
  -throw new SAXParseException( err.getString(
  + // XXX - As of JSP 2.0, xmlns: can appear in any node (not just
  + // ).  The spec still needs clarification here.
  + // What we implement is that it can appear in any node and
  + // is valid from that point forward.  Redefinitions cause an
  + // error.  This isn't quite consistent with how xmlns: normally
  + // works.
  + try {
  + attrsCopy = addCustomTagLibraries(attrs);
  + } catch (JasperException je) {
  + throw new SAXParseException( err.getString(
   "jsp.error.could.not.add.taglibraries" ), locator, je );
  -}
  + }
   
if (qName.equals(JSP_ROOT)) {
   // give the  element the original attributes set
  @@ -352,6 +362,11 @@
   public void endElement(String uri,
   String localName,
   String qName) throws SAXException {
  +
  + if (directivesOnly && !qName.startsWith(JSP_DIRECTIVE)) {
  + return;
  + }
  +
if (current instanceof Node.NamedAttribute
&& ((Node.NamedAttribute) current).isTrim()) {
// Ignore any whitespace (including spaces, carriage returns,
  @@ -366,9 +381,7 @@
if (lastNode instanceof Node.TemplateText) {
((Node.TemplateText) lastNode).rtrim();
}
  - }
  -
  - if (current instanceof Node.ScriptingElement) {
  + } else if (current instanceof Node.ScriptingElement) {
checkScriptingBody((Node.ScriptingElement) cu

Re: TOMCAT memory usage : how to manage and benchmark ?

2002-10-28 Thread Pier Fumagalli
On 28/10/02 22:40, "Bojan Smojver" <[EMAIL PROTECTED]> wrote:

> On Tue, 2002-10-29 at 00:31, Pier Fumagalli wrote:
> 
>> Those are _not_ processes, they are threads... Use a decent operating system
>> that supports them nicely (not Linux) and you'll see the difference (how
>> many times do I have to repeat this?)... Linux sucks :-(
> 
> Ha, ha... Keep dreaming Pier ;-)

Works for you? Good! Doesn't for me! :-)

Pier


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: TOMCAT memory usage : how to manage and benchmark ?

2002-10-28 Thread Bojan Smojver
On Tue, 2002-10-29 at 00:10, [EMAIL PROTECTED] wrote:
> Hello,
> 
> I have tomcat 4.1.10 on a red hat Linux server 7.3 with the j2sdk141,
> 
> When I start the tomcat4 service, all is OK and the tomcat server run.
> 
> BUT, when I look the memory usage (with TOP utility), I have this result :
> 
>  11:31am  up 12 days,  2:18,  2 users,  load average: 0,00, 0,00, 0,00
> 90 processes: 87 sleeping, 3 running, 0 zombie, 0 stopped
> CPU states:  0,0% user,  0,5% system,  0,0% nice, 99,4% idle
> Mem:   514340K av,  479748K used,   34592K free,   0K shrd,   75716K
> buff
> Swap: 1048120K av,   35016K used, 1013104K free  216648K
> cached
> 
>   PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
> 19954 tomcat4   25   0 33584  32M 10464 S 0,0  6,5   0:05 java
> 19957 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java
> 19958 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java
> 19959 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java
> 19960 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java
> 19961 tomcat4   15   0 33584  32M 10464 R 0,0  6,5   0:00 java
> 19962 tomcat4   20   0 33584  32M 10464 S 0,0  6,5   0:00 java
> 19963 tomcat4   16   0 33584  32M 10464 S 0,0  6,5   0:00 java
> 19964 tomcat4   16   0 33584  32M 10464 S 0,0  6,5   0:01 java
> 19966 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java
> 19967 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java
> 19968 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java
> 19969 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java
> 19970 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java
> 19971 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java
> 19972 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java
> 19973 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java
> 
> So,
> 
> My first question is : why tomcat use all the memory while there is no
> users connected (or just one) ?

Ah well, it's Java, that's why. There is a lot of side stuff going on in
a JVM that requires heaps (no pun intended) memory (i.e. you have to pay
for having strong runtime typing, no buffer overflows, run anywhere...).

> My second question is : how much memory is needed if I want to use tomcat
> with many users (500, 1000,...) ?

Huh, depends on what your applications do, really. For so many
concurrent users Tomcat will create separate threads, which means
separate local storage for all of them. Then there is the garbage
collection algorithm, which is usually "lazy", so more then absolutely
necessary will be allocated etc.

> I already read in the forum Tomcat don't manage the memory, it is the
> JVM... so why the jvm use so many processes ?

This is configurable in server.xml, I think. However, if you under
configure it, some clients may be left out.

Bojan


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: TOMCAT memory usage : how to manage and benchmark ?

2002-10-28 Thread Bojan Smojver
On Tue, 2002-10-29 at 00:31, Pier Fumagalli wrote:

> Those are _not_ processes, they are threads... Use a decent operating system
> that supports them nicely (not Linux) and you'll see the difference (how
> many times do I have to repeat this?)... Linux sucks :-(

Ha, ha... Keep dreaming Pier ;-)

Bojan


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/resources messages.properties messages_es.properties messages_ja.properties

2002-10-28 Thread luehe
luehe   2002/10/28 14:01:34

  Modified:jasper2/src/share/org/apache/jasper/compiler
TagLibraryInfoImpl.java
   jasper2/src/share/org/apache/jasper/resources
messages.properties messages_es.properties
messages_ja.properties
  Log:
  No longer swallow TLV and TEI instantiation error
  
  Revision  ChangesPath
  1.22  +11 -32
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/TagLibraryInfoImpl.java
  
  Index: TagLibraryInfoImpl.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/TagLibraryInfoImpl.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- TagLibraryInfoImpl.java   28 Oct 2002 18:16:20 -  1.21
  +++ TagLibraryInfoImpl.java   28 Oct 2002 22:01:34 -  1.22
  @@ -390,27 +390,8 @@
   try {
   Class teiClass = ctxt.getClassLoader().loadClass(teiclass);
   tei = (TagExtraInfo) teiClass.newInstance();
  - } catch (ClassNotFoundException cex) {
  -Constants.message("jsp.warning.teiclass.is.null",
  -  new Object[] {
  -  teiclass, cex.getMessage()
  -  },
  -  Logger.WARNING
  -  );
  -} catch (IllegalAccessException iae) {
  -Constants.message("jsp.warning.teiclass.is.null",
  -  new Object[] {
  -  teiclass, iae.getMessage()
  -  },
  -  Logger.WARNING
  -  );
  -} catch (InstantiationException ie) {
  -Constants.message("jsp.warning.teiclass.is.null",
  -  new Object[] {
  -  teiclass, ie.getMessage()
  -  },
  -  Logger.WARNING
  -  );
  + } catch (Exception e) {
  +err.jspError("jsp.error.teiclass.instantiation", teiclass, e);
   }
}
   
  @@ -561,7 +542,9 @@
   className, declare, scope);
   }
   
  -private TagLibraryValidator createValidator(TreeNode elem) {
  +private TagLibraryValidator createValidator(TreeNode elem)
  +throws JasperException {
  +
   String validatorClass = null;
Map initParams = new Hashtable();
   
  @@ -589,13 +572,9 @@
   Class tlvClass = 
ctxt.getClassLoader().loadClass(validatorClass);
   tlv = (TagLibraryValidator)tlvClass.newInstance();
  -} catch (Exception ex) {
  -Constants.message("jsp.warning.tlvclass.is.null",
  -   new Object[] {
  -   validatorClass, 
  -   "EXCEPTION: " + ex.getMessage()
  -   },
  -   Logger.ERROR);
  +} catch (Exception e) {
  +err.jspError("jsp.error.tlvclass.instantiation",
  +  validatorClass, e);
   }
   }
if (tlv != null) {
  
  
  
  1.51  +3 -3  
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/resources/messages.properties
  
  Index: messages.properties
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/resources/messages.properties,v
  retrieving revision 1.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- messages.properties   28 Oct 2002 18:16:21 -  1.50
  +++ messages.properties   28 Oct 2002 22:01:34 -  1.51
  @@ -131,7 +131,7 @@
   jsp.warning.unknown.element.in.tag=Warning: Unknown element {0} in tag
   jsp.warning.unknown.element.in.attribute=Warning: Unknown element {0} in attribute
   jsp.error.more.than.one.taglib=More than one taglib in the TLD: {0}
  -jsp.warning.teiclass.is.null=Could not load TagExtraInfo class {0}: {1}
  +jsp.error.teiclass.instantiation=Failed to load or instantiate TagExtraInfo class: 
{0}
   jsp.error.non_null_tei_and_var_subelems=Tag {0} has one or more variable 
subelements and a TagExtraInfo class that returns one or more VariableInfo
   jsp.error.parse.error.in.TLD=Parse Error in the tag library descriptor: {0}
   jsp.error.unable.to.open.TLD=Unable to open the tag library descriptor: {0}
  @@ -225,7 +225,7 @@
   jspc.error.fileDoesNotExist=The file argument ''{0}'' does not exist
   jspc.error.emptyWebApp=-webapp requires a trailing file argume

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

2002-10-28 Thread luehe
luehe   2002/10/28 12:48:01

  Modified:jasper2/src/share/org/apache/jasper/compiler
PageDataImpl.java
  Log:
  Added support for tag, attribute, and variable directives to XML view
  (of tag files)
  
  Revision  ChangesPath
  1.13  +47 -50
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/PageDataImpl.java
  
  Index: PageDataImpl.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/PageDataImpl.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- PageDataImpl.java 28 Oct 2002 18:49:07 -  1.12
  +++ PageDataImpl.java 28 Oct 2002 20:48:01 -  1.13
  @@ -251,7 +251,7 @@
public void visit(Node.Root n) throws JasperException {
if (n == this.root) {
// top-level page
  - appendTag(JSP_ROOT, n.getAttributes(), n.getBody());
  + appendTag(JSP_ROOT, n.getAttributes(), n.getBody(), null);
} else {
visitBody(n);
}
  @@ -266,7 +266,7 @@
public void visit(Node.JspRoot n) throws JasperException {
if (n == this.root) {
// top-level jsp:root element
  - appendTag(JSP_ROOT, n.getAttributes(), n.getBody());
  + appendTag(JSP_ROOT, n.getAttributes(), n.getBody(), null);
} else {
visitBody(n);
}
  @@ -286,79 +286,91 @@
}
   
public void visit(Node.Declaration n) throws JasperException {
  - appendTag(JSP_DECLARATION, n.getAttributes(), n.getText());
  + appendTag(JSP_DECLARATION, n.getAttributes(), null, n.getText());
}
   
public void visit(Node.Expression n) throws JasperException {
  - appendTag(JSP_EXPRESSION, n.getAttributes(), n.getText());
  + appendTag(JSP_EXPRESSION, n.getAttributes(), null, n.getText());
}
   
public void visit(Node.Scriptlet n) throws JasperException {
  - appendTag(JSP_SCRIPTLET, n.getAttributes(), n.getText());
  + appendTag(JSP_SCRIPTLET, n.getAttributes(), null, n.getText());
}
   
public void visit(Node.IncludeAction n) throws JasperException {
  - appendTag(JSP_INCLUDE, n.getAttributes(), n.getBody());
  + appendTag(JSP_INCLUDE, n.getAttributes(), n.getBody(), null);
}
   
public void visit(Node.ForwardAction n) throws JasperException {
  - appendTag(JSP_FORWARD, n.getAttributes(), n.getBody());
  + appendTag(JSP_FORWARD, n.getAttributes(), n.getBody(), null);
}
   
public void visit(Node.GetProperty n) throws JasperException {
  - appendTag(JSP_GET_PROPERTY, n.getAttributes(), n.getBody());
  + appendTag(JSP_GET_PROPERTY, n.getAttributes(), n.getBody(), null);
}
   
public void visit(Node.SetProperty n) throws JasperException {
  - appendTag(JSP_SET_PROPERTY, n.getAttributes(), n.getBody());
  + appendTag(JSP_SET_PROPERTY, n.getAttributes(), n.getBody(), null);
}
   
public void visit(Node.ParamAction n) throws JasperException {
  - appendTag(JSP_PARAM, n.getAttributes(), n.getBody());
  + appendTag(JSP_PARAM, n.getAttributes(), n.getBody(), null);
}
   
public void visit(Node.ParamsAction n) throws JasperException {
  - appendTag(JSP_PARAMS, n.getAttributes(), n.getBody());
  + appendTag(JSP_PARAMS, n.getAttributes(), n.getBody(), null);
}
   
public void visit(Node.FallBackAction n) throws JasperException {
  - appendTag(JSP_FALLBACK, n.getAttributes(), n.getBody());
  + appendTag(JSP_FALLBACK, n.getAttributes(), n.getBody(), null);
}
   
public void visit(Node.UseBean n) throws JasperException {
  - appendTag(JSP_USE_BEAN, n.getAttributes(), n.getBody());
  + appendTag(JSP_USE_BEAN, n.getAttributes(), n.getBody(), null);
}

public void visit(Node.PlugIn n) throws JasperException {
  - appendTag(JSP_PLUGIN, n.getAttributes(), n.getBody());
  + appendTag(JSP_PLUGIN, n.getAttributes(), n.getBody(), null);
}
   
   public void visit(Node.NamedAttribute n) throws JasperException {
  -appendTag(JSP_ATTRIBUTE, n.getAttributes(), n.getBody());
  +appendTag(JSP_ATTRIBUTE, n.getAttributes(), n.getBody(), null);
   }
   
   public void visit(Node.JspBody n) throws JasperException {
  -appendTag(JSP_BODY, n.getAttributes(), n.getBody());
  +appendTag(JSP_BODY, n.getAttributes(), n.getBody(), null);
   }
   
public void visit(Node.CustomTag n) throws JasperException {
  - appendTag(n.getName(), n.getAttributes(), n.getBody());
  + appendTag(n.getName(), n.getAttributes(), n.

DO NOT REPLY [Bug 14021] New: - Default RPM install fails WAR autodeploy due to directory permissions

2002-10-28 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=14021

Default RPM install fails WAR autodeploy due to directory permissions

   Summary: Default RPM install fails WAR autodeploy due to
directory permissions
   Product: Tomcat 4
   Version: 4.1.12
  Platform: All
OS/Version: Linux
Status: NEW
  Severity: Major
  Priority: Other
 Component: Unknown
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


On RedHat 7.3, the following simple steps create an installation which cannot
allow for the automatic deployment of WAR files.

1. Download tomcat4-4.1.12-full.2jpp.noarch.rpm
2. Install the RPM (rpm -Uvh ).
3. Download a WAR file (for example, download the latest Jetspeed)
4. Copy the .war file to /var/tomcat4/webapps
5. Start the tomcat server using the system's service command
   (on RH, use "service tomcat4 start")
6. Check the localhost_log..txt log file for the exception
   ("HostConfig[localhost] Exception while exapanding web application
   archive jetspeed.war").

The problem is that /var/tomcat4/webapps is owned by "root:tomcat4",
its permissions are 754 (rwxr-xr--), and the "service" runs as "tomcat4".
So tomcat4 cannot expand the .WAR file, thereby causing the exception.

Though easy enough once the cause of the error is know, it took quite some
time for me (a newbie to Tomcat) to determine the root of the problem (no pun
intended).

Thanks to folks on #tomcat for the guidance in tracking this down!

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [OT]Re: TOMCAT memory usage : how to manage and benchmark ?

2002-10-28 Thread Pier Fumagalli
"micael" <[EMAIL PROTECTED]> wrote:

> What operating system do you prefer, Pier?

We use Solaris both for Intel and Sun platforms... First reason being is
that we _know_ how that OS works, it's much more tuneable on live systems,
and much easier to configure when you know what you're doing...

Especially relating to Java, Solaris 8 was our platform of choice because of
threading support. Linux threads behave like processes (you see them in "ps"
for instance), that said it doesn't only have a "visual" disadvantage (that
same output can be generated on Solaris with "ps -AfL"), but also a
practical one... Limits and signals...

First of all, threads-as-processes are vulnerable to signals, and therefore,
given a bug in the VM (let's say a SEGV), what _can_ happen that only that
process dies (instead of the whole JVM set of processes), I've seen that
happening. Good point about that is that your Tomcat is going to be up, bad
point about that is that it's going to really mess up the JVM internals
(that's why Thread.kill() has been deprecated, and plus other random
reasons). Short story, threads-as-processes are much weaker than
threads-as-threads because of their behaviour towards the OS kernel...

Second point about Solaris 8 is the _two_ different configurations of
threads you can have... One is the default one, and works, but in some cases
(fixed number of threads, usually pooled, yadayadayada) a nice thing such as
"LWP" threads (used by pre-binding the /usr/lib/lwp/libthread.so in Java)
can come _really_ handy and delivers a _lot_ more performances... (this
helps a _lot_ also with Apache 2.0/worker).

Third reason, limits... In case of highly loaded environments, the kernel
will stop creating processes (and therefore threads under Linux) once the
process limit is reached, threads-as-threads don't suffer from that because
they are "nested" within their process scope, and the limit is _much_
higher.

File descriptor limits, memory limits, swapping, and so on, come for free
for us using Solaris, and it's _so_easy_ to tweak your network parameters on
live systems by tweaking the kernel with NDD (file descriptors are in
CLOSE_WAIT, no problem, set an NDD variable, and you're done)...

Plus, what the heck, Solaris 8 minimal install is probably 20 packages and
100 Mb for both 32 and 64 bits, while if you install RedHat, you can never
get below 400 Mb! :-) I love my disk space, and less code, less chances for
a bug, right??? :-)

It works for us, it has been working for ages, and we actually replaced all
our old Linux/x86 installations with Solaris8/x86.

That's production... For development, _of_course_ I use MacOS/X 10.2.2 which
is by far the best desktop on the planet... I've had a short test with an
X-Serve and load, performed allright (far better than a same-price Dell
box), but it went nowhere because at the same time we "inherited" a lot more
Sun Hardware for "free" (roughly! :-) so, we decided that we wanted to reuse
all those nice UltraSparc machines! :-)

Pier


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-5 build.xml

2002-10-28 Thread costin
costin  2002/10/28 11:32:44

  Modified:.build.xml
  Log:
  Few more fixes for the build target, a bit of regrouping.
  
  I think it works fine ( or good enough :-).
  
  Revision  ChangesPath
  1.53  +52 -9 jakarta-tomcat-5/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-5/build.xml,v
  retrieving revision 1.52
  retrieving revision 1.53
  diff -u -r1.52 -r1.53
  --- build.xml 28 Oct 2002 15:53:33 -  1.52
  +++ build.xml 28 Oct 2002 19:32:44 -  1.53
  @@ -24,6 +24,9 @@
 
 
   
  +  
  +
 
 
  @@ -97,6 +100,11 @@
 
   
   
  +
  +  
  +
  +
   
 
  @@ -147,6 +155,15 @@
 
 
 
  +
  +  
  +
  +  
  +  
  +  
  +  
  +  
  +
   
 
   
  @@ -158,14 +175,25 @@
   
 
 
  -  
  +  
   
 
   
  +  
  +== Building: tomcat-http11 
  +
  +
  +  
  +  
  +  
  +
  +  
   
 
  -== Building: admin ( ${admin.build.notrequired} ) 
  +== Building: admin 
   
 
 
  @@ -174,7 +202,6 @@
   
 
   
  -
 
   
  @@ -194,13 +221,9 @@
   
   
   
  -  
  -== Building: tomcat-httpd 
  -
  -
  -  
  -
   
  +
  +  
   == Building: jasper 
   
   
  @@ -211,10 +234,30 @@
   
   
   
  +  
  +
  +  
  +
  +  
  +== Building: commons-logging 
  +
  +
  +
  +
  +
  +
  +  
  +
  +  
  +
   
 
   
  +
  +
 
  +
 
   
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-5 BUILDING.txt

2002-10-28 Thread costin
costin  2002/10/28 11:31:32

  Modified:.BUILDING.txt
  Log:
  Added a short note on the build target
  
  Revision  ChangesPath
  1.27  +16 -1 jakarta-tomcat-5/BUILDING.txt
  
  Index: BUILDING.txt
  ===
  RCS file: /home/cvs/jakarta-tomcat-5/BUILDING.txt,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- BUILDING.txt  28 Oct 2002 09:36:33 -  1.26
  +++ BUILDING.txt  28 Oct 2002 19:31:32 -  1.27
  @@ -121,3 +121,18 @@
   
   cd ${tomcat.source}
   ant checkout
  +
  +(4) Rebuilds
  +
  +For a quick rebuild of only modified code you can use 
  +   
  +cd ${tomcat.source}
  +ant build
  +
  +In addition, "ant build-depends" will build packages that 
  +tomcat depends on ( commons-logging for now ), to ease fixes
  +and debuging in those packages.
  +
  +
  +
  +  
  \ No newline at end of file
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-5 build2.xml

2002-10-28 Thread costin
costin  2002/10/28 11:27:53

  Removed: .build2.xml
  Log:
  Remove the experimental file, all relevant logic has been merged.
  
  Use 'ant build' to do a quick(er) build ( that uses the original
  ant files ! ). The 'run' target is merged into catalina.xml next
  to launcher.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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

2002-10-28 Thread luehe
luehe   2002/10/28 11:25:47

  Modified:jasper2/src/share/org/apache/jasper/compiler
JspDocumentParser.java
  Log:
  Added support for URIs of the form:
urn:jsptagdir:
  
  Revision  ChangesPath
  1.21  +50 -25
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspDocumentParser.java
  
  Index: JspDocumentParser.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspDocumentParser.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- JspDocumentParser.java22 Oct 2002 03:00:20 -  1.20
  +++ JspDocumentParser.java28 Oct 2002 19:25:47 -  1.21
  @@ -87,6 +87,7 @@
   private static final String XMLNS_JSP = "xmlns:jsp";
   private static final String JSP_VERSION = "version";
   private static final String URN_JSPTLD = "urn:jsptld:";
  +private static final String URN_JSPTAGDIR = "urn:jsptagdir:";
   private static final String LEXICAL_HANDLER_PROPERTY
= "http://xml.org/sax/properties/lexical-handler";;
   
  @@ -505,7 +506,8 @@
   }
  
return new Node.CustomTag(attrs, start, qName, prefix, shortName,
  -   tagInfo, tagFileInfo, tagHandlerClass, parent);
  +   tagInfo, tagFileInfo, tagHandlerClass,
  +   parent);
   }
   
   /*
  @@ -533,35 +535,58 @@
continue;
}
   
  - // get the uri
  - String uri = attrs.getValue(i);
  - if (uri.startsWith(URN_JSPTLD)) {
  - // uri value is of the form "urn:jsptld:path"
  - uri = uri.substring(URN_JSPTLD.length());
  - }
  -
  -TldLocationsCache cache
  - = ctxt.getOptions().getTldLocationsCache();
  -TagLibraryInfo tl = cache.getTagLibraryInfo(uri);
  -if (tl == null) {
  -// get the location
  -String[] location = ctxt.getTldLocation(uri);
  -
  -tl = new TagLibraryInfoImpl(ctxt, parserController, prefix,
  - uri, location, err);
  -}
   if( taglibs.containsKey( prefix ) ) {
   // Prefix already in taglib map.
   throw new JasperException( err.getString(
   "jsp.error.xmlns.redefinition.notimplemented",
   prefix ) );
   }
  -else {
  -taglibs.put(prefix, tl);
  -result.removeAttribute( i );
  -}
  +
  + // get the uri
  + String uri = attrs.getValue(i);
  +
  + TagLibraryInfo tagLibInfo = null;
  + if (uri.startsWith(URN_JSPTAGDIR)) {
  + /*
  +  * uri references tag file directory
  +  * (is of the form "urn:jsptagdir:path")
  +  */
  + String tagdir = uri.substring(URN_JSPTAGDIR.length());
  + tagLibInfo = new ImplicitTagLibraryInfo(ctxt,
  + parserController,
  + prefix, 
  + tagdir,
  + err);
  + } else {
  + /*
  +  * uri references TLD file
  +  */
  + if (uri.startsWith(URN_JSPTLD)) {
  + // uri is of the form "urn:jsptld:path"
  + uri = uri.substring(URN_JSPTLD.length());
  + }
  +
  + TldLocationsCache cache
  + = ctxt.getOptions().getTldLocationsCache();
  + tagLibInfo = cache.getTagLibraryInfo(uri);
  + if (tagLibInfo == null) {
  + // get the location
  + String[] location = ctxt.getTldLocation(uri);
  +
  + tagLibInfo = new TagLibraryInfoImpl(ctxt,
  + parserController,
  + prefix,
  + uri,
  + location,
  + err);
  + }
  + }
  +
  + taglibs.put(prefix, tagLibInfo);
  + result.removeAttribute( i );
}
   }
  +
   return result;
   }
   
  
  
  

--
To unsubscribe, e-mail:   

RE: JkRequestLogFormat for JK 1.2.x on Apache 2.0 ?

2002-10-28 Thread Mladen Turk


> -Original Message-
> From: news [mailto:news@;main.gmane.org] On Behalf Of Costin Manolache
> Sent: Monday, October 28, 2002 6:40 PM
> To: [EMAIL PROTECTED]
> Subject: Re: JkRequestLogFormat for JK 1.2.x on Apache 2.0 ?
> 
> 
> Henri Gomez wrote:
> > 
> > I added 'JkRequestLogFormat' for Apache 2.0.
> > 
> 
> Henri - any chance you'll add this to jk2 as well :-) ?
> 

And to the logger_file too :-)

MT.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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

2002-10-28 Thread mturk
mturk   2002/10/28 11:09:26

  Modified:jk/native2/common jk_config.c
  Log:
  Simple patch that allows setting quasi-environment variables that
  will be resolved later in the config.
  If the option name starts with $ like $TOMCAT_HOME=/some/path
  then that will be set to the cfg->map and resolved later in the config.
  Keeps the config smaller and requires no reboot.
  
  Revision  ChangesPath
  1.28  +7 -2  jakarta-tomcat-connectors/jk/native2/common/jk_config.c
  
  Index: jk_config.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_config.c,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- jk_config.c   8 Jul 2002 13:40:54 -   1.27
  +++ jk_config.c   28 Oct 2002 19:09:25 -  1.28
  @@ -157,10 +157,15 @@
   strcat( pname, "." );
   strcat( pname, name );
   }
  -
  +
   name= cfg->pool->pstrdup( env, cfg->pool, name );
   val= cfg->pool->pstrdup( env, cfg->pool, val );
  -
  +
  +if (strlen(name) && *name == '$') {
  +cfg->map->put(env, cfg->map, name + 1, val, NULL);
  +return JK_OK;
  +}
  +
   /** Save it on the config. XXX no support for deleting yet */
   /* The _original_ value. Will be saved with $() in it */
   if( mbean->settings == NULL )
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/modules/server Http10Interceptor.java

2002-10-28 Thread keith
keith   2002/10/28 11:05:43

  Modified:src/share/org/apache/tomcat/modules/server
Http10Interceptor.java
  Log:
  This cast is sort of expensive, so avoid it if possible.
  
  Revision  ChangesPath
  1.35  +36 -20
jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Http10Interceptor.java
  
  Index: Http10Interceptor.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Http10Interceptor.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- Http10Interceptor.java12 Apr 2002 17:44:38 -  1.34
  +++ Http10Interceptor.java28 Oct 2002 19:05:40 -  1.35
  @@ -226,7 +226,12 @@
catch (IOException e) { /* ignore */ }
   }
   }
  - 
  +
  +/** Internal constants for getInfo */ 
  +private static final int GET_OTHER = 0;
  +private static final int GET_CIPHER_SUITE = 1;
  +private static final int GET_PEER_CERTIFICATE_CHAIN = 2;
  +
/**
  getInfo calls for SSL data

  @@ -238,28 +243,39 @@
  // attributes hand;ed here are HTTP. If you change that
  // you MUST change the test for sslSupport==null --EKR

  -   HttpRequest httpReq;
  +   if (key != null) {
  + int infoRequested = GET_OTHER;
  + if(key.equals("javax.servlet.request.cipher_suite"))
  +   infoRequested = GET_CIPHER_SUITE;
  + else if(key.equals("javax.servlet.request.X509Certificate"))
  +   infoRequested = GET_PEER_CERTIFICATE_CHAIN;
  +
  + if(infoRequested != GET_OTHER) {
  +   HttpRequest httpReq;
   
  -   
  -   try {
  - httpReq=(HttpRequest)request;
  -   } catch (ClassCastException e){
  - return null;
  -   }
  +   try {
  + httpReq=(HttpRequest)request;
  +   } catch (ClassCastException e){
  + return null;
  +   }

  -   if(key!=null && httpReq!=null && httpReq.sslSupport!=null){
  -   try {
  -   if(key.equals("javax.servlet.request.cipher_suite"))
  -   return httpReq.sslSupport.getCipherSuite();
  -   if(key.equals("javax.servlet.request.X509Certificate"))
  -   return httpReq.sslSupport.getPeerCertificateChain();
  -   } catch (Exception e){
  -   log("Exception getting SSL attribute " + key,e,Log.WARNING);
  -   return null;
  -   }
  -   }
  +   if (httpReq!=null && httpReq.sslSupport!=null){
  + try {
  +   switch (infoRequested) {
  + case GET_CIPHER_SUITE:
  +   return httpReq.sslSupport.getCipherSuite();
  + case GET_PEER_CERTIFICATE_CHAIN:
  +   return httpReq.sslSupport.getPeerCertificateChain();
  +   }
  + } catch (Exception e){
  +   log("Exception getting SSL attribute " + key,e,Log.WARNING);
  +   return null;
  + }
  +   } // if req != null
  + } // if asking for ssl attribute
  +   } // if key != null
  return super.getInfo(ctx,request,id,key);
  - }
  + } // getInfo
   }
   
   class HttpRequest extends Request {
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Réf. : Re: TOMCAT memory usage : how tomanage and benchmark ?

2002-10-28 Thread Pier Fumagalli
"Henri Gomez" <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
>
>> what is the goog hard config for 500 concurrent users on the same tomcat
>> server ?
> 
> It depend on your application, but I'll recommand a least 3 fast Intel
> based linux boxes, with about 512Mo of RAM, and in front an Apache
> 1.3/2.0 box + mod_jk.

Or just one Sun dual 440 UltraSparc IIi, 1 Gb/ram, Solaris 8 and some tweaks
(all in one box). That's our config, and that's roughly our traffic (ok,
maybe 300/400 concurrent request).

Henri's right... Depends on what your webapp has to do, though...

Pier


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[OT]Re: TOMCAT memory usage : how to manage and benchmark ?

2002-10-28 Thread micael
What operating system do you prefer, Pier?

At 01:31 PM 10/28/2002 +, you wrote:

"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> So,
>
> My first question is : why tomcat use all the memory while there is no
> users connected (or just one) ?

The JVM allocates chunks of memory (see the -Xmx and -Xms flags by invoking
"java -X") and manages them... So, one user, 100 users, same thing...

> My second question is : how much memory is needed if I want to use tomcat
> with many users (500, 1000,...) ?

On a 5 millions hits/day server (not running Tomcat, another servlet
container since Tomcat doesn't work for us), we have the VM starting with 1
Gigs of RAM ("java -server -Xmx 1024m -Xms 1024m ...") but we use half of it
(roughly) to cache data from the DB...

> I already read in the forum Tomcat don't manage the memory, it is the
> JVM... so why the jvm use so many processes ?

Those are _not_ processes, they are threads... Use a decent operating system
that supports them nicely (not Linux) and you'll see the difference (how
many times do I have to repeat this?)... Linux sucks :-(

Pier


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



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

2002-10-28 Thread luehe
luehe   2002/10/28 10:49:07

  Modified:jasper2/src/share/org/apache/jasper/compiler
PageDataImpl.java
  Log:
  Added support for  and  to XML view of tag files.
  
  Revision  ChangesPath
  1.12  +11 -3 
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/PageDataImpl.java
  
  Index: PageDataImpl.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/PageDataImpl.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- PageDataImpl.java 21 Oct 2002 20:13:32 -  1.11
  +++ PageDataImpl.java 28 Oct 2002 18:49:07 -  1.12
  @@ -352,6 +352,14 @@
public void visit(Node.JspText n) throws JasperException {
appendTag(JSP_TEXT, n.getAttributes(), n.getBody());
}
  +
  + public void visit(Node.DoBodyAction n) throws JasperException {
  + appendTag(JSP_DO_BODY, n.getAttributes(), n.getBody());
  + }
  +
  +public void visit(Node.InvokeAction n) throws JasperException {
  + appendTag(JSP_INVOKE, n.getAttributes(), n.getBody());
  + }
   
public void visit(Node.TemplateText n) throws JasperException {
/*
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DO NOT REPLY [Bug 14019] - Problem with endorsed in Catalina.bat

2002-10-28 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=14019

Problem with endorsed in Catalina.bat





--- Additional Comments From [EMAIL PROTECTED]  2002-10-28 18:29 ---
Created an attachment (id=3632)
file with problem in the setting

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DO NOT REPLY [Bug 14019] New: - Problem with endorsed in Catalina.bat

2002-10-28 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=14019

Problem with endorsed in Catalina.bat

   Summary: Problem with endorsed in Catalina.bat
   Product: Tomcat 4
   Version: 4.1.12
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: Blocker
  Priority: Other
 Component: Catalina
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


This is the error message that i receive when a run startup.bat
Cannot find the file '-Djava.endorsed.dirs=D:\Tomcat 4.1\common\endorsed' (or
one of its components). Make sure the path and file name are correct and all
required libraries are available.

this is my Catalina.bat file

@echo off
if "%OS%" == "Windows_NT" setlocal
rem ---
rem Start/Stop Script for the CATALINA Server
rem
rem Environment Variable Prequisites
rem
rem   CATALINA_HOME   May point at your Catalina "build" directory.
rem
rem   CATALINA_BASE   (Optional) Base directory for resolving dynamic portions
rem   of a Catalina installation.  If not present, resolves to
rem   the same directory that CATALINA_HOME points to.
rem
rem   CATALINA_OPTS   (Optional) Java runtime options used when the "start",
rem   "stop", or "run" command is executed.
rem
rem   CATALINA_TMPDIR (Optional) Directory path location of temporary directory
rem   the JVM should use (java.io.tmpdir).  Defaults to
rem   %CATALINA_BASE%\temp.
rem
rem   JAVA_HOME   Must point at your Java Development Kit installation.
rem
rem   JAVA_OPTS   (Optional) Java runtime options used when the "start",
rem   "stop", or "run" command is executed.
rem
rem   JSSE_HOME   (Optional) May point at your Java Secure Sockets Extension
rem   (JSSE) installation, whose JAR files will be added to the
rem   system class path used to start Tomcat.
rem
rem   JPDA_TRANSPORT  (Optional) JPDA transport used when the "jpda start"
rem   command is executed. The default is "dt_shmem".
rem
rem   JPDA_ADDRESS(Optional) Java runtime options used when the "jpda start"
rem   command is executed. The default is "jdbconn".
rem
rem $Id: catalina.bat,v 1.29 2002/04/01 19:51:31 patrickl Exp $
rem ---

rem Guess CATALINA_HOME if not defined
if not "D:\Tomcat 4.1" == "" goto gotHome
set CATALINA_HOME=.
if exist "D:\Tomcat 4.1\bin\catalina.bat" goto okHome
set CATALINA_HOME=..
:gotHome
if exist "D:\Tomcat 4.1\bin\catalina.bat" goto okHome
echo The CATALINA_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto end
:okHome

rem Get standard environment variables
if exist "D:\Tomcat 4.1\bin\setenv.bat" call "D:\Tomcat 4.1\bin\setenv.bat"

rem Get standard Java environment variables
if exist "D:\Tomcat 4.1\bin\setclasspath.bat" goto okSetclasspath
echo Cannot find D:\Tomcat 4.1\bin\setclasspath.bat
echo This file is needed to run this program
goto end
:okSetclasspath
set BASEDIR=D:\Tomcat 4.1
call "D:\Tomcat 4.1\bin\setclasspath.bat"

rem Add on extra jar files to CLASSPATH
if "%JSSE_HOME%" == "" goto noJsse
set
CLASSPATH=%CLASSPATH%;%JSSE_HOME%\lib\jcert.jar;%JSSE_HOME%\lib\jnet.jar;%JSSE_HOME%\lib\jsse.jar
:noJsse
set CLASSPATH=%CLASSPATH%;D:\Tomcat 4.1\bin\bootstrap.jar

if not "%CATALINA_BASE%" == "" goto gotBase
set CATALINA_BASE=D:\Tomcat 4.1
:gotBase

if not "%CATALINA_TMPDIR%" == "" goto gotTmpdir
set CATALINA_TMPDIR=%CATALINA_BASE%\temp
:gotTmpdir

rem - Execute The Requested Command ---

echo Using CATALINA_BASE:   %CATALINA_BASE%
echo Using CATALINA_HOME:   D:\Tomcat 4.1
echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR%
echo Using JAVA_HOME:   C:\jdk1.3.0_02

set _EXECJAVA=%_RUNJAVA%
set MAINCLASS=org.apache.catalina.startup.Bootstrap
set ACTION=start
set SECURITY_POLICY_FILE=
set DEBUG_OPTS=
set JPDA=

if not ""%1"" == ""jpda"" goto noJpda
set JPDA=jpda
if not "%JPDA_TRANSPORT%" == "" goto gotJpdaTransport
set JPDA_TRANSPORT=dt_shmem
:gotJpdaTransport
if not "%JPDA_ADDRESS%" == "" goto gotJpdaAddress
set JPDA_ADDRESS=jdbconn
:gotJpdaAddress
shift
:noJpda

if ""%1"" == ""debug"" goto doDebug
if ""%1"" == ""embedded"" goto doEmbedded
if ""%1"" == ""run"" goto doRun
if ""%1"" == ""start"" goto doStart
if ""%1"" == ""stop"" goto doStop

echo Usage:  catalina ( commands ... )
echo commands:
echo   debug Start Catalina in a debugger
echo   debug -security   Debug Catalina with a security manager

cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/resources messages.properties messages_es.properties messages_ja.properties

2002-10-28 Thread luehe
luehe   2002/10/28 10:16:21

  Modified:jasper2/src/share/org/apache/jasper
JspCompilationContext.java
   jasper2/src/share/org/apache/jasper/compiler Generator.java
Parser.java ScriptingVariabler.java
TagFileProcessor.java TagLibraryInfoImpl.java
Validator.java
   jasper2/src/share/org/apache/jasper/runtime
JspContextWrapper.java JspFragmentHelper.java
   jasper2/src/share/org/apache/jasper/servlet
JspServletWrapper.java
   jasper2/src/share/org/apache/jasper/resources
messages.properties messages_es.properties
messages_ja.properties
  Log:
  - Removed support for fragment-scoped variables.
  
  - Implemented new fragment invocation protocol:
  
* Variables appear as page-scoped attributes local to the tag file,
  and are synchronized with the calling page context at various points.
  
* Fragment invocations can no longer be parameterized.
  
  Revision  ChangesPath
  1.24  +3 -10 
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspCompilationContext.java
  
  Index: JspCompilationContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspCompilationContext.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- JspCompilationContext.java21 Oct 2002 18:44:00 -  1.23
  +++ JspCompilationContext.java28 Oct 2002 18:16:19 -  1.24
  @@ -122,7 +122,6 @@
   private boolean isTagFile;
   private boolean protoTypeMode;
   private TagInfo tagInfo;
  -private TagData tagData;
   
   // jspURI _must_ be relative to the context
   public JspCompilationContext(String jspUri,
  @@ -159,7 +158,6 @@
   
   public JspCompilationContext(String tagfile,
 TagInfo tagInfo, 
  -  TagData tagData,
Options options,
ServletContext context,
 JspServletWrapper jsw,
  @@ -169,7 +167,6 @@
   this(tagfile, false, options, context, jsw, rctxt);
   this.isTagFile = true;
   this.tagInfo = tagInfo;
  - this.tagData = tagData;
this.tagFileJars = tagFileJars;
if (tagFileJars != null && tagFileJars.get(tagfile) != null) {
isPackagedTagFile = true;
  @@ -378,10 +375,6 @@
   
   public void setPrototypeMode(boolean pm) {
protoTypeMode = pm;
  -}
  -
  -public TagData getTagData() {
  - return tagData;
   }
   
   /**
  
  
  
  1.112 +64 -197   
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Generator.java
  
  Index: Generator.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Generator.java,v
  retrieving revision 1.111
  retrieving revision 1.112
  diff -u -r1.111 -r1.112
  --- Generator.java17 Oct 2002 21:38:56 -  1.111
  +++ Generator.java28 Oct 2002 18:16:19 -  1.112
  @@ -1832,85 +1832,28 @@
   
   public void visit(Node.InvokeAction n) throws JasperException {
   
  - /**
  -  * A visitor to handle  in a 
  -  */
  - class ParamVisitor extends Node.Visitor {
  + // Copy virtual page scope of tag file to page scope of invoking
  + // page
  + out.printil("((org.apache.jasper.runtime.JspContextWrapper) 
jspContext).copyTagToPageScope(javax.servlet.jsp.tagext.VariableInfo.NESTED);");
  + out.printil("((org.apache.jasper.runtime.JspContextWrapper) 
jspContext).copyTagToPageScope(javax.servlet.jsp.tagext.VariableInfo.AT_BEGIN);");
   
  - // The name of the fragment to which the  applies
  - private String fragName;
  -
  - public ParamVisitor(String fragName) {
  - this.fragName = fragName;
  - }
  -
  -public void visit(Node.ParamAction n) throws JasperException {
  - out.printin("_jspx_params.put(");
  - out.print(quote(n.getTextAttribute("name")));
  - out.print(", ");
  - out.print(attributeValue(n.getValue(), false,
  -  getParamClass(n), "null"));
  - out.println(");");
  - }
  -
  - /*
  -  * Checks to see if the given  matches a tag file
  -  * variable scoped to the same fragment as the enclosing
  -  * . If a match is found, the class specified in
  -  * the variable directive's 'variable-class' attribute (if 

cvs commit: jakarta-servletapi-5/jsr152/src/share/javax/servlet/jsp/tagext JspFragment.java TagVariableInfo.java

2002-10-28 Thread kinman
kinman  2002/10/28 09:45:44

  Modified:jsr152/examples/WEB-INF/classes/jsp2/examples/simpletag
RepeatSimpleTag.java ShuffleSimpleTag.java
   jsr152/examples/WEB-INF/tags displayProducts.tag
   jsr152/src/share/javax/servlet/jsp/tagext JspFragment.java
TagVariableInfo.java
  Added:   jsr152/examples/WEB-INF/lib jstl.jar standard.jar
  Log:
  - Patch by Jan Leuhe
  
  attached is a patch for the jakarta-servletapi-5 repository including
  the following changes:
  
  - TagVariableInfo.java:
* Removed constructor that takes the name of a fragment.
* Removed getFragment().
* Removed private field "fragment".
  
  - JspFragment.java:
* Removed Map parameter from invoke().
  
  - Updated the "simpletag" and "tagfiles" examples accordingly.
  
  Please notice that the patch also requires adding JSTL to the
  examples.war webapp. This is required because this webapp's tag files
  need to use JSTL's  action to set scoped variables before
  fragment invocations, now that  and  no longer
  have a nested .
  
  Revision  ChangesPath
  1.2   +2 -3  
jakarta-servletapi-5/jsr152/examples/WEB-INF/classes/jsp2/examples/simpletag/RepeatSimpleTag.java
  
  Index: RepeatSimpleTag.java
  ===
  RCS file: 
/home/cvs/jakarta-servletapi-5/jsr152/examples/WEB-INF/classes/jsp2/examples/simpletag/RepeatSimpleTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RepeatSimpleTag.java  7 Sep 2002 00:47:59 -   1.1
  +++ RepeatSimpleTag.java  28 Oct 2002 17:45:43 -  1.2
  @@ -18,10 +18,9 @@
   private int num;
   
   public void doTag() throws JspException, IOException {
  -HashMap params = new HashMap();
   for (int i=0; i@ -23,34 +23,34 @@
   public void doTag() throws JspException, IOException {
   switch( (int)(Math.random() * 6) ) {
   case 0:
  -fragment1.invoke( null, null );
  -fragment2.invoke( null, null );
  -fragment3.invoke( null, null );
  +fragment1.invoke( null );
  +fragment2.invoke( null );
  +fragment3.invoke( null );
   break;
   case 1:
  -fragment1.invoke( null, null );
  -fragment3.invoke( null, null );
  -fragment2.invoke( null, null );
  +fragment1.invoke( null );
  +fragment3.invoke( null );
  +fragment2.invoke( null );
   break;
   case 2:
  -fragment2.invoke( null, null );
  -fragment1.invoke( null, null );
  -fragment3.invoke( null, null );
  +fragment2.invoke( null );
  +fragment1.invoke( null );
  +fragment3.invoke( null );
   break;
   case 3:
  -fragment2.invoke( null, null );
  -fragment3.invoke( null, null );
  -fragment1.invoke( null, null );
  +fragment2.invoke( null );
  +fragment3.invoke( null );
  +fragment1.invoke( null );
   break;
   case 4:
  -fragment3.invoke( null, null );
  -fragment1.invoke( null, null );
  -fragment2.invoke( null, null );
  +fragment3.invoke( null );
  +fragment1.invoke( null );
  +fragment2.invoke( null );
   break;
   case 5:
  -fragment3.invoke( null, null );
  -fragment2.invoke( null, null );
  -fragment1.invoke( null, null );
  +fragment3.invoke( null );
  +fragment2.invoke( null );
  +fragment1.invoke( null );
   break;
   }
   }
  
  
  
  1.1  jakarta-servletapi-5/jsr152/examples/WEB-INF/lib/jstl.jar
  
<>
  
  
  1.1  jakarta-servletapi-5/jsr152/examples/WEB-INF/lib/standard.jar
  
<>
  
  
  1.2   +22 -27
jakarta-servletapi-5/jsr152/examples/WEB-INF/tags/displayProducts.tag
  
  Index: displayProducts.tag
  ===
  RCS file: 
/home/cvs/jakarta-servletapi-5/jsr152/examples/WEB-INF/tags/displayProducts.tag,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- displayProducts.tag   9 Sep 2002 18:01:20 -   1.1
  +++ displayProducts.tag   28 Oct 2002 17:45:44 -  1.2
  @@ -2,47 +2,42 @@
  - Copyright (c) 2002 The Apache Software Foundation.  All rights 
  - reserved.
   --%>
  +<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"; %>
   <%@ attribute name="normalPrice" fragment=

Re: JkRequestLogFormat for JK 1.2.x on Apache 2.0 ?

2002-10-28 Thread Costin Manolache
Henri Gomez wrote:

> Henri Gomez wrote:
>> Did someone try to port 'JkRequestLogFormat' to Apache 2.0 ?
>> 
>> For instance I wonder about :
>> 
>> ap_bgetopt(r->connection->client, BO_BYTECT, &bs);
>> 
> 
> I added 'JkRequestLogFormat' for Apache 2.0.
> 
> Glenn could you take a look ?
> 
> Regards
> 
> BTW : I think I will make a JK 1.2.1 release to include this fix.

Henri - any chance you'll add this to jk2 as well :-) ?

-- 
Costin



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-servletapi-5/jsr152/examples/WEB-INF/lib - New directory

2002-10-28 Thread kinman
kinman  2002/10/28 09:42:36

  jakarta-servletapi-5/jsr152/examples/WEB-INF/lib - New directory

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DO NOT REPLY [Bug 10036] - Unable to resolve a class name without a package definition

2002-10-28 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=10036

Unable to resolve a class name without a package definition

[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]



--- Additional Comments From [EMAIL PROTECTED]  2002-10-28 17:25 ---
*** Bug 13999 has been marked as a duplicate of this bug. ***

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DO NOT REPLY [Bug 13999] - Tomcat 4.1.12's classloader can't find non-packaged .class-files in $CATALINA_HOME/webapps//WEB-INF/classes

2002-10-28 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=13999

Tomcat 4.1.12's classloader can't find non-packaged .class-files in 
$CATALINA_HOME/webapps//WEB-INF/classes

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE



--- Additional Comments From [EMAIL PROTECTED]  2002-10-28 17:25 ---


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

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Réf. : Re: TOMCAT memory usage : how to manage and benchmark ?

2002-10-28 Thread Henri Gomez
[EMAIL PROTECTED] wrote:

G...

Always the same problem!

I tried in the tomcat.conf script :

JAVACMD="$JAVA_HOME/bin/java -Xms128m -Xmx256m"

or in the dtomcat4 :

JAVA_OPTS=" -server -Xms128m -Xmx256m"

--> The memory used by my tomcat reach 300 MO or more with 0 user
connected...

Why ?


It may be :

- your application init stage

- admin/manager (remove them if you don't need them)


what is the goog hard config for 500 concurrent users on the same tomcat
server ?


It depend on your application, but I'll recommand a least 3 fast Intel 
based linux boxes, with about 512Mo of RAM, and in front an Apache 
1.3/2.0 box + mod_jk.

But it depend really on what your application is doing...




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Réf. : Re: TOMCAT memory usage : how to manageand benchmark ?

2002-10-28 Thread Patrice . Boucher

G...

Always the same problem!

I tried in the tomcat.conf script :

JAVACMD="$JAVA_HOME/bin/java -Xms128m -Xmx256m"

or in the dtomcat4 :

JAVA_OPTS=" -server -Xms128m -Xmx256m"

--> The memory used by my tomcat reach 300 MO or more with 0 user
connected...

Why ?

what is the goog hard config for 500 concurrent users on the same tomcat
server ?

Thanks.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DO NOT REPLY [Bug 13978] - Tomcat 4.1.13 does not start correctly when using Xerces 2.2.0

2002-10-28 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=13978

Tomcat 4.1.13 does not start correctly when using Xerces 2.2.0





--- Additional Comments From [EMAIL PROTECTED]  2002-10-28 16:36 ---
FYI .. we use Xerces 2.2 in a highly multi-threaded environment and have no 
problems whatsoever.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-5 build.xml tomcat.nsi

2002-10-28 Thread remm
remm2002/10/28 07:53:33

  Modified:.build.xml tomcat.nsi
  Log:
  - Cleanup installoptions support.
  - Update to NSIS nightly.
  
  Revision  ChangesPath
  1.52  +3 -2  jakarta-tomcat-5/build.xml
  
  Index: build.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-5/build.xml,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- build.xml 26 Oct 2002 18:52:56 -  1.51
  +++ build.xml 28 Oct 2002 15:53:33 -  1.52
  @@ -508,8 +508,9 @@
   
   
 
  -
  -
  +
  +
  +
   
 
   
  
  
  
  1.11  +61 -86jakarta-tomcat-5/tomcat.nsi
  
  Index: tomcat.nsi
  ===
  RCS file: /home/cvs/jakarta-tomcat-5/tomcat.nsi,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- tomcat.nsi26 Oct 2002 14:20:47 -  1.10
  +++ tomcat.nsi28 Oct 2002 15:53:33 -  1.11
  @@ -5,22 +5,27 @@
   !define NAME "Apache Tomcat"
   !define VERSION "@VERSION@"
   
  -!verbose 3
  -  !include "${NSISDIR}\Contrib\Modern UI\System.nsh"
  -!verbose 4
  +!include "${NSISDIR}\Contrib\Modern UI\System.nsh"
   
   ;
   ;Configuration
   
  +  !define MUI_INSTALLOPTIONS
  +
 !define MUI_LICENSEPAGE
 !define MUI_COMPONENTPAGE
 !define MUI_DIRSELECTPAGE
  +  !define MUI_INSTALLBUTTONTEXT_NEXT
  +  !define MUI_ABORTWARNING
 !define MUI_UNINSTALLER
   
  +  !define MUI_SETPAGE_FUNCTIONNAME "SetPage"
  +  !define MUI_UNSETPAGE_FUNCTIONNAME "un.SetPage"
  +
 ;Language
   ;English
   LoadLanguageFile "${NSISDIR}\Contrib\Language files\English.nlf"
  -!include "${NSISDIR}\Contrib\Modern UI\English.nsh"
  +!include "${NSISDIR}\Contrib\Modern UI\Language files\English.nsh"
   
 ;General
 Name "${NAME} ${VERSION}"
  @@ -33,7 +38,8 @@
 SetCompressor bzip2
 SetDatablockOptimize on
   
  -  !insertmacro MUI_INTERFACE "modern.exe" "adni18-installer-C-no48xp.ico" 
"adni18-uninstall-C-no48xp.ico" "modern.bmp" "smooth" "$9"
  +  !insertmacro MUI_INTERFACE
  +  !insertmacro MUI_INSTALLOPTIONS "$7" "$8"
   
 ;License dialog
 LicenseData INSTALLLICENSE
  @@ -49,6 +55,9 @@
 ; Main registry key
 InstallDirRegKey HKLM "SOFTWARE\Apache Group\Tomcat\5.0" ""
   
  +  ReserveFile "${NSISDIR}\Plugins\InstallOptions.dll"
  +  ReserveFile "config.ini"
  +
   SubSection "Tomcat" SecTomcat
   
   Section "Core" SecTomcatCore
  @@ -77,6 +86,8 @@
 CopyFiles "$2\lib\tools.jar" "$INSTDIR\common\lib" 4500
 BringToFront
   
  +  Call configure
  +
   SectionEnd
   
   Section "Service" SecTomcatService
  @@ -110,15 +121,6 @@
 SetOutPath $INSTDIR\webapps
 File /r webapps\tomcat-docs
   
  -  IfFileExists "$SMPROGRAMS\Apache Tomcat 5.0" 0 NoLinks
  -
  -  SetOutPath "$SMPROGRAMS\Apache Tomcat 5.0"
  -
  -  CreateShortCut "$SMPROGRAMS\Apache Tomcat 5.0\Tomcat Documentation.lnk" \
  - "$INSTDIR\webapps\tomcat-docs\index.html"
  -
  - NoLinks:
  -
   SectionEnd
   
   SubSectionEnd
  @@ -135,6 +137,19 @@
 CreateShortCut "$SMPROGRAMS\Apache Tomcat 5.0\Tomcat Home Page.lnk" \
"http://jakarta.apache.org/tomcat";
   
  +  CreateShortCut "$SMPROGRAMS\Apache Tomcat 5.0\Welcome.lnk" \
  + "http://127.0.0.1:$R0/";
  +
  +  CreateShortCut "$SMPROGRAMS\Apache Tomcat 5.0\Tomcat Administration.lnk" \
  + "http://127.0.0.1:$R0/admin/";
  +
  +  IfFileExists "$INSTDIR\webapps\webapps\tomcat-docs" 0 NoDocumentaion
  +
  +  CreateShortCut "$SMPROGRAMS\Apache Tomcat 5.0\Tomcat Documentation.lnk" \
  + "$INSTDIR\webapps\tomcat-docs\index.html"
  +
  +NoDocumentaion:
  +
 CreateShortCut "$SMPROGRAMS\Apache Tomcat 5.0\Uninstall Tomcat 5.0.lnk" \
"$INSTDIR\Uninstall.exe"
   
  @@ -164,9 +179,14 @@
   
   SectionEnd
   
  -Section -post
  +Section ""
  +
  +  ;Invisible section to display the Finish header
  +  !insertmacro MUI_FINISHHEADER
   
  -  !insertmacro MUI_FINISHHEADER SetPage
  +SectionEnd
  +
  +Section -post
   
 WriteUninstaller "$INSTDIR\Uninstall.exe"
   
  @@ -186,6 +206,8 @@
   
   Function .onInit
   
  +  !insertmacro MUI_INSTALLOPTIONS_EXTRACT "config.ini"
  +
 ClearErrors
   
 Call findJavaPath
  @@ -225,13 +247,15 @@
   
   Function .onNextPage
   
  -  !insertmacro MUI_NEXTPAGE SetPage
  +  !insertmacro MUI_INSTALLOPTIONS_NEXTPAGE
  +  !insertmacro MUI_NEXTPAGE
   
   FunctionEnd
   
   Function .onPrevPage
   
  -  !insertmacro MUI_PREVPAGE SetPage
  +  !insertmacro MUI_INSTALLOPTIONS_PREVPAGE
  +  !insertmacro MUI_PREVPAGE
   
   FunctionEnd
   
  @@ -252,12 +276,18 @@
  !insertmacro MUI_PAGE_STOP 3
   
   !insertmacro MUI_PAGE_START 4
  -  !insertmacro MUI_HEADER_TEXT $(MUI_TEXT_INSTALLING_TITLE) 
$(MU

DO NOT REPLY [Bug 14017] New: - I have written a small howto on jk2, apache 2.0.43, tomcat 4.1.12 and virtual hosting on Linux. It should go into: jakarta-tomcat-connectors/jk/xdocs/jk2

2002-10-28 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=14017

I have written a small howto on jk2, apache 2.0.43, tomcat 4.1.12 and virtual hosting 
on Linux. It should go into: jakarta-tomcat-connectors/jk/xdocs/jk2 

   Summary: I have written a small howto on jk2, apache 2.0.43,
tomcat 4.1.12 and virtual hosting on Linux. It should go
into: jakarta-tomcat-connectors/jk/xdocs/jk2
   Product: Tomcat 4
   Version: 4.1.12
  Platform: All
OS/Version: Linux
Status: NEW
  Severity: Enhancement
  Priority: Other
 Component: Connector:Coyote JK 2
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]





Apache 2.0.43 - Tomcat 4.1.12 - jk2 - virtual host HOWTO
Umberto Nicoletti
Tue 22 Oct 2002 11:58:28 AM GMT-5




Insert usual disclaimer here.

unusual disclaimer
Please forget:
1) my English
2) typos
3) names of hosts and installation directories


Also be warned that this is a beta version I just wrote as a reminder. if you
encounter errors or discrepancies between what it is written here and what
happens to
you following this howto (or just want to point out something more clearly) please
email me a corrected version of this HOWTO.





RedHat Linux 7.2
Latest 1.4.x Sun JDK:
#java -version
java version "1.4.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)
Tomcat 4.1.12 binary
Apache 2.0.43 built from source
[./configure -prefix=/usr/local/apache2.0.43 --sysconfdir=/etc/apache
--localstatedir=/var --disable-dav --enable-so --enable-proxy
--enable-proxy-connect --enable-proxy-http]
jk2 connector binary from jakarta.apache.org





Deploy three (in my case) web applications under three different virtual hosts,
making the default vhost
respond to any name and to the bare IP address.




Note: download the jdk, not just the jre!

Uncompress the jdk somewhere in the filesystem:
I chose /usr/local/:

[root@ARLIN72AGE279 apache]# ll /usr/local/ 
total 48
lrwxrwxrwx1 root root   13 Oct 18 17:20 apache -> apache2.0.43/
drwxr-xr-x   15 root root 4096 Oct 21 16:40 apache2.0.43
drwxr-xr-x2 root root 4096 Feb  6  1996 bin
drwxr-xr-x2 root root 4096 Feb  6  1996 doc
drwxr-xr-x2 root root 4096 Feb  6  1996 etc
drwxr-xr-x2 root root 4096 Feb  6  1996 games
drwxr-xr-x2 root root 4096 Jun 22  2001 include
drwxr-xr-x9 root root 4096 Oct 18 16:37 j2sdk1.4.1_01
lrwxrwxrwx1 root root   14 Oct 18 16:38 java -> j2sdk1.4.1_01/
drwxr-xr-x2 root root 4096 Feb  6  1996 lib
drwxr-xr-x2 root root 4096 Jun 22  2001 libexec
drwxr-xr-x2 root root 4096 Feb  6  1996 sbin
drwxr-xr-x4 root root 4096 Oct 18 13:07 share
drwxr-xr-x2 root root 4096 Feb  6  1996 src

make a symlink named java to j2sdk1.4.1_01/ so that you can
easily switch back and forth
between different jvms. We will use the same trick for apache and tomcat afterwards.


Now tell your bash shell where to find java binaries: create a file named java.sh in
/etc/profile.d with the following content:

[root@ARLIN72AGE279 apache]# cat /etc/profile.d/java.sh 
# set java environment

export JAVA_HOME=/usr/local/java
export PATH=$PATH:$JAVA_HOME/bin

export CLASSPATH=$JAVA_HOME/lib

do a chmod:

#chmod 700 /etc/profile.d/java.sh

Now open a new shell and try this:

[root@ARLIN72AGE279 apache]# which java
/usr/local/java/bin/java

You should get the answer given above. If not chek your environment and make
sure that java.sh is executed
when opening a new shell.
Try to run a java program or the following: java -version.


If you don't like this way of installing java please ignore it.

Make sure everything is ok and then jump to next step.





Download the latest release, uncompress it, cd into the newly created directory
and run the following:

[root@ARLIN72AGE279 apache]# ./configure -prefix=/usr/local/apache2.0.43
--sysconfdir=/etc/apache --localstatedir=/var --disable-dav --enable-so

Of course you can customize the installation specifying other modules to enable
or whatever you like.
Just don't forget to ENABLE-SO, because that's what you need to load the
apache-tomcat connector.


Run make and make install. Create the log directories and others (you can skip
this if you know how
to configure where apache puts its log files -> edit httpd.conf):

#mkdir /var/logs
#mkdir /usr/local/apache2.0.43/conf
#mkdir /usr/lo

DO NOT REPLY [Bug 11197] - Filters and JSP.3.2

2002-10-28 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=11197

Filters and JSP.3.2

[EMAIL PROTECTED] changed:

   What|Removed |Added

  Component|Catalina|Jasper

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DO NOT REPLY [Bug 13989] - Linux's binary mod_jk2-1.3-noeapi.so and mod_jk-1.3-noeapi.so does not work on Apache 1.3.27

2002-10-28 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=13989

Linux's binary mod_jk2-1.3-noeapi.so and mod_jk-1.3-noeapi.so does not work on Apache 
1.3.27





--- Additional Comments From [EMAIL PROTECTED]  2002-10-28 15:38 ---
The function ap_ctx_get is defined in pkg.eapi/ap_ctx.c.
This is one of the function in EAPI, not exists in NO-EAPI environment.
But, mod_jk-1.3-noeapi.so and mod_jk2-noepai.so have invalid reference to
ap_ctx_get.
(please check using nm command.)

| apache 1.3.22 (+ latest security fixes back ported)
| mod_ssl 2.8.5

I think above environment is enabled EAPI, because mod_ssl is installed.
Please uninstall mod_ssl and rebuild apache, check mod_jk-1.3-noeapi.so and
mod_jk2-noeapi.so, again.

| My question will be :
| - which distribution are you using ?

My environment is following:
distribution Vine Linux 2.5(based on RedHat 6.2, Libraries 7.2)
kernel 2.4.18
glibc 2.2.4
apache apache-1.3.27(not rpm)

Thanks,

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DO NOT REPLY [Bug 14008] - Error in taglib iterator

2002-10-28 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=14008

Error in taglib iterator

[EMAIL PROTECTED] changed:

   What|Removed |Added

  Component|Servlet & JSP API   |Jasper



--- Additional Comments From [EMAIL PROTECTED]  2002-10-28 15:36 ---
I think it is Jasper's bug.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




mod_jk issues

2002-10-28 Thread Jason Corley
I've noticed some interesting behavior with mod_jk 1.2 now that I've 
got it working with 4.1.12.  The following does not work properly
(apache serves a text index.jsp instead of passing it to tomcat):
 
-
 
JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel error
 
JkMount /*.jsp loadbalancer
JkMount /*.do loadbalancer

Alias /licensemanager "/var/tomcat4/webapps/licensemanager"

Options Indexes FollowSymLinks


JkMount /licensemanager/*.jsp loadbalancer
JkMount /licensemanager/*.do loadbalancer

-

Is there something wrong with this mod_jk.conf?  Does this configuration
(basically the same as the examples) work for others?  I'm running tomcat
4.1.12 with mod_jk 1.2.0 and apache 1.3.23 on Red Hat 7.3.
Thanks,
Jason

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [5.0] New build documentation, docs online

2002-10-28 Thread Jean-Francois Arcand


Bob Herrmann wrote:


On Mon, 2002-10-28 at 05:07, Remy Maucherat wrote:
 

New Tomcat 5.0 docs online (linked from the main Tomcat page):
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html

New building documentation:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/BUILDING.txt

Comments ?
   


Humm...  I used JDK1.4.x and I have clean built several times, but I
never had to download Xerces.  Does JDK1.4 or ant include Xerces or
something?  I think the Xerces step maybe optional with JDK1.4.


Yes ;-) You use by default the 1.4 parser, which is Crimson. If you try 
to turn on validation, Crimson will not be able to parse properly your 
xml file that contains link to XML schema.

That's why we need Xerces 2.1 (not 2.0.1, 2.0.2 or 2.2 ;-) )

-- Jeanfrancois


Cheers,
-bob 


 

Remy


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 
   



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


 



DO NOT REPLY [Bug 13978] - Tomcat 4.1.13 does not start correctly when using Xerces 2.2.0

2002-10-28 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=13978

Tomcat 4.1.13 does not start correctly when using Xerces 2.2.0





--- Additional Comments From [EMAIL PROTECTED]  2002-10-28 15:09 ---
Yes, at least on my side, the thread problem does not occurs all the time. BUT I
still recommend you use Xerces 2.1.

I'm currently working with the Xerces team and as you may be aware, thread
problem are difficult to solve. That's why it's taking time

Until we know exactly what is the problem, there is no decision on which Strut
version we should include etc.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DO NOT REPLY [Bug 13989] - Linux's binary mod_jk2-1.3-noeapi.so and mod_jk-1.3-noeapi.so does not work on Apache 1.3.27

2002-10-28 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=13989

Linux's binary mod_jk2-1.3-noeapi.so and mod_jk-1.3-noeapi.so does not work on Apache 
1.3.27





--- Additional Comments From [EMAIL PROTECTED]  2002-10-28 15:04 ---
The binaries are built on a standard Redhat 7.2 box with latest updates, so I've
got on it :

kernel 2.4.9-34
glibc  2.2.4
apache 1.3.22 (+ latest security fixes back ported)
mod_ssl 2.8.5

The apache 2.0 used is the one I've done in my apache 2.0 rpm
(http://ftp.falsehope.com/home/gomez/apache2/).

My question will be :

- which distribution are you using ?

My recommandation will be :

- if you're using a RPM based distro, just rebuild the source rpm provided in
rpms directory.

Regards

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [5.0] New build documentation, docs online

2002-10-28 Thread Bob Herrmann
On Mon, 2002-10-28 at 05:07, Remy Maucherat wrote:
> New Tomcat 5.0 docs online (linked from the main Tomcat page):
> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html
> 
> New building documentation:
> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/BUILDING.txt
> 
> Comments ?

Humm...  I used JDK1.4.x and I have clean built several times, but I
never had to download Xerces.  Does JDK1.4 or ant include Xerces or
something?  I think the Xerces step maybe optional with JDK1.4.

Cheers,
-bob 


> 
> Remy
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [5.0] New build documentation, docs online

2002-10-28 Thread Bob Herrmann
On Mon, 2002-10-28 at 07:04, IAS wrote:
> There were actually several stops due to the internet disconnection, and
> I failed because of javamail's absence, which build.xml didn't check
> out. 

Yea, the SendMail... example always busts on when I compile also.  I
always do this (reflexively),

echo>/home/bobh/t5/jakarta-servletapi-5/jsr152/examples/WEB-INF/classes/SendMailServlet.java

Then everything compiles fine.  There really should be a check for this
in the servletapi build.xml  I should submit a patch... 

Cheers,
-bob

> I put javamail configuration to build.properties like this:
> # - Java Mail, version 1.2 or later -
> mail.home=${base.path}/javamail-1.3
> mail.lib=${mail.home}
> mail.jar=${mail.lib}/mailapi.jar
> With the above addition, I also copied a javamail jar to javamail-1.3
> directory. After this treatment, I succeeded in building Tomcat 5.
> 
> As of its running, the document (running.txt) says it requires JDK 1.2
> or later. I tested webapps/ROOT/index.jsp with the following
> modification:
> (the number in left-side is line number for convenience of
> presentation.)
> 0 :  http://www.w3.org/TR/REC-html40/strict.dtd";>
> 1 : <%
> 2 :   out.printlx("aa");
> 3 : %>
> ...
> 
> The invocation of this page resulted in the below:
> org.apache.jasper.JasperException: Unable to compile class for JSP
> 
> An error occurred at line: 1 in the jsp file: /index.jsp
>---
> ...
> \build\work\Standalone\localhost\_\index_jsp.java:51: cannot resolve
> symbol
> symbol  : method printlx (java.lang.String)
> location: class javax.servlet.jsp.JspWriter
>   out.printlx("aa");
>^
> 1 error
> 
> The exact line causing an error in JSP is 2, and it is not compliant
> with JSP 2.0's debugging support. Moreover,
> 0 :  http://www.w3.org/TR/REC-html40/strict.dtd";>
> 1 : <%
> 2 :   out.println("aa");
> 3 :   out.printlx("aa");
> 4 : %>
> ...
> also displayed the same result in terms of JSP line:
> An error occurred at line: 1 in the jsp file: /index.jsp
> ...
> \build\work\Standalone\localhost\_\index_jsp.java:52: cannot resolve
> symbol
> symbol  : method printlx (java.lang.String)
> location: class javax.servlet.jsp.JspWriter
>   out.printlx("aa");
>^
> 1 error
> 
> In this case, the error line of the jsp file is 3. I guess Tomcat
> 5(Jasper 2) may not implement debugging support specified in JSP 2.0
> spec. I'd like to know whether it is possible to do so without JDK
> 1.4(Merlin's JPDA-level support) and how the discussion on this issue
> with JSR-152 EG is going.
> 
> Thanks for your great work again.
> 
> IAS
> 
> Independent Java Technology Evangelist
> http://www.iasandcb.pe.kr
> 
> Jakarta Seoul Project Coordinator
> http://jakarta.apache-korea.org
> 
> > -Original Message-
> > From: Remy Maucherat [mailto:remm@;apache.org]
> > Sent: Monday, October 28, 2002 7:08 PM
> > To: Tomcat Developers List
> > Subject: [5.0] New build documentation, docs online
> > 
> > New Tomcat 5.0 docs online (linked from the main Tomcat page):
> > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html
> > 
> > New building documentation:
> > http://jakarta.apache.org/tomcat/tomcat-5.0-doc/BUILDING.txt
> > 
> > Comments ?
> > 
> > Remy
> > 
> > 
> > --
> > To unsubscribe, e-mail:    > [EMAIL PROTECTED]>
> > For additional commands, e-mail:  > [EMAIL PROTECTED]>
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: TOMCAT memory usage : how to manage and benchmark ?

2002-10-28 Thread Jason Corley

Pier (MacOS/X rocks!)

--

Finally something I can agree with Pier on. :-)
Jason

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: TOMCAT memory usage : how to manage and benchmark ?

2002-10-28 Thread Henri Gomez
Pier Fumagalli wrote:

"Henri Gomez" <[EMAIL PROTECTED]> wrote:



On Linux threads are +/- process and are really cheap to create, so it's
should be a problem.


Read, it shouldn't be a problem 



It is a problem because every time someone does a PS goes _nuts_ about the
number of JVM processes... While at the end they are just threads... I
believe I replied to this question at least 200 times in the past 5 years,
and _still_ I see people asking...


Yes, I agree that seeing many entries with ps isn't correct but only 
Linux newbie have problem with it ;)

And try to do a little piece of code creating 1000 threads on Linux and on
Windows 2k... Just to see which one is faster (and I believe we _all_ agree
that Windows sucks!)


It's a known case, even without doing the test I know that W2K will be 
faster to create thread. There is excellent documentation on Linux 
kernel on IBM alphaworks site and they show cases where Linux or W2K
implementations are better.

:-) Anyhow, the old battle on why Linux sucks is over... Works for you,
well, use it! :-)


Thanks, it works great for me on ia32 boxes and even on iSeries LPAR 
(PPC) ;)

Pier (MacOS/X rocks!)


Pier you know I'm allready convinced that MacOS/X rocks !

The question is why Apple didn't help OpenSource developpers to
switch their primary devel box from Linux ia32 to MacOS/X by making
affordable hardware .




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: TOMCAT memory usage : how to manage and benchmark ?

2002-10-28 Thread Pier Fumagalli
"Henri Gomez" <[EMAIL PROTECTED]> wrote:

>> On Linux threads are +/- process and are really cheap to create, so it's
>> should be a problem.
> 
> Read, it shouldn't be a problem 

It is a problem because every time someone does a PS goes _nuts_ about the
number of JVM processes... While at the end they are just threads... I
believe I replied to this question at least 200 times in the past 5 years,
and _still_ I see people asking...

And try to do a little piece of code creating 1000 threads on Linux and on
Windows 2k... Just to see which one is faster (and I believe we _all_ agree
that Windows sucks!)

:-) Anyhow, the old battle on why Linux sucks is over... Works for you,
well, use it! :-)

Pier (MacOS/X rocks!)


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: JkRequestLogFormat for JK 1.2.x on Apache 2.0 ?

2002-10-28 Thread Henri Gomez
Henri Gomez wrote:

Did someone try to port 'JkRequestLogFormat' to Apache 2.0 ?

For instance I wonder about :

ap_bgetopt(r->connection->client, BO_BYTECT, &bs);



I added 'JkRequestLogFormat' for Apache 2.0.

Glenn could you take a look ?

Regards

BTW : I think I will make a JK 1.2.1 release to include this fix.





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-connectors/jk/native/apache-2.0 mod_jk.c

2002-10-28 Thread hgomez
hgomez  2002/10/28 06:38:07

  Modified:jk/native/apache-2.0 mod_jk.c
  Log:
  Add JkRequestLogFormat in Apache 2.0.
  
  May be Glenn should take a look if I didn't introduce problems here...
  
  Revision  ChangesPath
  1.58  +408 -1jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c
  
  Index: mod_jk.c
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/apache-2.0/mod_jk.c,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- mod_jk.c  18 Oct 2002 10:23:15 -  1.57
  +++ mod_jk.c  28 Oct 2002 14:38:07 -  1.58
  @@ -111,6 +111,7 @@
   
   #define JK_WORKER_ID("jakarta.worker")
   #define JK_HANDLER  ("jakarta-servlet")
  +#define JK_DURATION ("jakarta.worker.duration")
   #define JK_MAGIC_TYPE   ("application/x-jakarta-servlet")
   #define NULL_FOR_EMPTY(x)   ((x && !strlen(x)) ? NULL : x) 
   
  @@ -151,6 +152,13 @@
   int was_initialized;
   
   /*
  + * Request Logging
  + */
  +
  +char *format_string;
  +apr_array_header_t *format;
  +
  +/*
* SSL Support
*/
   int  ssl_enable;
  @@ -877,6 +885,378 @@
   return NULL;
   }
   
  +/*
  + *
  + * Actually logging.
  + */
  +
  +typedef const char *(*item_key_func) (request_rec *, char *);
  + 
  +typedef struct { 
  +item_key_func func;
  +char *arg; 
  +} request_log_format_item;
  +
  +static const char *process_item(request_rec *r,
  +  request_log_format_item *item)
  +{
  +const char *cp;
  +
  +cp = (*item->func) (r,item->arg);
  +return cp ? cp : "-";
  +}
  +
  +static int request_log_transaction(request_rec *r,
  +  jk_server_conf_t *conf)
  +{
  +request_log_format_item *items;
  +char *str, *s;
  +int i;
  +int len = 0;
  +const char **strs;
  +int *strl;
  +apr_array_header_t *format = conf->format;
  +
  +strs = ap_palloc(r->pool, sizeof(char *) * (format->nelts));
  +strl = ap_palloc(r->pool, sizeof(int) * (format->nelts));
  +items = (request_log_format_item *) format->elts;
  +for (i = 0; i < format->nelts; ++i) {
  +strs[i] = process_item(r, &items[i]);
  +}
  +for (i = 0; i < format->nelts; ++i) {
  +len += strl[i] = strlen(strs[i]);
  +}
  +str = ap_palloc(r->pool, len + 1);
  +for (i = 0, s = str; i < format->nelts; ++i) {
  +memcpy(s, strs[i], strl[i]);
  +s += strl[i];
  +}
  +*s = 0;
  +
  +jk_log(conf->log ? conf->log : main_log, JK_LOG_REQUEST, str);
  +}
  +
  +/*
  + *
  + * Parsing the log format string
  + */
  +
  +static char *format_integer(apr_pool_t *p, int i)
  +{
  +return apr_psprintf(p, "%d", i);
  +}
  + 
  +static char *pfmt(apr_pool_t *p, int i)
  +{
  +if (i <= 0) {
  +return "-";
  +}
  +else {
  +return format_integer(p, i);
  +}
  +}
  +
  +static const char *constant_item(request_rec *dummy, char *stuff)
  +{
  +return stuff;
  +}
  +
  +static const char *log_worker_name(request_rec *r, char *a)
  +{
  +return ap_table_get(r->notes, JK_WORKER_ID);
  +}
  +
  +
  +static const char *log_request_duration(request_rec *r, char *a)
  +{
  +return ap_table_get(r->notes, JK_DURATION);
  +}
  + 
  +static const char *log_request_line(request_rec *r, char *a)
  +{
  +/* NOTE: If the original request contained a password, we
  + * re-write the request line here to contain XX instead:
  + * (note the truncation before the protocol string for HTTP/0.9 
requests)
  + * (note also that r->the_request contains the unmodified request)
  + */
  +return (r->parsed_uri.password) ? ap_pstrcat(r->pool, r->method, " ",
  + apr_uri_unparse(r->pool, &r->parsed_uri, 
0),
  + r->assbackwards ? NULL : " ", r->protocol, 
NULL)
  +: r->the_request;
  +}
  +
  +/* These next two routines use the canonical name:port so that log
  + * parsers don't need to duplicate all the vhost parsing crud.
  + */
  +static const char *log_virtual_host(request_rec *r, char *a)
  +{
  +return r->server->server_hostname;
  +}
  + 
  +static const char *log_server_port(request_rec *r, char *a)
  +{
  +return apr_psprintf(r->pool, "%u",
  +r->server->port ? r->server->port : ap_default_port(r));
  +}
  + 
  +/* This respects the setting of UseCanonicalName so that
  + * the dynamic mass virtual hosting trick works better.
  + */
  +static const char *log_server_

cvs commit: jakarta-tomcat-connectors/jk/xdocs/jk aphowto.xml

2002-10-28 Thread hgomez
hgomez  2002/10/28 06:37:06

  Modified:jk/xdocs/jk aphowto.xml
  Log:
  Cleanup doc and remove comments on JkRequestLogFormat which is now 
  also available for Apache (in JK 1.2.1)
  
  Revision  ChangesPath
  1.14  +0 -4  jakarta-tomcat-connectors/jk/xdocs/jk/aphowto.xml
  
  Index: aphowto.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/xdocs/jk/aphowto.xml,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- aphowto.xml   28 Oct 2002 12:04:56 -  1.13
  +++ aphowto.xml   28 Oct 2002 14:37:06 -  1.14
  @@ -369,7 +369,6 @@
   
   
   JkRequestLogFormat will configure the format of mod_jk individual request 
logging. 
  -For now this directive is only available on Apache 1.3 server.
   Request logging is configured and enabled on a per virtual host basis. 
   To enable request logging for a virtual host just add a JkRequestLogFormat config. 
   The syntax of the format string is similiar to the Apache LogFormat command, 
  @@ -385,9 +384,6 @@
 %mThe request method
 %pThe canonical Port of the server serving the request
 %qThe query string (prepended with a ? if a query string exists, 
otherwise an empty string)
  -  %rFirst line of request
  -  %rFirst line of request
  -  %rFirst line of request
 %rFirst line of request
 %sRequest HTTP status code
 %TRequest duration, elapsed time to handle request in seconds 
'.' micro seconds
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: TOMCAT memory usage : how to manage and benchmark ?

2002-10-28 Thread Henri Gomez
On Linux threads are +/- process and are really cheap to create, so it's
should be a problem.


Read, it shouldn't be a problem 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: TOMCAT memory usage : how to manage and benchmark ?

2002-10-28 Thread Henri Gomez
Pier Fumagalli wrote:

"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:



So,

My first question is : why tomcat use all the memory while there is no
users connected (or just one) ?


You should first see if your application is not eating memory.


My second question is : how much memory is needed if I want to use tomcat
with many users (500, 1000,...) ?


The question should be 'how many concurrents users' ?


On a 5 millions hits/day server (not running Tomcat, another servlet
container since Tomcat doesn't work for us), we have the VM starting with 1
Gigs of RAM ("java -server -Xmx 1024m -Xms 1024m ...") but we use half of it
(roughly) to cache data from the DB...



I already read in the forum Tomcat don't manage the memory, it is the
JVM... so why the jvm use so many processes ?


Also you could have many threads if you're using ajp13 connectivity
since there is one thread by connection with server.


Those are _not_ processes, they are threads... Use a decent operating system
that supports them nicely (not Linux) and you'll see the difference (how
many times do I have to repeat this?)... Linux sucks :-(


On Linux threads are +/- process and are really cheap to create, so it's
should be a problem.

And if you have problem handling load with one Linux boxes, just use 
more Linux boxes and use jk load-balancing to spray the load.

I never find Linux to suck, it's really depend on which architecture
it run, and what you want to do with it. You could quickly start a
small tomcat handling 50 concurrents users on recent ia32 boxes, 
multiply the number of boxes when the load increase, and use software
load-balancing/fault-tolerance features of JK to make the tomcat/linux
farm works well better than high-end (and pricy Unix workstations).

With a very good performance/buck ratio ;)




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: TOMCAT memory usage : how to manage and benchmark ?

2002-10-28 Thread Pier Fumagalli
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

> So,
> 
> My first question is : why tomcat use all the memory while there is no
> users connected (or just one) ?

The JVM allocates chunks of memory (see the -Xmx and -Xms flags by invoking
"java -X") and manages them... So, one user, 100 users, same thing...

> My second question is : how much memory is needed if I want to use tomcat
> with many users (500, 1000,...) ?

On a 5 millions hits/day server (not running Tomcat, another servlet
container since Tomcat doesn't work for us), we have the VM starting with 1
Gigs of RAM ("java -server -Xmx 1024m -Xms 1024m ...") but we use half of it
(roughly) to cache data from the DB...

> I already read in the forum Tomcat don't manage the memory, it is the
> JVM... so why the jvm use so many processes ?

Those are _not_ processes, they are threads... Use a decent operating system
that supports them nicely (not Linux) and you'll see the difference (how
many times do I have to repeat this?)... Linux sucks :-(

Pier


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DO NOT REPLY [Bug 7602] - After RequestDispatcher.forward() the character encoding for parameters is set to ISO-8859-1

2002-10-28 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=7602

After RequestDispatcher.forward() the character encoding for parameters is set to 
ISO-8859-1





--- Additional Comments From [EMAIL PROTECTED]  2002-10-28 13:28 ---
This continues to be a bug in 4.1.12.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DO NOT REPLY [Bug 12998] - HTTPS gets changed to HTTP://servername:443

2002-10-28 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=12998

HTTPS gets changed to HTTP://servername:443

[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||jfrederic.clere@fujitsu-
   ||siemens.com



--- Additional Comments From [EMAIL PROTECTED]  2002-10-28 13:24 
---
*** Bug 5975 has been marked as a duplicate of this bug. ***

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DO NOT REPLY [Bug 5975] - isSecure and getScheme: http are not set when using SSL

2002-10-28 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=5975

isSecure and getScheme: http are not set when using SSL

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE



--- Additional Comments From [EMAIL PROTECTED]  2002-10-28 13:24 
---


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

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




TOMCAT memory usage : how to manage and benchmark ?

2002-10-28 Thread Patrice . Boucher
Hello,

I have tomcat 4.1.10 on a red hat Linux server 7.3 with the j2sdk141,

When I start the tomcat4 service, all is OK and the tomcat server run.

BUT, when I look the memory usage (with TOP utility), I have this result :

 11:31am  up 12 days,  2:18,  2 users,  load average: 0,00, 0,00, 0,00
90 processes: 87 sleeping, 3 running, 0 zombie, 0 stopped
CPU states:  0,0% user,  0,5% system,  0,0% nice, 99,4% idle
Mem:   514340K av,  479748K used,   34592K free,   0K shrd,   75716K
buff
Swap: 1048120K av,   35016K used, 1013104K free  216648K
cached

  PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
19954 tomcat4   25   0 33584  32M 10464 S 0,0  6,5   0:05 java
19957 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java
19958 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java
19959 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java
19960 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java
19961 tomcat4   15   0 33584  32M 10464 R 0,0  6,5   0:00 java
19962 tomcat4   20   0 33584  32M 10464 S 0,0  6,5   0:00 java
19963 tomcat4   16   0 33584  32M 10464 S 0,0  6,5   0:00 java
19964 tomcat4   16   0 33584  32M 10464 S 0,0  6,5   0:01 java
19966 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java
19967 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java
19968 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java
19969 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java
19970 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java
19971 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java
19972 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java
19973 tomcat4   15   0 33584  32M 10464 S 0,0  6,5   0:00 java

So,

My first question is : why tomcat use all the memory while there is no
users connected (or just one) ?
My second question is : how much memory is needed if I want to use tomcat
with many users (500, 1000,...) ?

I already read in the forum Tomcat don't manage the memory, it is the
JVM... so why the jvm use so many processes ?






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: [5.0] New build documentation, docs online

2002-10-28 Thread IAS
There were actually several stops due to the internet disconnection, and
I failed because of javamail's absence, which build.xml didn't check
out. I put javamail configuration to build.properties like this:
# - Java Mail, version 1.2 or later -
mail.home=${base.path}/javamail-1.3
mail.lib=${mail.home}
mail.jar=${mail.lib}/mailapi.jar
With the above addition, I also copied a javamail jar to javamail-1.3
directory. After this treatment, I succeeded in building Tomcat 5.

As of its running, the document (running.txt) says it requires JDK 1.2
or later. I tested webapps/ROOT/index.jsp with the following
modification:
(the number in left-side is line number for convenience of
presentation.)
0 : http://www.w3.org/TR/REC-html40/strict.dtd";>
1 : <%
2 : out.printlx("aa");
3 : %>
...

The invocation of this page resulted in the below:
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 1 in the jsp file: /index.jsp
   ---
...
\build\work\Standalone\localhost\_\index_jsp.java:51: cannot resolve
symbol
symbol  : method printlx (java.lang.String)
location: class javax.servlet.jsp.JspWriter
out.printlx("aa");
   ^
1 error

The exact line causing an error in JSP is 2, and it is not compliant
with JSP 2.0's debugging support. Moreover,
0 : http://www.w3.org/TR/REC-html40/strict.dtd";>
1 : <%
2 : out.println("aa");
3 : out.printlx("aa");
4 : %>
...
also displayed the same result in terms of JSP line:
An error occurred at line: 1 in the jsp file: /index.jsp
...
\build\work\Standalone\localhost\_\index_jsp.java:52: cannot resolve
symbol
symbol  : method printlx (java.lang.String)
location: class javax.servlet.jsp.JspWriter
out.printlx("aa");
   ^
1 error

In this case, the error line of the jsp file is 3. I guess Tomcat
5(Jasper 2) may not implement debugging support specified in JSP 2.0
spec. I'd like to know whether it is possible to do so without JDK
1.4(Merlin's JPDA-level support) and how the discussion on this issue
with JSR-152 EG is going.

Thanks for your great work again.

IAS

Independent Java Technology Evangelist
http://www.iasandcb.pe.kr

Jakarta Seoul Project Coordinator
http://jakarta.apache-korea.org 

> -Original Message-
> From: Remy Maucherat [mailto:remm@;apache.org]
> Sent: Monday, October 28, 2002 7:08 PM
> To: Tomcat Developers List
> Subject: [5.0] New build documentation, docs online
> 
> New Tomcat 5.0 docs online (linked from the main Tomcat page):
> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html
> 
> New building documentation:
> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/BUILDING.txt
> 
> Comments ?
> 
> Remy
> 
> 
> --
> To unsubscribe, e-mail:    [EMAIL PROTECTED]>
> For additional commands, e-mail:  [EMAIL PROTECTED]>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-connectors/jk/xdocs/jk aphowto.xml

2002-10-28 Thread hgomez
hgomez  2002/10/28 04:04:57

  Modified:jk/xdocs/jk aphowto.xml
  Log:
  Add comment on JkRequestLogFormat which is only available on Apache 1.3
  for now.
  
  Revision  ChangesPath
  1.13  +1 -0  jakarta-tomcat-connectors/jk/xdocs/jk/aphowto.xml
  
  Index: aphowto.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/xdocs/jk/aphowto.xml,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- aphowto.xml   25 Oct 2002 15:42:49 -  1.12
  +++ aphowto.xml   28 Oct 2002 12:04:56 -  1.13
  @@ -369,6 +369,7 @@
   
   
   JkRequestLogFormat will configure the format of mod_jk individual request 
logging. 
  +For now this directive is only available on Apache 1.3 server.
   Request logging is configured and enabled on a per virtual host basis. 
   To enable request logging for a virtual host just add a JkRequestLogFormat config. 
   The syntax of the format string is similiar to the Apache LogFormat command, 
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




java:/comp/env with Tomcat 4.0 inside a Connector

2002-10-28 Thread h . buerger
Hi,

i tried to register my Connector as a resource "java:/comp/env/MyConnector"
but
it seems that "java:/comp/env" is not initialized when the connector
starts. The same
code has no problems run as servlet.

Is my assumption right? Is there any event i can use to register my
connector
as a resource?

Thanks
 Haug


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[5.0] New build documentation, docs online

2002-10-28 Thread Remy Maucherat
New Tomcat 5.0 docs online (linked from the main Tomcat page):
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html

New building documentation:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/BUILDING.txt

Comments ?

Remy


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




JkRequestLogFormat for JK 1.2.x on Apache 2.0 ?

2002-10-28 Thread Henri Gomez
Did someone try to port 'JkRequestLogFormat' to Apache 2.0 ?

For instance I wonder about :

ap_bgetopt(r->connection->client, BO_BYTECT, &bs);

Regards


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-site/xdocs/stylesheets project.xml

2002-10-28 Thread remm
remm2002/10/28 01:42:41

  Modified:docs bugreport.html index.html irc.html news.html
resources.html
   xdocs/stylesheets project.xml
  Log:
  - Add link for Tomcat 5.x docs.
  
  Revision  ChangesPath
  1.5   +6 -0  jakarta-tomcat-site/docs/bugreport.html
  
  Index: bugreport.html
  ===
  RCS file: /home/cvs/jakarta-tomcat-site/docs/bugreport.html,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- bugreport.html25 Apr 2002 15:00:40 -  1.4
  +++ bugreport.html28 Oct 2002 09:42:41 -  1.5
  @@ -62,6 +62,8 @@
   
   Tomcat 4.1
   
  +Tomcat 5.0
  +
   
   Download
   
  @@ -120,6 +122,10 @@
   and those who develop and maintain the code for Tomcat.  Almost all those
   who assist on a day to day basis resolving bug reports do this for a
   wide variety of reasons, and almost all of them do this on their own time.
  +If you have a verified security 
bug to report please do not post it
  +to email lists or submit a bug report.  Security bugs should be reported
  +privately by email to mailto:security@;apache.org">[EMAIL PROTECTED].
  +
   Many bugs reported end up not 
being a bug in the Tomcat code, but are
   due to misconfiguration, problems caused by installed applications, the
   operating system, etc.
  
  
  
  1.29  +2 -0  jakarta-tomcat-site/docs/index.html
  
  Index: index.html
  ===
  RCS file: /home/cvs/jakarta-tomcat-site/docs/index.html,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- index.html24 Sep 2002 13:15:08 -  1.28
  +++ index.html28 Oct 2002 09:42:41 -  1.29
  @@ -62,6 +62,8 @@
   
   Tomcat 4.1
   
  +Tomcat 5.0
  +
   
   Download
   
  
  
  
  1.6   +2 -0  jakarta-tomcat-site/docs/irc.html
  
  Index: irc.html
  ===
  RCS file: /home/cvs/jakarta-tomcat-site/docs/irc.html,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- irc.html  25 Apr 2002 15:00:40 -  1.5
  +++ irc.html  28 Oct 2002 09:42:41 -  1.6
  @@ -62,6 +62,8 @@
   
   Tomcat 4.1
   
  +Tomcat 5.0
  +
   
   Download
   
  
  
  
  1.29  +2 -0  jakarta-tomcat-site/docs/news.html
  
  Index: news.html
  ===
  RCS file: /home/cvs/jakarta-tomcat-site/docs/news.html,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- news.html 11 May 2002 17:27:44 -  1.28
  +++ news.html 28 Oct 2002 09:42:41 -  1.29
  @@ -62,6 +62,8 @@
   
   Tomcat 4.1
   
  +Tomcat 5.0
  +
   
   Download
   
  
  
  
  1.4   +2 -0  jakarta-tomcat-site/docs/resources.html
  
  Index: resources.html
  ===
  RCS file: /home/cvs/jakarta-tomcat-site/docs/resources.html,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- resources.html25 Apr 2002 15:00:40 -  1.3
  +++ resources.html28 Oct 2002 09:42:41 -  1.4
  @@ -62,6 +62,8 @@
   
   Tomcat 4.1
   
  +Tomcat 5.0
  +
   
   Download
   
  
  
  
  1.8   +5 -4  jakarta-tomcat-site/xdocs/stylesheets/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/jakarta-tomcat-site/xdocs/stylesheets/project.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- project.xml   25 Apr 2002 15:00:40 -  1.7
  +++ project.xml   28 Oct 2002 09:42:41 -  1.8
  @@ -15,10 +15,11 @@
   
   
   
  - 
  - 
  - 
  - 
  +
  +
  +
  +
  +
   
   
   
  
  
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




cvs commit: jakarta-tomcat-5 BUILDING.txt

2002-10-28 Thread remm
remm2002/10/28 01:36:33

  Modified:.BUILDING.txt
  Log:
  - Update building to use the new autoconfiguration (less configurable, but
far easier).
  - Of course, developers may choose to do everything manually ;-)
  
  Revision  ChangesPath
  1.26  +53 -518   jakarta-tomcat-5/BUILDING.txt
  
  Index: BUILDING.txt
  ===
  RCS file: /home/cvs/jakarta-tomcat-5/BUILDING.txt,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- BUILDING.txt  11 Oct 2002 10:59:05 -  1.25
  +++ BUILDING.txt  28 Oct 2002 09:36:33 -  1.26
  @@ -7,14 +7,15 @@
   This subproject contains the source code for Tomcat 5, a container that
   implements the Servlet 2.4 and the JSP 2.0 specifications from the Java
   Community Process (http://www.jcp.org).  In order to build a binary
  -distribution version of the container from a source distribution, you must have
  -a Java Development Kit (JDK) for version 1.3 (or later) downloaded and
  -x installed (version 1.3.1 recommended), and do the following:
  +distribution version of the container from a source distribution, 
  +do the following:
   
   
   (0) Download and Install a Java Development Kit
   
  -* Download a Java Development Kit (JDK) release (version 1.3 or later) from:
  +* If the JDK is already installed, skip to (1).
  +
  +* Download a Java Development Kit (JDK) release (version 1.4 or later) from:
   
   http://java.sun.com/j2se/
   
  @@ -24,21 +25,25 @@
 into which you installed the JDK release.
   
   
  -(1) Download and Install the Ant Binary Distribution
  +(1) Install Apache Ant 1.5.1 on your computer
  +
  +* If Apache Ant 1.5.1 is already installed on your computer, skip to (2).
   
  -* Download a binary distribution of Ant 1.5 from:
  +(1.1) Download and Install the Ant Binary Distribution
   
  -http://jakarta.apache.org/builds/jakarta-ant/release/v1.5/bin/
  +* Download a binary distribution of Ant 1.5.1 from:
  +
  +http://jakarta.apache.org/builds/jakarta-ant/release/v1.5.1/bin/
   
 On a Windows platform, you will need:
  -jakarta-ant-1.5-bin.zip
  +jakarta-ant-1.5.1-bin.zip
   
 On a Unix platform, you will need:
  -jakarta-ant-1.5-bin.tar.gz
  +jakarta-ant-1.5.1-bin.tar.gz
   
   * Unpack the binary distribution into a convenient location so that the
 Ant release resides in its own directory (conventionally named
  -  "jakarta-ant-1.5").  For the purposes of the remainder of this document,
  +  "jakarta-ant-1.5.1").  For the purposes of the remainder of this document,
 the symbolic name "${ant.home}" is used to refer to the full pathname of
 the release directory.
   
  @@ -47,45 +52,7 @@
 available, which will be used to actually perform the build.
   
   
  -(2) Download and Install the Java XML Pack Binary Distribution
  -
  -* Download a binary distribution of Java XML Pack:
  -
  -http://java.sun.com/xml/downloads/javaxmlpack.html
  -
  -* Unpack the binary distribution into a convenient location so that the
  -  Java XML Pack release resides in its own directory (the JAXP libraries
  -  reside in the jaxp-1.1.3 subdirectory).  For the purposes of the 
  -  remainder of this document, the symbolic name "${jaxp.home}" is used 
  -  to refer to the full pathname to the jaxp-1.1.3 subdirectory of the 
  -  Java XML Pack release directory.
  -
  -* Make the "xalan.jar" file of this distribution available to Ant (so that
  -  it can be used with the 

DO NOT REPLY [Bug 14008] New: - Error in taglib iterator

2002-10-28 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=14008

Error in taglib iterator

   Summary: Error in taglib iterator
   Product: Tomcat 4
   Version: 4.1.12
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Servlet & JSP API
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


In old version (Tomcat 4.0.3) and new version (Tomcat 4.1.12) generated different 
code for iterator.

Original code is:

public class MessageListTag extends BodyTagSupport
{
private static Timer timer = new Timer(MessageListTag.class.getName
());

protected Iterator iterator = null;

protected Message message = null;

protected String name = null;

public int doStartTag()
throws JspException
{
timer.start();

List messages = (List) pageContext.getAttribute("messages");

if (messages == null)
{
return SKIP_BODY;
}

if (name == null)
{
name = "message";
}

iterator = messages.iterator();

if (iterator.hasNext())
{
message = (Message) iterator.next();

if (!"message".equals(name))
{
pageContext.setAttribute("message", 
message);
}
pageContext.setAttribute(name, message);

return EVAL_BODY_INCLUDE;
}
else
{
return SKIP_BODY;
}
}

public int doAfterBody()
throws JspException
{
if (bodyContent != null)
{
try
{
JspWriter out = getPreviousOut();
out.write(bodyContent.getString());
bodyContent.clearBody();
}
catch (IOException ex)
{
throw new JspException(ex);
}
}

if (iterator.hasNext())
{
message = (Message) iterator.next();

if (!"message".equals(name))
{
pageContext.setAttribute("message", 
message);
}
pageContext.setAttribute(name, message);

return EVAL_BODY_AGAIN;
}
else
{
return SKIP_BODY;
}
}

public int doEndTag()
throws JspException
{
timer.finish();

return EVAL_PAGE;
}

public Message getMessage()
{
return message;
}

public void setName(String name)
{
this.name = name;
}
}

in Tomcat 4.0.3:

try {
int _jspx_eval_forum_messages_0 = 
_jspx_th_forum_messages_0.doStartTag();
if (_jspx_eval_forum_messages_0 != 
javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
try {
  if (_jspx_eval_forum_messages_0 != 
javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
  out = pageContext.pushBody();
  _jspx_th_forum_messages_0.setBodyContent
((javax.servlet.jsp.tagext.BodyContent) out);
  _jspx_th_forum_messages_0.doInitBody();
  }
  do {
  ru.magroup.portal.forum.Message message = null;
  message = (ru.magroup.portal.forum.Message) 
pageContext.findAttribute("message");
  // end
  // HTML // begin [file="/forum/threads.jsp";from=(275,34);to=
(276,95)]
  out.write("\r\n\t\t\t\t\r\n\t\t\t");
  out.write("\r\n\t\t\t");
  /*   forum:messages  */
  ru.magroup.portal.forum.taglibs.MessageListTag 
_jspx_th_forum_messages_0 = (ru.magroup.portal.forum.taglibs.MessageListTag) 
_jspx_tagPool_forum_messages_name.get
(ru.magroup.portal.forum.taglibs.MessageListTag.class);
  _jspx_th_forum_messages_0.setPageContext(pageContext);