cancel
Showing results for 
Search instead for 
Did you mean: 

In 4.2b solr/libs/*.jar aren't loaded anymore

ebogaard
Champ on-the-rise
Champ on-the-rise
I've used Alfresco 4.0x for a while and upgraded to 4.2a. No problem so far. After 4.2b came out, I upgraded to that version.
After this upgrade, solr doesn't load it's libraries in "$SOLR_HOME/libs/*.jar" anymore, at least, that's what I make up from the logfiles. See excerpts below:

Alfresco 4.2a:

INFO: Starting service Catalina
Nov 21, 2012 1:41:12 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.30
Nov 21, 2012 1:41:12 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /opt/alfresco42/tomcat/conf/Catalina/localhost/solr.xml
Nov 21, 2012 1:41:12 PM org.apache.catalina.startup.SetContextPropertiesRule begin
WARNING: [SetContextPropertiesRule]{Context} Setting property 'debug' to '0' did not find a matching property.
Nov 21, 2012 1:41:14 PM org.apache.solr.core.SolrResourceLoader locateSolrHome
INFO: Using JNDI solr.home: /opt/repo/solr
Nov 21, 2012 1:41:14 PM org.apache.solr.core.SolrResourceLoader <init>
INFO: Solr home set to '/opt/repo/solr/'
Nov 21, 2012 1:41:14 PM org.apache.solr.core.SolrResourceLoader replaceClassLoader
INFO: Adding 'file:/opt/repo/solr/lib/alfresco-data-model-4.2.a.jar' to classloader
Nov 21, 2012 1:41:14 PM org.apache.solr.core.SolrResourceLoader replaceClassLoader
INFO: Adding 'file:/opt/repo/solr/lib/antlr-3.4-complete.jar' to classloader
Nov 21, 2012 1:41:14 PM org.apache.solr.core.SolrResourceLoader replaceClassLoader
INFO: Adding 'file:/opt/repo/solr/lib/hibernate-3.2.6-patched.jar' to classloader
Nov 21, 2012 1:41:14 PM org.apache.solr.core.SolrResourceLoader replaceClassLoader
INFO: Adding 'file:/opt/repo/solr/lib/servlet.jar' to classloader

etc…

Alfresco 4.2b:

INFO: Starting service Catalina
Nov 21, 2012 1:59:48 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.30
Nov 21, 2012 1:59:48 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /opt/alfresco42/tomcat/conf/Catalina/localhost/solr.xml
Nov 21, 2012 1:59:48 PM org.apache.catalina.startup.SetContextPropertiesRule begin
WARNING: [SetContextPropertiesRule]{Context} Setting property 'debug' to '0' did not find a matching property.

<EDIT: I expect to see "org.apache.solr.core.SolrResourceLoader locateSolrHome" here, but it skips righto the end>

Nov 21, 2012 2:00:01 PM org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [10,480] milliseconds.
2012-11-21 14:00:05,955  WARN  [handler.component.SpellCheckComponent] [localhost-startStop-1] No queryConverter defined, using default converter
2012-11-21 14:00:07,226  WARN  [handler.component.SpellCheckComponent] [localhost-startStop-1] No queryConverter defined, using default converter

It seems that after checking 'tomcat/conf/Catalina/localhost/solr.xml', it skips loading "solr/lib/*jar" and skips right tot the end of the Solr-loading process.

As search and indexing seem to work okay, I'm wondering if this is to be expected?
If not: what are the implications and how can I fix this?

Edit: When I use solr from 4.2a, it seems to do load the JARs. What's happenning?
Edit2: As you can see, I moved the solr-folder to another location than "$ALF_HOME/alf_data", but this works fine with 4.0x and 4.2a.
1 REPLY 1

ebogaard
Champ on-the-rise
Champ on-the-rise
Seems to be in 4.2c as well.
When I replace the solr-folder with the onr from 4.2a, all extra WARs are loaded

Is this something to be expected? Has the logging of this process changed, for example?