起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3484|回复: 2

[结贴] DEBUG: 启动文档服务异常

[复制链接]

76

主题

167

帖子

1279

积分

金牌会员

Rank: 6Rank: 6

积分
1279
QQ
发表于 2022-7-20 10:05:31 | 显示全部楼层 |阅读模式
升级3.9过程中,复制V3.8版本 data\doc 目录下除 conf 目录外的所有目录到新版本对应目录。文档服务器不能正常使用。
日志如下:

2022-07-20 09:54:23 [http-nio-8080-exec-30] [com.justep.doc.httpconnector.FileServlet] DEBUG: 启动文档服务异常
org.outerj.daisy.runtime.DaisyRTException: Error constructing component container defined at /opt/qibu_new/runtime/DocServer/WEB-INF/lib/daisy-configuration-impl-2.3.jar
    at org.outerj.daisy.runtime.component.ContainerConfigImpl.build(Unknown Source)
    at org.outerj.daisy.runtime.DaisyRuntime.init(Unknown Source)
    at com.justep.doc.httpconnector.FileServlet.init(Unknown Source)
    at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1144)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:763)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:134)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:615)
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1627)
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configuration' defined in DAISY-INF/spring/applicationContext.xml in /opt/qibu_new/runtime/DocServer/WEB-INF/lib/daisy-configuration-impl-2.3.jar: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.outerj.daisy.configuration.impl.ConfigurationManagerImpl]: Constructor threw exception; nested exception is org.apache.avalon.framework.configuration.ConfigurationException: Configuration override file does not exist: /var/lib/qibu_new/data/doc/conf/myconfig.xml
    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:231)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:957)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:869)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:514)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:413)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:735)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:369)
    ... 23 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.outerj.daisy.configuration.impl.ConfigurationManagerImpl]: Constructor threw exception; nested exception is org.apache.avalon.framework.configuration.ConfigurationException: Configuration override file does not exist: /var/lib/qibu_new/data/doc/conf/myconfig.xml
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:98)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:225)
    ... 36 more
Caused by: org.apache.avalon.framework.configuration.ConfigurationException: Configuration override file does not exist: /var/lib/qibu_new/data/doc/conf/myconfig.xml
    at org.outerj.daisy.configuration.impl.ConfigurationManagerImpl.<init>(ConfigurationManagerImpl.java:35)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:83)
    ... 38 more
2022-07-20 09:54:23 [http-nio-8080-exec-30] [org.outerj.daisy.runtime.DaisyRuntime] INFO: Shutting down component containers.


按之前的帖子,清空indexstore后重新启动服务,仍然会报上述错误

qigkong.jpg

完整日志如下:

新建文本文档.zip (4.75 KB, 下载次数: 33)

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36064
发表于 2022-7-20 13:49:01 | 显示全部楼层
/var/lib/qibu_new/data/doc/conf/myconfig.xml
这个文件确认存在吗?
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

76

主题

167

帖子

1279

积分

金牌会员

Rank: 6Rank: 6

积分
1279
QQ
 楼主| 发表于 2022-7-21 14:47:42 | 显示全部楼层
jishuang 发表于 2022-7-20 13:49
/var/lib/qibu_new/data/doc/conf/myconfig.xml
这个文件确认存在吗?

文档位置配置错误,已解决,接贴
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-11-22 02:28 , Processed in 0.077006 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表