带有可搜索插件的grails app独立应用程序抛出NoClassDefFoundError

时间:2015-08-17 09:00:11

标签: grails grails-plugin grails-searchable grails-2.5

我正在尝试使用grails standalone app runner plug-in(v.1.3)构建一个独立的grails(v.2.5.0)应用程序。使用run-app和run-war一切正常,我也可以将WAR文件部署到tomcat 7实例而不会出现任何问题。但是,如果我构建一个带有grails build-standalone的独立JAR,由于以下ClassNotFoundException,我无法启动JAR:

<table>
    <tr>
        <td>Name</td>
        <td>Abc is Name</td>
    </tr>
    <tr>
        <td>Email</td>
        <td>Email@123.com</td>
    </tr>
    <tr>
        <td>Description</td>
        <td>
            <h1>Description title</h1>
            <p>Content for description</p>
            <table>
                <tr>
                    <td>Contact</td>
                    <td>Value for contact</td>
                </tr>
                <tr>
                    <td>Email</td>
                    <td>Emails goes here</td>
                </tr>
            </table>
        </td>
    </tr>
</table>

为了表明这个问题是可重现的,我在github上准备了一个最小的例子:

https://github.com/mlist/grails-standalone-search-bug

我在以下位置创建了错误报告: https://jira.grails.org/browse/GPSTANDALONE-22

我已经尝试从默认的tomcat 8切换到tomcat 7和jetty(相同的结果)。我也试过java 7和java 8,两者都有相同的结果。

1 个答案:

答案 0 :(得分:0)

以下是Burt Beckwith对我的错误报告的回答:

  

很抱歉这样做,但我无法花时间处理这个问题。   你不应该使用可搜索的插件 - 它只适用于   Hibernate 3,它没有扩展,因为它使用基于本地文件   指数。它基于指南针   (http://sourceforge.net/projects/compass/files/compass/),是   最后更新于2009年.ElasticSearch是一个更好的选择 - 请参阅   http://thedudeabides.com/articles/the_future_of_compass/

相关问题