我必须在现有的Dspace安装上配置Swordv2服务器,以允许通过SwordV2协议进行访问。我看过duraspace的instruction,[dspace] / webapps / swordv2 /中的swordv2应用似乎在tomcat webapps文件夹中可用,并且Sword2配置文件位于正确的位置([dspace] / config / modules / swordv2-server.cfg)。

然而,对配置文件的更改似乎没有任何效果。
我在这里做错了什么?

更新
这是重启后tomcat的剑特定输出:

Nov 14 08:10:33 ub11 server: INFORMATION: Deploying web application directory /data/dspace/webapps-deploy/swordv2
Nov 14 08:10:37 ub11 server: INFO [localhost-startStop-1] (XmlBeanDefinitionReader.java:315) - Loading XML bean definitions from URL [jar:file:/data/dspace/webapps/swordv2/WEB-INF/lib/additions-5.3.jar!/spring/spring-dspace-addon-example-services.xml]
Nov 14 08:10:37 ub11 server: INFO [localhost-startStop-1] (XmlBeanDefinitionReader.java:315) - Loading XML bean definitions from URL [jar:file:/data/dspace/webapps/swordv2/WEB-INF/lib/dspace-api-5.3.jar!/spring/spring-dspace-addon-sherpa-configuration-services.xml]
Nov 14 08:10:37 ub11 server: INFO [localhost-startStop-1] (XmlBeanDefinitionReader.java:315) - Loading XML bean definitions from URL [jar:file:/data/dspace/webapps/swordv2/WEB-INF/lib/dspace-api-5.3.jar!/spring/spring-dspace-addon-requestitem-services.xml]
Nov 14 08:10:37 ub11 server: INFO [localhost-startStop-1] (XmlBeanDefinitionReader.java:315) - Loading XML bean definitions from URL [jar:file:/data/dspace/webapps/swordv2/WEB-INF/lib/dspace-api-5.3.jar!/spring/spring-dspace-addon-sherpa-services.xml]
Nov 14 08:10:37 ub11 server: INFO [localhost-startStop-1] (XmlBeanDefinitionReader.java:315) - Loading XML bean definitions from URL [jar:file:/data/dspace/webapps/swordv2/WEB-INF/lib/dspace-api-5.3.jar!/spring/spring-dspace-addon-discovery-services.xml]
Nov 14 08:10:37 ub11 server: INFO [localhost-startStop-1] (XmlBeanDefinitionReader.java:315) - Loading XML bean definitions from URL [jar:file:/data/dspace/webapps/swordv2/WEB-INF/lib/dspace-api-5.3.jar!/spring/spring-dspace-core-services.xml]
Nov 14 08:10:37 ub11 server: INFO [localhost-startStop-1] (XmlBeanDefinitionReader.java:315) - Loading XML bean definitions from URL [jar:file:/data/dspace/webapps/swordv2/WEB-INF/lib/dspace-services-5.3.jar!/spring/spring-dspace-core-services.xml]
Nov 14 08:10:37 ub11 server: INFO [localhost-startStop-1] (DefaultListableBeanFactory.java:623) - Overriding bean definition for bean 'org.dspace.identifier.IdentifierService': replacing [Generic bean: class [org.dspace.identifier.IdentifierServiceImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=2; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/data/dspace/webapps/swordv2/WEB-INF/lib/dspace-api-5.3.jar!/spring/spring-dspace-core-services.xml]] with [Generic bean: class [org.dspace.identifier.IdentifierServiceImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=2; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in file [/opt/dspace/config/spring/api/identifier-service.xml]]
Nov 14 08:10:37 ub11 server: INFO [localhost-startStop-1] (DefaultListableBeanFactory.java:623) - Overriding bean definition for bean 'org.dspace.app.requestitem.RequestItemAuthorExtractor': replacing [Generic bean: class [org.dspace.app.requestitem.RequestItemMetadataStrategy]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=false; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/data/dspace/webapps/swordv2/WEB-INF/lib/dspace-api-5.3.jar!/spring/spring-dspace-addon-requestitem-services.xml]] with [Generic bean: class [org.dspace.app.requestitem.RequestItemMetadataStrategy]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=false; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in file [/opt/dspace/config/spring/api/requestitem.xml]]
Nov 14 08:10:37 ub11 server: INFO [localhost-startStop-1] (DefaultListableBeanFactory.java:623) - Overriding bean definition for bean 'org.dspace.app.sherpa.submit.SHERPASubmitConfigurationService': replacing [Generic bean: class [org.dspace.app.sherpa.submit.SHERPASubmitConfigurationService]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/data/dspace/webapps/swordv2/WEB-INF/lib/dspace-api-5.3.jar!/spring/spring-dspace-addon-sherpa-configuration-services.xml]] with [Generic bean: class [org.dspace.app.sherpa.submit.SHERPASubmitConfigurationService]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in file [/opt/dspace/config/spring/api/sherpa.xml]]
Nov 14 08:10:38 ub11 server: INFORMATION: Deployment of web application directory /data/dspace/webapps-deploy/swordv2 has finished in 5,024 ms




这是我的swordv2-SERVER.CFG:

url = https://somedomain.de/swordv2
collection.url = https://somedomain.de/swordv2/collection
servicedocument.url = https://somedomain.de/swordv2/servicedocument


这来自dspace.cfg:

dspace.hostname = somedomain.de
dspace.baseUrl = https://somedomain.de
dspace.url = https://somedomain.de/xmlui



实名制已被替换为“somedomain”。

如果我调用诸如somedomain.de/swordv2/servicedocument之类的网址,则会得到404未找到。


更新2:

我重新启动机器,现在演出剑在我的dSPACE日志:

2017-11-15 12:50:10,337 INFO  org.swordapp.server.servlets.SwordServlet @ Using org.dspace.sword2.SwordConfigurationDSpace as 'config-impl'
2017-11-15 12:50:10,340 INFO  org.swordapp.server.servlets.SwordServlet @ Using org.dspace.sword2.ServiceDocumentManagerDSpace as 'service-document-impl'
2017-11-15 12:50:10,347 INFO  org.swordapp.server.SwordAPIEndpoint @ Auth type = None
2017-11-15 12:50:10,488 INFO  org.dspace.sword2.SwordAuthenticator @ anonymous:session_id=0:sword_authenticate:username=null,on_behalf_of=null
2017-11-15 12:50:10,494 INFO  org.dspace.sword2.SwordAuthenticator @ anonymous:session_id=0:sword_unable_to_set_on_behalf_of:username=null,on_behalf_of=null


我暂时设置在剑服务器配置认证为无。当我尝试使用curl访问服务文档时,我从tomcat获取403状态代码(“禁止访问指定资源”)。我想所有剩下现在要做的是重新配置在Tomcat中访问?

最佳答案

从dspace.log输出看来,您的身份验证方法未正确设置。我相信swordv2要求您启用密码验证。

10-06 11:56