Configuring Ajax With Rife

View: New views
3 Messages — Rating Filter:   Alert me  

Configuring Ajax With Rife

by Rahul-36 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I am trying remote access to Java classes and methods using DWR. I
downloaded the dwr jar file from
sumo distribution and added to the classpath of my rife project.

According to http://rifers.org/wiki/display/RIFE/Ajax

<element id="DwrService" file="rife/ajax/dwr.xml" url="dwr/*"/>

is the standard element declaration.

I added this declaration to the main site file.

While deploying the war file I am getting the error

SEVERE: com.uwyn.rife.engine.exceptions.EngineException:
com.uwyn.rife.ioc.exceptions.ParticipantUnknownException: The
participant 'hotel' isn't known in the default repository.
        at com.uwyn.rife.engine.elements.DwrServiceDeployer.deploy
(DwrServiceDeployer.java:304)
        at com.uwyn.rife.engine.ElementInfo.deploy(ElementInfo.java:
280)
        at com.uwyn.rife.engine.SiteBuilder.setupElements
(SiteBuilder.java:985)
        at com.uwyn.rife.engine.SiteBuilder.setupData(SiteBuilder.java:
1615)
        at com.uwyn.rife.engine.SiteBuilder.finish(SiteBuilder.java:
260)
        at com.uwyn.rife.engine.SiteBuilder.process(SiteBuilder.java:
251)
        at com.uwyn.rife.engine.SiteBuilder.getSite(SiteBuilder.java:
177)
        at com.uwyn.rife.rep.participants.ParticipantSite.initialize
(ParticipantSite.java:36)
        at com.uwyn.rife.rep.BlockingParticipant.run
(BlockingParticipant.java:230)


..... missing something???
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Configuring Ajax With Rife

by Rahul-36 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Ok.. got the problem.....

I am trying to customize the configuration with.....

<element id="DwrDate" file="rife/ajax/dwr.xml" url="dwr/jdate/*">
    <property name="xmlConfiguratorPath">jdate.xml</property>
    <property name="debug">true</property>
</element>

com.uwyn.rife.engine.exceptions.EngineException: The DWR configuration
file 'jdate.xml' could not be found. It was specified in the property
'xmlConfiguratorPath' of element rife/ajax/dwr.xml.

Where exactly to put the file?



On Apr 16, 2:33 pm, Rahul <maverick.rah...@...> wrote:

> I am trying remote access to Java classes and methods using DWR. I
> downloaded the dwr jar file from
> sumo distribution and added to the classpath of my rife project.
>
> According tohttp://rifers.org/wiki/display/RIFE/Ajax
>
> <element id="DwrService" file="rife/ajax/dwr.xml" url="dwr/*"/>
>
> is the standard element declaration.
>
> I added this declaration to the main site file.
>
> While deploying the war file I am getting the error
>
> SEVERE: com.uwyn.rife.engine.exceptions.EngineException:
> com.uwyn.rife.ioc.exceptions.ParticipantUnknownException: The
> participant 'hotel' isn't known in the default repository.
>         at com.uwyn.rife.engine.elements.DwrServiceDeployer.deploy
> (DwrServiceDeployer.java:304)
>         at com.uwyn.rife.engine.ElementInfo.deploy(ElementInfo.java:
> 280)
>         at com.uwyn.rife.engine.SiteBuilder.setupElements
> (SiteBuilder.java:985)
>         at com.uwyn.rife.engine.SiteBuilder.setupData(SiteBuilder.java:
> 1615)
>         at com.uwyn.rife.engine.SiteBuilder.finish(SiteBuilder.java:
> 260)
>         at com.uwyn.rife.engine.SiteBuilder.process(SiteBuilder.java:
> 251)
>         at com.uwyn.rife.engine.SiteBuilder.getSite(SiteBuilder.java:
> 177)
>         at com.uwyn.rife.rep.participants.ParticipantSite.initialize
> (ParticipantSite.java:36)
>         at com.uwyn.rife.rep.BlockingParticipant.run
> (BlockingParticipant.java:230)
>
> ..... missing something???
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Configuring Ajax With Rife

by Geert Bevin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


In your classpath

On 16 Apr 2009, at 12:02, Rahul wrote:

>
> Ok.. got the problem.....
>
> I am trying to customize the configuration with.....
>
> <element id="DwrDate" file="rife/ajax/dwr.xml" url="dwr/jdate/*">
>    <property name="xmlConfiguratorPath">jdate.xml</property>
>    <property name="debug">true</property>
> </element>
>
> com.uwyn.rife.engine.exceptions.EngineException: The DWR configuration
> file 'jdate.xml' could not be found. It was specified in the property
> 'xmlConfiguratorPath' of element rife/ajax/dwr.xml.
>
> Where exactly to put the file?
>
>
>
> On Apr 16, 2:33 pm, Rahul <maverick.rah...@...> wrote:
>> I am trying remote access to Java classes and methods using DWR. I
>> downloaded the dwr jar file from
>> sumo distribution and added to the classpath of my rife project.
>>
>> According tohttp://rifers.org/wiki/display/RIFE/Ajax
>>
>> <element id="DwrService" file="rife/ajax/dwr.xml" url="dwr/*"/>
>>
>> is the standard element declaration.
>>
>> I added this declaration to the main site file.
>>
>> While deploying the war file I am getting the error
>>
>> SEVERE: com.uwyn.rife.engine.exceptions.EngineException:
>> com.uwyn.rife.ioc.exceptions.ParticipantUnknownException: The
>> participant 'hotel' isn't known in the default repository.
>>         at com.uwyn.rife.engine.elements.DwrServiceDeployer.deploy
>> (DwrServiceDeployer.java:304)
>>         at com.uwyn.rife.engine.ElementInfo.deploy(ElementInfo.java:
>> 280)
>>         at com.uwyn.rife.engine.SiteBuilder.setupElements
>> (SiteBuilder.java:985)
>>         at  
>> com.uwyn.rife.engine.SiteBuilder.setupData(SiteBuilder.java:
>> 1615)
>>         at com.uwyn.rife.engine.SiteBuilder.finish(SiteBuilder.java:
>> 260)
>>         at com.uwyn.rife.engine.SiteBuilder.process(SiteBuilder.java:
>> 251)
>>         at com.uwyn.rife.engine.SiteBuilder.getSite(SiteBuilder.java:
>> 177)
>>         at com.uwyn.rife.rep.participants.ParticipantSite.initialize
>> (ParticipantSite.java:36)
>>         at com.uwyn.rife.rep.BlockingParticipant.run
>> (BlockingParticipant.java:230)
>>
>> ..... missing something???
> >

--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Flytecase Band - http://flytecase.be
Music and words - http://gbevin.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---

 
 
 
Google
rifers.org web