[opencms-dev] errors template3 demo after upgrade to opencms 8.5.2. (solved)
Hein van der Kallen
hvanderkallen at xs4all.nl
Sun Sep 22 17:25:25 CEST 2013
Hello list,
I upgraded a copy of an opencms 8.0.4 installation ( upgraded may times before) to opencms 8.5.2.
After that I loaded the 19 modules that are not in in the upgrade but only in the standard opencms.war ( rename to .zip and unpack)
load com.alkacon.opencms.v8.template3.demo.shared_8.5.2 to shared folder
load com.alkacon.opencms.v8.template3.demo_8.5.2 to /sites/default
load org.opencms.dev.demo_8.5.1 to /sites/default
org.opencms.welcome_8.5.2 to /sites/default
and others to /
The lists in the flower demo's did not work. I suspected because solr was not installed.
so I copied the solr directory from opencms.war to /WEB-INF/solr
copied the requesthandlers node to opencms-system.xml
copied the solr node to opencms-search.xml ( enabled = "true") ( from the same file in opencms.war)
copied the documenttype node containerpage-solr to opencms-search.xml
copied the indexsource node solr_source to opencms-search.xml
copied the fieldconfiguration node solr_fields to opencms-search.xml
after that a restart of opencms still worked.
but when I
copied the index nodes "Solr Online" and "Solr Offline" to opencms-search.xml
opencms does not start and the indexes are not created
I got
22 Sep 2013 12:12:10,053 ERROR [ache.solr.common.SolrException: 176] Error in xpath:java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.xpath.XPathContext$XPathExpressionContext.getVariableOrParam(Lorg/apache/xml/utils/QName;)Lorg/apache/xpath/objects/XObject;"
the class loader (instance of org/apache/catalina/loader/WebappClassLoader) of the current class, org/apache/xpath/XPathContext$XPathExpressionContext,
and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for interface org/apache/xalan/extensions/ExpressionContext
have different Class objects for the type org/apache/xpath/objects/XObject used in the signature
at org.apache.xpath.XPathContext.<init>(XPathContext.java:1031)
at org.apache.xpath.jaxp.XPathImpl.eval(XPathImpl.java:201)
at org.apache.xpath.jaxp.XPathImpl.evaluate(XPathImpl.java:275)
at org.apache.solr.core.Config.getNode(Config.java:230)
at org.apache.solr.core.Config.getVal(Config.java:256)
at org.apache.solr.core.Config.get(Config.java:279)
at org.apache.solr.core.CoreContainer.load(CoreContainer.java:240)
at org.apache.solr.core.CoreContainer.load(CoreContainer.java:216)
at org.apache.solr.core.CoreContainer.<init>(CoreContainer.java:109)
at org.opencms.search.CmsSearchManager.createCoreContainer(CmsSearchManager.java:2801)
etc
why could I not create a solr-index?
I removed xalan.jar from the lib directory.
and then opencms started again and I could rebuild both indexes.
But still the liststs in flower demo give errors like
Container-page element "/.content/list/l_00008.html" could not be rendered with formatter "/system/modules/com.alkacon.opencms.v8.list/formatters/side.jsp".
Collector "byQuery" was not found.Stack trace
add
<collector class="org.opencms.file.collectors.CmsSolrCollector" order="170"/>
to opencms-vfs.xml
and that worked too
And finally give flower_en directory the property locale=en
and the same for the welcome directory
Have fun..
Hein van der Kallen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20130922/4dc0ca31/attachment.htm>
More information about the opencms-dev
mailing list