【问题标题】:Class not found: Deploying on Glassfish找不到类:在 Glassfish 上部署
【发布时间】:2013-05-28 00:15:03
【问题描述】:

以下是错误信息:

SEVERE: Class [ org/apache/lucene/queryparser/classic/ParseException ] not found. Error while loading [ class test.com.creatop.ateam.facade.TestFacade ]
SEVERE: Class [ org/apache/lucene/queryparser/classic/ParseException ] not found. Error while loading [ class com.creatop.ateam.facade.implementation.PropertyFacade ]
SEVERE: Class [ org/apache/lucene/queryparser/classic/ParseException ] not found. Error while loading [ class com.creatop.ateam.facade.implementation.ProjectFacade ]
SEVERE: Class [ Lorg/hibernate/validator/ClassValidator; ] not found. Error while loading [ class importprocess.meridien.ContactImport ]
SEVERE: Class [ org/apache/lucene/queryparser/classic/ParseException ] not found. Error while loading [ class com.creatop.ateam.facade.implementation.BuildingManagementFacade ]
SEVERE: Class [ org/apache/lucene/queryparser/classic/ParseException ] not found. Error while loading [ class com.creatop.ateam.facade.implementation.DefectFacade ]
SEVERE: Class [ org/apache/lucene/queryparser/classic/ParseException ] not found. Error while loading [ class com.creatop.ateam.facade.implementation.ClaimFacade ]
SEVERE: org/apache/lucene/search/FieldComparatorSource
SEVERE: Exception while deploying the app [eSystem]
SEVERE: org/apache/lucene/search/FieldComparatorSourceat org.glassfish.apf.AnnotationInfo@6bf2c7

尝试从我的 Oracle Eclipse Pack 部署到 Glassfish 3.1 时发生错误。我已将所有 lucene jar 文件添加到类路径中。请提出建议。

【问题讨论】:

    标签: java jakarta-ee lucene glassfish-3


    【解决方案1】:

    如果您手动添加了 JAR,请使用 Eclipse (File->Export->WAR->...) 将项目导出到 WAR 文件并像文件夹一样打开它(它实际上是一个 ZIP 文件,Linux 可以,Windows可能需要重命名扩展名),现在检查 JAR 文件是否放在 WEB-INF/lib 目录中。如果是这样,请尝试手动将此 WAR 部署到 Glassfish(使用控制台或管理 Web 界面)。这将告诉您 Eclipse 项目设置是否错误,或者 Glassfish 出于某种原因看不到您的 lib 目录内容。

    还有一个提示,在您的 Glassfish 安装中,glassfish_installdir/domains/domain1/lib/ext 下有一个目录,您部署在 domain1 中的所有应用都可以访问该目录。但我不建议将其用作解决方案,只是有时它可以将您的调试指向问题的原因。

    【讨论】:

      【解决方案2】:

      如果您有单独的项目,请将其打包到 EAR 中,以便服务器可以找到类

      【讨论】:

        猜你喜欢
        • 2014-12-19
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-08-22
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-11-29
        相关资源
        最近更新 更多