フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Javier Paniza
DWR does not work with Liferay 5.2.3
2009/08/25 1:56
答え

Javier Paniza

ランク: Junior Member

投稿: 37

参加年月日: 2009/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?
Javier Paniza
RE: DWR does not work with Liferay 5.2.3
2009/08/25 2:35
答え

Javier Paniza

ランク: Junior Member

投稿: 37

参加年月日: 2009/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.