JForum version 2.1.7
DWR 2.0.1
1) remove dwr 1.1 jar and put dwr 2.0.1 jar inside WEB-INF/lib
2)Modify dwr-jforum.xml
<?xml version="1.0" encoding="UTF-8"?>
<dwr>
<allow>
<create creator="static" javascript="AjaxUtils" class="net.jforum.util.ajax.AjaxUtils"/>
<convert converter="bean" match="net.jforum.entities.*"/>
</allow>
</dwr>
to
<!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 2.0//EN" "http://www.getahead.ltd.uk/dwr//dwr20.dtd">
<dwr>
<allow>
<!--<create class="net.jforum.util.ajax.AjaxUtils" creator="new" javascript="AjaxUtils" />-->
<create javascript="AjaxUtils" creator="new">
<param name="class">net.jforum.util.ajax.AjaxUtils</param>
</create>
<convert converter="bean" match="net.jforum.entities.*"/>
</allow>
</dwr>
3)In web.xml modify the
servlet class of dwr-invoker
<servlet-name>dwr-invoker</servlet-name>
<servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
with
<servlet-name>dwr-invoker</servlet-name>
<servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
That's all
Cheers
[originally posted on jforum.net by desmax74]