Hi,

I am trying to run the JUnit test cases for my java code. And I'm stuck with the following Exception. Can anyone please help?

<error message="com.opensymphony.xwork2.inject.ContainerI mpl$MissingDependencyException: No mapping found for dependency [type=com.opensymphony.xwork2.ObjectFactory, name=&apos;default&apos;] in public void com.opensymphony.xwork2.config.providers.XmlConfig urationProvider.setObjectFactory(com.opensymphony. xwork2.ObjectFactory)." type="com.opensymphony.xwork2.inject.DependencyExc eption">com.opensymphony.xwork2.inject.DependencyE xception: com.opensymphony.xwork2.inject.ContainerImpl$Missi ngDependencyException: No mapping found for dependency [type=com.opensymphony.xwork2.ObjectFactory, name=&apos;default&apos;] in public void com.opensymphony.xwork2.config.providers.XmlConfig urationProvider.setObjectFactory(com.opensymphony. xwork2.ObjectFactory).
at com.opensymphony.xwork2.inject.ContainerImpl.addIn jectorsForMembers(ContainerImpl.java:157)
at com.opensymphony.xwork2.inject.ContainerImpl.addIn jectorsForMethods(ContainerImpl.java:126)
at com.opensymphony.xwork2.inject.ContainerImpl.addIn jectors(ContainerImpl.java:103)
at com.opensymphony.xwork2.inject.ContainerImpl.addIn jectors(ContainerImpl.java:99)
at com.opensymphony.xwork2.inject.ContainerImpl$1.cre ate(ContainerImpl.java:84)
at com.opensymphony.xwork2.inject.ContainerImpl$1.cre ate(ContainerImpl.java:82)
at com.opensymphony.xwork2.inject.util.ReferenceCache $CallableCreate.call(ReferenceCache.java:155)
at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.jav a:138)
at com.opensymphony.xwork2.inject.util.ReferenceCache .internalCreate(ReferenceCache.java:81)
at com.opensymphony.xwork2.inject.util.ReferenceCache .get(ReferenceCache.java:121)
at com.opensymphony.xwork2.inject.ContainerImpl.injec t(ContainerImpl.java:452)
at com.opensymphony.xwork2.inject.ContainerImpl$6.cal l(ContainerImpl.java:492)
at com.opensymphony.xwork2.inject.ContainerImpl$6.cal l(ContainerImpl.java:491)
at com.opensymphony.xwork2.inject.ContainerImpl.callI nContext(ContainerImpl.java:542)
at com.opensymphony.xwork2.inject.ContainerImpl.injec t(ContainerImpl.java:490)
at com.opensymphony.xwork2.config.impl.DefaultConfigu ration.reload(DefaultConfiguration.java:151)
at com.opensymphony.xwork2.config.ConfigurationManage r.getConfiguration(ConfigurationManager.java:52)
at org.apache.struts2.dispatcher.Dispatcher.init_Prel oadConfiguration(Dispatcher.java:395)
at org.apache.struts2.dispatcher.Dispatcher.init(Disp atcher.java:452)
at com.pg.testframework.PAStrutsTestCase.setUp(PAStru tsTestCase.java:68)
at com.partypoker.testframework.PokerStrutsTestCase.s etUp(PokerStrutsTestCase.java:32)
Caused by: com.opensymphony.xwork2.inject.ContainerImpl$Missi ngDependencyException: No mapping found for dependency [type=com.opensymphony.xwork2.ObjectFactory, name=&apos;default&apos;] in public void com.opensymphony.xwork2.config.providers.XmlConfig urationProvider.setObjectFactory(com.opensymphony. xwork2.ObjectFactory).
at com.opensymphony.xwork2.inject.ContainerImpl.creat eParameterInjector(ContainerImpl.java:239)
at com.opensymphony.xwork2.inject.ContainerImpl.getPa rametersInjectors(ContainerImpl.java:229)
at com.opensymphony.xwork2.inject.ContainerImpl$Metho dInjector.&lt;init&gt;(ContainerImpl.java:282)
at com.opensymphony.xwork2.inject.ContainerImpl$3.cre ate(ContainerImpl.java:130)
at com.opensymphony.xwork2.inject.ContainerImpl$3.cre ate(ContainerImpl.java:128)
at com.opensymphony.xwork2.inject.ContainerImpl.addIn jectorsForMembers(ContainerImpl.java:154)
</error>
The configuration file is in the required path. I don't understand why this is coming.

It's a struts based application