Hi all, I've started work packaging Solr (an enterprise search server based on Lucene). I'm trying to get the package install itself as a Tomcat 5.5 webapp. I've used jspwiki as something of an example: - most files are installed into /usr/share/solr - config files go into /etc/solr, with symlinks to counterparts in /usr/share/solr, /etc/tomcat5.5/policy.d - /usr/share/tomcat5.5/conf/Catalina/localhost/solr.xml is a symlink to a conffile, which contains: <Context path="/solr" docBase="/usr/share/solr" debug="0" allowLinking="true" crossContext="true"> <!-- make symlinks work in Tomcat 5 --> <Resources className="org.apache.naming.resources.FileDirContext" allowLinking="true" />
<Environment name="solr/home" type="java.lang.String" value="/usr/share/solr" override="true" /> </Context> When I restart Tomcat, I get an error message in the tomcat log file: java.lang.NoClassDefFoundError: org/apache/lucene/search/Searcher This class is located in /usr/share/java/lucene-core.jar. During compilation, this file is in the classpath. In the 'normal' solr installation, this jar file would be included in WEB-INF/lib. What is the proper way to refer to this jar file? A symlink doesn't seem to work. Putting the proper path in META-INF/MANIFEST.MF also doesn't. Where else can I have Tomcat look for its classes? Thanks for any help, Jan-Pascal PS: to see the whole story, see the packaging up to now: SVN repository (read-only): http://svn.vanbest.org/svn/solr Websvn: http://svn.vanbest.org/websvn/listing.php?repname=solr
signature.asc
Description: OpenPGP digital signature
_______________________________________________ pkg-java-maintainers mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/pkg-java-maintainers

