Re: need some help with a multicore config of solr3.6.0+tomcat7. mine reports: Severe errors in solr configuration.

2012-05-03 Thread Erick Erickson
Guessing from the message,
java.lang.RuntimeException: [solrconfig.xml]
   indexDefaults/mergePolicy: missing mandatory attribute 'class'


somewhere in your solr configs you have something like:

mergePolicy
  int name=maxMergeAtOnce10/int
  int name=segmentsPerTier10/int
/mergePolicy

rather than

mergePolicy class=org.apache.lucene.index.TieredMergePolicy
  int name=maxMergeAtOnce10/int
  int name=segmentsPerTier10/int
/mergePolicy

although I suppose this could be a misleading error message if, say, your
classpath is confused or some such...

Best
Erick

On Wed, May 2, 2012 at 5:38 PM, vybe3142 vybe3...@gmail.com wrote:
 I chronicled exactly what I had to configure to slay this dragon at
 http://vinaybalamuru.wordpress.com/2012/04/12/solr4-tomcat-multicor/

 Hope that helps

 --
 View this message in context: 
 http://lucene.472066.n3.nabble.com/need-some-help-with-a-multicore-config-of-solr3-6-0-tomcat7-mine-reports-Severe-errors-in-solr-confi-tp3957196p3957389.html
 Sent from the Solr - User mailing list archive at Nabble.com.


Re: need some help with a multicore config of solr3.6.0+tomcat7. mine reports: Severe errors in solr configuration.

2012-05-03 Thread locuse


On Wed, May 2, 2012, at 02:16 PM, Robert Petersen wrote:
 I don't know if this will help but I usually add a dataDir element to
 each cores solrconfig.xml to point at a local data folder for the core
 like this:

after a bit of digging, your suggestion PLUS a change to the 'lib dir'
specifications in each core's solrconfig.xml

vi solrconfig.xml

...
lib dir=./lib
lib dir=./contrib/extraction/lib
lib dir=./contrib/clustering/lib/
lib
dir=./contrib/velocity/lib
/lib
/lib
/lib
/lib
...
dataDir${solr.data.dir:/srv/www/solrbase/data}/dataDir
...

did the trick.  i've a multicore setup working now.  thanks!

tbh, i'm not at all sure why the *nested* lib ... stanza is used (i
just lifted it from an example I found online ...), but it seems to
work.


Re: need some help with a multicore config of solr3.6.0+tomcat7. mine reports: Severe errors in solr configuration.

2012-05-03 Thread Erick Erickson
I've never seen lib directives nested, I doubt they're necessary
and it's vaguely possible that this is not intentionally supported.

I'd try un-nesting them personally.

Best
Erick

On Thu, May 3, 2012 at 10:35 AM,  loc...@mm.st wrote:


 On Wed, May 2, 2012, at 02:16 PM, Robert Petersen wrote:
 I don't know if this will help but I usually add a dataDir element to
 each cores solrconfig.xml to point at a local data folder for the core
 like this:

 after a bit of digging, your suggestion PLUS a change to the 'lib dir'
 specifications in each core's solrconfig.xml

        vi solrconfig.xml

                ...
                lib dir=./lib
                        lib dir=./contrib/extraction/lib
                                lib dir=./contrib/clustering/lib/
                                        lib
                                        dir=./contrib/velocity/lib
                                        /lib
                                /lib
                        /lib
                /lib
                ...
                dataDir${solr.data.dir:/srv/www/solrbase/data}/dataDir
                ...

 did the trick.  i've a multicore setup working now.  thanks!

 tbh, i'm not at all sure why the *nested* lib ... stanza is used (i
 just lifted it from an example I found online ...), but it seems to
 work.


Re: need some help with a multicore config of solr3.6.0+tomcat7. mine reports: Severe errors in solr configuration.

2012-05-03 Thread locuse


On Thu, May 3, 2012, at 11:10 AM, Erick Erickson wrote:
 I've never seen lib directives nested, I doubt they're necessary
 and it's vaguely possible that this is not intentionally supported.
 
 I'd try un-nesting them personally.
 

changing to,

  lib dir=./lib/lib
  lib dir=./contrib/extraction/lib/lib
  lib dir=./contrib/clustering/lib//lib
  lib dir=./contrib/velocity/lib/lib

still works, doesn't appear to change any behavior -- detrimentally or
otherwise -- and makes more sens to me anyway.

sounds like 'a keeper'.

thanks.


need some help with a multicore config of solr3.6.0+tomcat7. mine reports: Severe errors in solr configuration.

2012-05-02 Thread locuse

i've installed tomcat7 and solr 3.6.0 on linux/64

i'm trying to get a single webapp + multicore setup working.  my efforts
have gone off the rails :-/ i suspect i've followed too many of the
wrong examples.

i'd appreciate some help/direction getting this working.

so far, i've configured

grep   /etc/tomcat7/server.xml -A2 -B2
 Java AJP  Connector: /docs/config/ajp.html
 APR (HTTP/AJP) Connector: /docs/apr.html
 Define a non-SSL HTTP/1.1 Connector on port
 
--
Connector port= protocol=HTTP/1.1
   connectionTimeout=2
   redirectPort=8443 /
--
!--
Connector executor=tomcatThreadPool
   port= protocol=HTTP/1.1
   connectionTimeout=2
   redirectPort=8443 /

cat /etc/tomcat7/Catalina/localhost/solr.xml
Context docBase=/srv/tomcat7/webapps/solr.war
debug=0 privileged=true allowLinking=true
crossContext=true 
Environment name=solr/home type=java.lang.String
value=/srv/www/solrbase override=true /
/Context

after tomcat restart,

ps ax | grep tomcat
 6129 pts/4Sl 0:06 /etc/alternatives/jre/bin/java
 -classpath
 
:/usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar
 -Dcatalina.base=/usr/share/tomcat7
 -Dcatalina.home=/usr/share/tomcat7 -Djava.endorsed.dirs=
 -Djava.io.tmpdir=/var/cache/tomcat7/temp
 
-Djava.util.logging.config.file=/usr/share/tomcat7/conf/logging.properties
 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
 org.apache.catalina.startup.Bootstrap start

if i nav to

 http://127.0.0.1:

i see as expected

 Server Information
  Tomcat Version   JVM VersionJVM Vendor OS Name
  OS Version OS Architecture
  Apache Tomcat/7.0.26 1.7.0_147-icedtea-b147 Oracle Corporation Linux  
  3.1.10-1.9-desktop amd64

now, i'm trying to set up multicore properly.  i configured,

cat /srv/www/solrbase/solr.xml
?xml version=1.0 encoding=UTF-8 ?
solr persistent=false
  cores adminPath=/admin/cores
core name=core0   instanceDir=core0  /
core name=core1   instanceDir=core1  /
  /cores
/solr

then

mkdir -p /srv/www/solrbase/{core0,core1}
cp -a/srv/www/solrbase/conf /srv/www/solrbase/core0/
cp -a/srv/www/solrbase/conf /srv/www/solrbase/core1/

if i nav to

http://localhost:/solr/core0

i get,

HTTP Status 500 - 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:
abortOnConfigurationErrorfalse/abortOnConfigurationError in
solr.xml
-
org.apache.solr.common.SolrException: No cores were created,
please check the logs for errors at

org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:172)
at

org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:96)
at

org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:277)
at

org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)
at

org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:382)
at

org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:103)
at

org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4638)
at

org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5294)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at

org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
at

org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
at

org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1581)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471

RE: need some help with a multicore config of solr3.6.0+tomcat7. mine reports: Severe errors in solr configuration.

2012-05-02 Thread Robert Petersen
I don't know if this will help but I usually add a dataDir element to
each cores solrconfig.xml to point at a local data folder for the core
like this:


!-- Used to specify an alternate directory to hold all index
data
   other than the default ./data under the Solr home.
   If replication is in use, this should match the replication
configuration. --
dataDir${solr.data.dir:./solr/core0/data}/dataDir


-Original Message-
From: loc...@mm.st [mailto:loc...@mm.st] 
Sent: Wednesday, May 02, 2012 1:06 PM
To: solr-user@lucene.apache.org
Subject: need some help with a multicore config of solr3.6.0+tomcat7.
mine reports: Severe errors in solr configuration.


i've installed tomcat7 and solr 3.6.0 on linux/64

i'm trying to get a single webapp + multicore setup working.  my efforts
have gone off the rails :-/ i suspect i've followed too many of the
wrong examples.

i'd appreciate some help/direction getting this working.

so far, i've configured

grep   /etc/tomcat7/server.xml -A2 -B2
 Java AJP  Connector: /docs/config/ajp.html
 APR (HTTP/AJP) Connector: /docs/apr.html
 Define a non-SSL HTTP/1.1 Connector on port
 
--
Connector port= protocol=HTTP/1.1
   connectionTimeout=2
   redirectPort=8443 /
--
!--
Connector executor=tomcatThreadPool
   port= protocol=HTTP/1.1
   connectionTimeout=2
   redirectPort=8443 /

cat /etc/tomcat7/Catalina/localhost/solr.xml
Context docBase=/srv/tomcat7/webapps/solr.war
debug=0 privileged=true allowLinking=true
crossContext=true 
Environment name=solr/home type=java.lang.String
value=/srv/www/solrbase override=true /
/Context

after tomcat restart,

ps ax | grep tomcat
 6129 pts/4Sl 0:06 /etc/alternatives/jre/bin/java
 -classpath

:/usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli
.jar:/usr/share/java/commons-daemon.jar
 -Dcatalina.base=/usr/share/tomcat7
 -Dcatalina.home=/usr/share/tomcat7 -Djava.endorsed.dirs=
 -Djava.io.tmpdir=/var/cache/tomcat7/temp

-Djava.util.logging.config.file=/usr/share/tomcat7/conf/logging.properti
es

-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
 org.apache.catalina.startup.Bootstrap start

if i nav to

 http://127.0.0.1:

i see as expected

 Server Information
  Tomcat Version   JVM VersionJVM Vendor OS Name
  OS Version OS Architecture
  Apache Tomcat/7.0.26 1.7.0_147-icedtea-b147 Oracle Corporation Linux  
  3.1.10-1.9-desktop amd64

now, i'm trying to set up multicore properly.  i configured,

cat /srv/www/solrbase/solr.xml
?xml version=1.0 encoding=UTF-8 ?
solr persistent=false
  cores adminPath=/admin/cores
core name=core0   instanceDir=core0  /
core name=core1   instanceDir=core1  /
  /cores
/solr

then

mkdir -p /srv/www/solrbase/{core0,core1}
cp -a/srv/www/solrbase/conf /srv/www/solrbase/core0/
cp -a/srv/www/solrbase/conf /srv/www/solrbase/core1/

if i nav to

http://localhost:/solr/core0

i get,

HTTP Status 500 - 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:
abortOnConfigurationErrorfalse/abortOnConfigurationError in
solr.xml
-
org.apache.solr.common.SolrException: No cores were created,
please check the logs for errors at

org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.
java:172)
at

org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:
96)
at

org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationF
ilterConfig.java:277)
at

org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFi
lterConfig.java:258)
at

org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applicatio
nFilterConfig.java:382)
at

org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilte
rConfig.java:103)
at

org.apache.catalina.core.StandardContext.filterStart(StandardContext.jav
a:4638)
at

org.apache.catalina.core.StandardContext.startInternal(StandardContext.j
ava:5294

Re: need some help with a multicore config of solr3.6.0+tomcat7. mine reports: Severe errors in solr configuration.

2012-05-02 Thread vybe3142
I chronicled exactly what I had to configure to slay this dragon at
http://vinaybalamuru.wordpress.com/2012/04/12/solr4-tomcat-multicor/

Hope that helps

--
View this message in context: 
http://lucene.472066.n3.nabble.com/need-some-help-with-a-multicore-config-of-solr3-6-0-tomcat7-mine-reports-Severe-errors-in-solr-confi-tp3957196p3957389.html
Sent from the Solr - User mailing list archive at Nabble.com.


Severe errors in solr configuration

2011-07-26 Thread Xue-Feng Yang
Hi all,

I'm new to solr. 

I installed solr 3.3 with glassfish 3.1 in ubuntu 10.4.

It works fine until I set security manager in glassfish since I don't want to 
everyone can reach the solr's admin page. The error message was as follows.

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: 

 abortOnConfigurationErrorfalse/abortOnConfigurationError

in solr.xml

-
java.security.AccessControlException: access denied 
(javax.management.MBeanServerPermission findMBeanServer)

.

Any help is welcome.

Thanks

Re: Severe errors in solr configuration

2011-07-26 Thread Kyle Lee
Could you provide the relevant sections of the logs pertaining to this
error?

On Tue, Jul 26, 2011 at 12:13 PM, Xue-Feng Yang just4l...@yahoo.com wrote:

 Hi all,

 I'm new to solr.

 I installed solr 3.3 with glassfish 3.1 in ubuntu 10.4.

 It works fine until I set security manager in glassfish since I don't want
 to everyone can reach the solr's admin page. The error message was as
 follows.

 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:

  abortOnConfigurationErrorfalse/abortOnConfigurationError

 in solr.xml

 -
 java.security.AccessControlException: access denied
 (javax.management.MBeanServerPermission findMBeanServer)

 .

 Any help is welcome.

 Thanks


Re: Severe errors in solr configuration

2011-07-26 Thread Xue-Feng Yang
Here is the message from server.log

[#|2011-07-26T12:17:37.591-0400|SEVERE|glassfish3.1|org.apache.solr.core.CoreContainer|_ThreadID=10;_ThreadName=Thread-1;|java.security.AccessControlException:
 access denied (javax.management.MBeanServerPermission findMBeanServer)
    at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)
    at java.security.AccessController.checkPermission(AccessController.java:546)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
    at 
javax.management.MBeanServerFactory.checkPermission(MBeanServerFactory.java:393)
    at 
javax.management.MBeanServerFactory.findMBeanServer(MBeanServerFactory.java:343)
    at org.apache.solr.core.JmxMonitoredMap.init(JmxMonitoredMap.java:70)
    at org.apache.solr.core.SolrCore.init(SolrCore.java:532)
    at org.apache.solr.core.CoreContainer.create(CoreContainer.java:463)
    at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316)
    at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207)
    at 
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130)
    at 
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94)
    at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
    at 
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:120)
    at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4625)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:5316)
    at com.sun.enterprise.web.WebModule.start(WebModule.java:500)
    at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
    at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:148)
    at 
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:170)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:899)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:755)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1980)
    at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1630)
    at com.sun.enterprise.web.WebApplication.start(WebApplication.java:100)
    at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
    at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
    at 
org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)
    at 
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
    at 
com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:364)
    at 
com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:208)
    at 
com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
    at 
com.sun.hk2.component.ConstructorCreator$1.run(ConstructorCreator.java:86)
    at java.security.AccessController.doPrivileged(Native Method)
    at 
com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:83)
    at 
com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
    at 
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
    at 
com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
    at 
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
    at 
com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:243)
    at 
com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:135)
    at 
com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)
    at 
com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:117)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at 
com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
    at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)
|#]





From: Kyle Lee randall.kyle@gmail.com
To: solr-user@lucene.apache.org
Sent: Tuesday, July 26, 2011 1:50:54 PM
Subject: Re: Severe errors in solr configuration

Could you provide the relevant sections of the logs pertaining to this
error?

On Tue, Jul 26, 2011 at 12:13 PM, Xue-Feng Yang just4l...@yahoo.com wrote:

 Hi all,

 I'm new to solr.

 I installed solr 3.3 with glassfish 3.1 in ubuntu 10.4.

 It works fine until I set security manager in glassfish since I don't want
 to everyone can reach the solr's admin page

Re: Severe errors in solr configuration

2011-07-26 Thread Andrea Gazzarini
I don't know glassfish; the error you're reporting is a low-level security 
exception (method access) and doesn't seem to be related with web application 
(JAAS) security.

Did you change the web.xml of solr war for including security constraints, 
security collections, login-config, roles and so on?

But again...I don't know 
-Original Message-
From: Xue-Feng Yang just4l...@yahoo.com
Date: Tue, 26 Jul 2011 10:13:41 
To: solr-user@lucene.apache.orgsolr-user@lucene.apache.org
Reply-To: solr-user@lucene.apache.org
Subject: Severe errors in solr configuration

Hi all,

I'm new to solr. 

I installed solr 3.3 with glassfish 3.1 in ubuntu 10.4.

It works fine until I set security manager in glassfish since I don't want to 
everyone can reach the solr's admin page. The error message was as follows.

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: 

 abortOnConfigurationErrorfalse/abortOnConfigurationError

in solr.xml

-
java.security.AccessControlException: access denied 
(javax.management.MBeanServerPermission findMBeanServer)

.

Any help is welcome.

Thanks


Re: Severe errors in solr configuration

2011-07-26 Thread Andrea Gazzarini
Sorry, my previous email has been truncated.

Setting a security for a web application has nothing to do with security 
manager, which is something related with jvm and low level permission

(Continue from the previous email)

But anyway, i don't know glassfish and how its security config is working.

Doing that in Jboss or tomcat is very simple.

Regards,
Andrea  


-Original Message-
From: Andrea Gazzarini andrea.gazzar...@atcult.it
Date: Tue, 26 Jul 2011 18:24:48 
To: solr-user@lucene.apache.org; Xue-Feng Yangjust4l...@yahoo.com
Reply-To: andrea.gazzar...@atcult.it
Subject: Re: Severe errors in solr configuration

I don't know glassfish; the error you're reporting is a low-level security 
exception (method access) and doesn't seem to be related with web application 
(JAAS) security.

Did you change the web.xml of solr war for including security constraints, 
security collections, login-config, roles and so on?

But again...I don't know 
-Original Message-
From: Xue-Feng Yang just4l...@yahoo.com
Date: Tue, 26 Jul 2011 10:13:41 
To: solr-user@lucene.apache.orgsolr-user@lucene.apache.org
Reply-To: solr-user@lucene.apache.org
Subject: Severe errors in solr configuration

Hi all,

I'm new to solr. 

I installed solr 3.3 with glassfish 3.1 in ubuntu 10.4.

It works fine until I set security manager in glassfish since I don't want to 
everyone can reach the solr's admin page. The error message was as follows.

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: 

 abortOnConfigurationErrorfalse/abortOnConfigurationError

in solr.xml

-
java.security.AccessControlException: access denied 
(javax.management.MBeanServerPermission findMBeanServer)

.

Any help is welcome.

Thanks


Re: Severe errors in solr configuration

2011-07-26 Thread Xue-Feng Yang


No, I don't have any info to setup this for solr with glassfish. If anyone has 
such a doc for any other application server, such as tomcat, that would be a 
great help.




From: Andrea Gazzarini andrea.gazzar...@atcult.it
To: solr-user@lucene.apache.org; Xue-Feng Yang just4l...@yahoo.com
Sent: Tuesday, July 26, 2011 2:24:48 PM
Subject: Re: Severe errors in solr configuration

I don't know glassfish; the error you're reporting is a low-level security 
exception (method access) and doesn't seem to be related with web application 
(JAAS) security.

Did you change the web.xml of solr war for including security constraints, 
security collections, login-config, roles and so on?

But again...I don't know 
-Original Message-
From: Xue-Feng Yang just4l...@yahoo.com
Date: Tue, 26 Jul 2011 10:13:41 
To: solr-user@lucene.apache.orgsolr-user@lucene.apache.org
Reply-To: solr-user@lucene.apache.org
Subject:
 Severe errors in solr configuration

Hi all,

I'm new to solr. 

I installed solr 3.3 with glassfish 3.1 in ubuntu 10.4.

It works fine until I set security manager in glassfish since I don't want to 
everyone can reach the solr's admin page. The error message was as follows.

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: 

abortOnConfigurationErrorfalse/abortOnConfigurationError

in solr.xml

-
java.security.AccessControlException: access denied 
(javax.management.MBeanServerPermission findMBeanServer)

.

Any help is welcome.

Thanks

Re: Severe errors in solr configuration

2011-07-26 Thread Chris Hostetter

: Subject: Severe errors in solr configuration
: References: 1311383488148-3192748.p...@n3.nabble.com
:  8f0d0142ca7ecc4287a9ec1bd8cb880c17c6a26...@uslvdcmbvp01.ingramcontent.com
:  201107251713.22614.markus.jel...@openindex.io
:  8f0d0142ca7ecc4287a9ec1bd8cb880c17c6a27...@uslvdcmbvp01.ingramcontent.com
:  1311689197416-3200418.p...@n3.nabble.com
:  8f0d0142ca7ecc4287a9ec1bd8cb880c17c6b09...@uslvdcmbvp01.ingramcontent.com
:  1311698218009-3200846.p...@n3.nabble.com
:  8f0d0142ca7ecc4287a9ec1bd8cb880c17c6b0a...@uslvdcmbvp01.ingramcontent.com
: In-Reply-To:
: 8f0d0142ca7ecc4287a9ec1bd8cb880c17c6b0a...@uslvdcmbvp01.ingramcontent.com
: 


http://people.apache.org/~hossman/#threadhijack
Thread Hijacking on Mailing Lists

When starting a new discussion on a mailing list, please do not reply to 
an existing message, instead start a fresh email.  Even if you change the 
subject line of your email, other mail headers still track which thread 
you replied to and your question is hidden in that thread and gets less 
attention.   It makes following discussions in the mailing list archives 
particularly difficult.


-Hoss


Re: HTTP Status 500 - Severe errors in solr configuration change: abortOnConfigurationErrorfalse/abortOnConfigurationError in null ------------------------------------------------------------- org

2011-04-01 Thread jim
 Many thanks. the problem was solved with your help~~~

--
View this message in context: 
http://lucene.472066.n3.nabble.com/HTTP-Status-500-Severe-errors-in-solr-configuration-change-abortOnConfigurationError-false-abortOnCo6-tp2757494p2762692.html
Sent from the Solr - User mailing list archive at Nabble.com.


HTTP Status 500 - Severe errors in solr configuration change: abortOnConfigurationErrorfalse/abortOnConfigurationError in null ------------------------------------------------------------- org.xml

2011-03-31 Thread jim
hi all,
I used ubuntu 10.10 ,I'm trying to get solr 1.4up andrunning,with no
success. i have fllowed this
http://ubuntuforums.org/showthread.php?t=1532230 to run my solr,
but there has  error as:

HTTP Status 500 - 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: false in null
-
org.xml.sax.SAXParseException; lineNumber: 1036; columnNumber: 2; The markup
in the document following the root element must be well-formed. at
com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:253)
at
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:288)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121) at
org.apache.solr.core.Config.(Config.java:110) at
org.apache.solr.core.SolrConfig.(SolrConfig.java:130) at
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:134)
at
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
at
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:115)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4001)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4651)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498) at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at
org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445) at
org.apache.catalina.core.StandardService.start(StandardService.java:519) at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at
org.apache.catalina.startup.Catalina.start(Catalina.java:581) 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:289) at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) 


any body know how to do?thanks

--
View this message in context: 
http://lucene.472066.n3.nabble.com/HTTP-Status-500-Severe-errors-in-solr-configuration-change-abortOnConfigurationError-false-abortOnCo6-tp2757493p2757493.html
Sent from the Solr - User mailing list archive at Nabble.com.


HTTP Status 500 - Severe errors in solr configuration change: abortOnConfigurationErrorfalse/abortOnConfigurationError in null ------------------------------------------------------------- org.xml

2011-03-31 Thread jim
hi all,
I used ubuntu 10.10 ,I'm trying to get solr 1.4up andrunning,with no
success. i have fllowed this
http://ubuntuforums.org/showthread.php?t=1532230 to run my solr,
but there has  error as:

HTTP Status 500 - 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: false in null
-
org.xml.sax.SAXParseException; lineNumber: 1036; columnNumber: 2; The markup
in the document following the root element must be well-formed. at
com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:253)
at
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:288)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121) at
org.apache.solr.core.Config.(Config.java:110) at
org.apache.solr.core.SolrConfig.(SolrConfig.java:130) at
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:134)
at
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
at
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:115)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4001)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4651)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498) at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at
org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445) at
org.apache.catalina.core.StandardService.start(StandardService.java:519) at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at
org.apache.catalina.startup.Catalina.start(Catalina.java:581) 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:289) at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) 


any body know how to do?thanks

--
View this message in context: 
http://lucene.472066.n3.nabble.com/HTTP-Status-500-Severe-errors-in-solr-configuration-change-abortOnConfigurationError-false-abortOnCo6-tp2757494p2757494.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: HTTP Status 500 - Severe errors in solr configuration change: abortOnConfigurationErrorfalse/abortOnConfigurationError in null ------------------------------------------------------------- org

2011-03-31 Thread Erick Erickson
At a guess, you've somehow changed one of the configuration
files and made it into invalid XML. Try opening the configuration
XMLs in an application that checks for well-formedness
and/or look at the line in the XML file indicated and see if there's
anything that jumps out at you...

Or just replace the whole directory if you haven't made any
changes to it. It's always possible this is a random error.

Best
Erick

On Thu, Mar 31, 2011 at 3:51 AM, jim guoru...@sohu.com wrote:
 hi all,
 I used ubuntu 10.10 ,I'm trying to get solr 1.4up andrunning,with no
 success. i have fllowed this
 http://ubuntuforums.org/showthread.php?t=1532230 to run my solr,
 but there has  error as:

 HTTP Status 500 - 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: false in null
 -
 org.xml.sax.SAXParseException; lineNumber: 1036; columnNumber: 2; The markup
 in the document following the root element must be well-formed. at
 com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:253)
 at
 com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:288)
 at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121) at
 org.apache.solr.core.Config.(Config.java:110) at
 org.apache.solr.core.SolrConfig.(SolrConfig.java:130) at
 org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:134)
 at
 org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
 at
 org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
 at
 org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
 at
 org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:115)
 at
 org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4001)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4651)
 at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) at
 org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
 at
 org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498) at
 org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445) at
 org.apache.catalina.core.StandardService.start(StandardService.java:519) at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at
 org.apache.catalina.startup.Catalina.start(Catalina.java:581) 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:289) at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)


 any body know how to do?thanks

 --
 View this message in context: 
 http://lucene.472066.n3.nabble.com/HTTP-Status-500-Severe-errors-in-solr-configuration-change-abortOnConfigurationError-false-abortOnCo6-tp2757493p2757493.html
 Sent from the Solr - User mailing list archive at Nabble.com.



Re: HTTP Status 500 - Severe errors in solr configuration change: abortOnConfigurationErrorfalse/abortOnConfigurationError in null ------------------------------------------------------------- org

2011-03-31 Thread jim
i need help

--
View this message in context: 
http://lucene.472066.n3.nabble.com/HTTP-Status-500-Severe-errors-in-solr-configuration-change-abortOnConfigurationError-false-abortOnCo6-tp2757494p2761679.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: HTTP Status 500 - Severe errors in solr configuration change: abortOnConfigurationErrorfalse/abortOnConfigurationError in null ------------------------------------------------------------- org

2011-03-31 Thread jim
Thanks . I'll check it. but i don't know how to get the right solr
configuration

--
View this message in context: 
http://lucene.472066.n3.nabble.com/HTTP-Status-500-Severe-errors-in-solr-configuration-change-abortOnConfigurationError-false-abortOnCo6-tp2757493p2761753.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: HTTP Status 500 - Severe errors in solr configuration change: abortOnConfigurationErrorfalse/abortOnConfigurationError in null ------------------------------------------------------------- org

2011-03-31 Thread Marcelo Iturbe
Hello,
The error message states:
The markup in the document following the root element must be well-formed

Which means that one of your XML files is broken (invalid). It might be the
solrconfig.xml file.

Check the structure of these files, open them in a browser which checks for
XML structure (such as Firefox or IE I think) and go from there.

Hope this helps


On Thu, Mar 31, 2011 at 10:33 PM, jim guoru...@sohu.com wrote:

 i need help

 --
 View this message in context:
 http://lucene.472066.n3.nabble.com/HTTP-Status-500-Severe-errors-in-solr-configuration-change-abortOnConfigurationError-false-abortOnCo6-tp2757494p2761679.html
 Sent from the Solr - User mailing list archive at Nabble.com.



Re: HTTP Status 500 - Severe errors in solr configuration change: abortOnConfigurationErrorfalse/abortOnConfigurationError in null ------------------------------------------------------------- org

2011-03-31 Thread jim
I open it  buy Firefox,and find the mistake. when correct the mistake. There
still has the error as:
HTTP Status 500 - 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: false in null
-
org.apache.solr.common.SolrException: invalid boolean value: at
org.apache.solr.common.util.StrUtils.parseBool(StrUtils.java:237) at
org.apache.solr.common.util.DOMUtil.addToNamedList(DOMUtil.java:140) at
org.apache.solr.common.util.DOMUtil.nodesToNamedList(DOMUtil.java:98) at
org.apache.solr.common.util.DOMUtil.childNodesToNamedList(DOMUtil.java:88)
at org.apache.solr.common.util.DOMUtil.addToNamedList(DOMUtil.java:142) at
org.apache.solr.common.util.DOMUtil.nodesToNamedList(DOMUtil.java:98) at
org.apache.solr.common.util.DOMUtil.childNodesToNamedList(DOMUtil.java:88)
at org.apache.solr.core.PluginInfo.(PluginInfo.java:54) at
org.apache.solr.core.SolrConfig.readPluginInfos(SolrConfig.java:220) at
org.apache.solr.core.SolrConfig.loadPluginInfo(SolrConfig.java:212) at
org.apache.solr.core.SolrConfig.(SolrConfig.java:184) at
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:134)
at
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
at
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:115)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4001)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4651)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498) at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at
org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445) at
org.apache.catalina.core.StandardService.start(StandardService.java:519) at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at
org.apache.catalina.startup.Catalina.start(Catalina.java:581) 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:289) at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) 


i need help

--
View this message in context: 
http://lucene.472066.n3.nabble.com/HTTP-Status-500-Severe-errors-in-solr-configuration-change-abortOnConfigurationError-false-abortOnCo6-tp2757494p2762082.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Severe errors in solr configuration

2009-02-09 Thread Chris Hostetter


: Subject: Severe errors in solr configuration

It sounds like you solved your problem, but a few things to clarify for 
people who might find this thread later...

: java.security.AccessControlException: access denied (java.io.FilePermission
: /var/lib/tomcat6/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
: [...snip...]

this error is caused by the security manager settings of your JVM. an 
exception like this can occur anytime code attempts to find out if a file 
exists.

: There is no solr.xml in /var/lib/tomcat6/solr/ (which is the example solr
: home directory provided).  However, I did set the solr home with JDNI, under
: 
: /var/lib/tomcat6/conf/Catalina/localhost/solr.xml, which reads:
: 
: Context docBase=/var/lib/tomcat6/solr.war

...this is a tomcat context file, named solr.xml because you want tomcat 
to refer to the application as solr ... that's different from the 
(optional) solr.xml file that solr looks for in your Solr Home Dir to see 
if you want to run multiple cores.

in this specific case, it sounds like the tomcat context file wasn't where 
tomcat was looking for it, so the JNDI properties were never getting set, 
so Solr was attempting to use the current working directory (which it 
didn't have permissions to read)

(I'm betting that just before this AccessControlException, solr logged a 
message indicating that it couldn't determing the Solr Home Dir using 
system properties or JNDI)



-Hoss



RE: Severe errors in solr configuration

2009-02-05 Thread Anto Binish Kaspar
No I dint solve my problem. Please help me out :) 

- Anto Binish Kaspar

-Original Message-
From: Olivier Dobberkau [mailto:olivier.dobber...@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.dobber...@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

2009-02-05 Thread Anto Binish Kaspar
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: 
abortOnConfigurationErrorfalse/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:antobin...@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.dobber...@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.dobber...@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

2009-02-05 Thread Olivier Dobberkau


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.dobber...@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

2009-02-05 Thread Anto Binish Kaspar
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.dobber...@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.dobber...@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

2009-02-05 Thread Anto Binish Kaspar
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:antobin...@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.dobber...@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.dobber...@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

2009-02-05 Thread Anto Binish Kaspar
Hi David

I found a solution for your problem. I have explained it  here 
http://www.nabble.com/RE%3A-Severe-errors-in-solr-configuration-p21853756.html 
. Hope it will help you.

Regards
Anto Binish Kaspar,
Acting Team Lead,
E.C Software.


-Original Message-
From: David Trainor [mailto:trai...@gmail.com] 
Sent: Thursday, February 05, 2009 10:42 AM
To: solr-user@lucene.apache.org
Subject: Severe errors in solr configuration

Hello,

I am running Ubuntu 8.10, with Tomcat 6.0.18 installed via the package
manager, and I am trying to get Solr 1.3.0 up and running, with no success.
I believe I am having the same problem described here:

http://www.nabble.com/Severe-errors-in-solr-configuration-td21829562.html

When I attempt to access solr/admin on the web server, I am greeted with the
following exception:

HTTP Status 500 - 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:
abortOnConfigurationErrorfalse/abortOnConfigurationError in null
-
java.security.AccessControlException: access denied (java.io.FilePermission
/var/lib/tomcat6/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
[...snip...]

There is no solr.xml in /var/lib/tomcat6/solr/ (which is the example solr
home directory provided).  However, I did set the solr home with JDNI, under

/var/lib/tomcat6/conf/Catalina/localhost/solr.xml, which reads:

Context docBase=/var/lib/tomcat6/solr.war
 debug=0
 crossContext=true 
Environment name=solr/home type=java.lang.String
  value=/var/lib/tomcat6/solr override=true /
/Context

I am kind of at my wits end (and to make matters worse, I am new to Tomcat
as well as solr).  Can anybody supply any hints to get this baby up and
running?  If I have omitted any vital information, please just let me know.

Best regards,

Dave.


Re: Severe errors in solr configuration

2009-02-05 Thread David Trainor
Thanks Anto!  That indeed solves the problem.

Best regards,

Dave.


On Thu, Feb 5, 2009 at 10:40 AM, Anto Binish Kaspar antobin...@ec.iswrote:

 Hi David

 I found a solution for your problem. I have explained it  here
 http://www.nabble.com/RE%3A-Severe-errors-in-solr-configuration-p21853756.html.
  Hope it will help you.

 Regards
 Anto Binish Kaspar,
 Acting Team Lead,
 E.C Software.



Severe errors in solr configuration

2009-02-04 Thread 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.


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: 
abortOnConfigurationErrorfalse/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

2009-02-04 Thread Olivier Dobberkau


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.dobber...@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

2009-02-04 Thread Anto Binish Kaspar
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.dobber...@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.dobber...@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

2009-02-04 Thread Olivier Dobberkau


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.dobber...@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

2009-02-04 Thread Anto Binish Kaspar
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.dobber...@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.dobber...@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

2009-02-04 Thread Olivier Dobberkau

A slash?

Olivier

Von meinem iPhone gesendet


Am 04.02.2009 um 14:06 schrieb Anto Binish Kaspar antobin...@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.dobber...@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.dobber...@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

2009-02-04 Thread Anto Binish Kaspar
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: 
abortOnConfigurationErrorfalse/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.dobber...@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 antobin...@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.dobber...@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

Re: Severe errors in solr configuration

2009-02-04 Thread Shalin Shekhar Mangar
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 antobin...@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:
 abortOnConfigurationErrorfalse/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.dobber...@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 antobin...@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

RE: Severe errors in solr configuration

2009-02-04 Thread Anto Binish Kaspar
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:shalinman...@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 antobin...@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:
 abortOnConfigurationErrorfalse/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.dobber...@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 antobin...@ec.is:

  I am using Context file, here is my solr.xml
 
  $ cat /var/lib/tomcat6/conf/Catalina/localhost/solr.xml
 
  Context

Re: Severe errors in solr configuration

2009-02-04 Thread Olivier Dobberkau


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.dobber...@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)


Severe errors in solr configuration

2009-02-04 Thread David Trainor
Hello,

I am running Ubuntu 8.10, with Tomcat 6.0.18 installed via the package
manager, and I am trying to get Solr 1.3.0 up and running, with no success.
I believe I am having the same problem described here:

http://www.nabble.com/Severe-errors-in-solr-configuration-td21829562.html

When I attempt to access solr/admin on the web server, I am greeted with the
following exception:

HTTP Status 500 - 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:
abortOnConfigurationErrorfalse/abortOnConfigurationError in null
-
java.security.AccessControlException: access denied (java.io.FilePermission
/var/lib/tomcat6/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
[...snip...]

There is no solr.xml in /var/lib/tomcat6/solr/ (which is the example solr
home directory provided).  However, I did set the solr home with JDNI, under

/var/lib/tomcat6/conf/Catalina/localhost/solr.xml, which reads:

Context docBase=/var/lib/tomcat6/solr.war
 debug=0
 crossContext=true 
Environment name=solr/home type=java.lang.String
  value=/var/lib/tomcat6/solr override=true /
/Context

I am kind of at my wits end (and to make matters worse, I am new to Tomcat
as well as solr).  Can anybody supply any hints to get this baby up and
running?  If I have omitted any vital information, please just let me know.

Best regards,

Dave.