ant create-component

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

ant create-component

Pierre Smits
Hi all,

I have created a new component with the create-component function in Ant.

When loading the new component I notice that the header looks different
compared to the applications in the applications and specialpurpose
directories.

The differences are:

   - No tasks are shown
   - The name of the user is not shown, only the userid
   - The company name is not shown
   - The link for visual themes is there, but when clicking on it no themes
   are shown (the link shows doesn't show the jsessionid)
   - The link for languages doesn't show the jsessionid


Is this a bug? Or am I forgetting some configuration?

Regards,

Pierre
Reply | Threaded
Open this post in threaded view
|

Re: ant create-component

Erwan de FERRIERES
Le 25/08/2010 10:17, Pierre Smits a écrit :
> Hi all,
>
> I have created a new component with the create-component function in Ant.
>
Hi Pierre,

files must not be up-to-date in framework/resources/template.

--
Erwan de FERRIERES
www.nereide.biz
Reply | Threaded
Open this post in threaded view
|

Re: ant create-component

Pierre Smits
I looked at commonscreens.xml in the new component, but it doesn't look that
different to those in other applications.

Are other files (eg services?) involved to generate the header?

2010/8/25 Erwan de FERRIERES <[hidden email]>

> Le 25/08/2010 10:17, Pierre Smits a écrit :
>
>  Hi all,
>>
>> I have created a new component with the create-component function in Ant.
>>
>>  Hi Pierre,
>
> files must not be up-to-date in framework/resources/template.
>
> --
> Erwan de FERRIERES
> www.nereide.biz
>
Reply | Threaded
Open this post in threaded view
|

Re: ant create-component

BJ Freeman
was there an error while loading the datafiles?
check your widgets/CommonScreens.xml main-decorator

=========================
BJ Freeman  <http://bjfreeman.elance.com>
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Pierre Smits sent the following on 8/25/2010 2:58 AM:

> I looked at commonscreens.xml in the new component, but it doesn't look that
> different to those in other applications.
>
> Are other files (eg services?) involved to generate the header?
>
> 2010/8/25 Erwan de FERRIERES<[hidden email]>
>
>> Le 25/08/2010 10:17, Pierre Smits a écrit :
>>
>>   Hi all,
>>>
>>> I have created a new component with the create-component function in Ant.
>>>
>>>   Hi Pierre,
>>
>> files must not be up-to-date in framework/resources/template.
>>
>> --
>> Erwan de FERRIERES
>> www.nereide.biz
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: ant create-component

Pierre Smits
Hi BJ,

Unfortunately, my startup doesn't generate any errors. (my compliments for
the well built component generator).

The content of my CommonScreens.xml doesn't seem that different, see below:

<screen name="main-decorator">
        <section>
            <actions>
                <property-map resource="CommonUiLabels"
map-name="uiLabelMap" global="true"/>
                <property-map resource="ProfilerUiLabels"
map-name="uiLabelMap" global="true"/>

                <set field="layoutSettings.companyName"
from-field="uiLabelMap.ProfilerCompanyName" global="true"/>
                <set field="layoutSettings.companySubtitle"
from-field="uiLabelMap.ProfilerCompanySubtitle" global="true"/>

                <set field="activeApp" value="profiler" global="true"/>
                <set field="applicationMenuName" value="MainAppBar"
global="true"/>
                <set field="applicationMenuLocation"
value="component://profiler/widget/ProfilerMenus.xml" global="true"/>
                <set field="applicationTitle"
value="${uiLabelMap.ProfilerApplication}" global="true"/>
            </actions>
            <widgets>
                <include-screen name="GlobalDecorator"
location="component://common/widget/CommonScreens.xml"/>
            </widgets>
        </section>
    </screen>

When you mentioned loading datafiles I browsed through them and noticed it
doesn't contain a website reference lijke in e.g. Order:
<WebSite webSiteId="OrderEntry" siteName="Order Entry Web Site"
visualThemeSetId="BACKOFFICE"/>

I also noticed that there is no entry for the application in the website
table of ContentMgr.

Could that have something to do with it?

Regards,

Pierre

2010/8/25 BJ Freeman <[hidden email]>

> was there an error while loading the datafiles?
> check your widgets/CommonScreens.xml main-decorator
>
> =========================
> BJ Freeman  <http://bjfreeman.elance.com>
> Strategic Power Office with Supplier Automation  <
> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
> Specialtymarket.com  <http://www.specialtymarket.com/>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
>
>
> Pierre Smits sent the following on 8/25/2010 2:58 AM:
>
>  I looked at commonscreens.xml in the new component, but it doesn't look
>> that
>> different to those in other applications.
>>
>> Are other files (eg services?) involved to generate the header?
>>
>> 2010/8/25 Erwan de FERRIERES<[hidden email]>
>>
>>  Le 25/08/2010 10:17, Pierre Smits a écrit :
>>>
>>>  Hi all,
>>>
>>>>
>>>> I have created a new component with the create-component function in
>>>> Ant.
>>>>
>>>>  Hi Pierre,
>>>>
>>>
>>> files must not be up-to-date in framework/resources/template.
>>>
>>> --
>>> Erwan de FERRIERES
>>> www.nereide.biz
>>>
>>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: ant create-component

BJ Freeman
looks about right
if you look at
"uiLabelMap.ProfilerCompanyName
this is found in your the config/ProfilerUiLabels.xml
this overrides layoutSettings.companyName that is initialize elsewhere.
so you need to comment out this line.

=========================
BJ Freeman  <http://bjfreeman.elance.com>
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Pierre Smits sent the following on 8/25/2010 11:21 PM:

> Hi BJ,
>
> Unfortunately, my startup doesn't generate any errors. (my compliments for
> the well built component generator).
>
> The content of my CommonScreens.xml doesn't seem that different, see below:
>
> <screen name="main-decorator">
>          <section>
>              <actions>
>                  <property-map resource="CommonUiLabels"
> map-name="uiLabelMap" global="true"/>
>                  <property-map resource="ProfilerUiLabels"
> map-name="uiLabelMap" global="true"/>
>
>                  <set field="layoutSettings.companyName"
> from-field="uiLabelMap.ProfilerCompanyName" global="true"/>
>                  <set field="layoutSettings.companySubtitle"
> from-field="uiLabelMap.ProfilerCompanySubtitle" global="true"/>
>
>                  <set field="activeApp" value="profiler" global="true"/>
>                  <set field="applicationMenuName" value="MainAppBar"
> global="true"/>
>                  <set field="applicationMenuLocation"
> value="component://profiler/widget/ProfilerMenus.xml" global="true"/>
>                  <set field="applicationTitle"
> value="${uiLabelMap.ProfilerApplication}" global="true"/>
>              </actions>
>              <widgets>
>                  <include-screen name="GlobalDecorator"
> location="component://common/widget/CommonScreens.xml"/>
>              </widgets>
>          </section>
>      </screen>
>
> When you mentioned loading datafiles I browsed through them and noticed it
> doesn't contain a website reference lijke in e.g. Order:
> <WebSite webSiteId="OrderEntry" siteName="Order Entry Web Site"
> visualThemeSetId="BACKOFFICE"/>
>
> I also noticed that there is no entry for the application in the website
> table of ContentMgr.
>
> Could that have something to do with it?
>
> Regards,
>
> Pierre
>
> 2010/8/25 BJ Freeman<[hidden email]>
>
>> was there an error while loading the datafiles?
>> check your widgets/CommonScreens.xml main-decorator
>>
>> =========================
>> BJ Freeman<http://bjfreeman.elance.com>
>> Strategic Power Office with Supplier Automation<
>> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>> Specialtymarket.com<http://www.specialtymarket.com/>
>> Systems Integrator-- Glad to Assist
>>
>> Chat  Y! messenger: bjfr33man
>>
>>
>> Pierre Smits sent the following on 8/25/2010 2:58 AM:
>>
>>   I looked at commonscreens.xml in the new component, but it doesn't look
>>> that
>>> different to those in other applications.
>>>
>>> Are other files (eg services?) involved to generate the header?
>>>
>>> 2010/8/25 Erwan de FERRIERES<[hidden email]>
>>>
>>>   Le 25/08/2010 10:17, Pierre Smits a écrit :
>>>>
>>>>   Hi all,
>>>>
>>>>>
>>>>> I have created a new component with the create-component function in
>>>>> Ant.
>>>>>
>>>>>   Hi Pierre,
>>>>>
>>>>
>>>> files must not be up-to-date in framework/resources/template.
>>>>
>>>> --
>>>> Erwan de FERRIERES
>>>> www.nereide.biz
>>>>
>>>>
>>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: ant create-component

Pierre Smits
Hi BJ

Having commented out the "uiLabelMap.ProfilerCompanyName" in
config/ProfilerUiLabels.xml didn't change anything in the appearance, but
generated following error:

2010-08-26 10:11:05,459 (http-0.0.0.0-8443-4) [ Log4JLoggerFactory.java:96
:ERROR]

Expression layoutSettings.companyName is undefined on line 28, column 14 in
component://flatgrey/includes/header.ftl.
The problematic instruction:
----------
==> ${layoutSettings.companyName} [on line 28, column 12 in
component://flatgrey/includes/header.ftl]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression
layoutSettings.companyName is undefined on line 28, column 14 in
component://flatgrey/includes/header.ftl.
    at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
    at freemarker.core.Expression.getStringValue(Expression.java:118)
    at freemarker.core.Expression.getStringValue(Expression.java:93)
    at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
    at freemarker.core.Environment.visit(Environment.java:209)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:209)
    at freemarker.core.Environment.process(Environment.java:189)
    at
org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:216)
    at
org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:205)
    at
org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:250)
    at
org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:110)
    at
org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:972)
    at
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
    at
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
    at
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
    at
org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:540)
    at
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
    at
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
    at
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
    at
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:637)
    at
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
    at
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
    at
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
    at
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:637)
    at
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
    at
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
    at
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
    at
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135)
    at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97)
    at
org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:104)
    at
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:839)
    at
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:559)
    at
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:227)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:271)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
    at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:619)
2010-08-26 10:11:05,537 (http-0.0.0.0-8443-4) [ Log4JLoggerFactory.java:96
:ERROR]

Expression layoutSettings.companyName is undefined on line 137, column 93 in
component://flatgrey/includes/header.ftl.
The problematic instruction:
----------
==> ${layoutSettings.companyName} [on line 137, column 91 in
component://flatgrey/includes/header.ftl]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression
layoutSettings.companyName is undefined on line 137, column 93 in
component://flatgrey/includes/header.ftl.
    at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
    at freemarker.core.Expression.getStringValue(Expression.java:118)
    at freemarker.core.Expression.getStringValue(Expression.java:93)
    at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
    at freemarker.core.Environment.visit(Environment.java:209)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:209)
    at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
    at freemarker.core.Environment.visit(Environment.java:209)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:209)
    at freemarker.core.IfBlock.accept(IfBlock.java:82)
    at freemarker.core.Environment.visit(Environment.java:209)
    at freemarker.core.MixedContent.accept(MixedContent.java:92)
    at freemarker.core.Environment.visit(Environment.java:209)
    at freemarker.core.Environment.process(Environment.java:189)
    at
org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:216)
    at
org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:205)
    at
org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:250)
    at
org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:110)
    at
org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:972)
    at
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
    at
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
    at
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
    at
org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:540)
    at
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
    at
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
    at
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
    at
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:637)
    at
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
    at
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
    at
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
    at
org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:637)
    at
org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
    at
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
    at
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
    at
org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135)
    at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97)
    at
org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:104)
    at
org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:839)
    at
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:559)
    at
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:227)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:271)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
    at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:619)

So I changed it back....

Seems the problem lies somewhere else...

2010/8/26 BJ Freeman <[hidden email]>

> looks about right
> if you look at
> "uiLabelMap.ProfilerCompanyName
> this is found in your the config/ProfilerUiLabels.xml
> this overrides layoutSettings.companyName that is initialize elsewhere.
> so you need to comment out this line.
>
>
> =========================
> BJ Freeman  <http://bjfreeman.elance.com>
> Strategic Power Office with Supplier Automation  <
> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
> Specialtymarket.com  <http://www.specialtymarket.com/>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
>
>
> Pierre Smits sent the following on 8/25/2010 11:21 PM:
>
>  Hi BJ,
>>
>> Unfortunately, my startup doesn't generate any errors. (my compliments for
>> the well built component generator).
>>
>> The content of my CommonScreens.xml doesn't seem that different, see
>> below:
>>
>> <screen name="main-decorator">
>>         <section>
>>             <actions>
>>                 <property-map resource="CommonUiLabels"
>> map-name="uiLabelMap" global="true"/>
>>                 <property-map resource="ProfilerUiLabels"
>> map-name="uiLabelMap" global="true"/>
>>
>>                 <set field="layoutSettings.companyName"
>> from-field="uiLabelMap.ProfilerCompanyName" global="true"/>
>>                 <set field="layoutSettings.companySubtitle"
>> from-field="uiLabelMap.ProfilerCompanySubtitle" global="true"/>
>>
>>                 <set field="activeApp" value="profiler" global="true"/>
>>                 <set field="applicationMenuName" value="MainAppBar"
>> global="true"/>
>>                 <set field="applicationMenuLocation"
>> value="component://profiler/widget/ProfilerMenus.xml" global="true"/>
>>                 <set field="applicationTitle"
>> value="${uiLabelMap.ProfilerApplication}" global="true"/>
>>             </actions>
>>             <widgets>
>>                 <include-screen name="GlobalDecorator"
>> location="component://common/widget/CommonScreens.xml"/>
>>             </widgets>
>>         </section>
>>     </screen>
>>
>> When you mentioned loading datafiles I browsed through them and noticed it
>> doesn't contain a website reference lijke in e.g. Order:
>> <WebSite webSiteId="OrderEntry" siteName="Order Entry Web Site"
>> visualThemeSetId="BACKOFFICE"/>
>>
>> I also noticed that there is no entry for the application in the website
>> table of ContentMgr.
>>
>> Could that have something to do with it?
>>
>> Regards,
>>
>> Pierre
>>
>> 2010/8/25 BJ Freeman<[hidden email]>
>>
>>  was there an error while loading the datafiles?
>>> check your widgets/CommonScreens.xml main-decorator
>>>
>>> =========================
>>> BJ Freeman<http://bjfreeman.elance.com>
>>> Strategic Power Office with Supplier Automation<
>>> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>>> Specialtymarket.com<http://www.specialtymarket.com/>
>>> Systems Integrator-- Glad to Assist
>>>
>>> Chat  Y! messenger: bjfr33man
>>>
>>>
>>> Pierre Smits sent the following on 8/25/2010 2:58 AM:
>>>
>>>  I looked at commonscreens.xml in the new component, but it doesn't look
>>>
>>>> that
>>>> different to those in other applications.
>>>>
>>>> Are other files (eg services?) involved to generate the header?
>>>>
>>>> 2010/8/25 Erwan de FERRIERES<[hidden email]>
>>>>
>>>>  Le 25/08/2010 10:17, Pierre Smits a écrit :
>>>>
>>>>>
>>>>>  Hi all,
>>>>>
>>>>>
>>>>>> I have created a new component with the create-component function in
>>>>>> Ant.
>>>>>>
>>>>>>  Hi Pierre,
>>>>>>
>>>>>>
>>>>> files must not be up-to-date in framework/resources/template.
>>>>>
>>>>> --
>>>>> Erwan de FERRIERES
>>>>> www.nereide.biz
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: ant create-component

BJ Freeman
that confirms what I said.
I assumed you have followed the
https://cwiki.apache.org/confluence/display/OFBTECH/Apache+OFBiz+Technical+Production+Setup+Guide
as well as initialized your own data if not using the demo data.

otherwise edit your
config/ProfilerUiLabels.xml and put in the company name there.

=========================
BJ Freeman  <http://bjfreeman.elance.com>
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Pierre Smits sent the following on 8/26/2010 1:16 AM:

> Hi BJ
>
> Having commented out the "uiLabelMap.ProfilerCompanyName" in
> config/ProfilerUiLabels.xml didn't change anything in the appearance, but
> generated following error:
>
> 2010-08-26 10:11:05,459 (http-0.0.0.0-8443-4) [ Log4JLoggerFactory.java:96
> :ERROR]
>
> Expression layoutSettings.companyName is undefined on line 28, column 14 in
> component://flatgrey/includes/header.ftl.
> The problematic instruction:
> ----------
> ==>  ${layoutSettings.companyName} [on line 28, column 12 in
> component://flatgrey/includes/header.ftl]
> ----------
>
> Java backtrace for programmers:
> ----------
> freemarker.core.InvalidReferenceException: Expression
> layoutSettings.companyName is undefined on line 28, column 14 in
> component://flatgrey/includes/header.ftl.
>      at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
>      at freemarker.core.Expression.getStringValue(Expression.java:118)
>      at freemarker.core.Expression.getStringValue(Expression.java:93)
>      at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
>      at freemarker.core.Environment.visit(Environment.java:209)
>      at freemarker.core.MixedContent.accept(MixedContent.java:92)
>      at freemarker.core.Environment.visit(Environment.java:209)
>      at freemarker.core.Environment.process(Environment.java:189)
>      at
> org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:216)
>      at
> org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:205)
>      at
> org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:250)
>      at
> org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:110)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:972)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>      at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:540)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>      at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:637)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>      at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:637)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>      at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>      at
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135)
>      at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97)
>      at
> org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:104)
>      at
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:839)
>      at
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:559)
>      at
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:227)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>      at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>      at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>      at
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:271)
>      at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>      at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>      at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>      at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>      at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>      at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>      at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>      at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
>      at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>      at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
>      at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
>      at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>      at java.lang.Thread.run(Thread.java:619)
> 2010-08-26 10:11:05,537 (http-0.0.0.0-8443-4) [ Log4JLoggerFactory.java:96
> :ERROR]
>
> Expression layoutSettings.companyName is undefined on line 137, column 93 in
> component://flatgrey/includes/header.ftl.
> The problematic instruction:
> ----------
> ==>  ${layoutSettings.companyName} [on line 137, column 91 in
> component://flatgrey/includes/header.ftl]
> ----------
>
> Java backtrace for programmers:
> ----------
> freemarker.core.InvalidReferenceException: Expression
> layoutSettings.companyName is undefined on line 137, column 93 in
> component://flatgrey/includes/header.ftl.
>      at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
>      at freemarker.core.Expression.getStringValue(Expression.java:118)
>      at freemarker.core.Expression.getStringValue(Expression.java:93)
>      at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
>      at freemarker.core.Environment.visit(Environment.java:209)
>      at freemarker.core.MixedContent.accept(MixedContent.java:92)
>      at freemarker.core.Environment.visit(Environment.java:209)
>      at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
>      at freemarker.core.Environment.visit(Environment.java:209)
>      at freemarker.core.MixedContent.accept(MixedContent.java:92)
>      at freemarker.core.Environment.visit(Environment.java:209)
>      at freemarker.core.IfBlock.accept(IfBlock.java:82)
>      at freemarker.core.Environment.visit(Environment.java:209)
>      at freemarker.core.MixedContent.accept(MixedContent.java:92)
>      at freemarker.core.Environment.visit(Environment.java:209)
>      at freemarker.core.Environment.process(Environment.java:189)
>      at
> org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:216)
>      at
> org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:205)
>      at
> org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:250)
>      at
> org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:110)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:972)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>      at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:540)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>      at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:637)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>      at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:637)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>      at
> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>      at
> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>      at
> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135)
>      at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97)
>      at
> org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:104)
>      at
> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:839)
>      at
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:559)
>      at
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:227)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>      at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>      at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>      at
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:271)
>      at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>      at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>      at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>      at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>      at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>      at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>      at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>      at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
>      at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>      at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
>      at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
>      at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>      at java.lang.Thread.run(Thread.java:619)
>
> So I changed it back....
>
> Seems the problem lies somewhere else...
>
> 2010/8/26 BJ Freeman<[hidden email]>
>
>> looks about right
>> if you look at
>> "uiLabelMap.ProfilerCompanyName
>> this is found in your the config/ProfilerUiLabels.xml
>> this overrides layoutSettings.companyName that is initialize elsewhere.
>> so you need to comment out this line.
>>
>>
>> =========================
>> BJ Freeman<http://bjfreeman.elance.com>
>> Strategic Power Office with Supplier Automation<
>> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>> Specialtymarket.com<http://www.specialtymarket.com/>
>> Systems Integrator-- Glad to Assist
>>
>> Chat  Y! messenger: bjfr33man
>>
>>
>> Pierre Smits sent the following on 8/25/2010 11:21 PM:
>>
>>   Hi BJ,
>>>
>>> Unfortunately, my startup doesn't generate any errors. (my compliments for
>>> the well built component generator).
>>>
>>> The content of my CommonScreens.xml doesn't seem that different, see
>>> below:
>>>
>>> <screen name="main-decorator">
>>>          <section>
>>>              <actions>
>>>                  <property-map resource="CommonUiLabels"
>>> map-name="uiLabelMap" global="true"/>
>>>                  <property-map resource="ProfilerUiLabels"
>>> map-name="uiLabelMap" global="true"/>
>>>
>>>                  <set field="layoutSettings.companyName"
>>> from-field="uiLabelMap.ProfilerCompanyName" global="true"/>
>>>                  <set field="layoutSettings.companySubtitle"
>>> from-field="uiLabelMap.ProfilerCompanySubtitle" global="true"/>
>>>
>>>                  <set field="activeApp" value="profiler" global="true"/>
>>>                  <set field="applicationMenuName" value="MainAppBar"
>>> global="true"/>
>>>                  <set field="applicationMenuLocation"
>>> value="component://profiler/widget/ProfilerMenus.xml" global="true"/>
>>>                  <set field="applicationTitle"
>>> value="${uiLabelMap.ProfilerApplication}" global="true"/>
>>>              </actions>
>>>              <widgets>
>>>                  <include-screen name="GlobalDecorator"
>>> location="component://common/widget/CommonScreens.xml"/>
>>>              </widgets>
>>>          </section>
>>>      </screen>
>>>
>>> When you mentioned loading datafiles I browsed through them and noticed it
>>> doesn't contain a website reference lijke in e.g. Order:
>>> <WebSite webSiteId="OrderEntry" siteName="Order Entry Web Site"
>>> visualThemeSetId="BACKOFFICE"/>
>>>
>>> I also noticed that there is no entry for the application in the website
>>> table of ContentMgr.
>>>
>>> Could that have something to do with it?
>>>
>>> Regards,
>>>
>>> Pierre
>>>
>>> 2010/8/25 BJ Freeman<[hidden email]>
>>>
>>>   was there an error while loading the datafiles?
>>>> check your widgets/CommonScreens.xml main-decorator
>>>>
>>>> =========================
>>>> BJ Freeman<http://bjfreeman.elance.com>
>>>> Strategic Power Office with Supplier Automation<
>>>> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>>>> Specialtymarket.com<http://www.specialtymarket.com/>
>>>> Systems Integrator-- Glad to Assist
>>>>
>>>> Chat  Y! messenger: bjfr33man
>>>>
>>>>
>>>> Pierre Smits sent the following on 8/25/2010 2:58 AM:
>>>>
>>>>   I looked at commonscreens.xml in the new component, but it doesn't look
>>>>
>>>>> that
>>>>> different to those in other applications.
>>>>>
>>>>> Are other files (eg services?) involved to generate the header?
>>>>>
>>>>> 2010/8/25 Erwan de FERRIERES<[hidden email]>
>>>>>
>>>>>   Le 25/08/2010 10:17, Pierre Smits a écrit :
>>>>>
>>>>>>
>>>>>>   Hi all,
>>>>>>
>>>>>>
>>>>>>> I have created a new component with the create-component function in
>>>>>>> Ant.
>>>>>>>
>>>>>>>   Hi Pierre,
>>>>>>>
>>>>>>>
>>>>>> files must not be up-to-date in framework/resources/template.
>>>>>>
>>>>>> --
>>>>>> Erwan de FERRIERES
>>>>>> www.nereide.biz
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: ant create-component

Pierre Smits
If you intended to say to run 'ant run-install-seed' or 'ant
run-install-extseed' I did right after 'ant create-component'

And I have, but that didn't resolve the problem.

Regards,

Pierre

2010/8/26 BJ Freeman <[hidden email]>

> that confirms what I said.
> I assumed you have followed the
>
> https://cwiki.apache.org/confluence/display/OFBTECH/Apache+OFBiz+Technical+Production+Setup+Guide
> as well as initialized your own data if not using the demo data.
>
> otherwise edit your
> config/ProfilerUiLabels.xml and put in the company name there.
>
>
> =========================
> BJ Freeman  <http://bjfreeman.elance.com>
> Strategic Power Office with Supplier Automation  <
> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
> Specialtymarket.com  <http://www.specialtymarket.com/>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
>
>
> Pierre Smits sent the following on 8/26/2010 1:16 AM:
>
>  Hi BJ
>>
>> Having commented out the "uiLabelMap.ProfilerCompanyName" in
>> config/ProfilerUiLabels.xml didn't change anything in the appearance, but
>> generated following error:
>>
>> 2010-08-26 10:11:05,459 (http-0.0.0.0-8443-4) [ Log4JLoggerFactory.java:96
>> :ERROR]
>>
>> Expression layoutSettings.companyName is undefined on line 28, column 14
>> in
>> component://flatgrey/includes/header.ftl.
>> The problematic instruction:
>> ----------
>> ==>  ${layoutSettings.companyName} [on line 28, column 12 in
>> component://flatgrey/includes/header.ftl]
>> ----------
>>
>> Java backtrace for programmers:
>> ----------
>> freemarker.core.InvalidReferenceException: Expression
>> layoutSettings.companyName is undefined on line 28, column 14 in
>> component://flatgrey/includes/header.ftl.
>>     at
>> freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
>>     at freemarker.core.Expression.getStringValue(Expression.java:118)
>>     at freemarker.core.Expression.getStringValue(Expression.java:93)
>>     at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
>>     at freemarker.core.Environment.visit(Environment.java:209)
>>     at freemarker.core.MixedContent.accept(MixedContent.java:92)
>>     at freemarker.core.Environment.visit(Environment.java:209)
>>     at freemarker.core.Environment.process(Environment.java:189)
>>     at
>>
>> org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:216)
>>     at
>> org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:205)
>>     at
>>
>> org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:250)
>>     at
>> org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:110)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:972)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:540)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:637)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:637)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>>     at
>> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135)
>>     at
>> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97)
>>     at
>>
>> org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:104)
>>     at
>>
>> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:839)
>>     at
>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:559)
>>     at
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:227)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>     at
>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>     at
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>     at
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:271)
>>     at
>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>     at
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>     at
>>
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>     at
>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>>     at
>>
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>     at
>>
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>     at
>>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>     at
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
>>     at
>>
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>>     at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
>>     at
>>
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
>>     at
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>>     at java.lang.Thread.run(Thread.java:619)
>> 2010-08-26 10:11:05,537 (http-0.0.0.0-8443-4) [ Log4JLoggerFactory.java:96
>> :ERROR]
>>
>> Expression layoutSettings.companyName is undefined on line 137, column 93
>> in
>> component://flatgrey/includes/header.ftl.
>> The problematic instruction:
>> ----------
>> ==>  ${layoutSettings.companyName} [on line 137, column 91 in
>> component://flatgrey/includes/header.ftl]
>> ----------
>>
>> Java backtrace for programmers:
>> ----------
>> freemarker.core.InvalidReferenceException: Expression
>> layoutSettings.companyName is undefined on line 137, column 93 in
>> component://flatgrey/includes/header.ftl.
>>     at
>> freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
>>     at freemarker.core.Expression.getStringValue(Expression.java:118)
>>     at freemarker.core.Expression.getStringValue(Expression.java:93)
>>     at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
>>     at freemarker.core.Environment.visit(Environment.java:209)
>>     at freemarker.core.MixedContent.accept(MixedContent.java:92)
>>     at freemarker.core.Environment.visit(Environment.java:209)
>>     at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
>>     at freemarker.core.Environment.visit(Environment.java:209)
>>     at freemarker.core.MixedContent.accept(MixedContent.java:92)
>>     at freemarker.core.Environment.visit(Environment.java:209)
>>     at freemarker.core.IfBlock.accept(IfBlock.java:82)
>>     at freemarker.core.Environment.visit(Environment.java:209)
>>     at freemarker.core.MixedContent.accept(MixedContent.java:92)
>>     at freemarker.core.Environment.visit(Environment.java:209)
>>     at freemarker.core.Environment.process(Environment.java:189)
>>     at
>>
>> org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:216)
>>     at
>> org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:205)
>>     at
>>
>> org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:250)
>>     at
>> org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:110)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:972)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:540)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:637)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:637)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>>     at
>>
>> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>>     at
>> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135)
>>     at
>> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97)
>>     at
>>
>> org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:104)
>>     at
>>
>> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:839)
>>     at
>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:559)
>>     at
>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:227)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>     at
>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>     at
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>     at
>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:271)
>>     at
>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>     at
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>     at
>>
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>     at
>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>>     at
>>
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>     at
>>
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>     at
>>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>     at
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
>>     at
>>
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>>     at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
>>     at
>>
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
>>     at
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>>     at java.lang.Thread.run(Thread.java:619)
>>
>> So I changed it back....
>>
>> Seems the problem lies somewhere else...
>>
>> 2010/8/26 BJ Freeman<[hidden email]>
>>
>>  looks about right
>>> if you look at
>>> "uiLabelMap.ProfilerCompanyName
>>> this is found in your the config/ProfilerUiLabels.xml
>>> this overrides layoutSettings.companyName that is initialize elsewhere.
>>> so you need to comment out this line.
>>>
>>>
>>> =========================
>>> BJ Freeman<http://bjfreeman.elance.com>
>>> Strategic Power Office with Supplier Automation<
>>> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>>> Specialtymarket.com<http://www.specialtymarket.com/>
>>> Systems Integrator-- Glad to Assist
>>>
>>> Chat  Y! messenger: bjfr33man
>>>
>>>
>>> Pierre Smits sent the following on 8/25/2010 11:21 PM:
>>>
>>>  Hi BJ,
>>>
>>>>
>>>> Unfortunately, my startup doesn't generate any errors. (my compliments
>>>> for
>>>> the well built component generator).
>>>>
>>>> The content of my CommonScreens.xml doesn't seem that different, see
>>>> below:
>>>>
>>>> <screen name="main-decorator">
>>>>         <section>
>>>>             <actions>
>>>>                 <property-map resource="CommonUiLabels"
>>>> map-name="uiLabelMap" global="true"/>
>>>>                 <property-map resource="ProfilerUiLabels"
>>>> map-name="uiLabelMap" global="true"/>
>>>>
>>>>                 <set field="layoutSettings.companyName"
>>>> from-field="uiLabelMap.ProfilerCompanyName" global="true"/>
>>>>                 <set field="layoutSettings.companySubtitle"
>>>> from-field="uiLabelMap.ProfilerCompanySubtitle" global="true"/>
>>>>
>>>>                 <set field="activeApp" value="profiler" global="true"/>
>>>>                 <set field="applicationMenuName" value="MainAppBar"
>>>> global="true"/>
>>>>                 <set field="applicationMenuLocation"
>>>> value="component://profiler/widget/ProfilerMenus.xml" global="true"/>
>>>>                 <set field="applicationTitle"
>>>> value="${uiLabelMap.ProfilerApplication}" global="true"/>
>>>>             </actions>
>>>>             <widgets>
>>>>                 <include-screen name="GlobalDecorator"
>>>> location="component://common/widget/CommonScreens.xml"/>
>>>>             </widgets>
>>>>         </section>
>>>>     </screen>
>>>>
>>>> When you mentioned loading datafiles I browsed through them and noticed
>>>> it
>>>> doesn't contain a website reference lijke in e.g. Order:
>>>> <WebSite webSiteId="OrderEntry" siteName="Order Entry Web Site"
>>>> visualThemeSetId="BACKOFFICE"/>
>>>>
>>>> I also noticed that there is no entry for the application in the website
>>>> table of ContentMgr.
>>>>
>>>> Could that have something to do with it?
>>>>
>>>> Regards,
>>>>
>>>> Pierre
>>>>
>>>> 2010/8/25 BJ Freeman<[hidden email]>
>>>>
>>>>  was there an error while loading the datafiles?
>>>>
>>>>> check your widgets/CommonScreens.xml main-decorator
>>>>>
>>>>> =========================
>>>>> BJ Freeman<http://bjfreeman.elance.com>
>>>>> Strategic Power Office with Supplier Automation<
>>>>> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>>>>> Specialtymarket.com<http://www.specialtymarket.com/>
>>>>> Systems Integrator-- Glad to Assist
>>>>>
>>>>> Chat  Y! messenger: bjfr33man
>>>>>
>>>>>
>>>>> Pierre Smits sent the following on 8/25/2010 2:58 AM:
>>>>>
>>>>>  I looked at commonscreens.xml in the new component, but it doesn't
>>>>> look
>>>>>
>>>>>  that
>>>>>> different to those in other applications.
>>>>>>
>>>>>> Are other files (eg services?) involved to generate the header?
>>>>>>
>>>>>> 2010/8/25 Erwan de FERRIERES<[hidden email]>
>>>>>>
>>>>>>  Le 25/08/2010 10:17, Pierre Smits a écrit :
>>>>>>
>>>>>>
>>>>>>>  Hi all,
>>>>>>>
>>>>>>>
>>>>>>>  I have created a new component with the create-component function in
>>>>>>>> Ant.
>>>>>>>>
>>>>>>>>  Hi Pierre,
>>>>>>>>
>>>>>>>>
>>>>>>>>  files must not be up-to-date in framework/resources/template.
>>>>>>>
>>>>>>> --
>>>>>>> Erwan de FERRIERES
>>>>>>> www.nereide.biz
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: ant create-component

BJ Freeman
  the seed data against the demo data you will see there is no company
name put in.
so you have to created ext data that will supply the company name the
same way the demo data does,
or use the setup tab after you are running.



=========================
BJ Freeman  <http://bjfreeman.elance.com>
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Pierre Smits sent the following on 8/26/2010 2:29 AM:

> If you intended to say to run 'ant run-install-seed' or 'ant
> run-install-extseed' I did right after 'ant create-component'
>
> And I have, but that didn't resolve the problem.
>
> Regards,
>
> Pierre
>
> 2010/8/26 BJ Freeman<[hidden email]>
>
>> that confirms what I said.
>> I assumed you have followed the
>>
>> https://cwiki.apache.org/confluence/display/OFBTECH/Apache+OFBiz+Technical+Production+Setup+Guide
>> as well as initialized your own data if not using the demo data.
>>
>> otherwise edit your
>> config/ProfilerUiLabels.xml and put in the company name there.
>>
>>
>> =========================
>> BJ Freeman<http://bjfreeman.elance.com>
>> Strategic Power Office with Supplier Automation<
>> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>> Specialtymarket.com<http://www.specialtymarket.com/>
>> Systems Integrator-- Glad to Assist
>>
>> Chat  Y! messenger: bjfr33man
>>
>>
>> Pierre Smits sent the following on 8/26/2010 1:16 AM:
>>
>>   Hi BJ
>>>
>>> Having commented out the "uiLabelMap.ProfilerCompanyName" in
>>> config/ProfilerUiLabels.xml didn't change anything in the appearance, but
>>> generated following error:
>>>
>>> 2010-08-26 10:11:05,459 (http-0.0.0.0-8443-4) [ Log4JLoggerFactory.java:96
>>> :ERROR]
>>>
>>> Expression layoutSettings.companyName is undefined on line 28, column 14
>>> in
>>> component://flatgrey/includes/header.ftl.
>>> The problematic instruction:
>>> ----------
>>> ==>   ${layoutSettings.companyName} [on line 28, column 12 in
>>> component://flatgrey/includes/header.ftl]
>>> ----------
>>>
>>> Java backtrace for programmers:
>>> ----------
>>> freemarker.core.InvalidReferenceException: Expression
>>> layoutSettings.companyName is undefined on line 28, column 14 in
>>> component://flatgrey/includes/header.ftl.
>>>      at
>>> freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
>>>      at freemarker.core.Expression.getStringValue(Expression.java:118)
>>>      at freemarker.core.Expression.getStringValue(Expression.java:93)
>>>      at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
>>>      at freemarker.core.Environment.visit(Environment.java:209)
>>>      at freemarker.core.MixedContent.accept(MixedContent.java:92)
>>>      at freemarker.core.Environment.visit(Environment.java:209)
>>>      at freemarker.core.Environment.process(Environment.java:189)
>>>      at
>>>
>>> org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:216)
>>>      at
>>> org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:205)
>>>      at
>>>
>>> org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:250)
>>>      at
>>> org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:110)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:972)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:540)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:637)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:637)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>>>      at
>>> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135)
>>>      at
>>> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97)
>>>      at
>>>
>>> org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:104)
>>>      at
>>>
>>> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:839)
>>>      at
>>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:559)
>>>      at
>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:227)
>>>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>>>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>>      at
>>>
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>>      at
>>>
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>      at
>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:271)
>>>      at
>>>
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>>      at
>>>
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>      at
>>>
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>      at
>>>
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>>>      at
>>>
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>>      at
>>>
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>      at
>>>
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>>      at
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
>>>      at
>>>
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>>>      at
>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
>>>      at
>>>
>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
>>>      at
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>>>      at java.lang.Thread.run(Thread.java:619)
>>> 2010-08-26 10:11:05,537 (http-0.0.0.0-8443-4) [ Log4JLoggerFactory.java:96
>>> :ERROR]
>>>
>>> Expression layoutSettings.companyName is undefined on line 137, column 93
>>> in
>>> component://flatgrey/includes/header.ftl.
>>> The problematic instruction:
>>> ----------
>>> ==>   ${layoutSettings.companyName} [on line 137, column 91 in
>>> component://flatgrey/includes/header.ftl]
>>> ----------
>>>
>>> Java backtrace for programmers:
>>> ----------
>>> freemarker.core.InvalidReferenceException: Expression
>>> layoutSettings.companyName is undefined on line 137, column 93 in
>>> component://flatgrey/includes/header.ftl.
>>>      at
>>> freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
>>>      at freemarker.core.Expression.getStringValue(Expression.java:118)
>>>      at freemarker.core.Expression.getStringValue(Expression.java:93)
>>>      at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
>>>      at freemarker.core.Environment.visit(Environment.java:209)
>>>      at freemarker.core.MixedContent.accept(MixedContent.java:92)
>>>      at freemarker.core.Environment.visit(Environment.java:209)
>>>      at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
>>>      at freemarker.core.Environment.visit(Environment.java:209)
>>>      at freemarker.core.MixedContent.accept(MixedContent.java:92)
>>>      at freemarker.core.Environment.visit(Environment.java:209)
>>>      at freemarker.core.IfBlock.accept(IfBlock.java:82)
>>>      at freemarker.core.Environment.visit(Environment.java:209)
>>>      at freemarker.core.MixedContent.accept(MixedContent.java:92)
>>>      at freemarker.core.Environment.visit(Environment.java:209)
>>>      at freemarker.core.Environment.process(Environment.java:189)
>>>      at
>>>
>>> org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:216)
>>>      at
>>> org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:205)
>>>      at
>>>
>>> org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:250)
>>>      at
>>> org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:110)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:972)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget$IncludeScreen.renderWidgetString(ModelScreenWidget.java:540)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:637)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:637)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:101)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:188)
>>>      at
>>>
>>> org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:392)
>>>      at
>>> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135)
>>>      at
>>> org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97)
>>>      at
>>>
>>> org.ofbiz.widget.screen.MacroScreenViewHandler.render(MacroScreenViewHandler.java:104)
>>>      at
>>>
>>> org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:839)
>>>      at
>>> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:559)
>>>      at
>>> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:227)
>>>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>>>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>>      at
>>>
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>>      at
>>>
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>      at
>>> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:271)
>>>      at
>>>
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>>      at
>>>
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>      at
>>>
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>>      at
>>>
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>>>      at
>>>
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>>      at
>>>
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>>      at
>>>
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>>      at
>>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
>>>      at
>>>
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>>>      at
>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
>>>      at
>>>
>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
>>>      at
>>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>>>      at java.lang.Thread.run(Thread.java:619)
>>>
>>> So I changed it back....
>>>
>>> Seems the problem lies somewhere else...
>>>
>>> 2010/8/26 BJ Freeman<[hidden email]>
>>>
>>>   looks about right
>>>> if you look at
>>>> "uiLabelMap.ProfilerCompanyName
>>>> this is found in your the config/ProfilerUiLabels.xml
>>>> this overrides layoutSettings.companyName that is initialize elsewhere.
>>>> so you need to comment out this line.
>>>>
>>>>
>>>> =========================
>>>> BJ Freeman<http://bjfreeman.elance.com>
>>>> Strategic Power Office with Supplier Automation<
>>>> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>>>> Specialtymarket.com<http://www.specialtymarket.com/>
>>>> Systems Integrator-- Glad to Assist
>>>>
>>>> Chat  Y! messenger: bjfr33man
>>>>
>>>>
>>>> Pierre Smits sent the following on 8/25/2010 11:21 PM:
>>>>
>>>>   Hi BJ,
>>>>
>>>>>
>>>>> Unfortunately, my startup doesn't generate any errors. (my compliments
>>>>> for
>>>>> the well built component generator).
>>>>>
>>>>> The content of my CommonScreens.xml doesn't seem that different, see
>>>>> below:
>>>>>
>>>>> <screen name="main-decorator">
>>>>>          <section>
>>>>>              <actions>
>>>>>                  <property-map resource="CommonUiLabels"
>>>>> map-name="uiLabelMap" global="true"/>
>>>>>                  <property-map resource="ProfilerUiLabels"
>>>>> map-name="uiLabelMap" global="true"/>
>>>>>
>>>>>                  <set field="layoutSettings.companyName"
>>>>> from-field="uiLabelMap.ProfilerCompanyName" global="true"/>
>>>>>                  <set field="layoutSettings.companySubtitle"
>>>>> from-field="uiLabelMap.ProfilerCompanySubtitle" global="true"/>
>>>>>
>>>>>                  <set field="activeApp" value="profiler" global="true"/>
>>>>>                  <set field="applicationMenuName" value="MainAppBar"
>>>>> global="true"/>
>>>>>                  <set field="applicationMenuLocation"
>>>>> value="component://profiler/widget/ProfilerMenus.xml" global="true"/>
>>>>>                  <set field="applicationTitle"
>>>>> value="${uiLabelMap.ProfilerApplication}" global="true"/>
>>>>>              </actions>
>>>>>              <widgets>
>>>>>                  <include-screen name="GlobalDecorator"
>>>>> location="component://common/widget/CommonScreens.xml"/>
>>>>>              </widgets>
>>>>>          </section>
>>>>>      </screen>
>>>>>
>>>>> When you mentioned loading datafiles I browsed through them and noticed
>>>>> it
>>>>> doesn't contain a website reference lijke in e.g. Order:
>>>>> <WebSite webSiteId="OrderEntry" siteName="Order Entry Web Site"
>>>>> visualThemeSetId="BACKOFFICE"/>
>>>>>
>>>>> I also noticed that there is no entry for the application in the website
>>>>> table of ContentMgr.
>>>>>
>>>>> Could that have something to do with it?
>>>>>
>>>>> Regards,
>>>>>
>>>>> Pierre
>>>>>
>>>>> 2010/8/25 BJ Freeman<[hidden email]>
>>>>>
>>>>>   was there an error while loading the datafiles?
>>>>>
>>>>>> check your widgets/CommonScreens.xml main-decorator
>>>>>>
>>>>>> =========================
>>>>>> BJ Freeman<http://bjfreeman.elance.com>
>>>>>> Strategic Power Office with Supplier Automation<
>>>>>> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>>>>>> Specialtymarket.com<http://www.specialtymarket.com/>
>>>>>> Systems Integrator-- Glad to Assist
>>>>>>
>>>>>> Chat  Y! messenger: bjfr33man
>>>>>>
>>>>>>
>>>>>> Pierre Smits sent the following on 8/25/2010 2:58 AM:
>>>>>>
>>>>>>   I looked at commonscreens.xml in the new component, but it doesn't
>>>>>> look
>>>>>>
>>>>>>   that
>>>>>>> different to those in other applications.
>>>>>>>
>>>>>>> Are other files (eg services?) involved to generate the header?
>>>>>>>
>>>>>>> 2010/8/25 Erwan de FERRIERES<[hidden email]>
>>>>>>>
>>>>>>>   Le 25/08/2010 10:17, Pierre Smits a écrit :
>>>>>>>
>>>>>>>
>>>>>>>>   Hi all,
>>>>>>>>
>>>>>>>>
>>>>>>>>   I have created a new component with the create-component function in
>>>>>>>>> Ant.
>>>>>>>>>
>>>>>>>>>   Hi Pierre,
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>   files must not be up-to-date in framework/resources/template.
>>>>>>>>
>>>>>>>> --
>>>>>>>> Erwan de FERRIERES
>>>>>>>> www.nereide.biz
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>