Jump to content
Changes to the Jaspersoft community edition download ×

Jasperserver 8.1.1 fails to start with MappingException during various beans' creation


anna.v.babich

Recommended Posts

Hi!
Trying to startup Jasperserver after upgrade to 8.1.1 and now struggling with the error below:

2023-01-18T08:43:31,402 ERROR ContextLoader,main:313 - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'themeSource' defined in ServletContext resource [/WEB-INF/applicationContext-themes.xml]: Cannot resolve reference to bean 'themeCache' while setting bean property 'themeCache'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'themeCache' defined in ServletContext resource [/WEB-INF/applicationContext-themes.xml]: Cannot resolve reference to bean 'unsecureRepositoryService' while setting bean property 'repositoryService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateRepositoryService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accessService' defined in ServletContext resource [/WEB-INF/applicationContext-events-logging.xml]: Cannot resolve reference to bean 'internalUserAuthorityService' while setting bean property 'persistentUserResolver'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mtUserAuthorityServiceTarget' defined in ServletContext resource [/WEB-INF/applicationContext-multiTenancy-security.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.boot.MappingException: Association [com.jaspersoft.jasperserver.api.metadata.common.service.impl.hibernate.persistent.RepoResource.favorites] references an unmapped entity [com.jaspersoft.jasperserver.api.metadata.common.service.impl.hibernate.persistent.RepoResource.favorites] : origin(null)

There are com.jaspersoft.jasperserver.api.metadata.common.service.impl.hibernate.persistent.RepoResource entries declared in ApplicationContext.xml, but couldn't find any references to RepoResource.favorites neither in WEB-INF/* nor in jasperserver database. Compared with healthy Jasperserver (non-upgraded) and it doesn't have these references too. If tis issue looks familiar or similar to someone, any information wound be appreciated

Thanks! 

Link to comment
Share on other sites

  • 4 weeks later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Do you see any other entries in your stacktrace? Sometimes the errors listed are red herrings and there may be more clues later on. I'm not seeing anything similar reported in our support site, so I'm not sure what this issue is, unfortunately. Anything unique with your setup - customizations that might be causing any issues?

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...