掲示板

Liferay 6.1 Unable to load class ResolvingXMLReader

11年前 に Michele Giacobazzi によって更新されました。

Liferay 6.1 Unable to load class ResolvingXMLReader

Junior Member 投稿: 40 参加年月日: 11/09/09 最新の投稿
I get this exception in a loop, often, on portlet redeploy:


Unable to load class [org.apache.xml.resolver.tools.ResolvingXMLReader] to check against the @HandlesTypes annotation of one or more Servl
etContentInitializers.


Can anyone help?
thumbnail
11年前 に David H Nebinger によって更新されました。

RE: Liferay 6.1 Unable to load class ResolvingXMLReader

Liferay Legend 投稿: 14916 参加年月日: 06/09/02 最新の投稿
I'm guessing you missed the jar in the liferay-plugin-package.properties file that has the missing class. Add it as a dependent jar and re-deploy.
11年前 に Michele Giacobazzi によって更新されました。

RE: Liferay 6.1 Unable to load class ResolvingXMLReader

Junior Member 投稿: 40 参加年月日: 11/09/09 最新の投稿
this.. it works once every 2 deploy
11年前 に Michele Giacobazzi によって更新されました。

RE: Liferay 6.1 Unable to load class ResolvingXMLReader

Junior Member 投稿: 40 参加年月日: 11/09/09 最新の投稿
it's a tomcat problem, solved with version 7.0.24.

To avoid the "lots of warning" part you can add metadata-complete="true" to your portlet's web.xml :

My example:

<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" metadata-complete="true">