Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
615 views
in Technique[技术] by (71.8m points)

DSpace home directory could not be determined

I installed DSpace 6.3 by following the documentation (https://wiki.lyrasis.org/display/DSDOC6x/Installing+DSpace). And Apache Tomcat/7.0.76.

When I try to open the /jspui or /xmlui path on the web browser I get this:

enter image description here

Also, when checking the /var/log/tomcat/localhost.2021-01-06.log file there's this error:

java.lang.RuntimeException: Failure during filter init: DSpace home directory could not be determined. It MUST include a subpath of '/config/config-definition.xml'. Please consider setting the 'dspace.dir' system property or ensure the dspace-api.jar is being run from [dspace]/lib/.
        at org.dspace.servicemanager.servlet.DSpaceKernelServletContextListener.contextInitialized(DSpaceKernelServletContextListener.java:92)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5127)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5643)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
        at org.apache.catalina.startup.HostConfig.reload(HostConfig.java:1548)
        at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1512)
        at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1748)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:333)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1370)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1542)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1552)
        at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1520)
        at java.lang.Thread.run(Thread.java:748)

Dspace is installed in /home/dspace/dspace-production, I copied the directories webapps/xmlui and webapps/jspui to /var/lib/tomcat/webapps and did a chown -R root:tomcat /home/dspace/dspace-production to let Tomcat read that directory.

In /var/lib/tomcat/webapps/xmlui/WEB-INF/web.xml the part relative to dspace.dir is this:

  <!-- ConfigurationService initialization for dspace.dir -->
  <context-param>
    <description>
      The location of the DSpace home directory
    </description>
    <param-name>dspace.dir</param-name>
    <param-value>/home/dspace/dspace-production</param-value>
  </context-param>

Can anyone help me with this?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...