lundi 11 mai 2015

Migrate from WebSphere to Tomcat 7, No unique bean of type [com.m.g.tenancy.ITenantPlaceholderResolver] is defined: expected single bean but found 0

I'm relatively new to Spring and Tomcat, currently attempting to migrate a web application from WebSphere to Tomcat 7. I'm running into many issues along the way and tackling them one by one. Right now I'm looking at this error and I am stumped:

15:05:15.362 [localhost-startStop-1] ERROR c.m.g.t.TenantDispatcherServlet - Could not add tenant DC.HKG.SALES.VNM, details org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.m.gsp.tenancy.ITenantPlaceholderResolver] is defined: expected single bean but found 0:

This application worked previously in WebSphere and I only made one change to the XML files, my tenant-context.xml contained this line:

<import resource="classpath:/WEB-INF/core-context.xml" />

core-context.xml could not be found, so I changed it to:

<import resource="classpath*:WEB-INF/core-context.xml" />

And now it appears that core-context.xml can be found but I get the above NoSuchBeanDefinitionException. Any ideas?

Aucun commentaire:

Enregistrer un commentaire