Ofbiz not loading general.properties file.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Ofbiz not loading general.properties file.

asdini
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">



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
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz not loading general.properties file.

Adrian Crum-2

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 <[hidden email]> wrote:

> From: Ahmed Dini <[hidden email]>
> Subject: Ofbiz not loading general.properties file.
> To: [hidden email]
> 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 | Threaded
Open this post in threaded view
|

Re: Ofbiz not loading general.properties file.

asdini
Hi Adrian,

Thanks for the reply, I am not really sure why.  I am still struggling solving the problem. I am going to roll back to an old backup revision where the both Tomcat instances were working to see how updated to the trunk revision has affected it. I will post the results. Thanks
Adrian Crum-2 wrote
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 <asdini@hotmail.com> wrote:

> From: Ahmed Dini <asdini@hotmail.com>
> Subject: Ofbiz not loading general.properties file.
> To: user@ofbiz.apache.org
> 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">
>
>
>
> 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 | Threaded
Open this post in threaded view
|

Re: Ofbiz not loading general.properties file.

asdini
Hello Again,

As I couldn't find out why I was getting the blank screen after I update to latest revision on trunk, I decided to roll back to previously saved revision.  With this revision everything works fine. Then I updated the code to revision 789349 which I believe is the latest at the moment. Only then I started getting blank screens for every request. The common error I get is shown below:-

java.lang.NoClassDefFoundError: org/codehaus/groovy/control/CompilationFailedException
        org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:408)
        org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:118)
        org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:220)
        org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393)
        org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:130)
        org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:93)
        org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:99)
        org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:793)
        org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
        org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:211)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:696)
        org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:667)
        org.apache.jsp.index_jsp._jspService(index_jsp.java:55)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:264)

Please help me if you can understand what going wrong.
Thanks


Ahmed Dini wrote
Hi Adrian,

Thanks for the reply, I am not really sure why.  I am still struggling solving the problem. I am going to roll back to an old backup revision where the both Tomcat instances were working to see how updated to the trunk revision has affected it. I will post the results. Thanks
Adrian Crum-2 wrote
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 <asdini@hotmail.com> wrote:

> From: Ahmed Dini <asdini@hotmail.com>
> Subject: Ofbiz not loading general.properties file.
> To: user@ofbiz.apache.org
> 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">
>
>
>
> 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 | Threaded
Open this post in threaded view
|

Re: Ofbiz not loading general.properties file.

Adrian Crum
Have you tried running ant clean and ant build?

-Adrian

Ahmed Dini wrote:

> Hello Again,
>
> As I couldn't find out why I was getting the blank screen after I update to
> latest revision on trunk, I decided to roll back to previously saved
> revision.  With this revision everything works fine. Then I updated the code
> to revision 789349 which I believe is the latest at the moment. Only then I
> started getting blank screens for every request. The common error I get is
> shown below:-
>
> java.lang.NoClassDefFoundError:
> org/codehaus/groovy/control/CompilationFailedException
>
> org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:408)
>
> org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:118)
>
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:220)
>
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:130)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:93)
>
> org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:99)
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:793)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:211)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
> org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:696)
> org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:667)
> org.apache.jsp.index_jsp._jspService(index_jsp.java:55)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:264)
>
> Please help me if you can understand what going wrong.
> Thanks
>
>
>
> Ahmed Dini wrote:
>> Hi Adrian,
>>
>> Thanks for the reply, I am not really sure why.  I am still struggling
>> solving the problem. I am going to roll back to an old backup revision
>> where the both Tomcat instances were working to see how updated to the
>> trunk revision has affected it. I will post the results. Thanks
>>
>> Adrian Crum-2 wrote:
>>>
>>> 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 <[hidden email]> wrote:
>>>
>>>> From: Ahmed Dini <[hidden email]>
>>>> Subject: Ofbiz not loading general.properties file.
>>>> To: [hidden email]
>>>> 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 | Threaded
Open this post in threaded view
|

Re: Ofbiz not loading general.properties file.

asdini
Hello Adrian,

Yeah, I did both ant clean and ant build and both were successful.  I get no error but only blank screens when I run all application except ecommerce. With Ecommerce I get a servlet exception and some other root exceptions:-

org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 20

17: under the License.
18: --%>
19:
20: <%pageContext.forward("control/main");%>


Stacktrace:
        org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:264)


root cause

javax.servlet.ServletException: Servlet execution threw an exception
        org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:696)
        org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:667)
        org.apache.jsp.index_jsp._jspService(index_jsp.java:55)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:264)


root cause

java.lang.NoClassDefFoundError: org/codehaus/groovy/control/CompilationFailedException
        org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:408)
        org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:118)
        org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:220)
        org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393)
        org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:130)
        org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:93)
        org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:99)
        org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:793)
        org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
        org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:211)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:696)
        org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:667)
        org.apache.jsp.index_jsp._jspService(index_jsp.java:55)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:264)

Thanks
Adrian Crum wrote
Have you tried running ant clean and ant build?

-Adrian

Ahmed Dini wrote:
> Hello Again,
>
> As I couldn't find out why I was getting the blank screen after I update to
> latest revision on trunk, I decided to roll back to previously saved
> revision.  With this revision everything works fine. Then I updated the code
> to revision 789349 which I believe is the latest at the moment. Only then I
> started getting blank screens for every request. The common error I get is
> shown below:-
>
> java.lang.NoClassDefFoundError:
> org/codehaus/groovy/control/CompilationFailedException
>
> org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:408)
>
> org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:118)
>
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:220)
>
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:130)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:93)
>
> org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:99)
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:793)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:211)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
> org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:696)
> org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:667)
> org.apache.jsp.index_jsp._jspService(index_jsp.java:55)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:264)
>
> Please help me if you can understand what going wrong.
> Thanks
>
>
>
> Ahmed Dini wrote:
>> Hi Adrian,
>>
>> Thanks for the reply, I am not really sure why.  I am still struggling
>> solving the problem. I am going to roll back to an old backup revision
>> where the both Tomcat instances were working to see how updated to the
>> trunk revision has affected it. I will post the results. Thanks
>>
>> Adrian Crum-2 wrote:
>>>
>>> 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 <asdini@hotmail.com> wrote:
>>>
>>>> From: Ahmed Dini <asdini@hotmail.com>
>>>> Subject: Ofbiz not loading general.properties file.
>>>> To: user@ofbiz.apache.org
>>>> 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">
>>>>
>>>>
>>>>
>>>> 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 | Threaded
Open this post in threaded view
|

Re: Ofbiz not loading general.properties file.

Adrian Crum
I don't use external Tomcat, so I don't know what the problem could be.
Maybe someone else will have an answer.

-Adrian

Ahmed Dini wrote:

> Hello Adrian,
>
> Yeah, I did both ant clean and ant build and both were successful.  I get no
> error but only blank screens when I run all application except ecommerce.
> With Ecommerce I get a servlet exception and some other root exceptions:-
>
> org.apache.jasper.JasperException: An exception occurred processing JSP page
> /index.jsp at line 20
>
> 17: under the License.
> 18: --%>
> 19:
> 20: <%pageContext.forward("control/main");%>
>
>
> Stacktrace:
>
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:264)
>
>
> root cause
>
> javax.servlet.ServletException: Servlet execution threw an exception
>
> org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:696)
> org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:667)
> org.apache.jsp.index_jsp._jspService(index_jsp.java:55)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:264)
>
>
> root cause
>
> java.lang.NoClassDefFoundError:
> org/codehaus/groovy/control/CompilationFailedException
>
> org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:408)
>
> org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:118)
>
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:220)
>
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:130)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:93)
>
> org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:99)
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:793)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:211)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
> org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:696)
> org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:667)
> org.apache.jsp.index_jsp._jspService(index_jsp.java:55)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:264)
>
> Thanks
>
> Adrian Crum wrote:
>> Have you tried running ant clean and ant build?
>>
>> -Adrian
>>
>> Ahmed Dini wrote:
>>> Hello Again,
>>>
>>> As I couldn't find out why I was getting the blank screen after I update
>>> to
>>> latest revision on trunk, I decided to roll back to previously saved
>>> revision.  With this revision everything works fine. Then I updated the
>>> code
>>> to revision 789349 which I believe is the latest at the moment. Only then
>>> I
>>> started getting blank screens for every request. The common error I get
>>> is
>>> shown below:-
>>>
>>> java.lang.NoClassDefFoundError:
>>> org/codehaus/groovy/control/CompilationFailedException
>>>
>>> org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:408)
>>>
>>> org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:118)
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:220)
>>>
>>> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393)
>>> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:130)
>>> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:93)
>>>
>>> org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:99)
>>>
>>> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:793)
>>>
>>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:211)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>>
>>> org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:696)
>>>
>>> org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:667)
>>> org.apache.jsp.index_jsp._jspService(index_jsp.java:55)
>>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>>
>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
>>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:264)
>>>
>>> Please help me if you can understand what going wrong.
>>> Thanks
>>>
>>>
>>>
>>> Ahmed Dini wrote:
>>>> Hi Adrian,
>>>>
>>>> Thanks for the reply, I am not really sure why.  I am still struggling
>>>> solving the problem. I am going to roll back to an old backup revision
>>>> where the both Tomcat instances were working to see how updated to the
>>>> trunk revision has affected it. I will post the results. Thanks
>>>>
>>>> Adrian Crum-2 wrote:
>>>>> 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 <[hidden email]> wrote:
>>>>>
>>>>>> From: Ahmed Dini <[hidden email]>
>>>>>> Subject: Ofbiz not loading general.properties file.
>>>>>> To: [hidden email]
>>>>>> 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 | Threaded
Open this post in threaded view
|

Re: Ofbiz not loading general.properties file.

BJ Freeman
In reply to this post by Adrian Crum
java.lang.NoClassDefFoundError:
org/codehaus/groovy/control/CompilationFailedException

track down why this error.
probably not a path defined in the
ofbiz-component.xml

Ahmed Dini sent the following on 6/29/2009 10:00 AM:

> Hello Adrian,
>
> Yeah, I did both ant clean and ant build and both were successful.  I get no
> error but only blank screens when I run all application except ecommerce.
> With Ecommerce I get a servlet exception and some other root exceptions:-
>
> org.apache.jasper.JasperException: An exception occurred processing JSP page
> /index.jsp at line 20
>
> 17: under the License.
> 18: --%>
> 19:
> 20: <%pageContext.forward("control/main");%>
>
>
> Stacktrace:
>
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:264)
>
>
> root cause
>
> javax.servlet.ServletException: Servlet execution threw an exception
>
> org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:696)
> org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:667)
> org.apache.jsp.index_jsp._jspService(index_jsp.java:55)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:264)
>
>
> root cause
>
> java.lang.NoClassDefFoundError:
> org/codehaus/groovy/control/CompilationFailedException
>
> org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:408)
>
> org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:118)
>
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:220)
>
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:130)
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:93)
>
> org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:99)
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:793)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:211)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
> org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:696)
> org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:667)
> org.apache.jsp.index_jsp._jspService(index_jsp.java:55)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:264)
>
> Thanks
>
> Adrian Crum wrote:
>> Have you tried running ant clean and ant build?
>>
>> -Adrian
>>
>> Ahmed Dini wrote:
>>> Hello Again,
>>>
>>> As I couldn't find out why I was getting the blank screen after I update
>>> to
>>> latest revision on trunk, I decided to roll back to previously saved
>>> revision.  With this revision everything works fine. Then I updated the
>>> code
>>> to revision 789349 which I believe is the latest at the moment. Only then
>>> I
>>> started getting blank screens for every request. The common error I get
>>> is
>>> shown below:-
>>>
>>> java.lang.NoClassDefFoundError:
>>> org/codehaus/groovy/control/CompilationFailedException
>>>
>>> org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:408)
>>>
>>> org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:118)
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:220)
>>>
>>> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393)
>>> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:130)
>>> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:93)
>>>
>>> org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandler.java:99)
>>>
>>> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:793)
>>>
>>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:537)
>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:211)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>>
>>> org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:696)
>>>
>>> org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:667)
>>> org.apache.jsp.index_jsp._jspService(index_jsp.java:55)
>>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>>
>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
>>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:264)
>>>
>>> Please help me if you can understand what going wrong.
>>> Thanks
>>>
>>>
>>>
>>> Ahmed Dini wrote:
>>>> Hi Adrian,
>>>>
>>>> Thanks for the reply, I am not really sure why.  I am still struggling
>>>> solving the problem. I am going to roll back to an old backup revision
>>>> where the both Tomcat instances were working to see how updated to the
>>>> trunk revision has affected it. I will post the results. Thanks
>>>>
>>>> Adrian Crum-2 wrote:
>>>>> 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 <[hidden email]> wrote:
>>>>>
>>>>>> From: Ahmed Dini <[hidden email]>
>>>>>> Subject: Ofbiz not loading general.properties file.
>>>>>> To: [hidden email]
>>>>>> 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.
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>
>

--
BJ Freeman
http://www.businessesnetwork.com/automation
http://bjfreeman.elance.com
http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
Systems Integrator.