You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by keeblerh <ke...@yahoo.com> on 2014/09/26 21:44:54 UTC

Using Spring standalone jar as Custom Transformer

I'm trying to use a standalone Spring jar for a custom transformer and have
banged my way through most of the issues so far but can't seem to get
through this one.  When the transformer executes it loads the spring
applicationContext.xml file and throws the following error trying to parse
it.

org.xml.sax.SAXParseException........... Cannot find the declaration of the
element 'beans'.

which is referring to the following:
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans 
	   					   http://www.springframework.org/schema/beans/spring-beans.xsd">

Note that this all works when executing from the standalone jar.  I had to
put the applicationContext.xml into the solr/example/resource directory.  I
have my jar and supporting jars which includes all the spring jars in
<mycore>/lib.

It finds my transformer, finds the springContextLoader, finds my
applicationContent.xml file but can't seem to find the xsd files in the
spring jars.   I have tried sticking these jars everywhere with no luck.  If
anyone has any idea as to how I can resolve this please let me know. 
Thanks.



--
View this message in context: http://lucene.472066.n3.nabble.com/Using-Spring-standalone-jar-as-Custom-Transformer-tp4161378.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: Using Spring standalone jar as Custom Transformer

Posted by keeblerh <ke...@yahoo.com>.
All,  I have done what I really didn't want to do and it works for now, which
is unpacked the solr.war and added all my libs to the WEB-INF/lib.  

If there is a better solution using the recommended configurations please
let me know.  Thanks.



--
View this message in context: http://lucene.472066.n3.nabble.com/Using-Spring-standalone-jar-as-Custom-Transformer-tp4161378p4161386.html
Sent from the Solr - User mailing list archive at Nabble.com.