The errors listed below in cocoon, happen when Tomcat is started back up, 
not when trying to load the webpage.
I hope this helps

Tom

On Wednesday, July 26, 2017 at 11:08:16 AM UTC-4, Tom Avino wrote:
>
> I have done a few of these upgrades from 3.3 to 5.5 without any issues. 
>  This one however failed and could not find the issue, so I decided to 
> start over.  I had done this a few times before on another Dspace instance.
>
> What I did then was 
>
>    - restore my postgres database back to pre-upgrade
>    - changed dspace .bash_profile back to maven 2.2.1 from 3.3.9
>    - logged off dspace then logged on
>    - shut down Tomcat
>    - did a rebuild from my original dspace 3.3 src
>    - restarted tomcat
>
> This is the error I get.  The application just shows a blank screen, and 
> the message below is from cocoon.
>
> 2017-07-26 10:27:15,200 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:581)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1015)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
> at 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
> 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.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
> at 
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
> at 
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
> at 
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5017)
> at 
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5531)
> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
> at 
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)
> at 
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1948)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> 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:169)
> at 
> org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:570)
> ... 27 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:62)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at 
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:149)
>
> Thank you,
>
> Tom Avino
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to