Discovery is not enabled (by default on a fresh install it seems?).

Regards
Kai Bjørnenak

On 10/09/2012 09:37 AM, Hilton Gibson wrote:
> Hi Kai
>
> I suggest disable discovery and try again.
> If it works, then your discovery setup is the problem.
> This may help: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Discovery
>
> Cheers
>
> hg
>
>
> On 9 October 2012 09:32, Kai Bjørnenak <[email protected]> wrote:
>> Hello
>>
>> I just did a fresh install of dspace 1.8.2 on a test-server that used to
>> run 1.7.x and I can't get xmlui to work. jspui seems to work fine.
>> Apache says 404, requested resource is not available.
>>
>> Looking through cocoon.log I see this:
>>
>> 2012-10-08 13:40:58,375 INFO
>> org.apache.cocoon.components.store.impl.EHDefaultStore  - Disposing
>> EHCache cache 'cocoon-ehcache'.
>> 2012-10-08 13:40:58,428 ERROR
>> org.springframework.web.context.ContextLoader  - Context initialization
>> failed
>> org.springframework.beans.factory.BeanCreationException: Error creating
>> bean with name 'dspace.eventService' defined in ServletContext resource
>> [/WEB-INF/spring/applicationContext.xml]: Instantiation of bean failed;
>> nested exception is
>> org.springframework.beans.factory.BeanDefinitionStoreException: Factory
>> method [public org.dspace.services.EventService
>> org.dspace.utils.DSpace.getEventService()] threw exception; nested
>> exception is java.lang.IllegalStateException: DSpace kernel cannot be null
>>           at
>> org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:444)
>>           at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:903)
>>           at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:817)
>>           at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
>>           at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
>>           at java.security.AccessController.doPrivileged(Native Method)
>>           at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
>>           at
>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
>>           at
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>>           at
>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
>>           at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
>>           at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
>>           at
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
>>           at
>> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
>>           at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
>>           at
>> org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
>>           at
>> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
>>           at
>> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
>>           at
>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
>>           at
>> org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
>>           at
>> org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
>>           at
>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>>           at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>>           at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>>           at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>>           at java.lang.Thread.run(Thread.java:679)
>> Caused by:
>> org.springframework.beans.factory.BeanDefinitionStoreException: Factory
>> method [public org.dspace.services.EventService
>> org.dspace.utils.DSpace.getEventService()] threw exception; nested
>> exception is java.lang.IllegalStateException: DSpace kernel cannot be null
>>           at
>> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:127)
>>           at
>> org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:435)
>>           ... 25 more
>> Caused by: java.lang.IllegalStateException: DSpace kernel cannot be null
>>           at org.dspace.utils.DSpace.getServiceManager(DSpace.java:63)
>>           at org.dspace.utils.DSpace.getEventService(DSpace.java:75)
>>           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.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:115)
>>           ... 26 more
>>
>> =================================================================================
>>
>> And in tomcat/logs:
>>
>> Oct 8, 2012 1:40:53 PM org.apache.catalina.core.StandardContext
>> listenerStart
>> SEVERE: Exception sending context initialized event to listener instance
>> of class
>> 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: Configuration pro
>> blem: Failed to register bean definition with name
>> 'org.dspace.discovery.SearchService'
>> Offending resource: URL
>> [jar:file:/usr/local/apache-tomcat-7.0.22/webapps/xmlui/WEB-INF/lib/dspace-discovery-solr-1.8.2.jar!/spring/spring-dspace-addon-discovery-s
>> ervices.xml]; nested exception is
>> org.springframework.beans.factory.BeanDefinitionStoreException: Invalid
>> bean definition with name 'org.dspace.discovery.SearchSer
>> vice' defined in URL
>> [jar:file:/usr/local/apache-tomcat-7.0.22/webapps/xmlui/WEB-INF/lib/dspace-discovery-solr-1.8.2.jar!/spring/spring-dspace-addon-discovery-serv
>> ices.xml]: Cannot register bean definition [Generic bean: class
>> [org.dspace.discovery.SolrServiceImpl]; scope=singleton; abstract=false;
>> lazyInit=false; autowireMo
>> de=0; dependencyCheck=0; autowireCandidate=true; primary=false;
>> factoryBeanName=null; factoryMethodName=null; initMethodName=null;
>> destroyMethodName=null; defined
>> in URL
>> [jar:file:/usr/local/apache-tomcat-7.0.22/webapps/xmlui/WEB-INF/lib/dspace-discovery-solr-1.8.2.jar!/spring/spring-dspace-addon-discovery-services.xml]]
>> for
>>    bean 'org.dspace.discovery.SearchService': There is already [Generic
>> bean: class [org.dspace.discovery.SolrServiceImpl]; scope=singleton;
>> abstract=false; lazyInit
>> =false; autowireMode=0; dependencyCheck=0; autowireCandidate=true;
>> primary=false; factoryBeanName=null; factoryMethodName=null;
>> initMethodName=null; destroyMethodN
>> ame=null; defined in URL
>> [jar:file:/usr/local/apache-tomcat-7.0.22/webapps/xmlui/WEB-INF/lib/dspace-discovery-provider-1.7.2.jar!/spring/spring-dspace-addon-discov
>> ery-services.xml]] bound.
>>           at
>> org.dspace.servicemanager.servlet.DSpaceKernelServletContextListener.contextInitialized(DSpaceKernelServletContextListener.java:92)
>>           at
>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
>>           at
>> org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
>>           at
>> org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
>>           at
>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>>           at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>>           at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>>           at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>>           at java.lang.Thread.run(Thread.java:679)
>> Caused by: java.lang.RuntimeException: Failed to startup the DSpace
>> Service Manager: failure starting up spring service manager:
>> Configuration problem: Failed to r
>> egister bean definition with name 'org.dspace.discovery.SearchService'
>>
>> This is running on:
>> Centos 6.3
>> Tomcat 7.0.22
>>
>>
>> If you need any more info, I'll be happy to find it. I'll be grateful
>> for any help you can provide.
>>
>>
>> Regards
>>
>> Kai Bjørnenak
>>
>> ------------------------------------------------------------------------------
>> Don't let slow site performance ruin your business. Deploy New Relic APM
>> Deploy New Relic app performance management and know exactly
>> what is happening inside your Ruby, Python, PHP, Java, and .NET app
>> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
>> http://p.sf.net/sfu/newrelic-dev2dev
>> _______________________________________________
>> DSpace-tech mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to