PATCH - jk_workerEnv.c - Use jk_global.h defines

2004-04-19 Thread NormW
Greetings All.
The following link is to a patch which changes two string constants in
jk_workerEnv.c to use an existing #define in jk_global.h. A copy of the
patch is added at the end. The patch has been successfuly applied and
compiled on a NetWare platform.
http://normw.gknw.com/patches/jk_workerEnv.c.diff
Norm
-
 jk_workerEnv.c.orig 2004-03-22 07:46:03.0 +1100
+++ jk_workerEnv.c 2004-04-19 11:09:46.0 +1000
@@ -293,7 +293,7 @@
 if (configFile == NULL) {
 wEnv->config->setPropertyString(env, wEnv->config,
 "config.file",
-
"${serverRoot}/conf/workers2.properties");
+JK_WORKER_FILE_DEF);
 configFile = wEnv->config->file;
 }

@@ -334,7 +334,7 @@
 if (configFile == NULL) {
 wEnv->config->setPropertyString(env, wEnv->config,
 "config.file",
-
"${serverRoot}/conf/workers2.properties");
+JK_WORKER_FILE_DEF);
 configFile = wEnv->config->file;
 }
 


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



Re: Great West Vans Brochure

2004-04-19 Thread brochure
We will check your location and email you the contact information for the dealer 
nearest you within 3 business days. If you need this information sooner, please 
contact us directly at 888-498-8267 or if after office hours, contact Jeremy Grattan 
at 204-794-7465.



Following is a direct link to our download area. 



USERNAME: open 

PASSWORD: roads



http://www.greatwestvans.com/download



If you have problems downloading, contact us at 888-498-8267 or if after office hours, 
contact Jeremy Grattan at 204-794-7465.



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



You cannot do that!

2004-04-19 Thread mmanders
I am shocked about your document!


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

Re: Great West Vans Brochure

2004-04-19 Thread brochure
We will check your location and email you the contact information for the dealer 
nearest you within 3 business days. If you need this information sooner, please 
contact us directly at 888-498-8267 or if after office hours, contact Jeremy Grattan 
at 204-794-7465.



Following is a direct link to our download area. 



USERNAME: open 

PASSWORD: roads



http://www.greatwestvans.com/download



If you have problems downloading, contact us at 888-498-8267 or if after office hours, 
contact Jeremy Grattan at 204-794-7465.



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



DO NOT REPLY [Bug 28465] New: - Cannot use jsp error pages from servlets

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=28465

Cannot use jsp error pages from servlets

   Summary: Cannot use jsp error pages from servlets
   Product: Tomcat 5
   Version: 5.0.19
  Platform: PC
OS/Version: Windows NT/2K
Status: NEW
  Severity: Major
  Priority: Other
 Component: Jasper
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


I try to use a jsp error page from a servlet to report an exception by first 
setting the request attribute "javax.servlet.error.exception" to the exception 
object and then forwarding to the jsp page.

This worked fine with Tomcat 4 but with Tomcat 5.0.19 the default error page is 
displayed instead. However my error page is displayed correctly if it commits 
the response (is larger than the page buffer) or it removes the error attribute.

So It appears that Tomcat always calls my error page but after the call it 
tries to forward to the default error page if the error attribute exists.

The situation is the same if I use the "javax.servlet.jsp.jspException" 
attribute.

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



DO NOT REPLY [Bug 28423] - jsp page directive doesn't work

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=28423

jsp page directive doesn't work





--- Additional Comments From [EMAIL PROTECTED]  2004-04-19 10:54 ---
I have the same problem. Is there any workaround for this?
Any help would be app...

Edyta

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



DO NOT REPLY [Bug 28380] - Dynamic attributes with non-alphanumeric chars in names do not work in classic tag handlers with pooling enabled

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=28380

Dynamic attributes with non-alphanumeric chars in names do not work in classic tag 
handlers with pooling enabled

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|INVALID |



--- Additional Comments From [EMAIL PROTECTED]  2004-04-19 11:11 ---
Yes.
I have my own tag handler that implement DynamicAttributes interface, say
public class ComponentTag extends TagSupport implements
javax.servlet.jsp.tagext.DynamicAttributes {
public synchronized void setDynamicAttribute(String uri, String localname,
Object o) throws JspException {}
}

registered as myTagLib:myTag.

When I try to call 
or  I am getting an exception from javac
that can't create tag pool variable in JSP class with "style.width" or
"myTagLib:myTagAttribute" string in it's name.

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



DO NOT REPLY [Bug 28466] New: - JSP EL Functions without argument do not work

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=28466

JSP EL Functions without argument do not work

   Summary: JSP EL Functions without argument do not work
   Product: Tomcat 5
   Version: 5.0.16
  Platform: Other
OS/Version: Other
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Jasper
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


I am trying to describe a function in a tld:

  
Retrieves FacesContext
  
  facesContext
 
com.gtechua.docapi.modules.jsf.ass.util.JSPFuncs
  javax.faces.context.FacesContext
getFacesContext()

When I am trying to use it:

I am getting
org.apache.jasper.JasperException: The class  specified in the method signature
in TLD for the function ass:facesContext cannot be found. 

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:404)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:219)

org.apache.jasper.compiler.Validator$1MapperELVisitor.visit(Validator.java:1405)
org.apache.jasper.compiler.ELNode$Function.accept(ELNode.java:163)
org.apache.jasper.compiler.ELNode$Nodes.visit(ELNode.java:234)
org.apache.jasper.compiler.ELNode$Visitor.visit(ELNode.java:275)
org.apache.jasper.compiler.ELNode$Root.accept(ELNode.java:94)
org.apache.jasper.compiler.ELNode$Nodes.visit(ELNode.java:234)

org.apache.jasper.compiler.Validator$ValidateVisitor.getFunctionMapper(Validator.java:1420)

org.apache.jasper.compiler.Validator$ValidateVisitor.getJspAttribute(Validator.java:1141)

org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:966)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:739)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1458)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2230)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:759)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1458)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2230)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:759)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1458)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2230)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:759)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1458)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2230)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:759)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1458)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2230)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2236)
org.apache.jasper.compiler.Node$Root.accept(Node.java:485)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2180)
org.apache.jasper.compiler.Validator.validate(Validator.java:1515)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:247)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:142)

com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.fa

Yahoo! À´ÐÅ×Ô¶¯»Ø¸´

2004-04-19 Thread zjx690707
³ÉÈËÓÃÆ·¡¢·ÀÉíÓÃÆ·¡¢¸ãЦÍæ¾ßµÈ
http://www.nu18.com/pggw/?mid=zjx690707




Original Message:


X-Rocket-Spam: 221.217.57.0
X-YahooFilteredBulk: 221.217.57.0
X-Rocket-Track: 13525: 20 ; SERVER=66.163.174.40
Return-Path: <[EMAIL PROTECTED]>
Received: from 221.217.57.0  (EHLO yahoo.com.cn) (221.217.57.0)
  by mta145.mail.sc5.yahoo.com with SMTP; Mon, 19 Apr 2004 04:38:30 -0700
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Delivery Failure ([EMAIL PROTECTED])
Date: Mon, 19 Apr 2004 19:39:08 +0800
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="=_NextPart_000_0016=_NextPart_000_0016"
X-Priority: 1
X-MSMail-Priority: High

This is a multi-part message in MIME format.

--=_NextPart_000_0016=_NextPart_000_0016
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: 7bit


Mail Delivery Failure - This mail couldn't be shown.

- failed message -
hOgf-yYUOMa6,TR(MlB?JZk#w69VYö.YG.HXnNQIfA&UbF
%uQABß6++k_Hok:l$47NxBUkä~LZß*?bQ>N3&i|U_S?2
~4(UF_Xlj4J5.W8ljinV%GTo)a;&hCßGsWmW.eS
_
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com


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



DO NOT REPLY [Bug 28466] - JSP EL Functions without argument do not work

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=28466

JSP EL Functions without argument do not work

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE



--- Additional Comments From [EMAIL PROTECTED]  2004-04-19 11:53 ---
Please read this: http://jakarta.apache.org/tomcat/bugreport.html

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

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



DO NOT REPLY [Bug 26628] - Function without parameters never found

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=26628

Function without parameters never found

[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]



--- Additional Comments From [EMAIL PROTECTED]  2004-04-19 11:53 ---
*** Bug 28466 has been marked as a duplicate of this bug. ***

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



DO NOT REPLY [Bug 18479] - HttpSessionBindingListener.valueUnbound() not called

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=18479

HttpSessionBindingListener.valueUnbound() not called

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
Product|Tomcat 4|Tomcat 5
 Resolution|FIXED   |
Version|4.1.18  |5.0.19



--- Additional Comments From [EMAIL PROTECTED]  2004-04-19 12:22 ---
I think Jacob is right cause I have a similiar problem:

Using Tomcat 5.0.19 I call the function invalidate() to destroy the session. 
There is a Listener but the method valueUnbound() is not called.

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



DO NOT REPLY [Bug 28465] - Cannot use jsp error pages from servlets

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=28465

Cannot use jsp error pages from servlets

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2004-04-19 14:01 ---
Please use the container's error page mechanism, rather than try to hack up yours.

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



DO NOT REPLY [Bug 28469] New: - stderr is closed when it is used by jk_logger_file.c

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=28469

stderr is closed when it is used by jk_logger_file.c

   Summary: stderr is closed when it is used by jk_logger_file.c
   Product: Tomcat 5
   Version: Unknown
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Native:JK
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


I'm using mod_jk2 2.0.4. jk_logger_file.c uses apr_file_open_stderr to create a
stderr handle. jk2_logger_file_init is called twice - once from setProperty, and
once from jk2_workerEnv_init. on the second call, the previously created stderr
handle is closed, and another apr_file_t handle is created - on the already
closed file handle 2. nothing is logged from now on, EBADF.

(there is no separate bugzilla product for tomcat-connectors, so I put this
report into Tomcat 5/Native:JK, no idea if this is correct)

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



DO NOT REPLY [Bug 28470] New: - Closed wars don't load classes correctly.

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=28470

Closed wars don't load classes correctly.

   Summary: Closed wars don't load classes correctly.
   Product: Tomcat 5
   Version: 5.0.19
  Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
  Severity: Normal
  Priority: Other
 Component: Webapps:Manager
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


The problem i'm experiencing is this.

org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 
'/index.vm'

org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 
'/index.vm'
at org.apache.velocity.runtime.resource.ResourceManagerImpl.
loadResource(ResourceManagerImpl.java:501)


---

I've deployed a war through the manager interface.  It deploys fine, picks up 
the xml file with my context in it, datasource etc.
First time i go to a page i get the above error.

I have unpackWARs set to false because i want to be able to reload my war 
without undeploying (I believe this possible).
This is the Host tag in the server.xml


Questions.
- Am i doing something wrong
- Is there another way i can get my war to redeploy (without having to undeploy 
redeploy)?

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



DO NOT REPLY [Bug 28470] - Closed wars don't load classes correctly.

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=28470

Closed wars don't load classes correctly.

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2004-04-19 14:57 ---
You can redeploy without that. Please read this:
http://jakarta.apache.org/tomcat/bugreport.html
Why didn't you try posting on tomcat-user instead ?

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



compiling isapi redirector 1.2.5 - different file size

2004-04-19 Thread Mathias . Hemmeter
Hi all!

I just downloaded the source code of the jakarta-tomcat-connectors in order
to compile the isapi redirector 1.2.5. Importing the project isapi.dsp into
MS Visual C++ and compiling the project was no problem. But unfortunately
the resulting tomcat_redirector.dll is not working at all. What seems curios
to me is that the resulting DLL has got a size of 104 KB whereas the binary
version of the DLL has got a size of 160 KB. By the way: The binary version
of the redirector is working great (unfortunaltly I have some
upload-problems with files greater than 56 KB - known as Bug 15278 in the
Apache Bug Database...) in my enviroment. Has anybody run into similar
problems and can anybody tell me something about the different file sizes? 

Thank you, in advance, for your help 
Mathias



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



Hi, it's me

2004-04-19 Thread ccain


Norton AntiVirus gelöscht1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

hey you

2004-04-19 Thread craigmcc


Norton AntiVirus gelöscht1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

pageEncoing and contentType

2004-04-19 Thread seiji takegata
Hi,

I'm trying to generate PDF document from JSP, using itext library.
 (http://www.lowagie.com/iText/)  

I set contentType attribute to get browser open AdobeReader, and
pageEncoding to get right encoding for Japanese characters,

<%@ page contentType="application/pdf" pageEncoding="Shift_JIS" %>

Jasper translates this line to;

response.setContentType("application/pdf;charset=Shift_JIS");

I want to set response type to look like PDF without any 
particular encoding, and to tell Jasper that my source 
encoded with "Shift_JIS", because IE does not recognize 
the contentType if charset option is added.

My question is:
1. Why Jasper adds charset option when I specify pageEncoding attribute?
2. Can I make Jasper not to add charset option when I use pageEncoding?

I posted same question to tomcat-user ML, then I was suggested to post 
this question to tomcat-dev list.

This is my first message to this list.
Thanks you.
--
seiji takegata
[EMAIL PROTECTED]

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



Re: Your letter

2004-04-19 Thread glenn
Here is the file.

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

cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm RealmBase.java

2004-04-19 Thread luehe
luehe   2004/04/19 13:42:01

  Modified:catalina/src/share/org/apache/catalina/realm RealmBase.java
  Log:
  Exempt welcome pages from any security-constraint checks.
  
  The Servlet 2.4 spec does not require this (and there are no CTS tests
  for this), but it seems like a reasonable enhancement. I was told that
  the upcoming maintenance release of the Servlet spec is going to
  clarify this.
  
  If this change is controversial, I'll back it out for the time being,
  until it is backed by the Servlet spec. Please let me know.
  
  Revision  ChangesPath
  1.31  +28 -3 
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm/RealmBase.java
  
  Index: RealmBase.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm/RealmBase.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- RealmBase.java27 Feb 2004 14:58:45 -  1.30
  +++ RealmBase.java19 Apr 2004 20:42:01 -  1.31
  @@ -411,7 +411,12 @@
   // Check each defined security constraint
   HttpServletRequest hreq = (HttpServletRequest) request.getRequest();
   String uri = request.getRequestPathMB().toString();
  -
  +
  +// Welcome files are exempted from any security-constraint checks
  +if (isWelcomeFile(uri, context)) {
  +return null;
  +}
  +
   String method = hreq.getMethod();
   int i;
   boolean found = false;
  @@ -582,7 +587,27 @@
   return array;
   }
   
  -
  +
  +/*
  + * Returns true of the given uri identifies a welcome file.
  + *
  + * @param uri The URI to check against the context's list of welcome files
  + * @param ctx The web context
  + * 
  + * @return true if the given uri identifies a welcome file,
  + * false otherwise
  + */
  +private boolean isWelcomeFile(String uri, Context ctx) {
  +
  +int slash = uri.indexOf('/');
  +if (slash == 0 && uri.length() > 1) {
  +return ctx.findWelcomeFile(uri.substring(1));
  +} else {
  +return false;
  +}
  +}
  +
  + 
   /**
* Perform access control based on the specified authorization constraint.
* Return true if this constraint is satisfied and processing
  
  
  

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



Re: cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm RealmBase.java

2004-04-19 Thread Remy Maucherat
[EMAIL PROTECTED] wrote:
luehe   2004/04/19 13:42:01

  Modified:catalina/src/share/org/apache/catalina/realm RealmBase.java
  Log:
  Exempt welcome pages from any security-constraint checks.
  
  The Servlet 2.4 spec does not require this (and there are no CTS tests
  for this), but it seems like a reasonable enhancement. I was told that
  the upcoming maintenance release of the Servlet spec is going to
  clarify this.
  
  If this change is controversial, I'll back it out for the time being,
  until it is backed by the Servlet spec. Please let me know.
-1. This is very inefficient. I also happen don't dislike the current 
behavior ;)

Rémy

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


LAURA LEE OLAWSKY/spps is out of the office.

2004-04-19 Thread LAURA . LEE . OLAWSKY
I will be out of the office starting  04/19/2004 and will not return until
04/20/2004.

If your matter needs attention before my return, you may contact contact
Kim Motz at 651-767-8216 for assistance.



-
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 Generator.java JspUtil.java

2004-04-19 Thread kinman
kinman  2004/04/19 14:10:19

  Modified:jasper2/src/share/org/apache/jasper/compiler Generator.java
JspUtil.java
  Log:
  - Fix 28380: Javac error with ':' and '.' in attribute names.
  
  Revision  ChangesPath
  1.232 +7 -29 
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.231
  retrieving revision 1.232
  diff -u -r1.231 -r1.232
  --- Generator.java5 Apr 2004 16:07:41 -   1.231
  +++ Generator.java19 Apr 2004 21:10:19 -  1.232
  @@ -254,18 +254,6 @@
   boolean hasEmptyBody) {
   String poolName = null;
   
  -if (prefix.indexOf('-') >= 0)
  -prefix = JspUtil.replace(prefix, '-', "$1");
  -if (prefix.indexOf('.') >= 0)
  -prefix = JspUtil.replace(prefix, '.', "$2");
  -
  -if (shortName.indexOf('-') >= 0)
  -shortName = JspUtil.replace(shortName, '-', "$1");
  -if (shortName.indexOf('.') >= 0)
  -shortName = JspUtil.replace(shortName, '.', "$2");
  -if (shortName.indexOf(':') >= 0)
  -shortName = JspUtil.replace(shortName, ':', "$3");
  -
   poolName = "_jspx_tagPool_" + prefix + "_" + shortName;
   if (attrs != null) {
   String[] attrNames = new String[attrs.getLength()];
  @@ -280,7 +268,7 @@
   if (hasEmptyBody) {
   poolName = poolName + "_nobody";
   }
  -return poolName;
  +return JspUtil.makeXmlJavaIdentifier(poolName);
   }
   }
   
  @@ -2617,37 +2605,27 @@
   
   /*
* Creates a tag variable name by concatenating the given prefix and
  - * shortName and replacing '-' with "$1", '.' with "$2", and ':' with
  - * "$3".
  + * shortName and endcoded to make the resultant string a valid Java
  + * Identifier.
*/
   private String createTagVarName(
   String fullName,
   String prefix,
   String shortName) {
  -if (prefix.indexOf('-') >= 0)
  -prefix = JspUtil.replace(prefix, '-', "$1");
  -if (prefix.indexOf('.') >= 0)
  -prefix = JspUtil.replace(prefix, '.', "$2");
  -
  -if (shortName.indexOf('-') >= 0)
  -shortName = JspUtil.replace(shortName, '-', "$1");
  -if (shortName.indexOf('.') >= 0)
  -shortName = JspUtil.replace(shortName, '.', "$2");
  -if (shortName.indexOf(':') >= 0)
  -shortName = JspUtil.replace(shortName, ':', "$3");
   
  +String varName;
   synchronized (tagVarNumbers) {
  -String varName = prefix + "_" + shortName + "_";
  +varName = prefix + "_" + shortName + "_";
   if (tagVarNumbers.get(fullName) != null) {
   Integer i = (Integer)tagVarNumbers.get(fullName);
   varName = varName + i.intValue();
   tagVarNumbers.put(fullName, new Integer(i.intValue() + 1));
  -return varName;
   } else {
   tagVarNumbers.put(fullName, new Integer(1));
  -return varName + "0";
  +varName = varName + "0";
   }
   }
  +return JspUtil.makeXmlJavaIdentifier(varName);
   }
   
   private String evaluateAttribute(
  
  
  
  1.48  +21 -0 
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspUtil.java
  
  Index: JspUtil.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JspUtil.java,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -r1.47 -r1.48
  --- JspUtil.java  17 Mar 2004 19:23:03 -  1.47
  +++ JspUtil.java  19 Apr 2004 21:10:19 -  1.48
  @@ -1003,6 +1003,27 @@
   return false;
   }
   
  +/**
  + * Converts the given Xml name to a legal Java identifier.  This is
  + * slightly more efficient than makeJavaIdentifier in that we only need
  + * to worry about '.', '-', and ':' in the string.  We also assume that
  + * the resultant string is further concatenated with some prefix string
  + * so that we don't have to worry about it being a Java key word.
  + *
  + * @param name Identifier to convert
  + *
  + * @return Legal Java identifier corresponding to the give

DO NOT REPLY [Bug 28380] - Dynamic attributes with non-alphanumeric chars in names do not work in classic tag handlers with pooling enabled

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=28380

Dynamic attributes with non-alphanumeric chars in names do not work in classic tag 
handlers with pooling enabled

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2004-04-19 21:15 ---
Ah, so the bug covers that cases when there is a '.' or ':' in the attribute
names.  I was lead off track with the mention of dynamic attributes.

Fixed in CVS.

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



JK2 for Win32

2004-04-19 Thread Joao Medeiros
Hi folks,

I just tried downloading the JK2 Connectors for Apache 1.3.2 on Win32 
and noticed that the modules sub-dir instead of dll's has so's... I take 
it these are for Apache on linux. Anyone got any ideas or pointers so I 
can get the right archives?

TIA,
--JM


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


cvs commit: jakarta-tomcat-catalina/webapps/admin/resources dataSources.jspf

2004-04-19 Thread amyroh
amyroh  2004/04/19 14:50:48

  Modified:webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm
AddRealmAction.java DataSourceRealmForm.java
EditRealmAction.java
   webapps/admin/realm dataSourceRealm.jsp
   webapps/admin/resources dataSources.jspf
  Log:
  Add minor fixes to complete fix for 28441.
  DataSourceRealm is now supported via admin.
  
  Revision  ChangesPath
  1.8   +2 -1  
jakarta-tomcat-catalina/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/AddRealmAction.java
  
  Index: AddRealmAction.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/AddRealmAction.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- AddRealmAction.java   17 Apr 2004 02:50:41 -  1.7
  +++ AddRealmAction.java   19 Apr 2004 21:50:48 -  1.8
  @@ -231,6 +231,7 @@
   realmFm.setUserTable("");
   realmFm.setDebugLvlVals(Lists.getDebugLevels());
   realmFm.setRealmTypeVals(types);
  +realmFm.setBooleanVals(Lists.getBooleanValues());
   }
   
   
  
  
  
  1.2   +24 -2 
jakarta-tomcat-catalina/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/DataSourceRealmForm.java
  
  Index: DataSourceRealmForm.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/DataSourceRealmForm.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DataSourceRealmForm.java  17 Apr 2004 02:53:17 -  1.1
  +++ DataSourceRealmForm.java  19 Apr 2004 21:50:48 -  1.2
  @@ -78,6 +78,10 @@
*/
   private String userTable = null;
   
  +/*
  + * Represent boolean (true, false) values for unpackWARs etc.
  + */
  +private List booleanVals = null;
   
   // - Properties
   
  @@ -226,6 +230,24 @@
   
   }
   
  +/**
  + * Return the booleanVals.
  + */
  +public List getBooleanVals() {
  +
  +return this.booleanVals;
  +
  +}
  +
  +/**
  + * Set the booleanVals.
  + */
  +public void setBooleanVals(List booleanVals) {
  +
  +this.booleanVals = booleanVals;
  +
  +}
  +
   // - Public Methods
   
   /**
  @@ -239,7 +261,7 @@
   super.reset(mapping, request);   
   this.dataSourceName = null;
   this.digest = null;
  -this.localDataSource = null;
  +this.localDataSource = "false";
   
   this.roleNameCol = null;
   this.userCredCol = null;
  
  
  
  1.7   +2 -1  
jakarta-tomcat-catalina/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/EditRealmAction.java
  
  Index: EditRealmAction.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/webapps/admin/WEB-INF/classes/org/apache/webapp/admin/realm/EditRealmAction.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- EditRealmAction.java  17 Apr 2004 02:50:41 -  1.6
  +++ EditRealmAction.java  19 Apr 2004 21:50:48 -  1.7
  @@ -415,6 +415,7 @@
   realmFm.setRealmType(realmType);
   realmFm.setDebugLvlVals(Lists.getDebugLevels());
   realmFm.setAllowDeletion(allowDeletion(rname));
  +realmFm.setBooleanVals(Lists.getBooleanValues());
   
   String attribute = null;
   try {
  
  
  
  1.2   +3 -3  jakarta-tomcat-catalina/webapps/admin/realm/dataSourceRealm.jsp
  
  Index: dataSourceRealm.jsp
  ===
  RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/admin/realm/dataSourceRealm.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- dataSourceRealm.jsp   17 Apr 2004 02:53:17 -  1.1
  +++ dataSourceRealm.jsp   19 Apr 2004 21:50:48 -  1.2
  @@ -107,12 +107,12 @@
   
   
   
  -
  -
  +
  +   
   :
   
  
  - 
  + 

   
  
  
  
  1.5   +1 -1  jakarta-tomcat-catalina/webapps/admin/resources/dataSources.jspf
  
  Index: dataSources.jspf
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/webapps/admin/resources/dataSources.jspf,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- dataSources.jspf  28 Mar 2003 02:

DO NOT REPLY [Bug 28441] - HTTP 500 editing Context

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=28441

HTTP 500 editing Context

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2004-04-19 21:54 ---
Added DataSourceRealm support in admin.  The fix is in cvs and should be
available in the next release.

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



doFilter does not return

2004-04-19 Thread Phillip Rhodes

I am calling doFilter with a wrapped request and response in tomcat 5.0.19
and the call do chain.doFilter does not return after I call it.

Strangely enough, it appears that after my jsp finishes up in the chain,
tomcat is re-starting the request of the same jsp.

I have a System.out.println() in my jsp, and when the loop variable gets
to the end, the wrapper's setContentType() is called, but then the loop
variable gets reset to 0, as if the request was re-submitted.

My questions:
1)  What code can I look at that may be responsible for this?
2)  Debugging, I set all the debug="4" in server.xml, is there some
universal property or setting I can make that will just give me the
copious amounts of debug information that I need?

Thanks for your time.


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



cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm RealmBase.java

2004-04-19 Thread luehe
luehe   2004/04/19 16:13:08

  Modified:catalina/src/share/org/apache/catalina/realm RealmBase.java
  Log:
  Reverted previous patch
  
  Revision  ChangesPath
  1.32  +2 -27 
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm/RealmBase.java
  
  Index: RealmBase.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm/RealmBase.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- RealmBase.java19 Apr 2004 20:42:01 -  1.31
  +++ RealmBase.java19 Apr 2004 23:13:08 -  1.32
  @@ -411,12 +411,7 @@
   // Check each defined security constraint
   HttpServletRequest hreq = (HttpServletRequest) request.getRequest();
   String uri = request.getRequestPathMB().toString();
  -
  -// Welcome files are exempted from any security-constraint checks
  -if (isWelcomeFile(uri, context)) {
  -return null;
  -}
  -
  +
   String method = hreq.getMethod();
   int i;
   boolean found = false;
  @@ -587,27 +582,7 @@
   return array;
   }
   
  -
  -/*
  - * Returns true of the given uri identifies a welcome file.
  - *
  - * @param uri The URI to check against the context's list of welcome files
  - * @param ctx The web context
  - * 
  - * @return true if the given uri identifies a welcome file,
  - * false otherwise
  - */
  -private boolean isWelcomeFile(String uri, Context ctx) {
  -
  -int slash = uri.indexOf('/');
  -if (slash == 0 && uri.length() > 1) {
  -return ctx.findWelcomeFile(uri.substring(1));
  -} else {
  -return false;
  -}
  -}
  -
  - 
  +
   /**
* Perform access control based on the specified authorization constraint.
* Return true if this constraint is satisfied and processing
  
  
  

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



Re: cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm RealmBase.java

2004-04-19 Thread Bill Barker

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 19, 2004 1:42 PM
Subject: cvs commit:
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm
RealmBase.java


> luehe   2004/04/19 13:42:01
>
>   Modified:catalina/src/share/org/apache/catalina/realm RealmBase.java
>   Log:
>   Exempt welcome pages from any security-constraint checks.
>
>   The Servlet 2.4 spec does not require this (and there are no CTS tests
>   for this), but it seems like a reasonable enhancement. I was told that
>   the upcoming maintenance release of the Servlet spec is going to
>   clarify this.
>
>   If this change is controversial, I'll back it out for the time being,
>   until it is backed by the Servlet spec. Please let me know.
>

I second Remy's -1.  The patch only exempts only the top level welcome file
(e.g. /myapp/index.jsp), and so is meaningful mostly in the case where you
have a security constraint mapped to '/*'.  In this case, you can easily add
a security-constraint with an exact pattern '/index.jsp' if you need the
functionality.

Also, if the welcome file includes links to images or stylesheets, then it
is likely that you will have to setup even more complex security-constraints
to allow it to display.  If the spec eventually mandates it, then we'll have
to do it.  Until then it breaks more things than it fixes, IMHO.



This message is intended only for the use of the person(s) listed above as the 
intended recipient(s), and may contain information that is PRIVILEGED and 
CONFIDENTIAL.  If you are not an intended recipient, you may not read, copy, or 
distribute this message or any attachment. If you received this communication in 
error, please notify us immediately by e-mail and then delete all copies of this 
message and any attachments.

In addition you should be aware that ordinary (unencrypted) e-mail sent through the 
Internet is not secure. Do not send confidential or sensitive information, such as 
social security numbers, account numbers, personal identification numbers and 
passwords, to us via ordinary (unencrypted) e-mail.

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

cvs commit: jakarta-tomcat-catalina/webapps/admin/resources dataSources.jspf

2004-04-19 Thread amyroh
amyroh  2004/04/19 16:54:04

  Modified:webapps/admin/resources dataSources.jspf
  Log:
  Revert unwanted change.
  
  Revision  ChangesPath
  1.6   +1 -1  jakarta-tomcat-catalina/webapps/admin/resources/dataSources.jspf
  
  Index: dataSources.jspf
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/webapps/admin/resources/dataSources.jspf,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- dataSources.jspf  19 Apr 2004 21:50:48 -  1.5
  +++ dataSources.jspf  19 Apr 2004 23:54:04 -  1.6
  @@ -28,6 +28,7 @@
   
 
  +
   
 

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

2004-04-19 Thread luehe
luehe   2004/04/19 17:05:09

  Modified:jasper2/src/share/org/apache/jasper
JspCompilationContext.java
   jasper2/src/share/org/apache/jasper/servlet
JspServletWrapper.java
  Log:
  When in deployment (ie., !development) mode, save any compilation exceptions and 
rethrow them (instead of recompiling and getting the same exception over and over 
again) until the next scheduled recompilation
  
  Revision  ChangesPath
  1.46  +7 -2  
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.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- JspCompilationContext.java17 Mar 2004 19:23:03 -  1.45
  +++ JspCompilationContext.java20 Apr 2004 00:05:09 -  1.46
  @@ -506,12 +506,17 @@
   try {
   jspCompiler.compile();
   jsw.setReload(true);
  +jsw.setCompilationException(null);
   } catch (JasperException ex) {
  +jsw.setCompilationException(ex);
   throw ex;
   } catch (Exception ex) {
   ex.printStackTrace();
  -throw new 
JasperException(Localizer.getMessage("jsp.error.unable.compile"),
  -  ex);
  +JasperException je = new JasperException(
  +Localizer.getMessage("jsp.error.unable.compile"),
  +ex);
  +jsw.setCompilationException(je);
  +throw je;
   }
   }
   }
  
  
  
  1.35  +27 -3 
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/servlet/JspServletWrapper.java
  
  Index: JspServletWrapper.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/servlet/JspServletWrapper.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- JspServletWrapper.java16 Apr 2004 23:01:29 -  1.34
  +++ JspServletWrapper.java20 Apr 2004 00:05:09 -  1.35
  @@ -73,6 +73,7 @@
   private boolean reload = true;
   private boolean isTagFile;
   private int tripCount;
  +private JasperException compileException;
   
   /*
* JspServletWrapper for JSP pages.
  @@ -143,8 +144,6 @@
   
   if (!firstTime) {
   ctxt.getRuntimeContext().incrementJspReloadCount();
  -} else {
  -firstTime = false;
   }
   
   reload = false;
  @@ -158,6 +157,16 @@
   return config.getServletContext();
   }
   
  +/*
  + * Sets the compilation exception for this JspServletWrapper.
  + *
  + * @param je The compilation exception
  + */
  +public void setCompilationException(JasperException je) {
  +this.compileException = je;
  +}
  +
  +
   /**
* Compile (if needed) and load a tag file
*/
  @@ -169,9 +178,17 @@
   }
   if (options.getDevelopment() || firstTime ) {
   synchronized (this) {
  +if (firstTime) {
  +firstTime = false;
  +}
   ctxt.compile();
   }
  +} else {
  +if (compileException != null) {
  +throw compileException;
  +}
   }
  +
   if (reload) {
   tagHandlerClass = ctxt.load();
   }
  @@ -249,9 +266,16 @@
Localizer.getMessage("jsp.error.unavailable"));
   }
   
  -if (options.getDevelopment()  || firstTime ) {
  +if (options.getDevelopment() || firstTime ) {
   synchronized (this) {
  +if (firstTime) {
  +firstTime = false;
  +}
   ctxt.compile();
  +}
  +} else {
  +if (compileException != null) {
  +throw compileException;
   }
   }
   
  
  
  

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



Re: pageEncoing and contentType

2004-04-19 Thread Jan Luehe
seiji takegata wrote:
Hi,

I'm trying to generate PDF document from JSP, using itext library.
 (http://www.lowagie.com/iText/)  

I set contentType attribute to get browser open AdobeReader, and
pageEncoding to get right encoding for Japanese characters,
<%@ page contentType="application/pdf" pageEncoding="Shift_JIS" %>

Jasper translates this line to;

response.setContentType("application/pdf;charset=Shift_JIS");

I want to set response type to look like PDF without any 
particular encoding, and to tell Jasper that my source 
encoded with "Shift_JIS", because IE does not recognize 
the contentType if charset option is added.

My question is:
1. Why Jasper adds charset option when I specify pageEncoding attribute?
2. Can I make Jasper not to add charset option when I use pageEncoding?
I posted same question to tomcat-user ML, then I was suggested to post 
this question to tomcat-dev list.

This is my first message to this list.
Notice that this is consistent with the JSP 2.0 spec (see JSP.4.2:
"Response Character Encoding"):
  The initial response char encoding is set to the CHARSET value of
  the contentType attribute of the page directive. If the page doesn't
  provide this attribute or the attribute does not have a CHARSET value
  [as in your case], the initial response char encoding is determined as
  follows:
  * ...
  * For JSP pages in standard syntax, it is the character encoding 
specified
by the pageEncoding attribute of the page directive ...

The reason behind this is that if the page specifies a page
character encoding (other than ISO-8859-1), it probably contains
non-Latin characters that may get lost if the response switched to
another char encoding.
If this is not what you want, you should consider using XML syntax for
your JSPs, in which case the response char encoding is set to UTF-8
(under the above circumstances), regardless of the autodetected page
source encoding.
Jan




Thanks you.
--
seiji takegata
[EMAIL PROTECTED]
-
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]


[GUMP@lsd]: jakarta-tomcat-5/jakarta-tomcat-5 failed

2004-04-19 Thread bobh
To whom it may engage...

This is an automated request, but not an unsolicited one. For help 
understanding the request please visit 
http://gump.apache.org/nagged.html, 
and/or contact [EMAIL PROTECTED]

Project jakarta-tomcat-5 has an issue affecting its community integration, and has 
been outstanding for 10 runs. The current state is 'Failed', for reason 'Build Failed'

Full details are available at: 
http://lsd.student.utwente.nl/gump/jakarta-tomcat-5/jakarta-tomcat-5/index.html, 
however some snippets follow:

-  -  -  -  - -- --  G U M P

Gump provided these annotations:

 - Info - Jar [servlets-default.jar] identifier set to jar basename: [servlets-default]
 - Info - Jar [naming-common.jar] identifier set to jar basename: [naming-common]
 - Info - Jar [naming-resources.jar] identifier set to jar basename: [naming-resources]
 - Info - Jar [catalina.jar] identifier set to jar basename: [catalina]
 - Info - Jar [bootstrap.jar] identifier set to jar basename: [bootstrap]
 - Info - Jar [servlets-common.jar] identifier set to jar basename: [servlets-common]
 - Info - Jar [servlets-invoker.jar] identifier set to jar basename: [servlets-invoker]
 - Info - Dependency on javamail exists, no need to add for property mail.jar.
 - Info - Dependency on jaf exists, no need to add for property activation.jar.
 - Info - Dependency on jakarta-servletapi-5-servlet exists, no need to add for 
property servlet-api.jar.
 - Info - Dependency on jakarta-servletapi-5-jsp exists, no need to add for property 
jsp-api.jar.
 - Info - Dependency on xml-xerces exists, no need to add for property xercesImpl.jar.
 - Info - Dependency on xml-xerces exists, no need to add for property 
xmlParserAPIs.jar.
 - Info - Dependency on jakarta-tomcat-util exists, no need to add for property 
tomcat-util.jar.
 - Info - Dependency on commons-el exists, no need to add for property commons-el.jar.
 - Info - Dependency on commons-logging exists, no need to add for property 
commons-logging-api.jar.
 - Info - Dependency on commons-modeler exists, no need to add for property 
commons-modeler.jar.
 - Info - Dependency on ant exists, no need to add for property ant.home.
 - Info - Dependency on jsse exists, no need to add for property jsse.home.
 - Info - Dependency on jmx exists, no need to add for property jmx.home.
 - Info - Dependency on jmx exists, no need to add for property jmx.jar.
 - Info - Dependency on jmx exists, no need to add for property jmx-tools.jar.
 - Info - Dependency on jndi exists, no need to add for property jndi.home.
 - Info - Dependency on jakarta-regexp exists, no need to add for property regexp.home.
 - Info - Dependency on jakarta-regexp exists, no need to add for property regexp.jar.
 - Info - Dependency on javamail exists, no need to add for property mail.home.
 - Info - Dependency on jakarta-tomcat-coyote exists, no need to add for property 
tomcat-coyote.home.
 - Info - Dependency on jakarta-tomcat-jasper_tc5 exists, no need to add for property 
jasper.home.
 - Info - Dependency on jaf exists, no need to add for property activation.home.
 - Info - Dependency on commons-modeler exists, no need to add for property 
commons-modeler.home.
 - Info - Dependency on commons-daemon exists, no need to add for property 
commons-daemon.jsvc.tar.gz.
 - Info - Dependency on jakarta-struts exists, no need to add for property struts.home.
 - Info - Enable "debug" output, due to a sequence of 9 previous errors.
 - Info - Failed with reason build failed


-  -  -  -  - -- --  G U M P
Gump performed this work:

http://lsd.student.utwente.nl/gump/jakarta-tomcat-5/jakarta-tomcat-5/gump_work/build_jakarta-tomcat-5_jakarta-tomcat-5.html
Work Name: build_jakarta-tomcat-5_jakarta-tomcat-5 (Type: Build)
State: Failed
Elapsed: 0 hours, 1 minutes, 8 seconds
Command Line: java -Djava.awt.headless=true 
-Xbootclasspath/p:/data3/gump/xml-xerces2/java/build/xercesImpl.jar:/data3/gump/xml-xerces2/java/build/xml-apis.jar:/data3/gump/xml-xalan/java/build/xalan-unbundled.jar:/data3/gump/xml-commons/java/external/build/xml-apis.jar
 org.apache.tools.ant.Main -debug -Dgump.merge=/data3/gump/gump-install/work/merge.xml 
-Dbuild.sysclasspath=only -Dtomcat33.home=*Unset* 
-Djsp-api.jar=/data3/gump/jakarta-servletapi-5/jsr152/dist/lib/jsp-api.jar 
-Dtomcat-coyote.home=/data3/gump/jakarta-tomcat-connectors/coyote 
-Djndi.jar=/data3/gump/opt/jndi1_2_1/lib/jndi.jar 
-Dsite2.home=/data3/gump/jakarta-site2 
-DxmlParserAPIs.jar=/data3/gump/xml-xerces2/java/build/xercesImpl.jar 
-Dactivation.home=/data3/gump/opt/jaf-1.0.1 -Djmx.home=/data3/gump/opt/jmx-1_2-ri 
-Djdbc20ext.jar=/data3/gump/opt/jdbc2_0/jdbc2_0-stdext.jar 
-Djmx-tools.jar=/data3/gump/opt/jmx-1_2-ri/lib/jmxtools.jar 
-Dregexp.jar=/data3/gump/jakarta-regexp/build/jakarta-regexp-20040420.jar 
-Dmail.home=/data3/gump/opt/javamail-1.3 -Dant.home=/data3/gump/ant/dist 
-Dcommons-modeler.home=/data3/gump/jakarta-commons/modeler 
-D