Fórumok

Liferay 6.1 Unable to load class ResolvingXMLReader

Michele Giacobazzi, módosítva 11 év-val korábban

Liferay 6.1 Unable to load class ResolvingXMLReader

Junior Member Bejegyzések: 40 Csatlakozás dátuma: 2011.09.09. Legújabb bejegyzések
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, módosítva 11 év-val korábban

RE: Liferay 6.1 Unable to load class ResolvingXMLReader

Liferay Legend Bejegyzések: 14914 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
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, módosítva 11 év-val korábban

RE: Liferay 6.1 Unable to load class ResolvingXMLReader

Junior Member Bejegyzések: 40 Csatlakozás dátuma: 2011.09.09. Legújabb bejegyzések
this.. it works once every 2 deploy
Michele Giacobazzi, módosítva 11 év-val korábban

RE: Liferay 6.1 Unable to load class ResolvingXMLReader

Junior Member Bejegyzések: 40 Csatlakozás dátuma: 2011.09.09. Legújabb bejegyzések
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">