xnat broke during update, one or more listeners failed to start

242 views
Skip to first unread message

jon.t...@gmail.com

unread,
Aug 8, 2023, 12:43:35 PM8/8/23
to xnat_discussion
I  was applying new war file from 1.8.3  to 1.8.8.2
tried to restart and it didnt!


I found these error messages, any ideas appreciated

08-Aug-2023 17:25:23.349 SEVERE [http-nio-8080-exec-25] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file


what container? and what log file?

and maybe another clue


8-Aug-2023 17:22:50.260 SEVERE [http-nio-8080-exec-15] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class [org.nrg.xnat.security.XnatSessionEventPublisher]
        org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'updateSecurityFilterHandlerMethod' defined in file [/usr/local/tomcat9/webapps/ROOT/WEB-INF/classes/org/nrg/xnat/event/listeners/methods/UpdateSecurityFilterHandlerMethod.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.nrg.xnat.configuration.ApplicationConfig': Injection of autowired dependencies failed; nested exception is org.nrg.framework.exceptions.NrgServiceRuntimeException: Error [ConfigurationError]: Error [ConfigurationError]: No such property on this preference object: reactorWorkQueueDispatcherPoolSize
        

Charlie Moore

unread,
Aug 8, 2023, 12:53:12 PM8/8/23
to xnat_discussion
Hi there,

Do you have the container service plugin installed? And if so, did you also update it alongside XNAT? The version of the CS plugin that's contemporary to XNAT 1.8.3 won't work with XNAT 1.8.8.2.

Thanks,
Charlie Moore

jon.t...@gmail.com

unread,
Aug 8, 2023, 1:22:29 PM8/8/23
to xnat_discussion
hi charlie

I have :-

container-service-3.3.2-fat.jar
ohif-viewer-3.5.3-XNAT-1.8.7  (I am suspicious about that)
xsync-plugin-all-1.4.0.1

I have the same combo on another instance and that is happy.

I tried removing all of them and life didnt get any better.

Jon

jon.t...@gmail.com

unread,
Aug 8, 2023, 1:27:35 PM8/8/23
to xnat_discussion
not sure this helps.. but it may do 

08-Aug-2023 18:23:00.683 INFO [http-nio-8080-exec-11] org.apache.catalina.core.ApplicationContext.log 2 Spring WebApplicationInitializers detected on classpath
08-Aug-2023 18:23:00.858 INFO [http-nio-8080-exec-11] org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationContext
08-Aug-2023 18:23:06.958 SEVERE [http-nio-8080-exec-11] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
        org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'updateSecurityFilterHandlerMethod' defined in file [/usr/local/tomcat9/webapps/ROOT/WEB-INF/classes/org/nrg/xnat/event/listeners/methods/UpdateSecurityFilterHandlerMethod.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.nrg.xnat.configuration.ApplicationConfig': Unsatisfied dependency expressed through method 'setAsyncOperationsPreferences' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'asyncOperationsPreferences' defined in file [/usr/local/tomcat9/webapps/ROOT/WEB-INF/classes/org/nrg/xnat/preferences/AsyncOperationsPreferences.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'defaultNrgPreferenceService' defined in URL [jar:file:/usr/local/tomcat9/webapps/ROOT/WEB-INF/lib/prefs-1.8.2.jar!/org/nrg/prefs/services/impl/DefaultNrgPreferenceService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'hibernateToolService': Unsatisfied dependency expressed through method 'setDao' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'toolRepository': Unsatisfied dependency expressed through method 'setSessionFactory' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [org/nrg/xnat/configuration/OrmConfig.class]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: com.vladmihalcea.hibernate.type.json.JsonType
                at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
                at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:189)
                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1196)
                at org.springframework.beans.factory.support.Ab

On Tuesday, 8 August 2023 at 17:53:12 UTC+1 Charlie Moore wrote:

Rick Herrick

unread,
Aug 8, 2023, 1:55:46 PM8/8/23
to xnat_discussion
I’m not sure why this is happening, but it is… you don’t have the XNAT 1.8.8.2 web app installed. I can tell because of this line in your log file:

Error creating bean with name 'defaultNrgPreferenceService' defined in URL [jar:file:/usr/local/tomcat9/webapps/ROOT/WEB-INF/lib/prefs-1.8.2.jar!/org/nrg/prefs/services/impl/DefaultNrgPreferenceService.class]:

XNAT 1.8.8.2 includes prefs-1.8.8.jar:

# jar tf ~/Downloads/xnat-web-1.8.8.2.war | egrep WEB-INF/lib/prefs
WEB-INF/lib/prefs-1.8.8.jar

Try stopping Tomcat, removing the existing web app (including the exploded app), replacing it with your downloaded war, then restarting Tomcat.

systemctl stop tomcat9.service
rm -rf /usr/local/tomcat9/webapps/ROOT*
cp xnat-web-1.8.8.2.war /usr/local/tomcat9/webapps/ROOT.war
systemctl start tomcat9.service

Adjust as necessary if you need to change ownership of the war file or if you have a different way of starting and stopping Tomcat, but the main thing is to make sure the previous version is completely removed and replaced before restarting Tomcat.

Rick Herrick
Senior Software Developer


------ Original Message ------
To "xnat_discussion" <xnat_di...@googlegroups.com>
Date 8/8/23, 12:27:35 PM
Subject [XNAT Discussion] Re: xnat broke during update, one or more listeners failed to start

--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xnat_discussion/b5d8772e-4785-4869-9de4-736d1d6264e7n%40googlegroups.com.

jon.t...@gmail.com

unread,
Aug 8, 2023, 2:34:21 PM8/8/23
to xnat_discussion
Hi Rick
great  minds and all that, I  just spotted that.

yup tomcat is guilty.

I have an old tomcat7 on the machine as well as my tomcat9 folder,...I went  renamed that and life became considerably better. Not sure what I have that was still finding that tomcat7 but something was.

I shall go and have a dig around all my configs.

thanks for getting back to me.

Jon



Rick Herrick

unread,
Aug 8, 2023, 2:39:23 PM8/8/23
to xnat_di...@googlegroups.com
I always like it better when it’s not our fault 😂

Rick Herrick
Senior Software Developer


------ Original Message ------
To "xnat_discussion" <xnat_di...@googlegroups.com>
Date 8/8/23, 1:34:21 PM
Subject Re: [XNAT Discussion] Re: xnat broke during update, one or more listeners failed to start

Reply all
Reply to author
Forward
0 new messages