首页 \ 问答 \ 为什么不能使用CentOS,plesk 9.2.1和tomcat 5.5来安装solr 1.3.0?(Why can't solr 1.3.0 install using CentOS, plesk 9.2.1 and tomcat 5.5?)

为什么不能使用CentOS,plesk 9.2.1和tomcat 5.5来安装solr 1.3.0?(Why can't solr 1.3.0 install using CentOS, plesk 9.2.1 and tomcat 5.5?)

好的,我只是通过他的托管服务提供商为我的客户设置专用服务器。 他们在那里安装了plesk(版本9.2.1),这个专用服务器的一个注意事项是,如果我在控制面板外面做任何事情(即使用SSH)进行任何任务,他们不保证支持该软件组件。 这很好,因为我宁愿使用控制面板来完成它,因为我所要做的就是上传一个war文件来安装servlet。

这是问题,但是在安装最新版本的solr(1.3.0)后,我在plesk中收到了一个警告图标,它给了我一个模糊的错误,例如“应用程序的实际状态与从数据库中检索到的状态不对应。 “

这是日志条目:

Aug 17, 2009 11:16:15 PM org.apache.solr.servlet.SolrDispatchFilter init
INFO: SolrDispatchFilter.init()
Aug 17, 2009 11:16:15 PM org.apache.solr.core.SolrResourceLoader
locateInstanceDir
INFO: Using JNDI solr.home: /usr/share/solr
Aug 17, 2009 11:16:15 PM
org.apache.solr.core.CoreContainer$Initializer initialize
INFO: looking for solr.xml: /usr/share/solr/solr.xml
Aug 17, 2009 11:16:15 PM org.apache.solr.core.SolrResourceLoader <init>
INFO: Solr home set to '/usr/share/solr/'
Aug 17, 2009 11:16:15 PM org.apache.solr.core.SolrResourceLoader
createClassLoader
INFO: Reusing parent classloader
Aug 17, 2009 11:16:15 PM org.apache.solr.servlet.SolrDispatchFilter init
SEVERE: Could not start SOLR. Check solr/home property
java.lang.ExceptionInInitializerError
       at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:117)
       at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:69)
       at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221)
       at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)
       at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
       at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
       at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
       at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
       at org.apache.catalina.core.StandardService.start(StandardService.java:448)
       at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
       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:295)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.lang.RuntimeException: XPathFactory#newInstance()
failed to create an XPathFactory for the default object model:
http://java.sun.com/jaxp/xpath/dom with the
XPathFactoryConfigurationException:
javax.xml.xpath.XPathFactoryConfigurationException: No XPathFctory
implementation found for the object model:
http://java.sun.com/jaxp/xpath/dom
       at javax.xml.xpath.XPathFactory.newInstance(Unknown Source)
       at org.apache.solr.core.Config.<clinit>(Config.java:41)
       ... 20 more
Aug 17, 2009 11:16:15 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter SolrRequestFilter
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.solr.core.SolrConfig
       at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:76)
       at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221)
       at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)
       at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
       at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
       at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
       at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
       at org.apache.catalina.core.StandardService.start(StandardService.java:448)
       at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
       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:295)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Aug 17, 2009 11:16:15 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Aug 17, 2009 11:16:15 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/solr] startup failed due to previous errors

solr / home目录存在,为什么solr抱怨这个?


Ok I just setup a dedicated server for my client through his hosting provider. They have plesk installed on there (version 9.2.1) and one of the caveats of this dedicated server is that if i do anything OUTSIDE of the control panel (i.e. use SSH) for any task they do not guarantee support for that software component. That's fine because I would rather use the control panel to do it anyway since all i have to do is upload a war file to install the servlet.

Here is the issue though, after installing the latest version of solr (1.3.0) I got a warning icon in plesk and it gave me a vague error like "Actual status of the application does not correspond to the status retrieved from the database."

Here is the log entry:

Aug 17, 2009 11:16:15 PM org.apache.solr.servlet.SolrDispatchFilter init
INFO: SolrDispatchFilter.init()
Aug 17, 2009 11:16:15 PM org.apache.solr.core.SolrResourceLoader
locateInstanceDir
INFO: Using JNDI solr.home: /usr/share/solr
Aug 17, 2009 11:16:15 PM
org.apache.solr.core.CoreContainer$Initializer initialize
INFO: looking for solr.xml: /usr/share/solr/solr.xml
Aug 17, 2009 11:16:15 PM org.apache.solr.core.SolrResourceLoader <init>
INFO: Solr home set to '/usr/share/solr/'
Aug 17, 2009 11:16:15 PM org.apache.solr.core.SolrResourceLoader
createClassLoader
INFO: Reusing parent classloader
Aug 17, 2009 11:16:15 PM org.apache.solr.servlet.SolrDispatchFilter init
SEVERE: Could not start SOLR. Check solr/home property
java.lang.ExceptionInInitializerError
       at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:117)
       at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:69)
       at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221)
       at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)
       at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
       at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
       at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
       at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
       at org.apache.catalina.core.StandardService.start(StandardService.java:448)
       at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
       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:295)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.lang.RuntimeException: XPathFactory#newInstance()
failed to create an XPathFactory for the default object model:
http://java.sun.com/jaxp/xpath/dom with the
XPathFactoryConfigurationException:
javax.xml.xpath.XPathFactoryConfigurationException: No XPathFctory
implementation found for the object model:
http://java.sun.com/jaxp/xpath/dom
       at javax.xml.xpath.XPathFactory.newInstance(Unknown Source)
       at org.apache.solr.core.Config.<clinit>(Config.java:41)
       ... 20 more
Aug 17, 2009 11:16:15 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter SolrRequestFilter
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.solr.core.SolrConfig
       at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:76)
       at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221)
       at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)
       at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
       at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
       at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
       at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
       at org.apache.catalina.core.StandardService.start(StandardService.java:448)
       at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
       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:295)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Aug 17, 2009 11:16:15 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Aug 17, 2009 11:16:15 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/solr] startup failed due to previous errors

The solr/home directory exists, so why is solr complaining about this?


原文:https://stackoverflow.com/questions/1280548
更新时间:2022-08-22 07:08

最满意答案

仔细看看你的代码,我的猜测是“WeekForward()”被调用的次数比你想要的要频繁,并且你每次调用它时都会订阅FadeTitleOut.Completed(因此你所描述的行为)。 修复此问题的一种方法是将此代码放在其他地方,这样它只能订阅一次Completed事件。

此外,您应该触发Begin方法之前编写事件因为您有潜在的竞争条件。 例如,

    FadeTitleOut.Completed += delegate
    {

        StartingMonday = StartingMonday.AddDays(7);
        BuildPage();
        FadeTitleIn.Begin();
    }; 

    FadeTitleOut.Begin();

将此代码放在XAML页面生命周期中将被触发一次的位置,它应该没问题。 希望有所帮助。


Have a look through your code, my guess is that "WeekForward()" is getting called more often than you want it to and you are subscribing the FadeTitleOut.Completed each time it is called (hence the behaviour you are describing). One way to fix this would be to have this code else where so it only subscribed to the Completed event once.

Also, you should write up your events before firing the Begin method as you have a potential race condition. eg,

    FadeTitleOut.Completed += delegate
    {

        StartingMonday = StartingMonday.AddDays(7);
        BuildPage();
        FadeTitleIn.Begin();
    }; 

    FadeTitleOut.Begin();

Put this code where it will be fired once during the life of the XAML page and it should be fine. Hope that helps.

相关问答

更多
  • 根据您的描述,您将IsReadOnly设置为true,但这不会使控件进入Disabled状态。 您应该将IsEnabled设置为False。 你能试一试吗? 不知道这是否有效...在你的PickerBoxButton的构造函数中,做 this.IsEnabledChanged += (s, e) => { if ((bool)e.NewValue) VisualStateManager.GoToState((PickerBoxButton)s, "Di ...
  • 如何组织应用程序结构,选择合适的方法。 那么,MVVM在使用Windows Phone时总是很受欢迎。 任何良好的清洁结构,遵循固体原则将会很好。 Windows Phone 8将支持新的C#5.0语言功能,因此如果您有很多异步代码,请考虑使用适用于Windows Phone 7的Windows Phone任务并行库 ,因为所有返回任务的调用都将支持C#5.0中的新await运算符。 Windows Phone 8中最重要的变化是新的更好的控制。 如果你想用相同的代码库支持这两个平台,你想尝试尽可能地从应用 ...
  • 如果我遇到你的问题, 这是我的答案。 XNA没有页面的概念。 如果您需要“导航”,则必须在WP7项目中使用Silverlight。 否则,如果你不能使用Silverlight,你必须实现你的“页面”类来管理你需要的东西(按钮和检测触摸),然后,当你想要启动GamePage你只需要调用它,隐藏或停用菜单课。 当然,每个页面都必须从DrawableGameComponent继承。 If I get your problem, here is my answer. XNA hasn't the concept o ...
  • 您的依赖项属性定义不明确。 您应该使用SetValue和GetValue: public Point OriginOffset { get { return (Point)GetValue(OriginOffsetProperty); } set { SetValue(OriginOffsetProperty, value); } } 然后向依赖项属性的PropertyMetadata添加一个回调,以设置边距: public static r ...
  • 根据设计,WP7没有可用的同步网络API。 这有助于通过不阻止UI线程来保持应用程序的响应。 您将需要使用异步API,例如WebClient::BeginDownloadString() 。 您应该将应用程序设计为异步工作,但是如果您真的必须,应该相对容易地在同步等待结果的方法中包装一组异步调用。 It is by design, that no synchronous networking API's are available for WP7. This helps keep applications ...
  • 这似乎是一个非常普遍的问题。 我建议: 看看Kindle应用程序 - 它是免费的,亚马逊已经建立了一个很好的应用程序 以下是对Kindle如何工作的一些分析 - Kindle for Windows Phone 7中使用的控件是什么,并以编程方式确定文本框中的最大适合度(WP7) 在您的提议中,我认为在单个多行使用多个与在单个页面上放置多行是非常相同的资源使用 - 所以您的方法应该没问题。 This seems to be quite a common question. I ...
  • 仔细看看你的代码,我的猜测是“WeekForward()”被调用的次数比你想要的要频繁,并且你每次调用它时都会订阅FadeTitleOut.Completed(因此你所描述的行为)。 修复此问题的一种方法是将此代码放在其他地方,这样它只能订阅一次Completed事件。 此外,您应该在触发Begin方法之前编写事件,因为您有潜在的竞争条件。 例如, FadeTitleOut.Completed += delegate { StartingMonday = StartingM ...
  • 不,IKVM目前不在WP7或Silverlight上运行。 No, IKVM does not run on WP7 or with Silverlight currently.
  • 我可以让每个屏幕成为一个页面(由于后面的堆栈问题,不太热衷于此) 非线性导航服务可以帮助您使用后退按钮。 我可以使用一个带有选项卡控件的页面 我使用重新设置的Tab控件在WPF中做了一个类似向导的应用程序。 有点乱,虽然效果很好。 您需要先设计它并考虑几个场景。 当用户点击后退按钮,启动按钮或有人呼叫用户时会发生什么? (当应用程序被逻辑删除并且用户按下后退按钮操作系统将返回最后一页)。 导航是否非常复杂(决策树)? 只做一个带有网格的页面,里面有3个网格/堆栈面板。 将它们水平放置,边距为0; 480; ...
  • 正如所有其他评论已经建议你应该使用XMPP - 你可以在这里找到大量可用的库。 祝愿,蒂姆 As all the other comments already suggested you should go with XMPP - there is a huge collection of available libraries you can find here. Best wishes, Tim

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)