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 Xue-Feng Yang <ju...@yahoo.com> on 2011/07/26 19:13:41 UTC
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:
<abortOnConfigurationError>false</abortOnConfigurationError>
in solr.xml
-------------------------------------------------------------
java.security.AccessControlException: access denied (javax.management.MBeanServerPermission findMBeanServer)
.........
Any help is welcome.
Thanks
Re: Severe errors in solr configuration
Posted by Xue-Feng Yang <ju...@yahoo.com>.
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 <ra...@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 <ju...@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:
>
> <abortOnConfigurationError>false</abortOnConfigurationError>
>
> in solr.xml
>
> -------------------------------------------------------------
> java.security.AccessControlException: access denied
> (javax.management.MBeanServerPermission findMBeanServer)
>
> .........
>
> Any help is welcome.
>
> Thanks
Re: Severe errors in solr configuration
Posted by Kyle Lee <ra...@gmail.com>.
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 <ju...@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:
>
> <abortOnConfigurationError>false</abortOnConfigurationError>
>
> in solr.xml
>
> -------------------------------------------------------------
> java.security.AccessControlException: access denied
> (javax.management.MBeanServerPermission findMBeanServer)
>
> .........
>
> Any help is welcome.
>
> Thanks
Re: Severe errors in solr configuration
Posted by Chris Hostetter <ho...@fucit.org>.
: Subject: Severe errors in solr configuration
: References: <13...@n3.nabble.com>
: <8F...@USLVDCMBVP01.ingramcontent.com>
: <20...@openindex.io>
: <8F...@USLVDCMBVP01.ingramcontent.com>
: <13...@n3.nabble.com>
: <8F...@USLVDCMBVP01.ingramcontent.com>
: <13...@n3.nabble.com>
: <8F...@USLVDCMBVP01.ingramcontent.com>
: In-Reply-To:
: <8F0D0142CA7ECC4287A9EC1BD8CB880C17C6B0A1B4@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: Severe errors in solr configuration
Posted by Xue-Feng Yang <ju...@yahoo.com>.
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 <an...@atcult.it>
To: solr-user@lucene.apache.org; Xue-Feng Yang <ju...@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 <ju...@yahoo.com>
Date: Tue, 26 Jul 2011 10:13:41
To: solr-user@lucene.apache.org<so...@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:
<abortOnConfigurationError>false</abortOnConfigurationError>
in solr.xml
-------------------------------------------------------------
java.security.AccessControlException: access denied (javax.management.MBeanServerPermission findMBeanServer)
.........
Any help is welcome.
Thanks
Re: Severe errors in solr configuration
Posted by Andrea Gazzarini <an...@atcult.it>.
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 <ju...@yahoo.com>
Date: Tue, 26 Jul 2011 10:13:41
To: solr-user@lucene.apache.org<so...@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:
<abortOnConfigurationError>false</abortOnConfigurationError>
in solr.xml
-------------------------------------------------------------
java.security.AccessControlException: access denied (javax.management.MBeanServerPermission findMBeanServer)
.........
Any help is welcome.
Thanks
Re: Severe errors in solr configuration
Posted by Andrea Gazzarini <an...@atcult.it>.
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" <an...@atcult.it>
Date: Tue, 26 Jul 2011 18:24:48
To: <so...@lucene.apache.org>; Xue-Feng Yang<ju...@yahoo.com>
Reply-To: andrea.gazzarini@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 <ju...@yahoo.com>
Date: Tue, 26 Jul 2011 10:13:41
To: solr-user@lucene.apache.org<so...@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:
<abortOnConfigurationError>false</abortOnConfigurationError>
in solr.xml
-------------------------------------------------------------
java.security.AccessControlException: access denied (javax.management.MBeanServerPermission findMBeanServer)
.........
Any help is welcome.
Thanks