You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Anto Binish Kaspar <an...@ec.is> on 2009/02/04 13:33:51 UTC
Severe errors in solr configuration
Hi,
I am trying to configure solr on ubuntu server and I am getting the following exception. I can able work it on windows box.
message Severe errors in solr configuration. Check your log files for more detailed information on what may be wrong. If you want solr to continue after configuration errors, change: <abortOnConfigurationError>false</abortOnConfigurationError> in null ------------------------------------------------------------- java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:342) at java.security.AccessController.checkPermission(AccessController.java:553) at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1302) at java.lang.System.getProperty(System.java:669) at java.io.UnixFileSystem.resolve(UnixFileSystem.java:133) at java.io.File.getAbsolutePath(File.java:518) at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:101) at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:69) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123) at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
Please help me to fix this problem.
Thanks,
Anto Binish Kaspar,
Acting Team Lead,
E.C software Pvt. Ltd.
RE: Severe errors in solr configuration
Posted by Anto Binish Kaspar <an...@ec.is>.
Finally I make it work on my server :)
While installing the ubuntu server, I choose tomcat to install by the ubuntu itself. So after installing the server I noticed the there are two folder on the system
/var/lib/tomcat6/ and /usr/share/tomcate6. The /var/lib/tomcat6/ folder has the following
conf
lib
logs
temp
webapps
work
and /usr/share/tomcate6 has
bin
logs
webapps
lib
So I thought /var/lib/tomcat6/ is folder where I have to do all the configuration. I did so. Then I started the tomcat using /etc/init.d/tomcat6 start. Then I was getting error in the solr application
Then I do the following steps to fix the issue
sudo /etc/init.d/tomcat6 stop
sudo cp -R /var/lib/tomcat6/conf /usr/share/tomcat6/
sudo cp -R /var/lib/tomcat6/temp /usr/share/tomcat6/
sudo cp -R /var/lib/tomcat6/logs/* /usr/share/tomcat6/logs/
cd /usr/share/tomcat6
sudo ln -s /var/cache/tomcat6 work
sudo bin/shutdown.sh
sudo bin/startup.sh
Now it's started working. So solr.xml is in /usr/share/tomcat6/conf/Catalina/localhost/solr.xml
- Anto Binish Kaspar
-----Original Message-----
From: Anto Binish Kaspar [mailto:antobinish@ec.is]
Sent: Thursday, February 05, 2009 5:31 PM
To: solr-user@lucene.apache.org
Subject: RE: Severe errors in solr configuration
One thing I dint understand, why the application is trying to read the solr.xml from /usr/local/solr/solr-1.3/solr/solr.xml ?
I tried the folder permission of tomcat6:tomcat6 and root:root, both doesn't fix the issue.
- Anto Binish Kaspar
-----Original Message-----
From: Olivier Dobberkau [mailto:olivier.dobberkau@dkd.de]
Sent: Thursday, February 05, 2009 4:52 PM
To: solr-user@lucene.apache.org
Subject: Re: Severe errors in solr configuration
Am 05.02.2009 um 12:07 schrieb Anto Binish Kaspar:
> Do I need to give some permissions to the folder?
i would guess so.
Olivier
--
Olivier Dobberkau
Je TYPO3, desto d.k.d
d.k.d Internet Service GmbH
Kaiserstr. 79
D 60329 Frankfurt/Main
Registergericht: Amtsgericht Frankfurt am Main
Registernummer: HRB 45590
Geschäftsführer:
Olivier Dobberkau, Søren Schaffstein, Götz Wegenast
fon: +49 (0)69 - 43 05 61-70
fax: +49 (0)69 - 43 05 61-90
mail: olivier.dobberkau@dkd.de
home: http://www.dkd.de
aktuelle TYPO3-Projekte:
www.licht.de - Relaunch (TYPO3)
www.lahmeyer.de - Launch (TYPO3)
www.seb-assetmanagement.de - Relaunch (TYPO3)
RE: Severe errors in solr configuration
Posted by Anto Binish Kaspar <an...@ec.is>.
One thing I dint understand, why the application is trying to read the solr.xml from /usr/local/solr/solr-1.3/solr/solr.xml ?
I tried the folder permission of tomcat6:tomcat6 and root:root, both doesn't fix the issue.
- Anto Binish Kaspar
-----Original Message-----
From: Olivier Dobberkau [mailto:olivier.dobberkau@dkd.de]
Sent: Thursday, February 05, 2009 4:52 PM
To: solr-user@lucene.apache.org
Subject: Re: Severe errors in solr configuration
Am 05.02.2009 um 12:07 schrieb Anto Binish Kaspar:
> Do I need to give some permissions to the folder?
i would guess so.
Olivier
--
Olivier Dobberkau
Je TYPO3, desto d.k.d
d.k.d Internet Service GmbH
Kaiserstr. 79
D 60329 Frankfurt/Main
Registergericht: Amtsgericht Frankfurt am Main
Registernummer: HRB 45590
Geschäftsführer:
Olivier Dobberkau, Søren Schaffstein, Götz Wegenast
fon: +49 (0)69 - 43 05 61-70
fax: +49 (0)69 - 43 05 61-90
mail: olivier.dobberkau@dkd.de
home: http://www.dkd.de
aktuelle TYPO3-Projekte:
www.licht.de - Relaunch (TYPO3)
www.lahmeyer.de - Launch (TYPO3)
www.seb-assetmanagement.de - Relaunch (TYPO3)
Re: Severe errors in solr configuration
Posted by Olivier Dobberkau <ol...@dkd.de>.
Am 05.02.2009 um 12:07 schrieb Anto Binish Kaspar:
> Do I need to give some permissions to the folder?
i would guess so.
Olivier
--
Olivier Dobberkau
Je TYPO3, desto d.k.d
d.k.d Internet Service GmbH
Kaiserstr. 79
D 60329 Frankfurt/Main
Registergericht: Amtsgericht Frankfurt am Main
Registernummer: HRB 45590
Geschäftsführer:
Olivier Dobberkau, Søren Schaffstein, Götz Wegenast
fon: +49 (0)69 - 43 05 61-70
fax: +49 (0)69 - 43 05 61-90
mail: olivier.dobberkau@dkd.de
home: http://www.dkd.de
aktuelle TYPO3-Projekte:
www.licht.de - Relaunch (TYPO3)
www.lahmeyer.de - Launch (TYPO3)
www.seb-assetmanagement.de - Relaunch (TYPO3)
RE: Severe errors in solr configuration
Posted by Anto Binish Kaspar <an...@ec.is>.
Hi Olivier,
Do you have any guess what is the issue? Its talking something about the security
Severe errors in solr configuration. Check your log files for more detailed information on what may be wrong. If you want solr to continue after configuration errors, change: <abortOnConfigurationError>false</abortOnConfigurationError> in null ------------------------------------------------------------- java.security.AccessControlException: access denied (java.io.FilePermission /usr/local/solr/solr-1.3/solr/solr.xml read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:342) at java.security.AccessController.checkPermission(AccessController.java:553) at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) at java.lang.SecurityManager.checkRead(SecurityManager.java:888) at java.io.File.exists(File.java:748) at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:103) at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:69) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123) at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
Do I need to give some permissions to the folder?
- Anto Binish Kaspar
-----Original Message-----
From: Anto Binish Kaspar [mailto:antobinish@ec.is]
Sent: Thursday, February 05, 2009 2:31 PM
To: solr-user@lucene.apache.org
Subject: RE: Severe errors in solr configuration
No I dint solve my problem. Please help me out :)
- Anto Binish Kaspar
-----Original Message-----
From: Olivier Dobberkau [mailto:olivier.dobberkau@dkd.de]
Sent: Wednesday, February 04, 2009 11:35 PM
To: solr-user@lucene.apache.org
Subject: Re: Severe errors in solr configuration
Am 04.02.2009 um 15:50 schrieb Anto Binish Kaspar:
> Yes I removed, still I have the same issue. Any idea what may be
> cause of this issue?
Have you solved your problem?
Olivier
--
Olivier Dobberkau
Je TYPO3, desto d.k.d
d.k.d Internet Service GmbH
Kaiserstr. 79
D 60329 Frankfurt/Main
Registergericht: Amtsgericht Frankfurt am Main
Registernummer: HRB 45590
Geschäftsführer:
Olivier Dobberkau, Søren Schaffstein, Götz Wegenast
fon: +49 (0)69 - 43 05 61-70
fax: +49 (0)69 - 43 05 61-90
mail: olivier.dobberkau@dkd.de
home: http://www.dkd.de
aktuelle TYPO3-Projekte:
www.licht.de - Relaunch (TYPO3)
www.lahmeyer.de - Launch (TYPO3)
www.seb-assetmanagement.de - Relaunch (TYPO3)
RE: Severe errors in solr configuration
Posted by Anto Binish Kaspar <an...@ec.is>.
No I dint solve my problem. Please help me out :)
- Anto Binish Kaspar
-----Original Message-----
From: Olivier Dobberkau [mailto:olivier.dobberkau@dkd.de]
Sent: Wednesday, February 04, 2009 11:35 PM
To: solr-user@lucene.apache.org
Subject: Re: Severe errors in solr configuration
Am 04.02.2009 um 15:50 schrieb Anto Binish Kaspar:
> Yes I removed, still I have the same issue. Any idea what may be
> cause of this issue?
Have you solved your problem?
Olivier
--
Olivier Dobberkau
Je TYPO3, desto d.k.d
d.k.d Internet Service GmbH
Kaiserstr. 79
D 60329 Frankfurt/Main
Registergericht: Amtsgericht Frankfurt am Main
Registernummer: HRB 45590
Geschäftsführer:
Olivier Dobberkau, Søren Schaffstein, Götz Wegenast
fon: +49 (0)69 - 43 05 61-70
fax: +49 (0)69 - 43 05 61-90
mail: olivier.dobberkau@dkd.de
home: http://www.dkd.de
aktuelle TYPO3-Projekte:
www.licht.de - Relaunch (TYPO3)
www.lahmeyer.de - Launch (TYPO3)
www.seb-assetmanagement.de - Relaunch (TYPO3)
Re: Severe errors in solr configuration
Posted by Olivier Dobberkau <ol...@dkd.de>.
Am 04.02.2009 um 15:50 schrieb Anto Binish Kaspar:
> Yes I removed, still I have the same issue. Any idea what may be
> cause of this issue?
Have you solved your problem?
Olivier
--
Olivier Dobberkau
Je TYPO3, desto d.k.d
d.k.d Internet Service GmbH
Kaiserstr. 79
D 60329 Frankfurt/Main
Registergericht: Amtsgericht Frankfurt am Main
Registernummer: HRB 45590
Geschäftsführer:
Olivier Dobberkau, Søren Schaffstein, Götz Wegenast
fon: +49 (0)69 - 43 05 61-70
fax: +49 (0)69 - 43 05 61-90
mail: olivier.dobberkau@dkd.de
home: http://www.dkd.de
aktuelle TYPO3-Projekte:
www.licht.de - Relaunch (TYPO3)
www.lahmeyer.de - Launch (TYPO3)
www.seb-assetmanagement.de - Relaunch (TYPO3)
RE: Severe errors in solr configuration
Posted by Anto Binish Kaspar <an...@ec.is>.
Yes I removed, still I have the same issue. Any idea what may be cause of this issue?
- Anto Binish Kaspar
-----Original Message-----
From: Shalin Shekhar Mangar [mailto:shalinmangar@gmail.com]
Sent: Wednesday, February 04, 2009 7:42 PM
To: solr-user@lucene.apache.org
Subject: Re: Severe errors in solr configuration
According to http://wiki.apache.org/solr/SolrTomcat, the JNDI context should
be:
<Context docBase="/some/path/solr.war" debug="0" crossContext="true" >
<Environment name="solr/home" type="java.lang.String"
value="/my/solr/home" override="true" />
</Context>
Notice that in the snippet you posted, the name was "/solr/home" (an extra
leading '/')
http://wiki.apache.org/solr/SolrTomcat#head-7036378fa48b79c0797cc8230a8aa0965412fb2e
On Wed, Feb 4, 2009 at 6:59 PM, Anto Binish Kaspar <an...@ec.is> wrote:
> Now it's a giving a different message
>
> Severe errors in solr configuration. Check your log files for more detailed
> information on what may be wrong. If you want solr to continue after
> configuration errors, change:
> <abortOnConfigurationError>false</abortOnConfigurationError> in null
> -------------------------------------------------------------
> java.security.AccessControlException: access denied (java.io.FilePermission
> /usr/local/solr/solr-1.3/solr/solr.xml read) at
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:342)
> at java.security.AccessController.checkPermission(AccessController.java:553)
> at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) at
> java.lang.SecurityManager.checkRead(SecurityManager.java:888) at
> java.io.File.exists(File.java:748) at
> org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:103)
> at
> org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:69)
> at
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
> at
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
> at
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
> at
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123)
> at
> org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145)
> at java.security.AccessController.doPrivileged(Native Method) at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769) at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
> at
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at
> org.apache.catalina.core.StandardService.start(StandardService.java:516) at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at
> org.apache.catalina.startup.Catalina.start(Catalina.java:578) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616) at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616) at
> org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
>
> Why its trying to read the solr.xml from /usr/local/solr/solr-1.3/solr/ ?
>
> - Anto Binish Kaspar
>
>
> -----Original Message-----
> From: Olivier Dobberkau [mailto:olivier.dobberkau@dkd.de]
> Sent: Wednesday, February 04, 2009 6:50 PM
> To: solr-user@lucene.apache.org
> Subject: Re: Severe errors in solr configuration
>
> A slash?
>
> Olivier
>
> Von meinem iPhone gesendet
>
>
> Am 04.02.2009 um 14:06 schrieb Anto Binish Kaspar <an...@ec.is>:
>
> > I am using Context file, here is my solr.xml
> >
> > $ cat /var/lib/tomcat6/conf/Catalina/localhost/solr.xml
> >
> > <Context docBase="/usr/local/solr/solr-1.3/solr.war"
> > debug="0" crossContext="true" >
> > <Environment name="/solr/home" type="java.lang.String" value="usr/
> > local/solr/solr-1.3/solr" override="true" />
> > </Context>
> >
> > I change the ownership of the folder (usr/local/solr/solr-1.3/solr)
> > to tomcat6:tomcat6 from root:root
> >
> > Anything I am missing?
> >
> > - Anto Binish Kaspar
> >
> >
> > -----Original Message-----
> > From: Olivier Dobberkau [mailto:olivier.dobberkau@dkd.de]
> > Sent: Wednesday, February 04, 2009 6:30 PM
> > To: solr-user@lucene.apache.org
> > Subject: Re: Severe errors in solr configuration
> >
> >
> > Am 04.02.2009 um 13:54 schrieb Anto Binish Kaspar:
> >
> >> Hi Olivier
> >>
> >> Thanks for your quick reply. I am using the release 1.3 as war file.
> >>
> >> - Anto Binish Kaspar
> >
> > OK.
> > As far a i understood you need to make sure that your solr home is
> > set.
> > this needs to be done in
> >
> > Quting:
> >
> > http://wiki.apache.org/solr/SolrTomcat
> >
> > In addition to using the default behavior of relying on the Solr Home
> > being in the current working directory (./solr) you can alternately
> > add the solr.solr.home system property to your JVM settings before
> > starting Tomcat...
> >
> > export JAVA_OPTS="$JAVA_OPTS -Dsolr.solr.home=/my/custom/solr/home/
> > dir/"
> >
> > ...or use a Context file to configure the Solr Home using JNDI
> >
> > A Tomcat context fragments can be used to configure the JNDI property
> > needed to specify your Solr Home directory.
> >
> > Just put a context fragment file under $CATALINA_HOME/conf/Catalina/
> > localhost that looks something like this...
> >
> > $ cat /tomcat55/conf/Catalina/localhost/solr.xml
> >
> > <Context docBase="/some/path/solr.war" debug="0" crossContext="true" >
> > <Environment name="solr/home" type="java.lang.String" value="/my/
> > solr/home" override="true" />
> > </Context>
> >
> > Greetings,
> >
> > Olivier
> >
> > PS: May be it would be great if we could provide an ubuntu dpkg with
> > 1.3 ? Any takers?
> >
> > --
> > Olivier Dobberkau
> >
> > Je TYPO3, desto d.k.d
> >
> > d.k.d Internet Service GmbH
> > Kaiserstr. 79
> > D 60329 Frankfurt/Main
> >
> > Registergericht: Amtsgericht Frankfurt am Main
> > Registernummer: HRB 45590
> > Geschäftsführer:
> > Olivier Dobberkau, Søren Schaffstein, Götz Wegenast
> >
> > fon: +49 (0)69 - 43 05 61-70
> > fax: +49 (0)69 - 43 05 61-90
> > mail: olivier.dobberkau@dkd.de
> > home: http://www.dkd.de
> >
> > aktuelle TYPO3-Projekte:
> > www.licht.de - Relaunch (TYPO3)
> > www.lahmeyer.de - Launch (TYPO3)
> > www.seb-assetmanagement.de - Relaunch (TYPO3)
> >
>
--
Regards,
Shalin Shekhar Mangar.
Re: Severe errors in solr configuration
Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
According to http://wiki.apache.org/solr/SolrTomcat, the JNDI context should
be:
<Context docBase="/some/path/solr.war" debug="0" crossContext="true" >
<Environment name="solr/home" type="java.lang.String"
value="/my/solr/home" override="true" />
</Context>
Notice that in the snippet you posted, the name was "/solr/home" (an extra
leading '/')
http://wiki.apache.org/solr/SolrTomcat#head-7036378fa48b79c0797cc8230a8aa0965412fb2e
On Wed, Feb 4, 2009 at 6:59 PM, Anto Binish Kaspar <an...@ec.is> wrote:
> Now it's a giving a different message
>
> Severe errors in solr configuration. Check your log files for more detailed
> information on what may be wrong. If you want solr to continue after
> configuration errors, change:
> <abortOnConfigurationError>false</abortOnConfigurationError> in null
> -------------------------------------------------------------
> java.security.AccessControlException: access denied (java.io.FilePermission
> /usr/local/solr/solr-1.3/solr/solr.xml read) at
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:342)
> at java.security.AccessController.checkPermission(AccessController.java:553)
> at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) at
> java.lang.SecurityManager.checkRead(SecurityManager.java:888) at
> java.io.File.exists(File.java:748) at
> org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:103)
> at
> org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:69)
> at
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
> at
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
> at
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
> at
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
> at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123)
> at
> org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145)
> at java.security.AccessController.doPrivileged(Native Method) at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769) at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
> at
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at
> org.apache.catalina.core.StandardService.start(StandardService.java:516) at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at
> org.apache.catalina.startup.Catalina.start(Catalina.java:578) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616) at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616) at
> org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
>
> Why its trying to read the solr.xml from /usr/local/solr/solr-1.3/solr/ ?
>
> - Anto Binish Kaspar
>
>
> -----Original Message-----
> From: Olivier Dobberkau [mailto:olivier.dobberkau@dkd.de]
> Sent: Wednesday, February 04, 2009 6:50 PM
> To: solr-user@lucene.apache.org
> Subject: Re: Severe errors in solr configuration
>
> A slash?
>
> Olivier
>
> Von meinem iPhone gesendet
>
>
> Am 04.02.2009 um 14:06 schrieb Anto Binish Kaspar <an...@ec.is>:
>
> > I am using Context file, here is my solr.xml
> >
> > $ cat /var/lib/tomcat6/conf/Catalina/localhost/solr.xml
> >
> > <Context docBase="/usr/local/solr/solr-1.3/solr.war"
> > debug="0" crossContext="true" >
> > <Environment name="/solr/home" type="java.lang.String" value="usr/
> > local/solr/solr-1.3/solr" override="true" />
> > </Context>
> >
> > I change the ownership of the folder (usr/local/solr/solr-1.3/solr)
> > to tomcat6:tomcat6 from root:root
> >
> > Anything I am missing?
> >
> > - Anto Binish Kaspar
> >
> >
> > -----Original Message-----
> > From: Olivier Dobberkau [mailto:olivier.dobberkau@dkd.de]
> > Sent: Wednesday, February 04, 2009 6:30 PM
> > To: solr-user@lucene.apache.org
> > Subject: Re: Severe errors in solr configuration
> >
> >
> > Am 04.02.2009 um 13:54 schrieb Anto Binish Kaspar:
> >
> >> Hi Olivier
> >>
> >> Thanks for your quick reply. I am using the release 1.3 as war file.
> >>
> >> - Anto Binish Kaspar
> >
> > OK.
> > As far a i understood you need to make sure that your solr home is
> > set.
> > this needs to be done in
> >
> > Quting:
> >
> > http://wiki.apache.org/solr/SolrTomcat
> >
> > In addition to using the default behavior of relying on the Solr Home
> > being in the current working directory (./solr) you can alternately
> > add the solr.solr.home system property to your JVM settings before
> > starting Tomcat...
> >
> > export JAVA_OPTS="$JAVA_OPTS -Dsolr.solr.home=/my/custom/solr/home/
> > dir/"
> >
> > ...or use a Context file to configure the Solr Home using JNDI
> >
> > A Tomcat context fragments can be used to configure the JNDI property
> > needed to specify your Solr Home directory.
> >
> > Just put a context fragment file under $CATALINA_HOME/conf/Catalina/
> > localhost that looks something like this...
> >
> > $ cat /tomcat55/conf/Catalina/localhost/solr.xml
> >
> > <Context docBase="/some/path/solr.war" debug="0" crossContext="true" >
> > <Environment name="solr/home" type="java.lang.String" value="/my/
> > solr/home" override="true" />
> > </Context>
> >
> > Greetings,
> >
> > Olivier
> >
> > PS: May be it would be great if we could provide an ubuntu dpkg with
> > 1.3 ? Any takers?
> >
> > --
> > Olivier Dobberkau
> >
> > Je TYPO3, desto d.k.d
> >
> > d.k.d Internet Service GmbH
> > Kaiserstr. 79
> > D 60329 Frankfurt/Main
> >
> > Registergericht: Amtsgericht Frankfurt am Main
> > Registernummer: HRB 45590
> > Geschäftsführer:
> > Olivier Dobberkau, Søren Schaffstein, Götz Wegenast
> >
> > fon: +49 (0)69 - 43 05 61-70
> > fax: +49 (0)69 - 43 05 61-90
> > mail: olivier.dobberkau@dkd.de
> > home: http://www.dkd.de
> >
> > aktuelle TYPO3-Projekte:
> > www.licht.de - Relaunch (TYPO3)
> > www.lahmeyer.de - Launch (TYPO3)
> > www.seb-assetmanagement.de - Relaunch (TYPO3)
> >
>
--
Regards,
Shalin Shekhar Mangar.
RE: Severe errors in solr configuration
Posted by Anto Binish Kaspar <an...@ec.is>.
Now it’s a giving a different message
Severe errors in solr configuration. Check your log files for more detailed information on what may be wrong. If you want solr to continue after configuration errors, change: <abortOnConfigurationError>false</abortOnConfigurationError> in null ------------------------------------------------------------- java.security.AccessControlException: access denied (java.io.FilePermission /usr/local/solr/solr-1.3/solr/solr.xml read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:342) at java.security.AccessController.checkPermission(AccessController.java:553) at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) at java.lang.SecurityManager.checkRead(SecurityManager.java:888) at java.io.File.exists(File.java:748) at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:103) at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:69) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123) at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
Why its trying to read the solr.xml from /usr/local/solr/solr-1.3/solr/ ?
- Anto Binish Kaspar
-----Original Message-----
From: Olivier Dobberkau [mailto:olivier.dobberkau@dkd.de]
Sent: Wednesday, February 04, 2009 6:50 PM
To: solr-user@lucene.apache.org
Subject: Re: Severe errors in solr configuration
A slash?
Olivier
Von meinem iPhone gesendet
Am 04.02.2009 um 14:06 schrieb Anto Binish Kaspar <an...@ec.is>:
> I am using Context file, here is my solr.xml
>
> $ cat /var/lib/tomcat6/conf/Catalina/localhost/solr.xml
>
> <Context docBase="/usr/local/solr/solr-1.3/solr.war"
> debug="0" crossContext="true" >
> <Environment name="/solr/home" type="java.lang.String" value="usr/
> local/solr/solr-1.3/solr" override="true" />
> </Context>
>
> I change the ownership of the folder (usr/local/solr/solr-1.3/solr)
> to tomcat6:tomcat6 from root:root
>
> Anything I am missing?
>
> - Anto Binish Kaspar
>
>
> -----Original Message-----
> From: Olivier Dobberkau [mailto:olivier.dobberkau@dkd.de]
> Sent: Wednesday, February 04, 2009 6:30 PM
> To: solr-user@lucene.apache.org
> Subject: Re: Severe errors in solr configuration
>
>
> Am 04.02.2009 um 13:54 schrieb Anto Binish Kaspar:
>
>> Hi Olivier
>>
>> Thanks for your quick reply. I am using the release 1.3 as war file.
>>
>> - Anto Binish Kaspar
>
> OK.
> As far a i understood you need to make sure that your solr home is
> set.
> this needs to be done in
>
> Quting:
>
> http://wiki.apache.org/solr/SolrTomcat
>
> In addition to using the default behavior of relying on the Solr Home
> being in the current working directory (./solr) you can alternately
> add the solr.solr.home system property to your JVM settings before
> starting Tomcat...
>
> export JAVA_OPTS="$JAVA_OPTS -Dsolr.solr.home=/my/custom/solr/home/
> dir/"
>
> ...or use a Context file to configure the Solr Home using JNDI
>
> A Tomcat context fragments can be used to configure the JNDI property
> needed to specify your Solr Home directory.
>
> Just put a context fragment file under $CATALINA_HOME/conf/Catalina/
> localhost that looks something like this...
>
> $ cat /tomcat55/conf/Catalina/localhost/solr.xml
>
> <Context docBase="/some/path/solr.war" debug="0" crossContext="true" >
> <Environment name="solr/home" type="java.lang.String" value="/my/
> solr/home" override="true" />
> </Context>
>
> Greetings,
>
> Olivier
>
> PS: May be it would be great if we could provide an ubuntu dpkg with
> 1.3 ? Any takers?
>
> --
> Olivier Dobberkau
>
> Je TYPO3, desto d.k.d
>
> d.k.d Internet Service GmbH
> Kaiserstr. 79
> D 60329 Frankfurt/Main
>
> Registergericht: Amtsgericht Frankfurt am Main
> Registernummer: HRB 45590
> Geschäftsführer:
> Olivier Dobberkau, Søren Schaffstein, Götz Wegenast
>
> fon: +49 (0)69 - 43 05 61-70
> fax: +49 (0)69 - 43 05 61-90
> mail: olivier.dobberkau@dkd.de
> home: http://www.dkd.de
>
> aktuelle TYPO3-Projekte:
> www.licht.de - Relaunch (TYPO3)
> www.lahmeyer.de - Launch (TYPO3)
> www.seb-assetmanagement.de - Relaunch (TYPO3)
>
Re: Severe errors in solr configuration
Posted by Olivier Dobberkau <ol...@dkd.de>.
A slash?
Olivier
Von meinem iPhone gesendet
Am 04.02.2009 um 14:06 schrieb Anto Binish Kaspar <an...@ec.is>:
> I am using Context file, here is my solr.xml
>
> $ cat /var/lib/tomcat6/conf/Catalina/localhost/solr.xml
>
> <Context docBase="/usr/local/solr/solr-1.3/solr.war"
> debug="0" crossContext="true" >
> <Environment name="/solr/home" type="java.lang.String" value="usr/
> local/solr/solr-1.3/solr" override="true" />
> </Context>
>
> I change the ownership of the folder (usr/local/solr/solr-1.3/solr)
> to tomcat6:tomcat6 from root:root
>
> Anything I am missing?
>
> - Anto Binish Kaspar
>
>
> -----Original Message-----
> From: Olivier Dobberkau [mailto:olivier.dobberkau@dkd.de]
> Sent: Wednesday, February 04, 2009 6:30 PM
> To: solr-user@lucene.apache.org
> Subject: Re: Severe errors in solr configuration
>
>
> Am 04.02.2009 um 13:54 schrieb Anto Binish Kaspar:
>
>> Hi Olivier
>>
>> Thanks for your quick reply. I am using the release 1.3 as war file.
>>
>> - Anto Binish Kaspar
>
> OK.
> As far a i understood you need to make sure that your solr home is
> set.
> this needs to be done in
>
> Quting:
>
> http://wiki.apache.org/solr/SolrTomcat
>
> In addition to using the default behavior of relying on the Solr Home
> being in the current working directory (./solr) you can alternately
> add the solr.solr.home system property to your JVM settings before
> starting Tomcat...
>
> export JAVA_OPTS="$JAVA_OPTS -Dsolr.solr.home=/my/custom/solr/home/
> dir/"
>
> ...or use a Context file to configure the Solr Home using JNDI
>
> A Tomcat context fragments can be used to configure the JNDI property
> needed to specify your Solr Home directory.
>
> Just put a context fragment file under $CATALINA_HOME/conf/Catalina/
> localhost that looks something like this...
>
> $ cat /tomcat55/conf/Catalina/localhost/solr.xml
>
> <Context docBase="/some/path/solr.war" debug="0" crossContext="true" >
> <Environment name="solr/home" type="java.lang.String" value="/my/
> solr/home" override="true" />
> </Context>
>
> Greetings,
>
> Olivier
>
> PS: May be it would be great if we could provide an ubuntu dpkg with
> 1.3 ? Any takers?
>
> --
> Olivier Dobberkau
>
> Je TYPO3, desto d.k.d
>
> d.k.d Internet Service GmbH
> Kaiserstr. 79
> D 60329 Frankfurt/Main
>
> Registergericht: Amtsgericht Frankfurt am Main
> Registernummer: HRB 45590
> Geschäftsführer:
> Olivier Dobberkau, Søren Schaffstein, Götz Wegenast
>
> fon: +49 (0)69 - 43 05 61-70
> fax: +49 (0)69 - 43 05 61-90
> mail: olivier.dobberkau@dkd.de
> home: http://www.dkd.de
>
> aktuelle TYPO3-Projekte:
> www.licht.de - Relaunch (TYPO3)
> www.lahmeyer.de - Launch (TYPO3)
> www.seb-assetmanagement.de - Relaunch (TYPO3)
>
RE: Severe errors in solr configuration
Posted by Anto Binish Kaspar <an...@ec.is>.
I am using Context file, here is my solr.xml
$ cat /var/lib/tomcat6/conf/Catalina/localhost/solr.xml
<Context docBase="/usr/local/solr/solr-1.3/solr.war"
debug="0" crossContext="true" >
<Environment name="/solr/home" type="java.lang.String" value="usr/local/solr/solr-1.3/solr" override="true" />
</Context>
I change the ownership of the folder (usr/local/solr/solr-1.3/solr) to tomcat6:tomcat6 from root:root
Anything I am missing?
- Anto Binish Kaspar
-----Original Message-----
From: Olivier Dobberkau [mailto:olivier.dobberkau@dkd.de]
Sent: Wednesday, February 04, 2009 6:30 PM
To: solr-user@lucene.apache.org
Subject: Re: Severe errors in solr configuration
Am 04.02.2009 um 13:54 schrieb Anto Binish Kaspar:
> Hi Olivier
>
> Thanks for your quick reply. I am using the release 1.3 as war file.
>
> - Anto Binish Kaspar
OK.
As far a i understood you need to make sure that your solr home is set.
this needs to be done in
Quting:
http://wiki.apache.org/solr/SolrTomcat
In addition to using the default behavior of relying on the Solr Home
being in the current working directory (./solr) you can alternately
add the solr.solr.home system property to your JVM settings before
starting Tomcat...
export JAVA_OPTS="$JAVA_OPTS -Dsolr.solr.home=/my/custom/solr/home/dir/"
...or use a Context file to configure the Solr Home using JNDI
A Tomcat context fragments can be used to configure the JNDI property
needed to specify your Solr Home directory.
Just put a context fragment file under $CATALINA_HOME/conf/Catalina/
localhost that looks something like this...
$ cat /tomcat55/conf/Catalina/localhost/solr.xml
<Context docBase="/some/path/solr.war" debug="0" crossContext="true" >
<Environment name="solr/home" type="java.lang.String" value="/my/
solr/home" override="true" />
</Context>
Greetings,
Olivier
PS: May be it would be great if we could provide an ubuntu dpkg with
1.3 ? Any takers?
--
Olivier Dobberkau
Je TYPO3, desto d.k.d
d.k.d Internet Service GmbH
Kaiserstr. 79
D 60329 Frankfurt/Main
Registergericht: Amtsgericht Frankfurt am Main
Registernummer: HRB 45590
Geschäftsführer:
Olivier Dobberkau, Søren Schaffstein, Götz Wegenast
fon: +49 (0)69 - 43 05 61-70
fax: +49 (0)69 - 43 05 61-90
mail: olivier.dobberkau@dkd.de
home: http://www.dkd.de
aktuelle TYPO3-Projekte:
www.licht.de - Relaunch (TYPO3)
www.lahmeyer.de - Launch (TYPO3)
www.seb-assetmanagement.de - Relaunch (TYPO3)
Re: Severe errors in solr configuration
Posted by Olivier Dobberkau <ol...@dkd.de>.
Am 04.02.2009 um 13:54 schrieb Anto Binish Kaspar:
> Hi Olivier
>
> Thanks for your quick reply. I am using the release 1.3 as war file.
>
> - Anto Binish Kaspar
OK.
As far a i understood you need to make sure that your solr home is set.
this needs to be done in
Quting:
http://wiki.apache.org/solr/SolrTomcat
In addition to using the default behavior of relying on the Solr Home
being in the current working directory (./solr) you can alternately
add the solr.solr.home system property to your JVM settings before
starting Tomcat...
export JAVA_OPTS="$JAVA_OPTS -Dsolr.solr.home=/my/custom/solr/home/dir/"
...or use a Context file to configure the Solr Home using JNDI
A Tomcat context fragments can be used to configure the JNDI property
needed to specify your Solr Home directory.
Just put a context fragment file under $CATALINA_HOME/conf/Catalina/
localhost that looks something like this...
$ cat /tomcat55/conf/Catalina/localhost/solr.xml
<Context docBase="/some/path/solr.war" debug="0" crossContext="true" >
<Environment name="solr/home" type="java.lang.String" value="/my/
solr/home" override="true" />
</Context>
Greetings,
Olivier
PS: May be it would be great if we could provide an ubuntu dpkg with
1.3 ? Any takers?
--
Olivier Dobberkau
Je TYPO3, desto d.k.d
d.k.d Internet Service GmbH
Kaiserstr. 79
D 60329 Frankfurt/Main
Registergericht: Amtsgericht Frankfurt am Main
Registernummer: HRB 45590
Geschäftsführer:
Olivier Dobberkau, Søren Schaffstein, Götz Wegenast
fon: +49 (0)69 - 43 05 61-70
fax: +49 (0)69 - 43 05 61-90
mail: olivier.dobberkau@dkd.de
home: http://www.dkd.de
aktuelle TYPO3-Projekte:
www.licht.de - Relaunch (TYPO3)
www.lahmeyer.de - Launch (TYPO3)
www.seb-assetmanagement.de - Relaunch (TYPO3)
RE: Severe errors in solr configuration
Posted by Anto Binish Kaspar <an...@ec.is>.
Hi Olivier
Thanks for your quick reply. I am using the release 1.3 as war file.
- Anto Binish Kaspar
-----Original Message-----
From: Olivier Dobberkau [mailto:olivier.dobberkau@dkd.de]
Sent: Wednesday, February 04, 2009 6:20 PM
To: solr-user@lucene.apache.org
Subject: Re: Severe errors in solr configuration
Am 04.02.2009 um 13:33 schrieb Anto Binish Kaspar:
> Hi,
> I am trying to configure solr on ubuntu server and I am getting the
> following exception. I can able work it on windows box.
Hi Anto.
Have you installed the solr package 1.2 from ubuntu?
Or the release 1.3 as war file?
Olivier
--
Olivier Dobberkau
Je TYPO3, desto d.k.d
d.k.d Internet Service GmbH
Kaiserstr. 79
D 60329 Frankfurt/Main
Registergericht: Amtsgericht Frankfurt am Main
Registernummer: HRB 45590
Geschäftsführer:
Olivier Dobberkau, Søren Schaffstein, Götz Wegenast
fon: +49 (0)69 - 43 05 61-70
fax: +49 (0)69 - 43 05 61-90
mail: olivier.dobberkau@dkd.de
home: http://www.dkd.de
aktuelle TYPO3-Projekte:
www.licht.de - Relaunch (TYPO3)
www.lahmeyer.de - Launch (TYPO3)
www.seb-assetmanagement.de - Relaunch (TYPO3)
Re: Severe errors in solr configuration
Posted by Olivier Dobberkau <ol...@dkd.de>.
Am 04.02.2009 um 13:33 schrieb Anto Binish Kaspar:
> Hi,
> I am trying to configure solr on ubuntu server and I am getting the
> following exception. I can able work it on windows box.
Hi Anto.
Have you installed the solr package 1.2 from ubuntu?
Or the release 1.3 as war file?
Olivier
--
Olivier Dobberkau
Je TYPO3, desto d.k.d
d.k.d Internet Service GmbH
Kaiserstr. 79
D 60329 Frankfurt/Main
Registergericht: Amtsgericht Frankfurt am Main
Registernummer: HRB 45590
Geschäftsführer:
Olivier Dobberkau, Søren Schaffstein, Götz Wegenast
fon: +49 (0)69 - 43 05 61-70
fax: +49 (0)69 - 43 05 61-90
mail: olivier.dobberkau@dkd.de
home: http://www.dkd.de
aktuelle TYPO3-Projekte:
www.licht.de - Relaunch (TYPO3)
www.lahmeyer.de - Launch (TYPO3)
www.seb-assetmanagement.de - Relaunch (TYPO3)