Hi Geert,
I'm using Idea, and added it to the class path the same way I've
added other jars (adding it to the project libs through the prefs
pane) which put the file into the lib dir next to my source tree, not
in Jetty's lib dir. I haven't yet built a war for these current
tests, I am running the app from the local copy of jetty right from
Idea. I tried removing it and re-adding it, and then had Idea re-
build the project from scratch .. same result.
I'm going to sleep on it (about 2AM here)... maybe I'll realize what
I missed in the AM.
David
On Mar 5, 2007, at 1:40 AM, Geert Bevin wrote:
Hi David,
the only reason why this happens that I can think of is that DWR
might not be in your classpath. Did you add it to the classpath of
your project, or did you bundle it in the WEB-INF/lib dir of your war?
Best regards,
Geert
On 05 Mar 2007, at 07:32, David HM Spector wrote:
I'm trying to gets the DWR example from the wiki running...
to My site XML file I added:
<!-- DWR Tests -->
<element id="DwrDate" file="rife/ajax/dwr.xml" url="dwr/jdate/*">
<property name="xmlConfiguratorPath">jdate.xml</property>
<property name="debug">true</property>
</element>
Into my source tree I added an xml directory that has the contents
of the jdate.xml file; the wiki states DWR will look in the class
path
and on one of my pages I added the javascript and the element
described in the doc: as follows:
<!--V 'ELEMENT:DwrDate'-->
names = JDate
includeUtil = true
<!--/V-->
<script type="text/javascript">
function update() {
JDate.toGMTString(loadinfo);
}
function loadinfo(data) {
DWRUtil.setValue("reply", data);
}
function callOnLoad(init) {
if (window.addEventListener) window.addEventListener
("load", init, false);
else if (window.attachEvent) window.attachEvent("onload",
init);
else window.onload = init;
}
function init() {
DWRUtil.useLoadingMessage();
}
callOnLoad(init);
</script>
<div class="content">
<p>Current date: <input value="Execute" type="button"
onclick="update()"/>
<span id="reply" style="background:#eeffdd; padding-left:4px;
padding-right:4px;"></span></p>
</div>
Finally, I added the dw2-2.0M2.jar file from the sumo distribution
to my lib dir. The Rfie jar I am using is rife-1.6-snapshot-
jdk15-20070207.jar
but am getting:
java.lang.NoClassDefFoundError
org/directwebremoting/extend/PageNormalizer
at com.uwyn.rife.engine.elements.DwrServiceDeployer deploy
( DwrServiceDeployer.java : 107 )
at com.uwyn.rife.engine.ElementInfo deploy
( ElementInfo.java : 280 )
at com.uwyn.rife.engine.SiteBuilder setupElements
( SiteBuilder.java : 983 )
at com.uwyn.rife.engine.SiteBuilder setupData
( SiteBuilder.java : 1613 )
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.participants.ParticipantSite
_getObject ( ParticipantSite.java : 49 )
at com.uwyn.rife.rep.BlockingParticipant getObject
( BlockingParticipant.java : 449 )
at com.uwyn.rife.rep.BlockingParticipant _getObject
( BlockingParticipant.java : 425 )
at com.uwyn.rife.rep.BlockingParticipant getObject
( BlockingParticipant.java : 393 )
at com.uwyn.rife.engine.Site getRepInstance ( Site.java :
250 )
at com.uwyn.rife.engine.Gate getSite ( Gate.java : 266 )
at com.uwyn.rife.engine.Gate handleRequest ( Gate.java :
144 )
at sun.reflect.NativeMethodAccessorImpl invoke0
( NativeMethodAccessorImpl.java )
at sun.reflect.NativeMethodAccessorImpl invoke
( NativeMethodAccessorImpl.java : 39 )
16 more ...
I also tried using the gloabl DWR element <element
id="DwrService" file="rife/ajax/dwr.xml" url="dwr/*"/>
and renaming jdate.xml or dwl.xml ...same result.
its not clear form the wiki page what I am missing...
David
---------------------------------------------------------------------
----------------------
David HM Spector
spector (at) zeitgeist.com
http://www.zeitgeist.com/
voice: +1 631.261.5013
fax: +1 212.656.1443
~ ~ ~
"New and stirring things are belittled because if they are not
belittled, the
humiliating question arises, 'Why then are you not taking part in
them?'"
--H. G. Wells
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users
--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users
------------------------------------------------------------------------
-------------------
David HM Spector
spector (at) zeitgeist.com
http://www.zeitgeist.com/
voice: +1 631.261.5013 fax:
+1 212.656.1443
~ ~ ~
"New and stirring things are belittled because if they are not
belittled, the
humiliating question arises, 'Why then are you not taking part in
them?'"
--H. G. Wells
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users