I input all the source code in winxp sp2 & tomcat 5 in jBuilder . when I
debug the application always throw Exception like :
org.apache.solr.core.SolrException: Error loading class
'solr.StandardFilterFactory'...
Caused by: java.lang.ClassNotFoundException: ...
such as ort.apache.solr.schema.* all throw this Exception ;I think those
codes :
public static Class findClass(String cname, String... subpackages) {
    ClassLoader loader = Thread.currentThread().getContextClassLoader();
    if (subpackages.length==0) subpackages = packages;

    // first try cname == full name
    try {
      return Class.forName(cname, true, loader);
    } catch (ClassNotFoundException e) {
      String newName=cname;
      if (newName.startsWith(project)) {
        newName = cname.substring(project.length()+1);
      }
      for (String subpackage : subpackages) {
        try {
          String name = base + '.' + subpackage + newName;
          log.finest("Trying class name " + name);
          return Class.forName(name, true, loader);
        } catch (ClassNotFoundException e1) {
          // ignore... assume first exception is best.
        }
      }

      throw new SolrException(500, "Error loading class '" + cname + "'", e,
false);
    }
in org.apache.solr.core.Config class cause the exception;
who can tell me why;Reason is A:cofig file not load?B:tomcat classloader
cause the exception?C:maybe some liberary not import?D:OTHERS?... 
Thanks! 

--
View this message in context: 
http://www.nabble.com/how+to+run+solr+in+windows+-+Tomcat5-t1658550.html#a4492962
Sent from the Solr - User forum at Nabble.com.

Reply via email to