Re: Deadlock issue

Daniel Dekany <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Thursday, April 19, 2012, 10:26:32 PM, Jacopo Cappellato wrote:

[snip]
>>> Detected a reloaded class [CompanyInfo$_run_closure1]. Clearing BeansWrapper caches.
>>> Detected a reloaded class [CompanyInfo$_run_closure2]. Clearing BeansWrapper caches.
>>> Detected a reloaded class [Breadcrumbs$_run_closure2]. Clearing BeansWrapper caches.
>>> Detected a reloaded class [ContactUs$_run_closure1]. Clearing BeansWrapper caches.
>>> Detected a reloaded class [ShoppingCartReadHelper$_run_closure1]. Clearing BeansWrapper caches.
>>> Detected a reloaded class [ShoppingCartReadHelper$_run_closure2]. Clearing BeansWrapper caches.
>>> Detected a reloaded class [ShoppingCartReadHelper$_run_closure3]. Clearing BeansWrapper caches.
>>> Detected a reloaded class [ShoppingCartReadHelper$_run_closure4]. Clearing BeansWrapper caches.
[snip]
> Yes they are the data preparation scripts for the templates and are
> all Groovy scripts; an example of an OFBiz screen declaration is the following:
>
>     <screen name="MicroCart">
>         <section>
>             <actions>
>                 <script
> location="component://somecomponent/webapp/somecomponent/WEB-INF/actions/ShoppingCartReadHelper.groovy"/>
>             </actions>
>             <widgets>
>                 <platform-specific><html><html-template
> location="component://somecomponent/webapp/somecomponent/cart/MicroCart.ftl"/></html></platform-specific>
>             </widgets>
>         </section>
>     </screen>
>
> And the same groovy scripts or ftl templates are reused by
> different screen definitions in different webapplications.

Are these loaded from a common jar file (and I don't mean the copies
of the same jar, but a single file)? If they are, FreeMarker should
not face multiple versions of the same class, and you shouldn't have
this problem. (Unless there's something special in how Groovy scripts
are loaded...)

-- 
Best regards,
 Daniel Dekany


------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.