I don't know how you convinced yourself it is a default locale setting - both 
logs show that UI labels for the en_GB locale are being loaded.

The default locale setting would have nothing to do with loading the 
general.properties file - because it is not localized.

-Adrian

--- On Mon, 6/29/09, Ahmed Dini <[email protected]> wrote:

> From: Ahmed Dini <[email protected]>
> Subject: Ofbiz not loading general.properties file.
> To: [email protected]
> Date: Monday, June 29, 2009, 4:16 AM
> 
> Hello Everyone,
> 
> I have a problem which I think is related to setting the
> ofbiz.locale.default= and locale.properties.fallback=.
> 
> I have an Ofbiz instance which can be run using both the
> embeded Tomcat and
> also an external Tomcat.  However everything was
> working fine untill I
> updated Ofbiz to the revision on the trunk (789178). 
> 
> 
> The Problem I am having is, when I use the embeded Tomcat
> everything works
> fine, however when I use the external Tomcat to run Ofbiz,
> I get blank
> screen. For Instance, the link below would give me a blank
> screen, 
> 
> https://localhost:8459/accounting/control/main
> 
> and when I check the source of the page on the browser, all
> I get is just
> the few lines below
> 
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
> Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> <!-- Begin Screen
> component://common/widget/CommonScreens.xml#login -->
> <!-- Begin Screen
> component://accounting/widget/CommonScreens.xml#main-decorator
> -->
> 
> The funny thing is I get no errors in the error logs. The
> only thing I could
> think of was to compare the console output of the two
> servers as I make the
> first request for the page. I have noticed that the embeded
> Tomcat loads the
> general.properies file but the external Tomcat does
> not.  Please see the
> output of the embeded Tomcat. This works fine.
> 
>  FreeMarkerWorker.java:104:INFO ] loading properties:
> file:/C:/ofbiz904/ofbiz/framework/webapp/config/freemarkerTransforms.properties
> 2009-06-29 09:33:48,894 (http-0.0.0.0-8443-1) [  
> FreeMarkerWorker.java:104:INFO ] loading properties:
> file:/C:/ofbiz904/ofbiz/framework/widget/config/freemarkerTransforms.properties
> 2009-06-29 09:33:48,894 (http-0.0.0.0-8443-1) [  
> FreeMarkerWorker.java:104:INFO ] loading properties:
> file:/C:/ofbiz904/ofbiz/applications/content/config/freemarkerTransforms.properties
> 2009-06-29 09:33:48,956 (http-0.0.0.0-8443-1) [ 
>    
> ScreenFactory.java:129:INFO ] Got 22 screens in 0.234s
> from:
> file:/C:/ofbiz904/ofbiz/framework/common/widget/CommonScreens.xml
> 2009-06-29 09:33:49,050 (http-0.0.0.0-8443-1) [ 
>    
> ScreenFactory.java:129:INFO ] Got 10 screens in 0.094s
> from:
> file:/C:/ofbiz904/ofbiz/specialpurpose/accountingext/widget/CommonScreens.xml
> 2009-06-29 09:33:49,658 (http-0.0.0.0-8443-1) [ 
>   
> UtilProperties.java:870:INFO ] ResourceBundle
> AccountingUiLabels (en_GB)
> created in 0.608s with 2 properties
> 2009-06-29 09:33:49,924 (http-0.0.0.0-8443-1) [ 
>   
> UtilProperties.java:870:INFO ] ResourceBundle PartyUiLabels
> (en_GB) created
> in 0.266s with 16 properties
> 2009-06-29 09:33:50,454 (http-0.0.0.0-8443-1) [ 
>   
> UtilProperties.java:870:INFO ] ResourceBundle
> ProductUiLabels (en_GB)
> created in 0.53s with 6 properties
> 2009-06-29 09:33:50,563 (http-0.0.0.0-8443-1) [ 
>   
> UtilProperties.java:870:INFO ] ResourceBundle
> WorkEffortUiLabels (en_GB)
> created in 0.109s with 386 properties
> 2009-06-29 09:33:50,688 (http-0.0.0.0-8443-1) [ 
>   
> UtilProperties.java:870:INFO ] ResourceBundle
> ManufacturingUiLabels (en_GB)
> created in 0.125s with 396 properties
> 2009-06-29 09:33:51,218 (http-0.0.0.0-8443-1) [ 
>   
> UtilProperties.java:870:INFO ] ResourceBundle
> CommonUiLabels (en_GB) created
> in 0.53s with 688 properties
> 2009-06-29 09:33:51,359 (http-0.0.0.0-8443-1) [ 
>   
> UtilProperties.java:870:INFO ] ResourceBundle
> AccountingHelpUrls (en_GB)
> created in 0.125s with 101 properties
> 2009-06-29 09:33:51,499 (http-0.0.0.0-8443-1) [ 
>    
> ScreenFactory.java:129:INFO ] Got 1 screens in 0.14s from:
> file:/C:/ofbiz904/ofbiz/applications/commonext/widget/CommonScreens.xml
> 2009-06-29 09:33:51,515 (http-0.0.0.0-8443-1) [  
> PrimaryKeyFinder.java:141:INFO ] Returning null because
> found incomplete
> primary key in find:
> [GenericEntity:PartyNameView][partyId,null()]
> 2009-06-29 09:33:52,716 (http-0.0.0.0-8443-1) [ 
>   
> UtilProperties.java:870:INFO ] ResourceBundle general
> (en_GB) created in
> 0.031s with 27 properties
> 
> 
> This is also the output of the external Tomcat:-
> 
> 2009-06-29 11:41:27,052 (http-8459-1)
> [   FreeMarkerWorker.java:104:INFO ]
> loading properties:
> file:/C:/ofbiz904/ofbiz/framework/webapp/config/freemarkerTransforms.properties
> 2009-06-29 11:41:27,052 (http-8459-1)
> [   FreeMarkerWorker.java:104:INFO ]
> loading properties:
> file:/C:/ofbiz904/ofbiz/framework/widget/config/freemarkerTransforms.properties
> 2009-06-29 11:41:27,052 (http-8459-1)
> [   FreeMarkerWorker.java:104:INFO ]
> loading properties:
> file:/C:/ofbiz904/ofbiz/applications/content/config/freemarkerTransforms.properties
> 2009-06-29 11:41:27,302 (http-8459-1) [     
> ScreenFactory.java:129:INFO ]
> Got 22 screens in 0.312s from:
> file:/C:/ofbiz904/ofbiz/framework/common/widget/CommonScreens.xml
> 2009-06-29 11:41:27,442 (http-8459-1) [     
> ScreenFactory.java:129:INFO ]
> Got 13 screens in 0.047s from:
> file:/C:/ofbiz904/ofbiz/applications/accounting/widget/CommonScreens.xml
> 2009-06-29 11:41:28,097 (http-8459-1) [ 
>    UtilProperties.java:870:INFO ]
> ResourceBundle AccountingUiLabels (en_GB) created in 0.624s
> with 2
> properties
> 2009-06-29 11:41:28,285 (http-8459-1) [ 
>    UtilProperties.java:870:INFO ]
> ResourceBundle PartyUiLabels (en_GB) created in 0.188s with
> 16 properties
> 2009-06-29 11:41:28,550 (http-8459-1) [ 
>    UtilProperties.java:870:INFO ]
> ResourceBundle ProductUiLabels (en_GB) created in 0.265s
> with 6 properties
> 2009-06-29 11:41:28,612 (http-8459-1) [ 
>    UtilProperties.java:870:INFO ]
> ResourceBundle WorkEffortUiLabels (en_GB) created in 0.062s
> with 386
> properties
> 2009-06-29 11:41:28,721 (http-8459-1) [ 
>    UtilProperties.java:870:INFO ]
> ResourceBundle ManufacturingUiLabels (en_GB) created in
> 0.109s with 396
> properties
> 2009-06-29 11:41:28,831 (http-8459-1) [ 
>    UtilProperties.java:870:INFO ]
> ResourceBundle CommonUiLabels (en_GB) created in 0.11s with
> 688 properties
> 2009-06-29 11:41:28,862 (http-8459-1) [ 
>    UtilProperties.java:870:INFO ]
> ResourceBundle AccountingHelpUrls (en_GB) created in 0.031s
> with 101
> properties
> 
> I might be wrong, but I have convinced myself the problems
> is related to the
> default locale configurations. My assumption is that the
> default locale
> value is set in (ofbiz.locale.default=en) start.properties
> file which I
> could not figure out how the the external Tomcat
> calls.  I have tried few
> setting particularly in the catalina.bat file such as
> setting the default
> local at ( set JAVA_OPTS=%JAVA_OPTS%
> -Dofbiz.home="${ofbizHome}"
> -Dofbiz.locale.default=en). But to no avail. 
> 
> Please help me solve this problem. Thanks alot
> -- 
> View this message in context: 
> http://www.nabble.com/Ofbiz-not-loading-general.properties-file.-tp24252312p24252312.html
> Sent from the OFBiz - User mailing list archive at
> Nabble.com.
> 
> 



Reply via email to