• 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
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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]
 
Danger, 10,000 volts, very electic .... tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic