caused By:cannot Locate the chosen objectfactory implementation:spring-[Unknown location]

Source: Internet
Author: User
Tags config tomcat server

Today when I was doing the struts and spring framework integration, when I deployed the project to the Tomcat server, the console reported an error:

caused By:unable to load configuration. -[Unknown Location]
At Com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (configurationmanager.java:70)
At Org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration (dispatcher.java:429)
At Org.apache.struts2.dispatcher.Dispatcher.init (dispatcher.java:471)
... More

caused By:cannot Locate the chosen objectfactory implementation:spring-[Unknown location]

At Org.apache.struts2.config.BeanSelectionProvider.alias (beanselectionprovider.java:391)
At Org.apache.struts2.config.BeanSelectionProvider.alias (beanselectionprovider.java:362)
At Org.apache.struts2.config.BeanSelectionProvider.register (beanselectionprovider.java:288)
At Com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer (defaultconfiguration.java:215)
At Com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (configurationmanager.java:67)
... More

Of course, the problem is solved in the second hint message:

caused By:cannot Locate the chosen objectfactory implementation:spring-[Unknown location]

The problem occurs because:

Missing Struts2-spring-plugin-2.1.8.1.jar, the file is a jar file that must be used when spring and struts are integrated. The problem is solved by importing the Lib folder.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.