掲示板

DWR does not work with Liferay 5.2.3

thumbnail
14年前 に Javier Paniza によって更新されました。

DWR does not work with Liferay 5.2.3

Junior Member 投稿: 36 参加年月日: 09/08/25 最新の投稿
Hi,

I have an application that uses DWR. It works fine in previous Liferay versions (Liferay 5.1).
Curiously, it works fine in Liferay 5.2.3 with Tomcat 5.5.
But, when I use the Liferay 5.2.3 with Tomcat 6, the next exception is thrown when it tries to obtain the DWR javascript proxy of my object:

ava.lang.NoClassDefFoundError: Could not initialize class org.directwebremoting.extend.EnginePrivate
org.directwebremoting.impl.DefaultRemoter.generateInterfaceScript(DefaultRemoter.java:162)
org.directwebremoting.servlet.InterfaceHandler.handle(InterfaceHandler.java:50)
org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)
org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)
org.directwebremoting.servlet.DwrServlet.doGet(DwrServlet.java:132)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
com.liferay.portal.servlet.filters.minifier.MinifierFilter.processFilter(MinifierFilter.java:420)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.doFilter(PortalClassLoaderFilter.java:78)
com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:140)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.doFilter(PortalClassLoaderFilter.java:78)
com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
com.liferay.portal.servlet.filters.header.HeaderFilter.processFilter(HeaderFilter.java:109)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.doFilter(PortalClassLoaderFilter.java:78)
com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:381)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.doFilter(PortalClassLoaderFilter.java:78

The war I deploy is exactly the same for Liferay 5.2.3 with Tomcat 5.5 and for Liferay 5.2.3 for Tomcat 6.

Also, the code works well in a standalone Tomcat 6.
I'm using the latest stable DWR version: DWR 2.0.5

Any idea?
thumbnail
14年前 に Javier Paniza によって更新されました。

RE: DWR does not work with Liferay 5.2.3

Junior Member 投稿: 36 参加年月日: 09/08/25 最新の投稿
Solved,

the problem was the commons-logging.jar version.
Simply moving the commons-logging.jar from ROOT/WEB-INF/lib to MyApplication/WEB-INF/lib is enough.