Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Three steps to upgrade DWR in JForum

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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]
 
reply
    Bookmark Topic Watch Topic
  • New Topic