DO NOT REPLY [Bug 48635] New: tomcat service model, output printer fail

2010-01-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48635

   Summary: tomcat service model, output printer fail
   Product: Tomcat 6
   Version: 6.0.18
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: normal
  Priority: P2
 Component: Native:Integration
AssignedTo: dev@tomcat.apache.org
ReportedBy: vcs...@hotmail.com


i have jasperreport output printer code. it's fine on tomcat startup.bat model.
but I startup tomcat from tomcat6w.exe, output printer fail
my jdk ver 1.6

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

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



DO NOT REPLY [Bug 48635] tomcat service model, output printer fail

2010-01-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48635

Mark Thomas  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID

--- Comment #1 from Mark Thomas  2010-01-28 04:02:04 GMT ---
This is not a bug. It is a question for the Tomcat users mailing list.

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

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



DO NOT REPLY [Bug 48613] AprLifecycleListener tries to initialize even if it is not configured in server.xml

2010-01-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48613

--- Comment #4 from Mark Thomas  2010-01-28 04:11:19 GMT ---
I was looking at this and came up with your option a) as a solution. It is a
bit of a hack but as long as we document why that should be fine.

I also don't see any reason not to move the whole of the init method in the
constructor.

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

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r904152 - /tomcat/tc6.0.x/trunk/STATUS.txt

2010-01-28 Thread jfclere
Author: jfclere
Date: Thu Jan 28 16:43:30 2010
New Revision: 904152

URL: http://svn.apache.org/viewvc?rev=904152&view=rev
Log:
Fix for the broken maven stuff.

Modified:
tomcat/tc6.0.x/trunk/STATUS.txt

Modified: tomcat/tc6.0.x/trunk/STATUS.txt
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS.txt?rev=904152&r1=904151&r2=904152&view=diff
==
--- tomcat/tc6.0.x/trunk/STATUS.txt (original)
+++ tomcat/tc6.0.x/trunk/STATUS.txt Thu Jan 28 16:43:30 2010
@@ -125,3 +125,9 @@
   +1: fhanik
   -1: kkolinko: See comment #3 in the issue for explanation why it does not
work. I reverted r903928 in trunk in r903948.
+
+* Fix the maven stuff for the maven repo.
+  Before it does't find tomcat-juli.jar and the remoteRepository seems broken .
+  http://people.apache.org/~jfclere/patches/maven.patch
+  +1: jfclere
+  -1



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: [ANN] Apache Tomcat 6.0.24 released

2010-01-28 Thread jean-frederic clere
On 01/28/2010 01:29 AM, Jason Brittain wrote:
> Apparently the Maven repositor(ies) don't yet have this new release.  Can
> you
> push it out?  The ibiblio repository has 6.0.20:
> 
> http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/tomcat/catalina/
> 
> but the documented Apache m2-repository (for stable releases) only has up to
> 6.0.18:
> 
> http://tomcat.apache.org/dev/dist/m2-repository/org/apache/tomcat/catalina/

I have fixed the stuff in people.apache.org I hope it will appear soon
in the mirrors.

Cheers

Jean-Frederic

> 
> Thanks!
> --
> Jason Brittain
> MuleSoft http://www.mulesoft.com
> 
> 
> On Thu, Jan 21, 2010 at 7:47 AM, jean-frederic clere wrote:
> 
>> The Apache Tomcat team announces the immediate availability of Apache
>> Tomcat 6.0.24 stable. This release includes many bug-fixes over Apache
>> Tomcat 6.0.20.
>> Note that is version has 4 zip binaries: a generic one and three
>> bundled with Tomcat native binaries for different CPU architectures.
>>
>>
>> Apache Tomcat 6.0 includes new features over Apache Tomcat 5.5,
>> including support for the new Servlet 2.5 and JSP 2.1 specifications, a
>> refactored clustering implementation, advanced IO features, and
>> improvements in memory usage.
>>
>> Please refer to the change log for the list of changes:
>> http://tomcat.apache.org/tomcat-6.0-doc/changelog.html
>>
>> Downloads:
>> http://tomcat.apache.org/download-60.cgi
>>
>> Migration guide from Apache Tomcat 5.5.x:
>> http://tomcat.apache.org/migration.html
>>
>> Thank you,
>>
>> -- The Apache Tomcat Team
>>
>> -
>> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: dev-h...@tomcat.apache.org
>>
>>
> 


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: svn commit: r904152 - /tomcat/tc6.0.x/trunk/STATUS.txt

2010-01-28 Thread Konstantin Kolinko
2010/1/28  :
> Author: jfclere
> Date: Thu Jan 28 16:43:30 2010
> New Revision: 904152
>
> URL: http://svn.apache.org/viewvc?rev=904152&view=rev
> Log:
> Fix for the broken maven stuff.
>
> Modified:
>    tomcat/tc6.0.x/trunk/STATUS.txt
>

> +
> +* Fix the maven stuff for the maven repo.
> +  Before it does't find tomcat-juli.jar and the remoteRepository seems 
> broken .
> +  http://people.apache.org/~jfclere/patches/maven.patch
> +  +1: jfclere
> +  -1


>From maven.patch:
-

+ 

-- how is that? Yes, we have tomcat-juli.jar in extras, but that is
"other" JULI, used to run Tomcat with Log4J.  (62759 bytes jar vs.
25804 bytes jar in 6.0.24).  Is this intended?


Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



DO NOT REPLY [Bug 48613] AprLifecycleListener tries to initialize even if it is not configured in server.xml

2010-01-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48613

--- Comment #5 from Filip Hanik  2010-01-28 11:23:40 UTC ---
Your right Konstantin,
We've tried to fix this in the past
http://svn.apache.org/viewvc?view=revision&revision=890942

Let's push your change through.

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

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



DO NOT REPLY [Bug 48613] AprLifecycleListener tries to initialize even if it is not configured in server.xml

2010-01-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48613

--- Comment #6 from Filip Hanik  2010-01-28 11:28:55 UTC ---
>I wonder, whether we will need to wait for Lifecycle.INIT_EVENT to happen,

I don't see why we wouldn't wait. while we could call it during
isAprAvailable() and the init method, at least we know that all properties have
been set during INIT_EVENT.

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

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r904224 - /tomcat/trunk/java/org/apache/catalina/core/AprLifecycleListener.java

2010-01-28 Thread fhanik
Author: fhanik
Date: Thu Jan 28 19:30:06 2010
New Revision: 904224

URL: http://svn.apache.org/viewvc?rev=904224&view=rev
Log:
Fix according to https://issues.apache.org/bugzilla/show_bug.cgi?id=48613


Modified:
tomcat/trunk/java/org/apache/catalina/core/AprLifecycleListener.java

Modified: tomcat/trunk/java/org/apache/catalina/core/AprLifecycleListener.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/AprLifecycleListener.java?rev=904224&r1=904223&r2=904224&view=diff
==
--- tomcat/trunk/java/org/apache/catalina/core/AprLifecycleListener.java 
(original)
+++ tomcat/trunk/java/org/apache/catalina/core/AprLifecycleListener.java Thu 
Jan 28 19:30:06 2010
@@ -45,7 +45,7 @@
 implements LifecycleListener {
 
 private static final Log log = 
LogFactory.getLog(AprLifecycleListener.class);
-
+private static boolean instanceCreated = false;
 /**
  * The string manager for this package.
  */
@@ -72,9 +72,14 @@
 protected static boolean aprAvailable = false;
 
 public static boolean isAprAvailable() {
-init();
+//https://issues.apache.org/bugzilla/show_bug.cgi?id=48613
+if (instanceCreated) init();
 return aprAvailable;
 }
+
+public AprLifecycleListener() {
+instanceCreated = true;
+}
 
 // -- LifecycleListener Methods
 



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r904227 - /tomcat/tc6.0.x/trunk/STATUS.txt

2010-01-28 Thread fhanik
Author: fhanik
Date: Thu Jan 28 19:34:00 2010
New Revision: 904227

URL: http://svn.apache.org/viewvc?rev=904227&view=rev
Log:
Update APR proposal


Modified:
tomcat/tc6.0.x/trunk/STATUS.txt

Modified: tomcat/tc6.0.x/trunk/STATUS.txt
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS.txt?rev=904227&r1=904226&r2=904227&view=diff
==
--- tomcat/tc6.0.x/trunk/STATUS.txt (original)
+++ tomcat/tc6.0.x/trunk/STATUS.txt Thu Jan 28 19:34:00 2010
@@ -116,18 +116,21 @@
 configurable properties for JULI and JDK JUL classes somewhere on the
 logging.xml page, or in the JavaDoc of the FileHandler class. - see issue 
39661.
 I see that I haven't documented the "encoding" property of JULI
-FileHandler yet. )
+FileHandler yet. ) 
   -1:
   
 * Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48613
   Only attempt APR initialization if the  has been specified
-  http://svn.apache.org/viewvc?rev=903928&view=rev
+  http://svn.apache.org/viewvc?rev=904224&view=rev
   +1: fhanik
-  -1: kkolinko: See comment #3 in the issue for explanation why it does not
-   work. I reverted r903928 in trunk in r903948.
+  -1: 
 
 * Fix the maven stuff for the maven repo.
   Before it does't find tomcat-juli.jar and the remoteRepository seems broken .
   http://people.apache.org/~jfclere/patches/maven.patch
   +1: jfclere
-  -1
+  -1  fhanik - I'm unsure what you are attempting here
+-
+-  
+-
+  



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r904234 - in /tomcat/jk/trunk/xdocs: generic_howto/loadbalancers.xml generic_howto/workers.xml reference/workers.xml

2010-01-28 Thread rjung
Author: rjung
Date: Thu Jan 28 19:47:58 2010
New Revision: 904234

URL: http://svn.apache.org/viewvc?rev=904234&view=rev
Log:
Clarify our statements about the relation of balance_workers
and worker.list and make them consistent on the various pages.

Modified:
tomcat/jk/trunk/xdocs/generic_howto/loadbalancers.xml
tomcat/jk/trunk/xdocs/generic_howto/workers.xml
tomcat/jk/trunk/xdocs/reference/workers.xml

Modified: tomcat/jk/trunk/xdocs/generic_howto/loadbalancers.xml
URL: 
http://svn.apache.org/viewvc/tomcat/jk/trunk/xdocs/generic_howto/loadbalancers.xml?rev=904234&r1=904233&r2=904234&view=diff
==
--- tomcat/jk/trunk/xdocs/generic_howto/loadbalancers.xml (original)
+++ tomcat/jk/trunk/xdocs/generic_howto/loadbalancers.xml Thu Jan 28 19:47:58 
2010
@@ -36,8 +36,8 @@
 items, please consult the worker reference.
 The comprehensive status management features of the load balancer together 
with the status worker,
 makes its use an interesting option, even if only combined with a single 
"real" worker.
-The workers that are member of load balancer do not need to appear in the
-worker.list directive.
+As long as the "real" workers should only be used via the load balancer 
worker,
+there is no need to also put them into the worker.list property.
 
 
 

Modified: tomcat/jk/trunk/xdocs/generic_howto/workers.xml
URL: 
http://svn.apache.org/viewvc/tomcat/jk/trunk/xdocs/generic_howto/workers.xml?rev=904234&r1=904233&r2=904234&view=diff
==
--- tomcat/jk/trunk/xdocs/generic_howto/workers.xml (original)
+++ tomcat/jk/trunk/xdocs/generic_howto/workers.xml Thu Jan 28 19:47:58 2010
@@ -257,8 +257,10 @@
 The overall result is that workers managed by the same lb worker are 
load-balanced (based on their lbfactor and current user session) and also 
fall-backed so a single Tomcat process death will not "kill" the entire site.
 The following table specifies some properties that the lb worker can accept:
 
-balance_workers is a comma separated list of workers that the load 
balancer need to manage. 
-These workers should not appear in the worker.list property. This directive 
can be used multiple times for the same load balancer.
+balance_workers is a comma separated list of workers that the load 
balancer need to manage.
+As long as these workers should only be used via the load balancer worker,
+there is no need to also put them into the worker.list property.
+This directive can be used multiple times for the same load balancer.
 sticky_session specifies whether requests with SESSION ID's should 
be routed back to the same
 Tomcat worker. Set sticky_session to False when Tomcat is using a Session 
Manager which
 can persist session data across multiple instances of Tomcat. By default 
sticky_session is set to True.

Modified: tomcat/jk/trunk/xdocs/reference/workers.xml
URL: 
http://svn.apache.org/viewvc/tomcat/jk/trunk/xdocs/reference/workers.xml?rev=904234&r1=904233&r2=904234&view=diff
==
--- tomcat/jk/trunk/xdocs/reference/workers.xml (original)
+++ tomcat/jk/trunk/xdocs/reference/workers.xml Thu Jan 28 19:47:58 2010
@@ -437,10 +437,9 @@
 Load balancer is a virtual worker that does not really communicate with 
Tomcat workers.
 Instead it is responsible for the management of several "real" workers.
 The worker is supposed to be a load balancer if it's worker type is lb.
-See worker's type directive. The workers that
-are member of load balancer must not appear in the worker.list 
directive.
+See worker's type directive.
 
-Loadbalancer directives defines the parameters needed to create a workers 
that are
+Loadbalancer directives define the parameters needed to create the workers 
that are
 connecting to a remote cluster of backend Tomcat servers. Each cluster node 
has to
 have a worker defined.
 
@@ -494,7 +493,8 @@
 This directive replaces old balanced_workers directive and
 can be used only with mod_jk versions 1.2.7 and up.
 
-These workers should not appear in the worker.list 
property!
+As long as these workers should only be used via the load balancer 
worker,
+there is no need to also put them into the worker.list property.
 
 
 



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



DO NOT REPLY [Bug 48631] worker.list & balance_workers usage: contradiction in documentation

2010-01-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48631

Rainer Jung  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #1 from Rainer Jung  2010-01-28 11:49:40 
UTC ---
Thanks for the suggestion. I tried to clarify in r904234. It will be part of
the next release. Since it is a minor change we will not update the online docs
in advance.

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

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



admin tool, missing environment entries

2010-01-28 Thread che10234

Hi,

I've migrated a tomcat 5.0 app from one server to another (using tomcat 5.5)
, but on the new server the environment entries list is empty.
Tomcat Server
 - Service (Applications)
   - Host (myhost)
  - Context (myapp)
-Resourses
   - Environment Entries

Here is the relevant portion of the server.xml file:




  
  www.myhost.com
  
  
  
  
  
  
  



Ideas?

Thanks,
Chris
-- 
View this message in context: 
http://old.nabble.com/admin-tool%2C-missing-environment-entries-tp27358791p27358791.html
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: admin tool, missing environment entries

2010-01-28 Thread Mark Thomas
On 28/01/2010 16:16, che10234 wrote:
> 
> Ideas?

This is a question for the users list, not the dev list.

Mark

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



DO NOT REPLY [Bug 48563] Dist build of trunk (Tomcat 7) fails because extras dir is missing

2010-01-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48563

--- Comment #3 from Mark Thomas  2010-01-28 13:05:59 GMT ---
I'd like to move to a single build.xml file and to clean up the various
dependencies between the build targets. Since the extras are part of the
release, even if they aren't part of the standard download, I don't see the
harm in moving to a single file.

The end goal is to be able to do:
svn co https://svn.apache.org/repos/asf/tomcat/trunk
ant release

and have a complete release locally with one or more targets to upload the
release files to the right places on ASF infrastructure. The other targets will
be retained, with the correct dependencies, for folks that want to run a
specific target for whatever reason.

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

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r904287 - /tomcat/tc6.0.x/trunk/STATUS.txt

2010-01-28 Thread fhanik
Author: fhanik
Date: Thu Jan 28 22:50:44 2010
New Revision: 904287

URL: http://svn.apache.org/viewvc?rev=904287&view=rev
Log:
update

Modified:
tomcat/tc6.0.x/trunk/STATUS.txt

Modified: tomcat/tc6.0.x/trunk/STATUS.txt
URL: 
http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS.txt?rev=904287&r1=904286&r2=904287&view=diff
==
--- tomcat/tc6.0.x/trunk/STATUS.txt (original)
+++ tomcat/tc6.0.x/trunk/STATUS.txt Thu Jan 28 22:50:44 2010
@@ -129,8 +129,6 @@
   Before it does't find tomcat-juli.jar and the remoteRepository seems broken .
   http://people.apache.org/~jfclere/patches/maven.patch
   +1: jfclere
-  -1  fhanik - I'm unsure what you are attempting here
--
--  
--
-  
+  -1: fhanik - easier to pass in the root path (lib/bin) to the macro instead 
of hacking around it
+   if we remove the SCP auto feature, then there should be 
something to replace it with
+   (http://ant.apache.org/manual/OptionalTasks/scp.html)  



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: admin tool, missing environment entries

2010-01-28 Thread che10234



Mark Thomas wrote:
> 
> On 28/01/2010 16:16, che10234 wrote:
>> 
>> Ideas?
> 
> This is a question for the users list, not the dev list.
> 
> Mark
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: dev-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/admin-tool%2C-missing-environment-entries-tp27358791p27364543.html
Sent from the Tomcat - Dev mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: [ANN] Apache Tomcat 6.0.24 released

2010-01-28 Thread Filip Hanik - Dev Lists
it appears that the Maven/ant/scp tasks are busted. how fun and much 
excitement that can be


I've manually uploaded them
http://tomcat.apache.org/dev/dist/m2-repository/org/apache/tomcat/

Filip

On 01/27/2010 05:29 PM, Jason Brittain wrote:

Apparently the Maven repositor(ies) don't yet have this new release.  Can
you
push it out?  The ibiblio repository has 6.0.20:

http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/tomcat/catalina/

but the documented Apache m2-repository (for stable releases) only has up to
6.0.18:

http://tomcat.apache.org/dev/dist/m2-repository/org/apache/tomcat/catalina/

Thanks!
--
Jason Brittain
MuleSoft http://www.mulesoft.com


On Thu, Jan 21, 2010 at 7:47 AM, jean-frederic clerewrote:

   

The Apache Tomcat team announces the immediate availability of Apache
Tomcat 6.0.24 stable. This release includes many bug-fixes over Apache
Tomcat 6.0.20.
Note that is version has 4 zip binaries: a generic one and three
bundled with Tomcat native binaries for different CPU architectures.


Apache Tomcat 6.0 includes new features over Apache Tomcat 5.5,
including support for the new Servlet 2.5 and JSP 2.1 specifications, a
refactored clustering implementation, advanced IO features, and
improvements in memory usage.

Please refer to the change log for the list of changes:
http://tomcat.apache.org/tomcat-6.0-doc/changelog.html

Downloads:
http://tomcat.apache.org/download-60.cgi

Migration guide from Apache Tomcat 5.5.x:
http://tomcat.apache.org/migration.html

Thank you,

-- The Apache Tomcat Team

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org


 
   



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r904305 - in /tomcat/trunk/test: org/apache/jasper/compiler/TestParser.java webapp/WEB-INF/tags/echo-noel.tag webapp/bug48627.jsp

2010-01-28 Thread markt
Author: markt
Date: Thu Jan 28 23:35:39 2010
New Revision: 904305

URL: http://svn.apache.org/viewvc?rev=904305&view=rev
Log:
Add a test case for bug 48627

Added:
tomcat/trunk/test/org/apache/jasper/compiler/TestParser.java   (with props)
tomcat/trunk/test/webapp/WEB-INF/tags/echo-noel.tag
tomcat/trunk/test/webapp/bug48627.jsp   (with props)

Added: tomcat/trunk/test/org/apache/jasper/compiler/TestParser.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/jasper/compiler/TestParser.java?rev=904305&view=auto
==
--- tomcat/trunk/test/org/apache/jasper/compiler/TestParser.java (added)
+++ tomcat/trunk/test/org/apache/jasper/compiler/TestParser.java Thu Jan 28 
23:35:39 2010
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.jasper.compiler;
+
+import java.io.File;
+
+import org.apache.catalina.startup.Tomcat;
+import org.apache.catalina.startup.TomcatBaseTest;
+import org.apache.tomcat.util.buf.ByteChunk;
+
+public class TestParser extends TomcatBaseTest {
+
+public void testBug48627() throws Exception {
+Tomcat tomcat = getTomcatInstance();
+
+File appDir = 
+new File("test/webapp");
+// app dir is relative to server home
+tomcat.addWebapp(null, "/test", appDir.getAbsolutePath());
+
+tomcat.start();
+
+ByteChunk res = getUrl("http://localhost:"; + getPort() +
+"/test/bug48627.jsp");
+
+String result = res.toString();
+
+System.out.println(result);
+
+// Beware of the differences between escaping in JSP attributes and
+// in Java Strings
+assertTrue(result.indexOf("00-\\") > 0);
+assertTrue(result.indexOf("01-\\") > 0);
+}
+}

Propchange: tomcat/trunk/test/org/apache/jasper/compiler/TestParser.java
--
svn:eol-style = native

Added: tomcat/trunk/test/webapp/WEB-INF/tags/echo-noel.tag
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/WEB-INF/tags/echo-noel.tag?rev=904305&view=auto
==
--- tomcat/trunk/test/webapp/WEB-INF/tags/echo-noel.tag (added)
+++ tomcat/trunk/test/webapp/WEB-INF/tags/echo-noel.tag Thu Jan 28 23:35:39 2010
@@ -0,0 +1,19 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<%@ tag%><%@
+attribute name="echo" type="java.lang.String" rtexprvalue="false"
+%>${echo}
\ No newline at end of file

Added: tomcat/trunk/test/webapp/bug48627.jsp
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/bug48627.jsp?rev=904305&view=auto
==
--- tomcat/trunk/test/webapp/bug48627.jsp (added)
+++ tomcat/trunk/test/webapp/bug48627.jsp Thu Jan 28 23:35:39 2010
@@ -0,0 +1,24 @@
+<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+  http://www.apache.o

DO NOT REPLY [Bug 48627] JasperException with JSF tags and value expressions

2010-01-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48627

--- Comment #2 from Mark Thomas  2010-01-28 15:38:13 GMT ---
I have been able to reproduce this and have added a test case for it to Tomcat
7. I know exactly what caused it. My recent changes to address a number of
issues with EL parsing made the incorrect assumption that EL would be valid for
any attribute. Clearly that isn't a valid assumption.

I agree this is a nasty regression and I am working on a fix. Once I have a fix
are either of you willing and able to test it? You'll either need to build
Tomcat from source or I can provide a binary patch.

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

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r904315 - /tomcat/trunk/java/org/apache/jasper/compiler/AttributeParser.java

2010-01-28 Thread markt
Author: markt
Date: Fri Jan 29 00:10:40 2010
New Revision: 904315

URL: http://svn.apache.org/viewvc?rev=904315&view=rev
Log:
Fix comment typo

Modified:
tomcat/trunk/java/org/apache/jasper/compiler/AttributeParser.java

Modified: tomcat/trunk/java/org/apache/jasper/compiler/AttributeParser.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/compiler/AttributeParser.java?rev=904315&r1=904314&r2=904315&view=diff
==
--- tomcat/trunk/java/org/apache/jasper/compiler/AttributeParser.java (original)
+++ tomcat/trunk/java/org/apache/jasper/compiler/AttributeParser.java Fri Jan 
29 00:10:40 2010
@@ -228,7 +228,7 @@
 }
 
 /*
- * Returns the nest unquoted character and sets the lastChEscaped flag to
+ * Returns the next unquoted character and sets the lastChEscaped flag to
  * indicate if it was quoted/escaped or not.
  * ' is always unquoted to '
  * " is always unquoted to "



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: [ANN] Apache Tomcat 6.0.24 released

2010-01-28 Thread Jason Brittain
I manually looked at them just now and they look good.  Thanks Filip!

I wonder who updates the ibiblio repository.  And then there's also this
one:

http://repository.sonatype.org/service/local/repositories/central/content/org/apache/tomcat/

--
Jason


On Thu, Jan 28, 2010 at 3:14 PM, Filip Hanik - Dev Lists  wrote:

> it appears that the Maven/ant/scp tasks are busted. how fun and much
> excitement that can be
>
> I've manually uploaded them
>
> http://tomcat.apache.org/dev/dist/m2-repository/org/apache/tomcat/
>
> Filip
>
>
> On 01/27/2010 05:29 PM, Jason Brittain wrote:
>
>> Apparently the Maven repositor(ies) don't yet have this new release.  Can
>> you
>> push it out?  The ibiblio repository has 6.0.20:
>>
>> http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/tomcat/catalina/
>>
>> but the documented Apache m2-repository (for stable releases) only has up
>> to
>> 6.0.18:
>>
>>
>> http://tomcat.apache.org/dev/dist/m2-repository/org/apache/tomcat/catalina/
>>
>> Thanks!
>> --
>> Jason Brittain
>> MuleSoft http://www.mulesoft.com
>>
>>
>> On Thu, Jan 21, 2010 at 7:47 AM, jean-frederic clere> >wrote:
>>
>>
>>
>>> The Apache Tomcat team announces the immediate availability of Apache
>>> Tomcat 6.0.24 stable. This release includes many bug-fixes over Apache
>>> Tomcat 6.0.20.
>>> Note that is version has 4 zip binaries: a generic one and three
>>> bundled with Tomcat native binaries for different CPU architectures.
>>>
>>>
>>> Apache Tomcat 6.0 includes new features over Apache Tomcat 5.5,
>>> including support for the new Servlet 2.5 and JSP 2.1 specifications, a
>>> refactored clustering implementation, advanced IO features, and
>>> improvements in memory usage.
>>>
>>> Please refer to the change log for the list of changes:
>>> http://tomcat.apache.org/tomcat-6.0-doc/changelog.html
>>>
>>> Downloads:
>>> http://tomcat.apache.org/download-60.cgi
>>>
>>> Migration guide from Apache Tomcat 5.5.x:
>>> http://tomcat.apache.org/migration.html
>>>
>>> Thank you,
>>>
>>> -- The Apache Tomcat Team
>>>
>>> -
>>> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
>>> For additional commands, e-mail: dev-h...@tomcat.apache.org
>>>
>>>
>>>
>>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: dev-h...@tomcat.apache.org
>
>


DO NOT REPLY [Bug 48627] JasperException with JSF tags and value expressions

2010-01-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48627

--- Comment #3 from Jon Vincent  2010-01-28 16:39:19 UTC ---
Yeah, I'd be happy to test it. Thanks!

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

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: [ANN] Apache Tomcat 6.0.24 released

2010-01-28 Thread Filip Hanik - Dev Lists
well, we have another repo called apache.releases that syncs to ibiblio 
that we used to publish on. And I would assume that sonatype simply 
sucks down the data from there.


The mvn-pub.xml ant script used to work to publish all our stuff, but is 
no longer working on the SCP front. If we can get that fixed fairly 
easily, then we can get back to working order



Filip

On 01/28/2010 05:18 PM, Jason Brittain wrote:

I manually looked at them just now and they look good.  Thanks Filip!

I wonder who updates the ibiblio repository.  And then there's also this
one:

http://repository.sonatype.org/service/local/repositories/central/content/org/apache/tomcat/

--
Jason


On Thu, Jan 28, 2010 at 3:14 PM, Filip Hanik - Dev Lists   

wrote:
 
   

it appears that the Maven/ant/scp tasks are busted. how fun and much
excitement that can be

I've manually uploaded them

http://tomcat.apache.org/dev/dist/m2-repository/org/apache/tomcat/

Filip


On 01/27/2010 05:29 PM, Jason Brittain wrote:

 

Apparently the Maven repositor(ies) don't yet have this new release.  Can
you
push it out?  The ibiblio repository has 6.0.20:

http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/tomcat/catalina/

but the documented Apache m2-repository (for stable releases) only has up
to
6.0.18:


http://tomcat.apache.org/dev/dist/m2-repository/org/apache/tomcat/catalina/

Thanks!
--
Jason Brittain
MuleSoft http://www.mulesoft.com


On Thu, Jan 21, 2010 at 7:47 AM, jean-frederic clere   

wrote:
 



   

The Apache Tomcat team announces the immediate availability of Apache
Tomcat 6.0.24 stable. This release includes many bug-fixes over Apache
Tomcat 6.0.20.
Note that is version has 4 zip binaries: a generic one and three
bundled with Tomcat native binaries for different CPU architectures.


Apache Tomcat 6.0 includes new features over Apache Tomcat 5.5,
including support for the new Servlet 2.5 and JSP 2.1 specifications, a
refactored clustering implementation, advanced IO features, and
improvements in memory usage.

Please refer to the change log for the list of changes:
http://tomcat.apache.org/tomcat-6.0-doc/changelog.html

Downloads:
http://tomcat.apache.org/download-60.cgi

Migration guide from Apache Tomcat 5.5.x:
http://tomcat.apache.org/migration.html

Thank you,

-- The Apache Tomcat Team

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org




 


   


-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org


 
   



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: [ANN] Apache Tomcat 6.0.24 released

2010-01-28 Thread Jason Brittain
On Thu, Jan 28, 2010 at 4:57 PM, Filip Hanik - Dev Lists  wrote:

> The mvn-pub.xml ant script used to work to publish all our stuff, but is no
> longer working on the SCP front. If we can get that fixed fairly easily,
> then we can get back to working order
>

What's the error you get?  If it's saying it can't find the jsch (Java SSH
impl) classes, then you may just need to put a jsch.jar in your ANT_HOME/lib
directory or somewhere loadable.. that is what's required to get the SCP Ant
task working -- it appears that the wagon SSH provider impl does end up
using jsch.

--
Jason


Re: [ANN] Apache Tomcat 6.0.24 released

2010-01-28 Thread Filip Hanik - Dev Lists

I get the error thrown by

JSchException("Algorithm negotiation fail")

and it says everywhere that it was fixed when MAven went to 2.1 (instead 
of 2.0) but I still get it


Filip

On 01/28/2010 06:51 PM, Jason Brittain wrote:

On Thu, Jan 28, 2010 at 4:57 PM, Filip Hanik - Dev Lists   

wrote:
 
   

The mvn-pub.xml ant script used to work to publish all our stuff, but is no
longer working on the SCP front. If we can get that fixed fairly easily,
then we can get back to working order

 

What's the error you get?  If it's saying it can't find the jsch (Java SSH
impl) classes, then you may just need to put a jsch.jar in your ANT_HOME/lib
directory or somewhere loadable.. that is what's required to get the SCP Ant
task working -- it appears that the wagon SSH provider impl does end up
using jsch.

--
Jason

   



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: [ANN] Apache Tomcat 6.0.24 released

2010-01-28 Thread Jason Brittain
Maybe you have a conflicting jsch jar file that ends up getting loaded in
front of the
correct/newer version.  Look for all jsch jars on your machine and see what
versions
they are, and maybe temporarily (re)move older ones.

--
Jason


On Thu, Jan 28, 2010 at 6:25 PM, Filip Hanik - Dev Lists  wrote:

> I get the error thrown by
>
> JSchException("Algorithm negotiation fail")
>
> and it says everywhere that it was fixed when MAven went to 2.1 (instead of
> 2.0) but I still get it
>
> Filip


[Tomcat Wiki] Trivial Update of "HowTo" by newacct

2010-01-28 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change 
notification.

The "HowTo" page has been changed by newacct.
http://wiki.apache.org/tomcat/HowTo?action=diff&rev1=83&rev2=84

--

  //get the root element which is Server Eg: 
  
  Element docEle = configDom.getDocumentElement ();
- serverPort = new Integer (docEle.getAttribute ("port")).intValue ();
+ serverPort = Integer.parseInt (docEle.getAttribute ("port"));
  serverShutdown = docEle.getAttribute ("shutdown");
}
  

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



svn commit: r904362 - /tomcat/trunk/test/webapp/WEB-INF/tags/echo-noel.tag

2010-01-28 Thread kkolinko
Author: kkolinko
Date: Fri Jan 29 02:53:55 2010
New Revision: 904362

URL: http://svn.apache.org/viewvc?rev=904362&view=rev
Log:
svn:eol-style for a new file

Modified:
tomcat/trunk/test/webapp/WEB-INF/tags/echo-noel.tag   (contents, props 
changed)

Modified: tomcat/trunk/test/webapp/WEB-INF/tags/echo-noel.tag
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/test/webapp/WEB-INF/tags/echo-noel.tag?rev=904362&r1=904361&r2=904362&view=diff
==
--- tomcat/trunk/test/webapp/WEB-INF/tags/echo-noel.tag (original)
+++ tomcat/trunk/test/webapp/WEB-INF/tags/echo-noel.tag Fri Jan 29 02:53:55 2010
@@ -1,19 +1,19 @@
-<%--
- Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
---%>
-<%@ tag%><%@
-attribute name="echo" type="java.lang.String" rtexprvalue="false"
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<%@ tag%><%@
+attribute name="echo" type="java.lang.String" rtexprvalue="false"
 %>${echo}
\ No newline at end of file

Propchange: tomcat/trunk/test/webapp/WEB-INF/tags/echo-noel.tag
--
svn:eol-style = native



-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



DO NOT REPLY [Bug 48627] JasperException with JSF tags and value expressions

2010-01-28 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=48627

--- Comment #4 from mheinen  2010-01-28 23:59:11 UTC ---
I can also test it but I need a binary patch

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

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org