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 |
Make sure you run ant install-seed after updating from the trunk. -Adrian --- On Fri, 4/24/09, Eric DE MAULDE <[hidden email]> wrote: > From: Eric DE MAULDE <[hidden email]> > Subject: Visual themes error > To: [hidden email] > 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 |
I ran this command several times but always this error appends
thanks Eric ----- Original Message ----- From: "Adrian Crum" <[hidden email]> To: <[hidden email]> 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 <[hidden email]> wrote: > >> From: Eric DE MAULDE <[hidden email]> >> Subject: Visual themes error >> To: [hidden email] >> 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 > > > > |
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" <[hidden email]> To: <[hidden email]>; <[hidden email]> 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" <[hidden email]> > To: <[hidden email]> > 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 <[hidden email]> wrote: >> >>> From: Eric DE MAULDE <[hidden email]> >>> Subject: Visual themes error >>> To: [hidden email] >>> 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 >> >> >> >> > > |
Free forum by Nabble | Edit this page |