You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Aaron Whittier (JIRA)" <ji...@apache.org> on 2008/08/22 19:24:44 UTC

[jira] Created: (SOLR-717) Distribute Solr test jar so test code can be used by clients

Distribute Solr test jar so test code can be used by clients
------------------------------------------------------------

                 Key: SOLR-717
                 URL: https://issues.apache.org/jira/browse/SOLR-717
             Project: Solr
          Issue Type: Wish
    Affects Versions: 1.3
            Reporter: Aaron Whittier
            Priority: Minor


We're looking at adding some custom code to our usage of Solr, and we'd like to reuse some of the testing framework code in Solr. I don't believe that the test classes are released as part of any jar, however - can we get that code exposed through a jar file built during the dist process?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-717) Distribute Solr test jar so test code can be used by clients

Posted by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12624913#action_12624913 ] 

Shalin Shekhar Mangar commented on SOLR-717:
--------------------------------------------

The AbstractSolrTestCase class is distributed with the apache-solr-core-1.3-dev.jar

> Distribute Solr test jar so test code can be used by clients
> ------------------------------------------------------------
>
>                 Key: SOLR-717
>                 URL: https://issues.apache.org/jira/browse/SOLR-717
>             Project: Solr
>          Issue Type: Wish
>    Affects Versions: 1.3
>            Reporter: Aaron Whittier
>            Priority: Minor
>
> We're looking at adding some custom code to our usage of Solr, and we'd like to reuse some of the testing framework code in Solr. I don't believe that the test classes are released as part of any jar, however - can we get that code exposed through a jar file built during the dist process?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-717) Distribute Solr test jar so test code can be used by clients

Posted by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626418#action_12626418 ] 

Shalin Shekhar Mangar commented on SOLR-717:
--------------------------------------------

The schema.xml that you are using for testing may be using CustomSimilarityFactory -- if you remove that reference, it should work fine. The AbstractSolrTestCase does not explicitly use this class.

{code:xml}
<similarity class="org.apache.solr.schema.CustomSimilarityFactory">
   <str name="echo">is there an echo?</str>
 </similarity>
{code}

> Distribute Solr test jar so test code can be used by clients
> ------------------------------------------------------------
>
>                 Key: SOLR-717
>                 URL: https://issues.apache.org/jira/browse/SOLR-717
>             Project: Solr
>          Issue Type: Wish
>    Affects Versions: 1.3
>            Reporter: Aaron Whittier
>            Priority: Minor
>
> We're looking at adding some custom code to our usage of Solr, and we'd like to reuse some of the testing framework code in Solr. I don't believe that the test classes are released as part of any jar, however - can we get that code exposed through a jar file built during the dist process?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (SOLR-717) Distribute Solr test jar so test code can be used by clients

Posted by "Aaron Whittier (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626307#action_12626307 ] 

aaronwhittier edited comment on SOLR-717 at 8/27/08 1:22 PM:
--------------------------------------------------------------

It looks like something in Solr is trying to load org.apache.solr.schema.CustomSimilarityFactory, which isn't in that jar:

 [junit] Error loading class 'org.apache.solr.schema.CustomSimilarityFactory'
    [junit] org.apache.solr.common.SolrException: Error loading class 'org.apache.solr.schema.CustomSimilarityFactory'
    [junit] 	at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:256)
    [junit] 	at org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:261)
    [junit] 	at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:541)
    [junit] 	at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:92)
    [junit] 	at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:74)
    [junit] 	at org.apache.solr.util.TestHarness.<init>(TestHarness.java:120)
    [junit] 	at org.apache.solr.util.AbstractSolrTestCase.setUp(AbstractSolrTestCase.java:101)
    [junit] 	at net.wgen.aris.search.solr.handler.rich.pdf.PDFLoaderTest.setUp(PDFLoaderTest.java:32)
    [junit] Caused by: java.lang.ClassNotFoundException: org.apache.solr.schema.CustomSimilarityFactory
    [junit] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    [junit] 	at java.security.AccessController.doPrivileged(Native Method)
    [junit] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    [junit] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    [junit] 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    [junit] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    [junit] 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    [junit] 	at java.lang.Class.forName0(Native Method)
    [junit] 	at java.lang.Class.forName(Class.java:247)
    [junit] 	at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:240)

It is, however, in the testing source tree.



      was (Author: aaronwhittier):
    It looks like something in Solr is trying to load org.apache.solr.schema.CustomSimilarityFactory, which isn't in that jar:

 [junit] Error loading class 'org.apache.solr.schema.CustomSimilarityFactory'
    [junit] org.apache.solr.common.SolrException: Error loading class 'org.apache.solr.schema.CustomSimilarityFactory'
    [junit] 	at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:256)
    [junit] 	at org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:261)
    [junit] 	at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:541)
    [junit] 	at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:92)
    [junit] 	at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:74)
    [junit] 	at org.apache.solr.util.TestHarness.<init>(TestHarness.java:120)
    [junit] 	at org.apache.solr.util.AbstractSolrTestCase.setUp(AbstractSolrTestCase.java:101)
    [junit] 	at net.wgen.aris.search.solr.handler.rich.pdf.PDFLoaderTest.setUp(PDFLoaderTest.java:32)
    [junit] Caused by: java.lang.ClassNotFoundException: org.apache.solr.schema.CustomSimilarityFactory
    [junit] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    [junit] 	at java.security.AccessController.doPrivileged(Native Method)
    [junit] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    [junit] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    [junit] 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    [junit] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    [junit] 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    [junit] 	at java.lang.Class.forName0(Native Method)
    [junit] 	at java.lang.Class.forName(Class.java:247)
    [junit] 	at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:240)

  
> Distribute Solr test jar so test code can be used by clients
> ------------------------------------------------------------
>
>                 Key: SOLR-717
>                 URL: https://issues.apache.org/jira/browse/SOLR-717
>             Project: Solr
>          Issue Type: Wish
>    Affects Versions: 1.3
>            Reporter: Aaron Whittier
>            Priority: Minor
>
> We're looking at adding some custom code to our usage of Solr, and we'd like to reuse some of the testing framework code in Solr. I don't believe that the test classes are released as part of any jar, however - can we get that code exposed through a jar file built during the dist process?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-717) Distribute Solr test jar so test code can be used by clients

Posted by "Aaron Whittier (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12626307#action_12626307 ] 

Aaron Whittier commented on SOLR-717:
-------------------------------------

It looks like something in Solr is trying to load org.apache.solr.schema.CustomSimilarityFactory, which isn't in that jar:

 [junit] Error loading class 'org.apache.solr.schema.CustomSimilarityFactory'
    [junit] org.apache.solr.common.SolrException: Error loading class 'org.apache.solr.schema.CustomSimilarityFactory'
    [junit] 	at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:256)
    [junit] 	at org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:261)
    [junit] 	at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:541)
    [junit] 	at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:92)
    [junit] 	at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:74)
    [junit] 	at org.apache.solr.util.TestHarness.<init>(TestHarness.java:120)
    [junit] 	at org.apache.solr.util.AbstractSolrTestCase.setUp(AbstractSolrTestCase.java:101)
    [junit] 	at net.wgen.aris.search.solr.handler.rich.pdf.PDFLoaderTest.setUp(PDFLoaderTest.java:32)
    [junit] Caused by: java.lang.ClassNotFoundException: org.apache.solr.schema.CustomSimilarityFactory
    [junit] 	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    [junit] 	at java.security.AccessController.doPrivileged(Native Method)
    [junit] 	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    [junit] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    [junit] 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
    [junit] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    [junit] 	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    [junit] 	at java.lang.Class.forName0(Native Method)
    [junit] 	at java.lang.Class.forName(Class.java:247)
    [junit] 	at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:240)


> Distribute Solr test jar so test code can be used by clients
> ------------------------------------------------------------
>
>                 Key: SOLR-717
>                 URL: https://issues.apache.org/jira/browse/SOLR-717
>             Project: Solr
>          Issue Type: Wish
>    Affects Versions: 1.3
>            Reporter: Aaron Whittier
>            Priority: Minor
>
> We're looking at adding some custom code to our usage of Solr, and we'd like to reuse some of the testing framework code in Solr. I don't believe that the test classes are released as part of any jar, however - can we get that code exposed through a jar file built during the dist process?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-717) Distribute Solr test jar so test code can be used by clients

Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625002#action_12625002 ] 

Hoss Man commented on SOLR-717:
-------------------------------

bq. The AbstractSolrTestCase class is distributed with the apache-solr-core-1.3-dev.jar

right ... if there's other testing related code that you think would be useful for other people, we should refactor it.

> Distribute Solr test jar so test code can be used by clients
> ------------------------------------------------------------
>
>                 Key: SOLR-717
>                 URL: https://issues.apache.org/jira/browse/SOLR-717
>             Project: Solr
>          Issue Type: Wish
>    Affects Versions: 1.3
>            Reporter: Aaron Whittier
>            Priority: Minor
>
> We're looking at adding some custom code to our usage of Solr, and we'd like to reuse some of the testing framework code in Solr. I don't believe that the test classes are released as part of any jar, however - can we get that code exposed through a jar file built during the dist process?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.