Re: [fedora-java] Blojsom and Tomcat on FC4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2005-05-25 at 14:32 -0500, David J. Orme wrote:
> Today I tried to get Blojsom to run inside Tomcat as distributed with
> FC4 test3 (with all updates applied as-of this morning).  It bombed with
> an error in the log file about a malformed regular expression.

You're probably seeing the same problem Anthony reported some time ago:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20435

I sent a classpath patch for review; the attached patch against blojsom
should also do the trick.  After applying it, blojsom seems to work fine
-- at least for the obligatory screenshot :)

http://bootchart.org/misc/blojsom-gcj.png
-- 
Ziga
--- blojsom-2.25/src/org/blojsom/filter/PermalinkFilter.java.orig	2005-04-11 20:58:00.000000000 +0200
+++ blojsom-2.25/src/org/blojsom/filter/PermalinkFilter.java	2005-05-26 22:11:45.000000000 +0200
@@ -59,11 +59,11 @@
 
     private static final Log _logger = LogFactory.getLog(PermalinkFilter.class);
 
-    private static final String YMD_PERMALINK_REGEX = "/(\\d\\d\\d\\d)/(\\d{1,2}+)/(\\d{1,2}+)/(.+)";
+    private static final String YMD_PERMALINK_REGEX = "/(\\d\\d\\d\\d)/(\\d{1,2})/(\\d{1,2})/(.+)";
     private static final Pattern YMD_PERMALINK_PATTERN = Pattern.compile(YMD_PERMALINK_REGEX, Pattern.UNICODE_CASE);
-    private static final String YMD_REGEX = "/(\\d\\d\\d\\d)/(\\d{1,2}+)/(\\d{1,2}+)/";
+    private static final String YMD_REGEX = "/(\\d\\d\\d\\d)/(\\d{1,2})/(\\d{1,2})/";
     private static final Pattern YMD_PATTERN = Pattern.compile(YMD_REGEX, Pattern.UNICODE_CASE);
-    private static final String YM_REGEX = "/(\\d\\d\\d\\d)/(\\d{1,2}+)/";
+    private static final String YM_REGEX = "/(\\d\\d\\d\\d)/(\\d{1,2})/";
     private static final Pattern YM_PATTERN = Pattern.compile(YM_REGEX, Pattern.UNICODE_CASE);
     private static final String Y_REGEX = "/(\\d\\d\\d\\d)/";
     private static final Pattern Y_PATTERN = Pattern.compile(Y_REGEX, Pattern.UNICODE_CASE);

[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux