DO NOT REPLY [Bug 22855] New: - responses.setContentType corrupts pageEncoding not overrides that

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

responses.setContentType corrupts pageEncoding not overrides that

   Summary: responses.setContentType corrupts pageEncoding not
overrides that
   Product: Tomcat 4
   Version: 4.1.27
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Jasper
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


JSP produces wrong response
Example of very first 2 lines of very first JSP user hits.
---
%response.setContentType(text/html;charset=windows-1257);%
Autentifikâcija veiksmîgabr
---
Response is set correctly as browser switches to right one, but letters and 
charaters are corrupted and changed to ?

Does not happens if @page is used but this is not acceptible in case if 
encoding changes dynamically (depending on user request and changing resource 
bundles)
The only difference between those 2 approaches is that in @page case it 
happens before obtaining out and pageContext

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



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

2003-09-01 Thread ecarmich
ecarmich2003/08/31 17:17:35

  Modified:jasper2/src/share/org/apache/jasper/compiler
JspDocumentParser.java
  Log:
  Expand wildcard imports
  Remove unused imports
  Remove tabs
  
  Revision  ChangesPath
  1.69  +874 -644  
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.68
  retrieving revision 1.69
  diff -u -r1.68 -r1.69
  --- JspDocumentParser.java29 Aug 2003 19:31:22 -  1.68
  +++ JspDocumentParser.java1 Sep 2003 00:17:35 -   1.69
  @@ -57,22 +57,33 @@
* information on the Apache Software Foundation, please see
* http://www.apache.org/.
*
  - */ 
  + */
   package org.apache.jasper.compiler;
   
  -import java.io.*;
  -import java.util.*;
  +import java.io.CharArrayWriter;
  +import java.io.FileNotFoundException;
  +import java.io.IOException;
  +import java.util.Iterator;
  +import java.util.List;
   import java.util.jar.JarFile;
  -import javax.servlet.jsp.tagext.*;
  -import javax.xml.parsers.SAXParserFactory;
  -import javax.xml.parsers.ParserConfigurationException;
  +
  +import javax.servlet.jsp.tagext.TagFileInfo;
  +import javax.servlet.jsp.tagext.TagInfo;
  +import javax.servlet.jsp.tagext.TagLibraryInfo;
   import javax.xml.parsers.SAXParser;
  -import org.xml.sax.*;
  -import org.xml.sax.ext.LexicalHandler;
  -import org.xml.sax.helpers.DefaultHandler;
  -import org.xml.sax.helpers.AttributesImpl;
  +import javax.xml.parsers.SAXParserFactory;
  +
   import org.apache.jasper.JasperException;
   import org.apache.jasper.JspCompilationContext;
  +import org.xml.sax.Attributes;
  +import org.xml.sax.InputSource;
  +import org.xml.sax.Locator;
  +import org.xml.sax.SAXException;
  +import org.xml.sax.SAXParseException;
  +import org.xml.sax.XMLReader;
  +import org.xml.sax.ext.LexicalHandler;
  +import org.xml.sax.helpers.AttributesImpl;
  +import org.xml.sax.helpers.DefaultHandler;
   
   /**
* Class implementing a parser for a JSP document, that is, a JSP page in XML
  @@ -81,19 +92,21 @@
* @author Jan Luehe
*/
   
  -class JspDocumentParser extends DefaultHandler
  -implements LexicalHandler, TagConstants {
  +class JspDocumentParser
  +extends DefaultHandler
  +implements LexicalHandler, TagConstants {
   
   private static final String JSP_VERSION = version;
  -private static final String LEXICAL_HANDLER_PROPERTY
  - = http://xml.org/sax/properties/lexical-handler;;
  +private static final String LEXICAL_HANDLER_PROPERTY =
  +http://xml.org/sax/properties/lexical-handler;;
   
  -private static final EnableDTDValidationException 
ENABLE_DTD_VALIDATION_EXCEPTION
  -= new EnableDTDValidationException(jsp.error.enable_dtd_validation,
  -   null);
  +private static final EnableDTDValidationException 
ENABLE_DTD_VALIDATION_EXCEPTION =
  +new EnableDTDValidationException(
  +jsp.error.enable_dtd_validation,
  +null);
   
   private ParserController parserController;
  -private JspCompilationContext ctxt;
  +private JspCompilationContext ctxt;
   private PageInfo pageInfo;
   private String path;
   
  @@ -115,11 +128,12 @@
   /*
* Constructor
*/
  -public JspDocumentParser(ParserController pc,
  -  String path,
  -  JarFile jarFile,
  -  boolean isTagFile,
  -  boolean directivesOnly) {
  +public JspDocumentParser(
  +ParserController pc,
  +String path,
  +JarFile jarFile,
  +boolean isTagFile,
  +boolean directivesOnly) {
   this.parserController = pc;
   this.ctxt = pc.getJspCompilationContext();
   this.pageInfo = pc.getCompiler().getPageInfo();
  @@ -135,77 +149,82 @@
*
* @throws JasperException
*/
  -public static Node.Nodes parse(ParserController pc,
  -String path,
  -JarFile jarFile,
  -Node parent,
  -boolean isTagFile,
  -boolean directivesOnly,
  -String pageEnc,
  -String jspConfigPageEnc,
  -boolean isEncodingSpecifiedInProlog)
  - throws JasperException {
  -
  - JspDocumentParser jspDocParser = new JspDocumentParser(pc,
  -   path,
  -jarFile,
  -

how's the jsp page compile into servlet

2003-09-01 Thread manish pandey
hello sir ,
  i am new in ur list. i would like to answer that
how's a jsp page covert into a servlet and where is
the .class file store in webapplication . and how a
web.xml find these servlet name and servlet class name
.plese
 tell me the internal details about application server
 
wating ur
reply
manish
 

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



DO NOT REPLY [Bug 22058] - incorrect JSP compilation

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

incorrect JSP compilation





--- Additional Comments From [EMAIL PROTECTED]  2003-09-01 06:47 ---
It's test1.jsp in the .zip

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



RE: how's the jsp page compile into servlet

2003-09-01 Thread Schalk
Manish

As far as I know, and anyone please correct me on this if I am wrong, this
is handled by the internal compiler within Tomcat and the .class is placed
within web application scope.

You can register a .jsp to act as a servlet and call it as if it is one. For
instance on our website we include our footer.jsp like this.

First add the following code to your web.xml:
servlet
servlet-namefooter/servlet-name
descriptionCopyright footer for www.volume4.co.za/description
jsp-file/includes/footer.jsp/jsp-file
 /servlet

You can now call it from anywhere within your webapps simply as
/servlet/footer, for instance jsp:include page=/servlet/footer
flush=true/

Hope this helps.

Kind Regards
Schalk Neethling
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 

:: -Original Message-
:: From: manish pandey [mailto:[EMAIL PROTECTED]
:: Sent: Monday, September 01, 2003 9:28 AM
:: To: [EMAIL PROTECTED]
:: Subject: how's the jsp page compile into servlet
:: 
:: hello sir ,
::   i am new in ur list. i would like to answer that
:: how's a jsp page covert into a servlet and where is
:: the .class file store in webapplication . and how a
:: web.xml find these servlet name and servlet class name
:: .plese
::  tell me the internal details about application server
:: 
:: wating ur
:: reply
:: manish
:: 
:: 
:: __
:: Do you Yahoo!?
:: Yahoo! SiteBuilder - Free, easy-to-use web site design software
:: http://sitebuilder.yahoo.com
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]



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



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

2003-09-01 Thread remm
remm2003/09/01 05:43:13

  Modified:catalina/src/share/org/apache/catalina/startup
SetDocBaseRule.java
  Log:
  - Unpack WARs if the host is not a standard host.
  - Allow unpackWAR to override the unpackWARs value (ie, if unpackWARs
is false, it can be used to force unpacking of a particular webapp which
would need filesystem access, unlike others within the host).
  
  Revision  ChangesPath
  1.6   +9 -6  
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/SetDocBaseRule.java
  
  Index: SetDocBaseRule.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/SetDocBaseRule.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- SetDocBaseRule.java   31 Aug 2003 15:50:18 -  1.5
  +++ SetDocBaseRule.java   1 Sep 2003 12:43:13 -   1.6
  @@ -75,6 +75,7 @@
   import org.apache.catalina.Deployer;
   import org.apache.catalina.Host;
   
  +import org.apache.catalina.core.StandardContext;
   import org.apache.catalina.core.StandardHost;
   
   /**
  @@ -127,10 +128,12 @@
   }
   String appBase = host.getAppBase();
   
  -if (!(host instanceof StandardHost)) {
  -return;
  +boolean unpackWARs = true;
  +if (host instanceof StandardHost) {
  +unpackWARs = ((StandardHost) host).isUnpackWARs();
   }
  -if (!((StandardHost) host).isUnpackWARs()) {
  +if (!unpackWARs 
  + !(true.equals(attributes.getValue(unpackWAR {
   return;
   }
   if (false.equals(attributes.getValue(unpackWAR))) {
  
  
  

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



Re: how's the jsp page compile into servlet

2003-09-01 Thread Rainbow Expressions

Pl ask questions which are relevant to the program in which you are involved.
Rainbow Expressions
http://www.rainbowexpressions.com


--- manish pandey [EMAIL PROTECTED] wrote:
hello sir ,
  i am new in ur list. i would like to answer that
how's a jsp page covert into a servlet and where is
the .class file store in webapplication . and how a
web.xml find these servlet name and servlet class name
.plese
 tell me the internal details about application server
 
wating ur
reply
manish
 

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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

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



[5.0.10] New build ?

2003-09-01 Thread Remy Maucherat
I think releasing a new build at the end of this week would be a good 
idea, given that most issues with 5.0.9 have been resolved.

The remaining issues I can think of:

* commons-daemon: Needs a 1.0 release (any volunteers ?); needs polish 
(display of log items in the console could probably be nicer, bug 18220).

* Schema validation issues: I still have issues validating jsp-examples, 
even with Xerces 2.1; anyone else experiencing this ? (Jean-François 
cannot reproduce this) By release time, we'd want to ship a newer 
Xerces, so the underlying issue would need to be fixed if possible.

* Classloader leaks in some situations after a reload (ex: reload the 
admin webapp, tested on Windows / JDK 1.4.2). There doesn't seem to be 
any reference leak, and yet the classloader is not getting GCed, so I'm 
puzzled. Anyone can help me debug this ?

* More bugfixes :)

* Anything else ?

Remy

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


[PATCH] Bug 3098 - Port to tc4

2003-09-01 Thread Mark Thomas
Port of my previous patch to tomcat 4. As previously, I took the opportunity to 
remove some unused imports.

Mark

Index: coyote/src/java/org/apache/coyote/tomcat4/CoyoteRequest.java
===
RCS file: 
/home/cvspublic/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/  
tomcat4/CoyoteRequest.java,v
retrieving revision 1.29
diff -u -r1.29 CoyoteRequest.java
--- coyote/src/java/org/apache/coyote/tomcat4/CoyoteRequest.java5 Apr 2003 
08:18:04 -  1.29
+++ coyote/src/java/org/apache/coyote/tomcat4/CoyoteRequest.java1 Sep 2003 
17:32:38 -
@@ -88,7 +88,6 @@

 import javax.servlet.RequestDispatcher;
 import javax.servlet.ServletContext;
-import javax.servlet.ServletException;
 import javax.servlet.ServletInputStream;
 import javax.servlet.ServletRequest;
 import javax.servlet.http.Cookie;
@@ -116,8 +115,6 @@
 import org.apache.catalina.util.StringManager;
 import org.apache.catalina.util.StringParser;

-import org.apache.tomcat.util.net.SSLSupport;
-
 /**
  * Wrapper object for the Coyote request.
  *
@@ -1097,13 +1094,23 @@
 if (servletPath == null)
 servletPath = getServletPath();

-int pos = servletPath.lastIndexOf('/');
+// Add the path info, if there is any
+String pathInfo = getPathInfo();
+String requestPath = null;
+
+if (pathInfo == null) {
+requestPath = servletPath;
+} else {
+requestPath = servletPath + pathInfo;
+}
+
+int pos = requestPath.lastIndexOf('/');
 String relative = null;
 if (pos = 0) {
 relative = RequestUtil.normalize
-(servletPath.substring(0, pos + 1) + path);
+(requestPath.substring(0, pos + 1) + path);
 } else {
-relative = RequestUtil.normalize(servletPath + path);
+relative = RequestUtil.normalize(requestPath + path);
 }

 return (context.getServletContext().getRequestDispatcher(relative));

Index: catalina/src/share/org/apache/catalina/connector/HttpRequestBase.java
===
RCS file: 
/home/cvspublic/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/co  
nnector/HttpRequestBase.java,v
retrieving revision 1.39
diff -u -r1.39 HttpRequestBase.java
--- catalina/src/share/org/apache/catalina/connector/HttpRequestBase.java   22 
Apr 2002 00:00:50 - 1.39
+++ catalina/src/share/org/apache/catalina/connector/HttpRequestBase.java   1 Sep 
2003 17:26:24 -
@@ -76,7 +76,6 @@
 import java.util.Date;
 import java.util.Enumeration;
 import java.util.HashMap;
-import java.util.Hashtable;
 import java.util.Locale;
 import java.util.Map;
 import javax.servlet.RequestDispatcher;
@@ -94,7 +93,6 @@
 import org.apache.catalina.util.Enumerator;
 import org.apache.catalina.util.ParameterMap;
 import org.apache.catalina.util.RequestUtil;
-import org.apache.catalina.util.StringParser;


 /**
@@ -793,13 +791,24 @@
 if (servletPath == null)
 servletPath = getServletPath();

-int pos = servletPath.lastIndexOf('/');
+// Add the path info, if there is any
+String pathInfo = getPathInfo();
+String requestPath = null;
+
+if (pathInfo == null) {
+requestPath = servletPath;
+} else {
+requestPath = servletPath + pathInfo;
+}
+
+int pos = requestPath.lastIndexOf('/');
+
 String relative = null;
 if (pos = 0) {
 relative = RequestUtil.normalize
-(servletPath.substring(0, pos + 1) + path);
+(requestPath.substring(0, pos + 1) + path);
 } else {
-relative = RequestUtil.normalize(servletPath + path);
+relative = RequestUtil.normalize(requestPath + path);
 }

 return (context.getServletContext().getRequestDispatcher(relative));


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



DO NOT REPLY [Bug 22823] - Tomcat 4.1.27 is missing from download directory? I only see 4.1.24 4.1.26-alpha

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

Tomcat 4.1.27 is missing from download directory? I only see 4.1.24   4.1.26-alpha

[EMAIL PROTECTED] changed:

   What|Removed |Added

   Severity|Major   |Minor
Summary|Tomcat 4.1.27 is missing|Tomcat 4.1.27 is missing
   |from download directory? I  |from download directory? I
   |only see 4.1.24   4.1.26-  |only see 4.1.24   4.1.26-
   |alpha   |alpha



--- Additional Comments From [EMAIL PROTECTED]  2003-09-01 17:51 ---
The readme is wrong. After a bit of hunting around I found where the files 
have moved to.
The latest release may be found at:
http://www.apache.org/dist/jakarta/tomcat-4/binaries/

Previous releases may be found at:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/archives/

I'll get the readme file updated.

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



DO NOT REPLY [Bug 22866] New: - Scanning of Struts 1.1 struts.jar is throwing exception leading to native JVM crash

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

Scanning of Struts 1.1 struts.jar is throwing exception leading to native JVM crash

   Summary: Scanning of Struts 1.1 struts.jar is throwing exception
leading to native JVM crash
   Product: Tomcat 4
   Version: 4.1.27
  Platform: Other
OS/Version: Other
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Catalina
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


In my current testing of a Tomcat 4.1.27 build (Redhat Linux 2.4.9, JVM
1.3.1_09) for our development teams, I am seeing that any webapp containing
Struts 1.1 is throwing an exception when the struts.jar is scanned, leading to a
JVM crash - the traces are shown below. Therefore, if Tomcat is built against
Struts 1.1, the admin webapp crashes, as do the example Struts webapps. This
does not happen with Struts 1.0.2.

Your help is greatly appreciated since we have rather a lot of apps dependent on
Struts and we would like to migrate to both Struts 1.1 and Tomcat 4 sooner
rather than later :-) This is the only real serious issue stopping me from
progressing further now!

Many thanks,

Kosh

catalina.out
-

Starting service Tomcat-Standalone
Apache Tomcat/4.1

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 7 occurred at PC=0x4058c7bb
Function name=(N/A)
Library=/home/podderko/3ps/jdk/1.3.1_09-linux/jre/lib/i386/libzip.so

NOTE: We are unable to locate the function name symbol for the error
  just occurred. Please refer to release documentation for possible
  reason and solutions.



Current Java thread:
at java.util.zip.ZipFile.getNextEntry(Native Method)
at java.util.zip.ZipFile.access$400(ZipFile.java:24)
at java.util.zip.ZipFile$2.nextElement(ZipFile.java:296)
at java.util.jar.JarFile$1.nextElement(JarFile.java:193)
at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.ja
va:909)
at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:
868)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:64
7)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:243)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
568)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:821)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDe
ployer.java:700)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.jav
a:252)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source
)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java:385)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:803)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
ava:442)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:399
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:358)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at 

DO NOT REPLY [Bug 22867] New: - Tag handlers can't be inner/nested classes

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

Tag handlers can't be inner/nested classes

   Summary: Tag handlers can't be inner/nested classes
   Product: Tomcat 4
   Version: 4.1.24
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Jasper
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


When I try to use a nested class such as com.foo.MyTag$Bar as a tag handler,
the JSP-generated class fails compilation due to the use of names containing $
in source code. It says something like perchance you meant com.foo.MyTag.Bar.
When I try replacing the $ with a . in the TLD file, it gives me this:

o.a.j.JasperException: /headlines.jsp(11,2) Unable to load class generator
  at o.a.j.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
  at o.a.j.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428)
  at o.a.j.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:219)
  at o.a.j.compiler.Parser.parseCustomTag(Parser.java:712)
  at o.a.j.compiler.Parser.parseElements(Parser.java:804)
  ...

(where I replaced org.apache.jasper with o.a.j to make the stack trace readable
in Bugzilla)

My exact same classes are working fine as tag handlers in the version of Tomcat
integrated into Borland Enterprise Server 5.2 (don't know what version that is,
nor which modifications they may have made, but it's certainly somewhat older
than Tomcat 4.1.24), but I'm seeing this failure in Tomcat 4.1.24 integrated
into JBoss 3.2.1. Thus I do not know for sure whether this problem is a result
of a classloader bug introduced by the JBoss integration (or one fixed by the
BES integration) or simply a Tomcat/Jasper bug that cropped up sometime between
these two versions.

I also don't know whether this should go to the Jasper component or the Jasper2
component (no version info in the jasper-compiler.jar and jasper-runtime.jar
manifest files)

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



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

2003-09-01 Thread remm
remm2003/09/01 14:11:21

  Modified:catalina/src/share/org/apache/catalina/loader
WebappClassLoader.java
  Log:
  - Revert my patch. It works well with log4j, but not with the JDK 1.4 logger.
  
  Revision  ChangesPath
  1.23  +2 -1  
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/loader/WebappClassLoader.java
  
  Index: WebappClassLoader.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/loader/WebappClassLoader.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- WebappClassLoader.java1 Sep 2003 20:31:29 -   1.22
  +++ WebappClassLoader.java1 Sep 2003 21:11:21 -   1.23
  @@ -201,6 +201,7 @@
   javax, // Java extensions
   org.xml.sax,   // SAX 1  2
   org.w3c.dom,   // DOM 1  2
  +org.apache.commons.logging,// Commons logging.
   org.apache.xerces, // Xerces 1  2
   org.apache.xalan   // Xalan
   };
  
  
  

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



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

2003-09-01 Thread remm
remm2003/09/01 13:31:29

  Modified:catalina/src/share/org/apache/catalina/loader
WebappClassLoader.java
  Log:
  - Things have changed in commons-logging, and we must never delegate.
The logger (ex: log4j) must reside either in the same CL as commons-logging,
or in one of its parents.
  
  Revision  ChangesPath
  1.22  +1 -2  
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/loader/WebappClassLoader.java
  
  Index: WebappClassLoader.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/loader/WebappClassLoader.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- WebappClassLoader.java31 Aug 2003 14:43:46 -  1.21
  +++ WebappClassLoader.java1 Sep 2003 20:31:29 -   1.22
  @@ -202,7 +202,6 @@
   org.xml.sax,   // SAX 1  2
   org.w3c.dom,   // DOM 1  2
   org.apache.xerces, // Xerces 1  2
  -org.apache.commons.logging,// Commons logging.
   org.apache.xalan   // Xalan
   };
   
  
  
  

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