[prev in list] [next in list] [prev in thread] [next in thread] 

List:       myfaces-dev
Subject:    Re: MyFaces 1.09RC2 error
From:       Sean Schofield <sean.schofield () gmail ! com>
Date:       2005-03-30 14:28:07
Message-ID: 2387fbc505033006287b96a680 () mail ! gmail ! com
[Download RAW message or body]

Never mind.  I see there is also a JIRA issue.


On Wed, 30 Mar 2005 09:15:34 -0500, Sean Schofield
<sean.schofield@gmail.com> wrote:
> Forwarding to the dev list so the AddResource people can take a look.
> 
> sean
> 
> 
> ---------- Forwarded message ----------
> From: OharaSu <OharaSu@via.com.tw>
> Date: Wed, 30 Mar 2005 16:04:39 +0800
> Subject: MyFaces 1.09RC2 error
> To: myfaces-user@incubator.apache.org
> 
> Hi
> 
> An error occour when I replace myfaces 1.08 by 1.09 RC2.
> 
> The error is
> [15:55:27,203][ERROR][AddResource.java:232] Unparsable lastModified :
> @lastModified@
> 
> I don't know why but my web application still work very well.
> I trace source code
> org.apache.myfaces.component.html.util.AddResource
> 
> ......
> private static Date lastModified = null;
>  private static long getLastModified(){
>   if( lastModified == null ){
>    final String format = "yyyy-MM-dd HH:mm:ss Z"; // Must match the one used
> in the build file
>          final String bundleName = AddResource.class.getName();
>          ResourceBundle resources = ResourceBundle.getBundle( bundleName );
>    String sLastModified = resources.getString("lastModified");
>    try {
>     lastModified = new SimpleDateFormat(format).parse( sLastModified );
>    } catch (ParseException e) {
>     lastModified = new Date();
>     log.error("Unparsable lastModified : "+sLastModified);
>    }
>   }
> 
>   return lastModified.getTime();
>  }
> .......
> 
> AddResource.properties
> # Used un the ressources URL, to enable caching the resources on the client.
> lastModified=@lastModified@
> 
> I think mabye something wrong happens when building the 1.09RC2.
> In AddResource.properties, lastModified should be replaced by correct string
> but
> it doesn't work correctly.
> 
> ohara
>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic