Foros de discusión

Liferay 6.1 Unable to load class ResolvingXMLReader

Michele Giacobazzi, modificado hace 11 años.

Liferay 6.1 Unable to load class ResolvingXMLReader

Junior Member Mensajes: 40 Fecha de incorporación: 9/09/11 Mensajes recientes
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
David H Nebinger, modificado hace 11 años.

RE: Liferay 6.1 Unable to load class ResolvingXMLReader

Liferay Legend Mensajes: 14916 Fecha de incorporación: 2/09/06 Mensajes recientes
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.
Michele Giacobazzi, modificado hace 11 años.

RE: Liferay 6.1 Unable to load class ResolvingXMLReader

Junior Member Mensajes: 40 Fecha de incorporación: 9/09/11 Mensajes recientes
this.. it works once every 2 deploy
Michele Giacobazzi, modificado hace 11 años.

RE: Liferay 6.1 Unable to load class ResolvingXMLReader

Junior Member Mensajes: 40 Fecha de incorporación: 9/09/11 Mensajes recientes
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">