Invalid bean definition with name 'redisMessageSubscriber'

393 views
Skip to first unread message

fan li

unread,
Aug 24, 2020, 4:11:20 PM8/24/20
to WISE-dev
Hi,
I am trying to install wise using tomcat8.5.57 & wise5.8.1, but when I start tomcat, Failed to start component /wise. this is  my $CATALINA_HOME/logs/catalina.out log:

22-Aug-2020 11:52:22.728 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/wise]]
at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:970)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1840)
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.support.BeanDefinitionOverrideException: Invalid bean definition with name 'redisMessageSubscriber' defined in class path resource [org/wise/portal/spring/impl/RedisConfig.class]: Cannot register bean definition [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=redisConfig; factoryMethodName=redisMessageSubscriber; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/wise/portal/spring/impl/RedisConfig.class]] for bean 'redisMessageSubscriber': There is already [Generic bean: class [org.wise.portal.spring.data.redis.RedisMessageSubscriber]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in file [/home/tomcat8/apache-tomcat-8.5.57/webapps/wise/WEB-INF/classes/org/wise/portal/spring/data/redis/RedisMessageSubscriber.class]] bound.

Thank you
LiFan

Geoff

unread,
Aug 24, 2020, 4:23:16 PM8/24/20
to WISE-dev
Hi LiFan,

Have you installed Redis on your server? Here are instructions on how to install Redis on Ubuntu

# install redis-server
sudo apt install redis-server

# start the redis-server
sudo service redis-server start

# set the notify-keyspace-events parameter which WISE requires
redis-cli config set notify-keyspace-events Egx

Once your redis-server is running, try to start Tomcat again.

Geoff
Reply all
Reply to author
Forward
0 new messages