Paul/Erik, Thanks for your reply.I have the jar file containing the plugin code and the applicationContext.xml in solr/home/lib directory.It is instantiating the plugin code.But it is not loading the application context.xml file from solr/home/lib dir.But when i copied the jar file containing the applicationContext.xml file into the solr.war file's WEB-Inf/lib dir and placed the solr.war file in tomcat's web-apps dir ,it worked.
As Erik said solr may only load the xml from solr.war file? Please let me know if there is any way to do this by placing the applicationContext.xml file in solr/home/lib. Thanks, Raju Noble Paul നോബിള് नोब्ळ्-2 wrote: > > a point to keep in mind is that all the plugin code and everything > else must be put into the solrhome/lib directory. > > where have you placed the file com/mypackage/applicationContext.xml ? > > On Fri, May 8, 2009 at 12:19 AM, Raju444us <gudipal...@gmail.com> wrote: >> >> I have configured solr using tomcat.Everything works fine.I overrode >> QParserPlugin and configured it.The overriden QParserPlugin has a >> dependency >> on another project say project1.So I made a jar of the project and copied >> the jar to the solr/home lib dir. >> >> the project1 project is using spring.It has a factory class which loads >> the >> beans.Iam using this factory calss in QParserPlugin to get a bean.When I >> start my tomcat the factory class is loading fine.But the problem is its >> not >> loading the beans.And Iam getting exception >> >> org.springframework.beans.factory.BeanDefinitionStoreException: >> IOException >> parsing XML document from class path resource >> [com/mypackage/applicationContext.xml]; nested exception is >> java.io.FileNotFoundException: class path resource >> [com/mypackage/applicationContext.xml] cannot be opened because it does >> not >> exist >> >> Do I need to do something else?. Can anybody please help me. >> >> Thanks, >> Raju >> >> >> -- >> View this message in context: >> http://www.nabble.com/Solr-spring-application-context-error-tp23432901p23432901.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> >> > > > > -- > ----------------------------------------------------- > Noble Paul | Principal Engineer| AOL | http://aol.com > > -- View this message in context: http://www.nabble.com/Solr-spring-application-context-error-tp23432901p23444847.html Sent from the Solr - User mailing list archive at Nabble.com.