1
votes

I'm getting a ClassCastException when Liferay 7.1 starts:

 INFO  [main][ModuleFrameworkImpl:1636] Starting dynamic bundles
 ERROR [Start Level: Equinox Container: 08ae8322-2575-4260-9c68-db4761a17500][org_apache_felix_scr:97] bundle org.apache.felix.scr:2.1.14 (34)Error while loading components of bundle com.liferay.portal.remote.soap.extender.impl:2.0.5 (555) 
java.lang.ClassCastException: org.eclipse.osgi.internal.loader.FragmentLoader cannot be cast to org.eclipse.osgi.internal.loader.BundleLoader

Any help would be appreciated

Thanks

1
which exact version of Liferay? Does this happen with a customized bundle, or with a fresh install (because I can't reproduce with a fresh install)? Which Java version, what plugins are in there? Is it possible that you introduced duplicate bundles in custom plugins?Olaf Kock
I'm using Liferay-ce-portal-7.1.2-ga3, openjdk-8 and that happens when I deploy a custom portlet. After some tests, that error no longer appears when I upgraded xmlschema-core jar (2.2.1-->2.2.3), but still do not understand that. Note that this jar is deployed in osgi modules directory.javaxiss

1 Answers

0
votes

Seems this is a bug in equinox framework that is already fixed. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=423728 . You can try to update eclipse to version 3.10.0.