Resolved

The problem was into USER_PREFERENCE table
with
       user_login_id='admin'
       user_pref_type_id='VISUAL_THEME'
       user_pref_value='DEFAULT'

I changed user_pref_value into by ex. "FLAT_GREY"

Where does 'DEFAULT' come from : seed data ?

Eric
----- Original Message ----- From: "Eric DE MAULDE" <eric...@free.fr>
To: <user@ofbiz.apache.org>; <adrian.c...@yahoo.com>
Sent: Saturday, April 25, 2009 3:34 AM
Subject: Re: Visual themes error


I ran this command several times but always this error appends
thanks

Eric
----- Original Message ----- From: "Adrian Crum" <adrian.c...@yahoo.com>
To: <user@ofbiz.apache.org>
Sent: Saturday, April 25, 2009 2:34 AM
Subject: Re: Visual themes error



Make sure you run ant install-seed after updating from the trunk.

-Adrian


--- On Fri, 4/24/09, Eric DE MAULDE <eric...@free.fr> wrote:

From: Eric DE MAULDE <eric...@free.fr>
Subject: Visual themes error
To: user@ofbiz.apache.org
Date: Friday, April 24, 2009, 4:28 PM
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