Hello,

My development server works fine.
But my production server (same official trunk version 768363) has a problem 
with visual themes.

After I logged into any applications, the page doesn't have an header, footer 
and appbar :

"Error rendering included template at location 
[component://common/webcommon/includes/header.ftl]: 
java.lang.IllegalArgumentException: FreeMarker file not found at location: 
component://common/webcommon/includes/header.ftl Error rendering included 
template at location [component://common/webcommon/includes/appbar.ftl]: 
java.lang.IllegalArgumentException: FreeMarker file not found at location: 
component://common/webcommon/includes/appbar.ftl"

The error message is :

org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen 
[component://product/widget/catalog/CommonScreens.xml#leftbar]: 
org.ofbiz.entity.transaction.GenericTransactionException: The current 
transaction is marked for rollback, not beginning a new transaction and 
aborting current operation; the rollbackOnly was caused by: Error in 
simple-method [Get visual theme resources 
[file:/home/ofbiz/customOfbizWorkingCopy/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]:
 ; [Visual Theme resources not found.] (The current transaction is marked for 
rollback, not beginning a new transaction and aborting current operation; the 
rollbackOnly was caused by: Error in simple-method [Get visual theme resources 
[file:/home/ofbiz/customOfbizWorkingCopy/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml#getVisualThemeResources]]:
 ; [Visual Theme resources not found.])

Into ${ofbiz directory}/framework/common/widget/CommonScreens.xml, there are (I 
think) wrong default values :

<set field="headerTemplateLocation" 
from-field="layoutSettings.VT_HDR_TMPLT_LOC[0]" 
default-value="component://common/webcommon/includes/header.ftl"/>
<set field="footerTemplateLocation" 
from-field="layoutSettings.VT_FTR_TMPLT_LOC[0]" 
default-value="component://common/webcommon/includes/footer.ftl"/>
<set field="appbarTemplateLocation" 
from-field="layoutSettings.VT_NAV_TMPLT_LOC[0]" 
default-value="component://common/webcommon/includes/appbar.ftl"/>

Because default files don't exist.

I don't know why 2 servers runs differently with the same official trunk 
version (768363)


Eric 

Reply via email to