something wrong....

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

something wrong....

lzl
Hi All,
I am now reading Apache Ofbiz Development.I am on the 2nd chapter of the book where an application called learning is developed. I have completed what is mentioned in the book till page 58 and when I ran the application I got the following error while updating the Postal Address of the party:

org.ofbiz.webapp.control.RequestHandlerException: Illegal response; handler could not process [null].

Following is my extended.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"> 
  <handler name="bsf" type="request" class="org.ofbiz.webapp.event.BsfEventHandler" /> 
  <handler name="java" type="request" class="org.ofbiz.webapp.event.JavaEventHandler" />   
  <request-map uri="PostalAddressAdvisory"> 
      <security https="true" auth="true" /> 
      <event type="java" path="org.ofbiz.learning.learning.LearningEvents" invoke="postalAddressAdvisory"/> 
      <response name="isMars" type="view" value="PostalAddressAdvisory"/> 
      <response name="notMars" type="view" value="editcontactmech"/> 
  </request-map> 
  <view-map name="PostalAddressAdvisory" type="screen"
        page="component://learning/widget/partymgr/OurPartyScreens.xml#PostalAddressAdvisory" /> 
</site-conf>

Please guys help me as soon as possible.Thanks.
lzl
Reply | Threaded
Open this post in threaded view
|

Re: something wrong....

lzl
well, i have done.....
After i load the leaning in component-load.xml, it works.
Reply | Threaded
Open this post in threaded view
|

Re: something wrong....

h3ct0r
lzl <lzljustmyself <at> yahoo.com.cn> writes:

>
>
> well, i have done.....
> After i load the leaning in component-load.xml, it works.

Thank you very much for this answer, in the book it
does not says that the hot-deploy apps needs to be
loaded manualy in the component-load... " So long  
as the structure criteria is met,components placed
into hot-deploy will be automatically loaded after
those in the framework and applications. There is
no need to specify them in component-load.xml
files, as has to be done in the framework and
application" Page 55 of Apache Ofbiz Development,
the beginner ebook.

Keep the radical thingking!

Reply | Threaded
Open this post in threaded view
|

Re: something wrong....

Jacques Le Roux
Administrator
It should not be needed... There was certainly something else wrong...
BTW in which component-load.xml file?

Jacques

h3ct0r wrote:

> lzl <lzljustmyself <at> yahoo.com.cn> writes:
>
>>
>>
>> well, i have done.....
>> After i load the leaning in component-load.xml, it works.
>
> Thank you very much for this answer, in the book it
> does not says that the hot-deploy apps needs to be
> loaded manualy in the component-load... " So long
> as the structure criteria is met,components placed
> into hot-deploy will be automatically loaded after
> those in the framework and applications. There is
> no need to specify them in component-load.xml
> files, as has to be done in the framework and
> application" Page 55 of Apache Ofbiz Development,
> the beginner ebook.
>
> Keep the radical thingking!