lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From penela <pen...@gmail.com>
Subject Saxon + classpath issues
Date Thu, 22 Sep 2011 09:35:41 GMT
Hi,

I'm trying to make my XsltResponseWriter to use Saxon 9.1 as its default
transformer (working with Solr 3.3 on Tomcat 7).


After reading http://wiki.apache.org/solr/XsltResponseWriter I've added 
-Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl
to Tomcat launch options and put all saxon*.jar in contrib/saxon/lib (same
level as contrib/extraction/lib or contrib/dataimporthandler/lib that are
being properly used).

I've added this folder to solrconfig.xml:
  <lib dir="/Library/Solr/dist/" regex="apache-solr-cell-\d.*\.jar" />
  <lib dir="/Library/Solr/dist/" regex="apache-solr-clustering-\d.*\.jar" />
  <lib dir="/Library/Solr/dist/"
regex="apache-solr-dataimporthandler-\d.*\.jar" />
  <lib dir="/Library/Solr/contrib/clustering/lib/" />
  <lib dir="/Library/Solr/contrib/saxon/lib/" /> 

The load seems to work fine, and saxon libraries are supposedly loaded to
the system:
2011-09-22 11:00:47,977 INFO [solr.core.SolrConfig] - [Thread-2] - : Adding
specified lib dirs to ClassLoader
2011-09-22 11:00:48,017 INFO [solr.core.SolrResourceLoader] - [Thread-2] - :
Adding 'file:/Library/Solr/contrib/extraction/lib/asm-3.1.jar' to
classloader
...
2011-09-22 11:00:48,124 INFO [solr.core.SolrResourceLoader] - [Thread-2] - :
Adding 'file:/Library/Solr/contrib/saxon/lib/saxon9-dom.jar' to classloader
2011-09-22 11:00:48,124 INFO [solr.core.SolrResourceLoader] - [Thread-2] - :
Adding 'file:/Library/Solr/contrib/saxon/lib/saxon9-dom4j.jar' to
classloader
2011-09-22 11:00:48,124 INFO [solr.core.SolrResourceLoader] - [Thread-2] - :
Adding 'file:/Library/Solr/contrib/saxon/lib/saxon9-jdom.jar' to classloader
2011-09-22 11:00:48,124 INFO [solr.core.SolrResourceLoader] - [Thread-2] - :
Adding 'file:/Library/Solr/contrib/saxon/lib/saxon9-s9api.jar' to
classloader
2011-09-22 11:00:48,125 INFO [solr.core.SolrResourceLoader] - [Thread-2] - :
Adding 'file:/Library/Solr/contrib/saxon/lib/saxon9-sql.jar' to classloader
2011-09-22 11:00:48,125 INFO [solr.core.SolrResourceLoader] - [Thread-2] - :
Adding 'file:/Library/Solr/contrib/saxon/lib/saxon9-xom.jar' to classloader
2011-09-22 11:00:48,125 INFO [solr.core.SolrResourceLoader] - [Thread-2] - :
Adding 'file:/Library/Solr/contrib/saxon/lib/saxon9-xpath.jar' to
classloader
2011-09-22 11:00:48,125 INFO [solr.core.SolrResourceLoader] - [Thread-2] - :
Adding 'file:/Library/Solr/contrib/saxon/lib/saxon9-xqj.jar' to classloader
2011-09-22 11:00:48,125 INFO [solr.core.SolrResourceLoader] - [Thread-2] - :
Adding 'file:/Library/Solr/contrib/saxon/lib/saxon9.jar' to classloader

However, when trying to use the XSLT writer I keep getting:
2011-09-22 11:20:03,300 ERROR [solr.servlet.SolrDispatchFilter] -
[http-bio-8080-exec-10] - :
javax.xml.transform.TransformerFactoryConfigurationError: Provider
net.sf.saxon.TransformerFactoryImpl not found
	at
javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:108)

Any ideas?

Thanks!

--
View this message in context: http://lucene.472066.n3.nabble.com/Saxon-classpath-issues-tp3358200p3358200.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message