I think your DOCTYPE URL is incorrect:

your URL is http://www.ofbiz.org/dts/widget-screen.dtd

the right one is: http://ofbiz.apache.org/dtds/widget-screen.xsd

On Mon, Jun 29, 2009 at 10:35 PM, Anshuman Manur <
[email protected]> wrote:

> try a screens definition like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>         xsi:noNamespaceSchemaLocation="
> http://ofbiz.apache.org/dtds/widget-screen.xsd";>
> <screen name="">
>
> </screen>
> </screens>
>
> I'm not too sure about the DOCTYPE, but this works for me.
>
> Anshuman Manur
>
>
> On Mon, Jun 29, 2009 at 8:28 PM, su2 <[email protected]> wrote:
>
>>
>> Hi All,
>>
>> I am getting following error when try to run the Hello World 2 tutorial
>> application.
>>
>> ************************************************************
>> java.io.FileNotFoundException:
>> http://ofbiz.apache.org/dts/widget-screen.dtd
>> ************************************************************
>>
>> When I use "ftl" file instead of "screen" in View Mappings, the
>> application
>> works perfectly fine. Following is my controller.xml and HelloScreens.xml
>>
>> **********************************
>> Controller.xml
>> **********************************
>> <?xml version="1.0" encoding="UTF-8" ?>
>>
>> <site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>
>> xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/site-conf.xsd";>
>>    <description>Second Hello World Site Configuration File</description>
>>    <owner>Open For Business Project (c) 2005 </owner>
>>    <errorpage>/error/error.jsp</errorpage>
>>
>>    <handler name="java" type="request"
>> class="org.ofbiz.webapp.event.JavaEventHandler"/>
>>    <handler name="soap" type="request"
>> class="org.ofbiz.webapp.event.SOAPEventHandler"/>
>>    <handler name="service" type="request"
>> class="org.ofbiz.webapp.event.ServiceEventHandler"/>
>>    <handler name="service-multi" type="request"
>> class="org.ofbiz.webapp.event.ServiceMultiEventHandler"/>
>>    <handler name="simple" type="request"
>> class="org.ofbiz.webapp.event.SimpleEventHandler"/>
>>
>>    <handler name="ftl" type="view"
>> class="org.ofbiz.webapp.ftl.FreeMarkerViewHandler"/>
>>    <handler name="jsp" type="view"
>> class="org.ofbiz.webapp.view.JspViewHandler"/>
>>    <handler name="screen" type="view"
>> class="org.ofbiz.widget.screen.ScreenWidgetViewHandler"/>
>>
>>    <handler name="http" type="view"
>> class="org.ofbiz.webapp.view.HttpViewHandler"/>
>>
>>    <preprocessor>
>>        <!-- Events to run on every request before security (chains exempt)
>> -->
>>        <!-- <event type="java" path="org.ofbiz.webapp.event.TestEvent"
>> invoke="test"/> -->
>>        <event type="java" path="org.ofbiz.securityext.login.LoginEvents"
>> invoke="checkExternalLoginKey"/>
>>    </preprocessor>
>>    <postprocessor>
>>        <!-- Events to run on every request after all other processing
>> (chains exempt) -->
>>        <!-- <event type="java" path="org.ofbiz.webapp.event.TestEvent"
>> invoke="test"/> -->
>>    </postprocessor>
>>
>>    <!-- Request Mappings -->
>>    <request-map uri="main">
>>        <response name="success" type="view" value="main"/>
>>    </request-map>
>>
>>    <!-- end of request mappings -->
>>
>>    <!-- View Mappings -->
>>    <view-map name="error"  type="jsp" page="/error/error.jsp"/>
>>    <view-map name="main" type="screen"
>> page="component://hello2/widget/HelloScreens.xml#main"/>
>>    <!-- end of view mappings -->
>> </site-conf>
>> *********************************************
>>
>> *********************************************
>> HelloScreens.xml
>> *********************************************
>> <?xml version="1.0" encoding="UTF-8"?>
>> <!DOCTYPE screens PUBLIC "-//OFBiz//DTD OFBiz Screen Widget//EN"
>> "http://www.ofbiz.org/dts/widget-screen.dtd";>
>>
>> <screens>
>>        <screen name="main">
>>                <section>
>>                <widgets>
>>                        <platform-specific><html><html-template
>>
>> location="component://hello2/webapp/hello2/includes/header.ftl"/></html></platform-specific>
>>
>>                        <platform-specific><html><html-template
>>
>> location="component://hello2/webapp/hello2/main.ftl"/></html></platform-specific>
>>
>>                        <platform-specific><html><html-template
>>
>> location="component://hello2/webapp/hello2/includes/footer.ftl"/></html></platform-specific>
>>                </widgets>
>>                </section>
>>        </screen>
>> </screens>
>>
>> *********************************************
>> --
>> View this message in context:
>> http://www.nabble.com/java.io.FileNotFoundException-tp24255717p24255717.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
>>
>

Reply via email to