lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From con <convo...@gmail.com>
Subject Re: How to use multicore feature in JBOSS
Date Fri, 07 Nov 2008 06:26:33 GMT

Thanks Norberto and Hossma.
That really helped me.

Fist of all i deleted the contents in the example/solr directory and created
a solx.xml that points to the multicore.
That itself worked. 
Then based on Hossman's comment i deleted the actual solr directory and
renamed the multicore directory to solr.
Then i created a solr.xml inside that folder.
This along with some edits i have done previously in some of the
configuration files of JBOSS and solr.war has now made things in good shape.

Now i am able to use the multicore feature in JBOSS. Thanks again to both of
you guys.

One final question:
Even thogh things are working fine, The debug messages that i get from the
JBOSS console shows STDERR.

A few lines from the JBOSS console while deploying solr.war:

11:44:20,578 ERROR [STDERR] 7 Nov, 2008 11:44:20 AM
org.apache.solr.servlet.SolrDispatchFilter init
INFO: SolrDispatchFilter.init()
11:44:20,608 ERROR [STDERR] 7 Nov, 2008 11:44:20 AM
org.apache.solr.core.SolrResourceLoader locateInstanceDir
INFO: No /solr/home in JNDI
11:44:20,609 ERROR [STDERR] 7 Nov, 2008 11:44:20 AM
org.apache.solr.core.SolrResourceLoader locateInstanceDir
INFO: using system property solr.solr.home:
C:\Search\apachesolr\example\solr
11:44:20,618 ERROR [STDERR] 7 Nov, 2008 11:44:20 AM
org.apache.solr.core.CoreContainer$Initializer initialize
INFO: looking for solr.xml: C:\Search\apachesolr\example\solr\solr.xml
11:44:20,620 ERROR [STDERR] 7 Nov, 2008 11:44:20 AM
org.apache.solr.core.SolrResourceLoader <init>
INFO: Solr home set to 'C:\Search\apachesolr\example\solr/'
11:44:20,622 ERROR [STDERR] 7 Nov, 2008 11:44:20 AM
org.apache.solr.core.SolrResourceLoader createClassLoader
INFO: Adding 'file:/C:/Search/apachesolr/example/solr/lib/jetty-6.1.3.jar'
to Solr classloader
11:44:20,623 ERROR [STDERR] 7 Nov, 2008 11:44:20 AM
org.apache.solr.core.SolrResourceLoader createClassLoader
INFO: Adding
'file:/C:/Search/apachesolr/example/solr/lib/jetty-util-6.1.3.jar' to Solr
classloader
11:44:20,624 ERROR [STDERR] 7 Nov, 2008 11:44:20 AM
org.apache.solr.core.SolrResourceLoader createClassLoader
INFO: Adding 'file:/C:/Search/apachesolr/example/solr/lib/jsp-2.1/' to Solr
classloader
11:44:20,625 ERROR [STDERR] 7 Nov, 2008 11:44:20 AM
org.apache.solr.core.SolrResourceLoader createClassLoader
INFO: Adding
'file:/C:/Search/apachesolr/example/solr/lib/ojdbc6-11.1.0.6.0.1.jar' to
Solr classloader
11:44:20,626 ERROR [STDERR] 7 Nov, 2008 11:44:20 AM
org.apache.solr.core.SolrResourceLoader createClassLoader
INFO: Adding
'file:/C:/Search/apachesolr/example/solr/lib/servlet-api-2.5-6.1.3.jar' to
Solr classloader
11:44:20,653 ERROR [STDERR] 7 Nov, 2008 11:44:20 AM
org.apache.solr.core.CoreContainer load
INFO: loading shared library: C:\Search\apachesolr\example\solr\lib
11:44:20,655 ERROR [STDERR] 7 Nov, 2008 11:44:20 AM
org.apache.solr.core.SolrResourceLoader createClassLoader
INFO: Adding 'file:/C:/Search/apachesolr/example/solr/lib/jetty-6.1.3.jar'
to Solr classloader
11:44:20,657 ERROR [STDERR] 7 Nov, 2008 11:44:20 AM
org.apache.solr.core.SolrResourceLoader createClassLoader
INFO: Adding
'file:/C:/Search/apachesolr/example/solr/lib/jetty-util-6.1.3.jar' to Solr
classloader
11:44:20,658 ERROR [STDERR] 7 Nov, 2008 11:44:20 AM
org.apache.solr.core.SolrResourceLoader createClassLoader
INFO: Adding 'file:/C:/Search/apachesolr/example/solr/lib/jsp-2.1/' to Solr
classloader
11:44:20,659 ERROR [STDERR] 7 Nov, 2008 11:44:20 AM
org.apache.solr.core.SolrResourceLoader createClassLoader
INFO: Adding
'file:/C:/Search/apachesolr/example/solr/lib/ojdbc6-11.1.0.6.0.1.jar' to
Solr classloader
11:44:20,660 ERROR [STDERR] 7 Nov, 2008 11:44:20 AM
org.apache.solr.core.SolrResourceLoader createClassLoader
INFO: Adding
'file:/C:/Search/apachesolr/example/solr/lib/servlet-api-2.5-6.1.3.jar' to
Solr classloader
11:44:20,689 ERROR [STDERR] 7 Nov, 2008 11:44:20 AM
org.apache.solr.core.SolrResourceLoader <init>
INFO: Solr home set to 'C:\Search\apachesolr\example\solr\core0/'
11:44:20,690 ERROR [STDERR] 7 Nov, 2008 11:44:20 AM
org.apache.solr.core.SolrResourceLoader createClassLoader
INFO: Reusing parent classloader
11:44:21,188 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.core.SolrConfig <init>
INFO: Loaded SolrConfig: solrconfig.xml
11:44:21,225 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.schema.IndexSchema readSchema
INFO: Reading Solr Schema
11:44:21,278 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.schema.IndexSchema readSchema
INFO: Schema name=example core zero
11:44:21,315 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created string: org.apache.solr.schema.StrField
11:44:21,337 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created boolean: org.apache.solr.schema.BoolField
11:44:21,351 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created integer: org.apache.solr.schema.IntField
11:44:21,363 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created long: org.apache.solr.schema.LongField
11:44:21,375 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created float: org.apache.solr.schema.FloatField
11:44:21,388 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created double: org.apache.solr.schema.DoubleField
11:44:21,400 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created sint: org.apache.solr.schema.SortableIntField
11:44:21,413 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created slong: org.apache.solr.schema.SortableLongField
11:44:21,426 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created sfloat: org.apache.solr.schema.SortableFloatField
11:44:21,439 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created sdouble: org.apache.solr.schema.SortableDoubleField
11:44:21,463 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created date: org.apache.solr.schema.DateField
11:44:21,495 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created null: org.apache.solr.analysis.WhitespaceTokenizerFactory
11:44:21,497 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created text_ws: org.apache.solr.schema.TextField
11:44:21,506 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created null: org.apache.solr.analysis.WhitespaceTokenizerFactory
11:44:21,521 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created null: org.apache.solr.analysis.SynonymFilterFactory
11:44:21,530 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created null: org.apache.solr.analysis.StopFilterFactory
11:44:21,538 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created null: org.apache.solr.analysis.WordDelimiterFilterFactory
11:44:21,547 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created null: org.apache.solr.analysis.LowerCaseFilterFactory
11:44:21,555 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created null: org.apache.solr.analysis.EnglishPorterFilterFactory
11:44:21,565 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created null:
org.apache.solr.analysis.RemoveDuplicatesTokenFilterFactory
11:44:21,571 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created null: org.apache.solr.analysis.WhitespaceTokenizerFactory
11:44:21,575 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created null: org.apache.solr.analysis.StopFilterFactory
11:44:21,578 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created null: org.apache.solr.analysis.WordDelimiterFilterFactory
11:44:21,581 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created null: org.apache.solr.analysis.LowerCaseFilterFactory
11:44:21,583 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created null: org.apache.solr.analysis.EnglishPorterFilterFactory
11:44:21,586 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created null:
org.apache.solr.analysis.RemoveDuplicatesTokenFilterFactory
11:44:21,587 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created text: org.apache.solr.schema.TextField
11:44:21,597 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created null: org.apache.solr.analysis.WhitespaceTokenizerFactory
11:44:21,601 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created null: org.apache.solr.analysis.SynonymFilterFactory
11:44:21,604 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created null: org.apache.solr.analysis.StopFilterFactory
11:44:21,606 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created null: org.apache.solr.analysis.WordDelimiterFilterFactory
11:44:21,609 ERROR [STDERR] 7 Nov, 2008 11:44:21 AM
org.apache.solr.util.plugin.AbstractPluginLoader load
INFO: created null: org.apache.solr.analysis.LowerCaseFilterFactory

...........

similarly all the messages coming from solr are error messages, eventhogh
things are working fine now.
I am not sure whether it will affect the application at a later stage.
I suspect that i am missing something in the classpath. Can anyone provide
some tips on why this error message is displaying.


Thanks again
con


Norberto Meijome-6 wrote:
> 
> On Tue, 4 Nov 2008 23:45:40 -0800 (PST)
> con <convoyer@gmail.com> wrote:
> 
>> But for the first question, I am still not clear.
>> I think to use the multicore feature we should inform the server. In the
>> Jetty server, we are starting the server using:   java
>> -Dsolr.solr.home=multicore -jar start.jar
>> Once the server is started I think it will take the parameters from
>> multicore/solr.xml.
>> 
>> But I am confused on how and where to pass this argument to JBOSS. 
> 
> Con,
> Sorry, i don't have a jboss available to test... what happens if you use
> the standard configuration ( with solr.xml @ the top level of your solr
> directory, NOT in multicore/ ) 
> 
> launch it, look @ the debug messages , see which cores are picked up (from
> the admin page ). 
> 
> FWIW, by having {solr_installation_directory}/solr.xml , I never had to
> tell jetty where solr.xml was.  IIRC, multicore/solr.xml is the layout in
> the example app , because the default config is 1-core only.
> 
> b
> 
> _________________________
> {Beto|Norberto|Numard} Meijome
> 
> "We must openly accept all ideologies and systems as  means of solving
> humanity's problems. One country, one nation, one ideology, one system is
> not sufficient."
>    Dalai Lama.
> 
> I speak for myself, not my employer. Contents may be hot. Slippery when
> wet. Reading disclaimers makes you go blind. Writing them is worse. You
> have been Warned.
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-use-multicore-feature-in-JBOSS-tp20327580p20375364.html
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message