DWR 3.0.2 Spring 5.1.7升级'您必须在包含此文件之前包含DWR引擎' [英] DWR 3.0.2 Spring 5.1.7 Upgrade 'You must include DWR engine before including this file'

查看:234
本文介绍了DWR 3.0.2 Spring 5.1.7升级'您必须在包含此文件之前包含DWR引擎'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

环境

Websphere 8.5.5.11
JDK 1.8
DWR
SpringMVC
Oracle DBMS

我们最近升级了项目,并从进行了更新

We recently upgraded our project, and make updates from

spring.jar,
spring-web.jar,
spring-webmvc.jar
dwr.jar

升级到

spring version 5.1.7
dwr version 3.0.2

我们开始面临多个问题

1. DWR servlet didn't get initialized properly; and complains about Duplicate name found while loading the context, and another problem
   our web.xml trying to inialize both servlets i.e. DispacterServlet and DwrSpringServlet
2. After removing spring, spring-web and spring-webmvc and upgrading to latest versions; 
   web project during compilation and loading complains about missing classes; 
   spcially one of the .forName methods called during DWR inialization i.e.

   java.lang.NoSuchMethodError: org.springframework.util.ClassUtils.forName(Ljava.......

3. engine.js not found where it supposed to be i.e. this error being thrown
   'You must include DWR engine before including this file'.

您可以在答案部分找到上述答案.

You can find the answers to above in answers section.

推荐答案

响应晚了,但解决了类似的问题,可能会对其他人有所帮助.简短的答案是Spring 5和DWR 3.0.1不兼容. DWR 3.0.1使用的是Sprig 3中的旧类,这会引起问题,您可以切换到DWR 3.0.2并尝试使用它.

late response but resolved similar problem, may help others. The short answer is that Spring 5 and DWR 3.0.1 are not compatible. DWR 3.0.1 is using old class from Sprig 3 which is causing problem, you can switch to DWR 3.0.2 and try with it.

这篇关于DWR 3.0.2 Spring 5.1.7升级'您必须在包含此文件之前包含DWR引擎'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆