You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Jarek Gawor (Created) (JIRA)" <ji...@apache.org> on 2012/03/06 05:53:03 UTC

[jira] [Created] (GERONIMO-6295) Jsp is recompiled on each access

Jsp is recompiled on each access
--------------------------------

                 Key: GERONIMO-6295
                 URL: https://issues.apache.org/jira/browse/GERONIMO-6295
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: osgi, web
    Affects Versions: 3.0-beta-1
            Reporter: Jarek Gawor


JSPs are recompiled on each access under certain circumstances. 

Jasper must be configured with development mode.

There are two problems:

1) Bug 52744 (https://issues.apache.org/bugzilla/show_bug.cgi?id=52744) as discovered by Forrest. This happens on file systems with time resolution of 1s (for example ext3 on Linux).

2) If JSP (in an WAB) uses tag files provided by another (separate) bundle, the generated Java file for the JSP will contain the following dependent information (for example):

  static {
    _jspx_dependants = new java.util.HashMap<java.lang.String,java.lang.Long>(2);
    _jspx_dependants.put("bundleentry://231.fwk1401888126/META-INF/tags/sharedTest.tag", Long.valueOf(-1L));
  }

The problem is code checking the dependent timestamps in Compiler.isOutDated() does not know how to deal with bundleentry:// urls and the code assumes the file is outdated (and needs to be recompiled).


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (GERONIMO-6295) Jsp is recompiled on each access

Posted by "Forrest Xia (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-6295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Forrest Xia reassigned GERONIMO-6295:
-------------------------------------

    Assignee: Jarek Gawor  (was: Forrest Xia)
    
> Jsp is recompiled on each access
> --------------------------------
>
>                 Key: GERONIMO-6295
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6295
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: osgi, web
>    Affects Versions: 3.0-beta-1
>            Reporter: Jarek Gawor
>            Assignee: Jarek Gawor
>
> JSPs are recompiled on each access under certain circumstances. 
> Jasper must be configured with development mode.
> There are two problems:
> 1) Bug 52744 (https://issues.apache.org/bugzilla/show_bug.cgi?id=52744) as discovered by Forrest. This happens on file systems with time resolution of 1s (for example ext3 on Linux).
> 2) If JSP (in an WAB) uses tag files provided by another (separate) bundle, the generated Java file for the JSP will contain the following dependent information (for example):
>   static {
>     _jspx_dependants = new java.util.HashMap<java.lang.String,java.lang.Long>(2);
>     _jspx_dependants.put("bundleentry://231.fwk1401888126/META-INF/tags/sharedTest.tag", Long.valueOf(-1L));
>   }
> The problem is code checking the dependent timestamps in Compiler.isOutDated() does not know how to deal with bundleentry:// urls and the code assumes the file is outdated (and needs to be recompiled).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (GERONIMO-6295) Jsp is recompiled on each access

Posted by "Forrest Xia (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-6295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Forrest Xia reassigned GERONIMO-6295:
-------------------------------------

    Assignee: Forrest Xia
    
> Jsp is recompiled on each access
> --------------------------------
>
>                 Key: GERONIMO-6295
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6295
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: osgi, web
>    Affects Versions: 3.0-beta-1
>            Reporter: Jarek Gawor
>            Assignee: Forrest Xia
>
> JSPs are recompiled on each access under certain circumstances. 
> Jasper must be configured with development mode.
> There are two problems:
> 1) Bug 52744 (https://issues.apache.org/bugzilla/show_bug.cgi?id=52744) as discovered by Forrest. This happens on file systems with time resolution of 1s (for example ext3 on Linux).
> 2) If JSP (in an WAB) uses tag files provided by another (separate) bundle, the generated Java file for the JSP will contain the following dependent information (for example):
>   static {
>     _jspx_dependants = new java.util.HashMap<java.lang.String,java.lang.Long>(2);
>     _jspx_dependants.put("bundleentry://231.fwk1401888126/META-INF/tags/sharedTest.tag", Long.valueOf(-1L));
>   }
> The problem is code checking the dependent timestamps in Compiler.isOutDated() does not know how to deal with bundleentry:// urls and the code assumes the file is outdated (and needs to be recompiled).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (GERONIMO-6295) Jsp is recompiled on each access

Posted by "Jarek Gawor (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-6295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13223307#comment-13223307 ] 

Jarek Gawor commented on GERONIMO-6295:
---------------------------------------

I updated the TldRegistry code to return jar:// urls instead of bundle:// urls (when possible) to make things work better in Japser. Changes committed to trunk (revision 1297372) and branches/3.0-beta (revision 1297366).

                
> Jsp is recompiled on each access
> --------------------------------
>
>                 Key: GERONIMO-6295
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6295
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: osgi, web
>    Affects Versions: 3.0-beta-1
>            Reporter: Jarek Gawor
>            Assignee: Jarek Gawor
>
> JSPs are recompiled on each access under certain circumstances. 
> Jasper must be configured with development mode.
> There are two problems:
> 1) Bug 52744 (https://issues.apache.org/bugzilla/show_bug.cgi?id=52744) as discovered by Forrest. This happens on file systems with time resolution of 1s (for example ext3 on Linux).
> 2) If JSP (in an WAB) uses tag files provided by another (separate) bundle, the generated Java file for the JSP will contain the following dependent information (for example):
>   static {
>     _jspx_dependants = new java.util.HashMap<java.lang.String,java.lang.Long>(2);
>     _jspx_dependants.put("bundleentry://231.fwk1401888126/META-INF/tags/sharedTest.tag", Long.valueOf(-1L));
>   }
> The problem is code checking the dependent timestamps in Compiler.isOutDated() does not know how to deal with bundleentry:// urls and the code assumes the file is outdated (and needs to be recompiled).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (GERONIMO-6295) Jsp is recompiled on each access

Posted by "Forrest Xia (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-6295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Forrest Xia resolved GERONIMO-6295.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0-beta-2
                   3.0

Think it's resolved now, right?
                
> Jsp is recompiled on each access
> --------------------------------
>
>                 Key: GERONIMO-6295
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6295
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: osgi, web
>    Affects Versions: 3.0-beta-1
>            Reporter: Jarek Gawor
>            Assignee: Jarek Gawor
>             Fix For: 3.0, 3.0-beta-2
>
>
> JSPs are recompiled on each access under certain circumstances. 
> Jasper must be configured with development mode.
> There are two problems:
> 1) Bug 52744 (https://issues.apache.org/bugzilla/show_bug.cgi?id=52744) as discovered by Forrest. This happens on file systems with time resolution of 1s (for example ext3 on Linux).
> 2) If JSP (in an WAB) uses tag files provided by another (separate) bundle, the generated Java file for the JSP will contain the following dependent information (for example):
>   static {
>     _jspx_dependants = new java.util.HashMap<java.lang.String,java.lang.Long>(2);
>     _jspx_dependants.put("bundleentry://231.fwk1401888126/META-INF/tags/sharedTest.tag", Long.valueOf(-1L));
>   }
> The problem is code checking the dependent timestamps in Compiler.isOutDated() does not know how to deal with bundleentry:// urls and the code assumes the file is outdated (and needs to be recompiled).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (GERONIMO-6295) Jsp is recompiled on each access

Posted by "Jarek Gawor (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-6295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13222999#comment-13222999 ] 

Jarek Gawor commented on GERONIMO-6295:
---------------------------------------

I updated the aries-testsuite/jsp test case to demonstrate the second issue (revision 1297340 and 1297341).

                
> Jsp is recompiled on each access
> --------------------------------
>
>                 Key: GERONIMO-6295
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6295
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: osgi, web
>    Affects Versions: 3.0-beta-1
>            Reporter: Jarek Gawor
>
> JSPs are recompiled on each access under certain circumstances. 
> Jasper must be configured with development mode.
> There are two problems:
> 1) Bug 52744 (https://issues.apache.org/bugzilla/show_bug.cgi?id=52744) as discovered by Forrest. This happens on file systems with time resolution of 1s (for example ext3 on Linux).
> 2) If JSP (in an WAB) uses tag files provided by another (separate) bundle, the generated Java file for the JSP will contain the following dependent information (for example):
>   static {
>     _jspx_dependants = new java.util.HashMap<java.lang.String,java.lang.Long>(2);
>     _jspx_dependants.put("bundleentry://231.fwk1401888126/META-INF/tags/sharedTest.tag", Long.valueOf(-1L));
>   }
> The problem is code checking the dependent timestamps in Compiler.isOutDated() does not know how to deal with bundleentry:// urls and the code assumes the file is outdated (and needs to be recompiled).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira