Hello2 application error

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

Hello2 application error

msdoremi
Good afternoon,
I try to run the hello2 application , from ofbiz tutorial but it doesn't loaded. I think my
files are exactly same as the documents that are demostrated on the hello2 example.
When I load on brower the "hello2" I get the error message:
"org.xml.sax.SAXParseExceptionpublicId: -//OFBiz//DTD OFBiz Screen Widget//EN; lineNumber: 20; columnNumber: 2; The markup declarations contained or pointed to by the document type declaration must be well-formed."



the HellosScreens.xml has the code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE screens PUBLIC "-//OFBiz//DTD OFBiz Screen Widget//EN" "http://www.ofbiz.org/dtds/widget-screen.xsd" >

<screens>
   <screen name="main">
     <section>
     <widgets>
       <platform-specific><html><html-template location="component://hello2/webapp/hello2/includes/template.jsp"/></html> </platform-specific>
       <platform-specific><html><html-template location="component://hello2/webapp/hello2/main.jsp"/></html></platform-specific>
      </widgets>
   </section>
 </screen>
</screens>
 
and the 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>
       
       
        <event type="java" path="org.ofbiz.securityext.login.LoginEvents" invoke="checkExternalLoginKey"/>
    </preprocessor>
    <postprocessor>
       
       
    </postprocessor>

   
    <request-map uri="main">
        <response name="success" type="view" value="main"/>
    </request-map>

   

   
    <view-map name="main"  type="screen" page="component://hello2/widget/HelloScreens.xml#main"/>
    <view-map name="error" type="jsp" page="/error/error.jsp"/>
   
   
   
</site-conf>

The web.xml has no changes from the first example, hello1 (which was loaded with no probs)
 Any idea??
Reply | Threaded
Open this post in threaded view
|

Re: Hello2 application error

c.schinzer
Check HellosScreens.xml
I think that one is malformed as it contains "translated" XML syntax, e.g.
&lt; instead of <, &gt; instead of > etc.

If you can't identify and fix those issues with your HellosScreens.xml, you
should probably stand away from developing with OFBiz at this stage ... this
sounds arrogant, I know, but the hurdles will become much higher later ...

Regards


Carsten

2011/4/5 msdoremi <[hidden email]>

> Good afternoon,
> I try to run the hello2 application , from ofbiz tutorial but it doesn't
> loaded. I think my
> files are exactly same as the documents that are demostrated on the hello2
> example.
> When I load on brower the "hello2" I get the error message:
> "org.xml.sax.SAXParseExceptionpublicId: -//OFBiz//DTD OFBiz Screen
> Widget//EN; lineNumber: 20; columnNumber: 2; The markup declarations
> contained or pointed to by the document type declaration must be
> well-formed."
>
>
>
> the HellosScreens.xml has the code:
> <?xml version="1.0" encoding="UTF-8"?>
> &lt;!DOCTYPE screens PUBLIC &quot;-//OFBiz//DTD OFBiz Screen
> Widget//EN&quot; &quot;http://www.ofbiz.org/dtds/widget-screen.xsd&quot;
> &gt;
>
>
>
>
>
>
>
>
>
>
>
>
> and the controller.xml
> <?xml version="1.0" encoding="UTF-8" ?>
>
>
>    Second Hello World Site Configuration File
>    Open For Business Project (c) 2005
>    /error/error.jsp
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> The web.xml has no changes from the first example, hello1 (which was loaded
> with no probs)
>  Any idea??
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Hello2-application-error-tp3428039p3428039.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>



--

Best

Carsten Schinzer

Waisenhausstr. 53a
80637 München
Germany