Hi all,

I'm trying to deploy the REST module on a 3.1 DSpace installation, but I'm
having serious trouble with it. Following this guide:
https://jspace.atlassian.net/wiki/display/DSPACEAPI/DSpace+REST+API+Home,
neither first or second possibilities work and the third is unaffordable
right now.

For the first one, I used maven package and it indeed generated the
rest.war file, but after deploying the .war file in Tomcat, it gives a
Spring related exception which I can't understand. Spring has been working
good up until now. At the end of this mail I'll paste the exception. I also
tried to hardcode the path to the dspace.cfg file, but no luck.

For the second one, everything was going fine until build time, on which I
got this error:

Reason: Failed to validate POM for project org.dspace.modules:rest at
dspace/modules/rest/pom.xml

Below I'm pasting the error for the first method. Any help really
appreciated since this is driving me nuts. Thanks!



mar 06, 2014 9:38:44 AM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Excepción enviando evento inicializado de contexto a instancia de
escuchador de clase
org.dspace.servicemanager.servlet.DSpaceKernelServletContextListener
java.lang.RuntimeException: Failure during filter init: Failed to startup
the DSpace Service Manager: failure starting up spring service manager:
Error creating bean with name
'org.dspace.discovery.configuration.DiscoveryConfigurationService' defined
in URL
[jar:file:/var/lib/tomcat6/webapps/rest/WEB-INF/lib/dspace-api-3.0.jar!/spring/spring-dspace-addon-discovery-configuration-services.xml]:
Cannot resolve reference to bean 'defaultConfiguration' while setting bean
property 'map' with key [TypedStringValue: value [default], target type
[null]]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'defaultConfiguration' defined in URL
[jar:file:/var/lib/tomcat6/webapps/rest/WEB-INF/lib/dspace-api-3.0.jar!/spring/spring-dspace-addon-discovery-configuration-services.xml]:
Initialization of bean failed; nested exception is
org.springframework.beans.ConversionNotSupportedException: Failed to
convert property value of type 'java.util.ArrayList' to required type
'java.util.List' for property 'sidebarFacets'; nested exception is
java.lang.IllegalStateException: Cannot convert value of type
[org.dspace.discovery.configuration.SidebarFacetConfiguration] to required
type [org.dspace.discovery.configuration.DiscoverySearchFilterFacet] for
property 'sidebarFacets[0]': no matching editors or conversion strategy
found
    at
org.dspace.servicemanager.servlet.DSpaceKernelServletContextListener.contextInitialized(DSpaceKernelServletContextListener.java:92)
    at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
    at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
    at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
    at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
    at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
    at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1385)
    at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:306)
    at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
    at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1389)
    at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1653)
    at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1662)
    at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1642)
    at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.RuntimeException: Failed to startup the DSpace Service
Manager: failure starting up spring service manager: Error creating bean
with name
'org.dspace.discovery.configuration.DiscoveryConfigurationService' defined
in URL
[jar:file:/var/lib/tomcat6/webapps/rest/WEB-INF/lib/dspace-api-3.0.jar!/spring/spring-dspace-addon-discovery-configuration-services.xml]:
Cannot resolve reference to bean 'defaultConfiguration' while setting bean
property 'map' with key [TypedStringValue: value [default], target type
[null]]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'defaultConfiguration' defined in URL
[jar:file:/var/lib/tomcat6/webapps/rest/WEB-INF/lib/dspace-api-3.0.jar!/spring/spring-dspace-addon-discovery-configuration-services.xml]:
Initialization of bean failed; nested exception is
org.springframework.beans.ConversionNotSupportedException: Failed to
convert property value of type 'java.util.ArrayList' to required type
'java.util.List' for property 'sidebarFacets'; nested exception is
java.lang.IllegalStateException: Cannot convert value of type
[org.dspace.discovery.configuration.SidebarFacetConfiguration] to required
type [org.dspace.discovery.configuration.DiscoverySearchFilterFacet] for
property 'sidebarFacets[0]': no matching editors or conversion strategy
found
    at
org.dspace.servicemanager.DSpaceServiceManager.startup(DSpaceServiceManager.java:224)
    at
org.dspace.servicemanager.DSpaceKernelImpl.start(DSpaceKernelImpl.java:150)
    at
org.dspace.servicemanager.servlet.DSpaceKernelServletContextListener.contextInitialized(DSpaceKernelServletContextListener.java:81)
    ... 16 more
Caused by: java.lang.IllegalStateException: failure starting up spring
service manager: Error creating bean with name
'org.dspace.discovery.configuration.DiscoveryConfigurationService' defined
in URL
[jar:file:/var/lib/tomcat6/webapps/rest/WEB-INF/lib/dspace-api-3.0.jar!/spring/spring-dspace-addon-discovery-configuration-services.xml]:
Cannot resolve reference to bean 'defaultConfiguration' while setting bean
property 'map' with key [TypedStringValue: value [default], target type
[null]]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'defaultConfiguration' defined in URL
[jar:file:/var/lib/tomcat6/webapps/rest/WEB-INF/lib/dspace-api-3.0.jar!/spring/spring-dspace-addon-discovery-configuration-services.xml]:
Initialization of bean failed; nested exception is
org.springframework.beans.ConversionNotSupportedException: Failed to
convert property value of type 'java.util.ArrayList' to required type
'java.util.List' for property 'sidebarFacets'; nested exception is
java.lang.IllegalStateException: Cannot convert value of type
[org.dspace.discovery.configuration.SidebarFacetConfiguration] to required
type [org.dspace.discovery.configuration.DiscoverySearchFilterFacet] for
property 'sidebarFacets[0]': no matching editors or conversion strategy
found
    at
org.dspace.servicemanager.DSpaceServiceManager.startup(DSpaceServiceManager.java:208)
    ... 18 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name
'org.dspace.discovery.configuration.DiscoveryConfigurationService' defined
in URL
[jar:file:/var/lib/tomcat6/webapps/rest/WEB-INF/lib/dspace-api-3.0.jar!/spring/spring-dspace-addon-discovery-configuration-services.xml]:
Cannot resolve reference to bean 'defaultConfiguration' while setting bean
property 'map' with key [TypedStringValue: value [default], target type
[null]]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'defaultConfiguration' defined in URL
[jar:file:/var/lib/tomcat6/webapps/rest/WEB-INF/lib/dspace-api-3.0.jar!/spring/spring-dspace-addon-discovery-configuration-services.xml]:
Initialization of bean failed; nested exception is
org.springframework.beans.ConversionNotSupportedException: Failed to
convert property value of type 'java.util.ArrayList' to required type
'java.util.List' for property 'sidebarFacets'; nested exception is
java.lang.IllegalStateException: Cannot convert value of type
[org.dspace.discovery.configuration.SidebarFacetConfiguration] to required
type [org.dspace.discovery.configuration.DiscoverySearchFilterFacet] for
property 'sidebarFacets[0]': no matching editors or conversion strategy
found
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:378)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:161)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
    at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
    at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
    at
org.dspace.servicemanager.spring.SpringServiceManager.startup(SpringServiceManager.java:207)
    at
org.dspace.servicemanager.DSpaceServiceManager.startup(DSpaceServiceManager.java:205)
    ... 18 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'defaultConfiguration' defined in URL
[jar:file:/var/lib/tomcat6/webapps/rest/WEB-INF/lib/dspace-api-3.0.jar!/spring/spring-dspace-addon-discovery-configuration-services.xml]:
Initialization of bean failed; nested exception is
org.springframework.beans.ConversionNotSupportedException: Failed to
convert property value of type 'java.util.ArrayList' to required type
'java.util.List' for property 'sidebarFacets'; nested exception is
java.lang.IllegalStateException: Cannot convert value of type
[org.dspace.discovery.configuration.SidebarFacetConfiguration] to required
type [org.dspace.discovery.configuration.DiscoverySearchFilterFacet] for
property 'sidebarFacets[0]': no matching editors or conversion strategy
found
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:313)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
    ... 34 more
Caused by: org.springframework.beans.ConversionNotSupportedException:
Failed to convert property value of type 'java.util.ArrayList' to required
type 'java.util.List' for property 'sidebarFacets'; nested exception is
java.lang.IllegalStateException: Cannot convert value of type
[org.dspace.discovery.configuration.SidebarFacetConfiguration] to required
type [org.dspace.discovery.configuration.DiscoverySearchFilterFacet] for
property 'sidebarFacets[0]': no matching editors or conversion strategy
found
    at
org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:485)
    at
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:516)
    at
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:510)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1406)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1365)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    ... 38 more
Caused by: java.lang.IllegalStateException: Cannot convert value of type
[org.dspace.discovery.configuration.SidebarFacetConfiguration] to required
type [org.dspace.discovery.configuration.DiscoverySearchFilterFacet] for
property 'sidebarFacets[0]': no matching editors or conversion strategy
found
    at
org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:241)
    at
org.springframework.beans.TypeConverterDelegate.convertToTypedCollection(TypeConverterDelegate.java:541)
    at
org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:179)
    at
org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:470)
    ... 44 more
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to