未找到类:在Glassfish上部署 [英] Class not found: Deploying on Glassfish

查看:154
本文介绍了未找到类:在Glassfish上部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是错误消息:

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文件添加到classpath中。请建议。

The error occurs while trying to deploy on Glassfish 3.1 from my Oracle Eclipse Pack. I have added all the lucene jar files to classpath. Please suggest.

推荐答案

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

If you added your JARs manually, export your project to WAR file using Eclipse (File->Export->WAR->...) and open it like a folder (it's actually a ZIP file, Linux will do, Windows may need renaming the extension), now check if the JAR file is placed in WEB-INF/lib directory. If so try deploying this WAR to Glassfish manually (using console, or Admin web interface). This will tell you if Eclipse project settings are wrong, or Glassfish is for some reason not seeing your lib directory contents.

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

One more tip for you, there is directory in your Glassfish installation under glassfish_installdir/domains/domain1/lib/ext, which is accessible to all your apps deployed in domain1. But I don't recommend using this as a solution, just sometimes it can point your debugging to the cause of the problem.

这篇关于未找到类:在Glassfish上部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆