0

我正在尝试启动 jboss,但出现错误。我使用 jboss 7.1.1 和 Liferay。怎么了?

12:25:26,707 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBA
S015877: Stopped deployment ROOT.war in 235420ms
12:25:35,754 ERROR [stderr] (com.liferay.portal.kernel.deploy.auto.AutoDeploySca
nner) Exception in thread "com.liferay.portal.kernel.deploy.auto.AutoDeployScann
er" java.lang.NoClassDefFoundError: org/apache/tools/ant/types/resources/FailFas
t
12:25:35,785 ERROR [stderr] (com.liferay.portal.kernel.deploy.auto.AutoDeploySca
nner)   at org.apache.tools.ant.types.resources.BaseResourceCollectionContainer.
iterator(BaseResourceCollectionContainer.java:142)
12:25:35,801 ERROR [stderr] (com.liferay.portal.kernel.deploy.auto.AutoDeploySca
nner)   at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:135)
12:25:35,801 ERROR [stderr] (com.liferay.portal.kernel.deploy.auto.AutoDeploySca
nner)   at com.liferay.util.ant.ExpandTask.expand(ExpandTask.java:33)
12:25:35,801 ERROR [stderr] (com.liferay.portal.kernel.deploy.auto.AutoDeploySca
nner)   at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.
java:955)
12:25:35,801 ERROR [stderr] (com.liferay.portal.kernel.deploy.auto.AutoDeploySca
nner)   at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.
java:889)
12:25:35,801 ERROR [stderr] (com.liferay.portal.kernel.deploy.auto.AutoDeploySca
nner)   at com.liferay.portal.tools.deploy.BaseDeployer.autoDeploy(BaseDeployer.
java:198)
4

3 回答 3

1

第 1 步:首先要为 Liferay 开发设置机器,您需要下载并安装所有必需的软件,如下所述。

JAVA (JDK & JRE)
    http://www.oracle.com/technetwork/java/javase/downloads/index.html
 Eclipse IDE   
    http://www.eclipse.org/downloads/
Liferay JBOSS bundle (Community Edition or Enterprise Edition as per your requirements and preferences), Liferay Tomcat bundle (For server run time selection), Liferay Plugin SDK (For Development of plugins like hooks, portlets, themes etc.
     http://www.liferay.com/downloads/liferay-portal/available-releases
Apache Ant (For build and deployment of projects).

第 2 步:现在在您的机器中设置环境变量。设置 JAVA_HOME 设置 JBOSS_HOME 设置 LIFERAY_HOME 设置 ANT_HOME

第 3 步:打开 Eclipse 并安装 Liferay IDE。转到帮助 -> Eclipse Marketplace 搜索“Liferay”。安装 Liferay IDE 并重启 eclipse。

第 4 步:配置 Liferay Plugin-SDK 转到 Window -> Preferences -> Liferay
Add Liferay Plugin-SDK

 Here you will option to update build.<username>.properties file. Select
 prompt.


 That's it your system is ready with development environment for Liferay.

第 6 步:在 Liferay Plugin-SDK 文件夹中会有一个名为 build.username.properties 的文件

 Set path of server to refer JBOSS directory.

第 7 步:创建新的 Liferay 插件项目。在里面创建新的 Portlet 项目。
选择 Liferay Portal Runtime 作为 Tomcat,因为 Eclipse 不提供 JBOSS 应用服务器的运行时,所以使用一些棘手的方法来处理它。

After clicking on finish it will ask for updating build.<username>.properties file.
Select "No" option.

Okay Now you are done with project creation and Setting  deployment server
as JBOSS.

第 8 步:部署 Liferay Portlet 项目。
步骤 9:从 JBOSS 的 bin 目录运行standalone.bat

有关更多详细信息,请关注此博客http://liferaywithjboss.blogspot.in/

如果您需要更多详细信息,请告诉我。

于 2015-01-01T13:23:38.483 回答
0

检查 ROOT.war/WEB-INF/ 位置中的 jboss-deployment-structure.xml 文件,以查看其中提到的任何依赖模块使用 ant-*.jars。问题可能是由于类路径中有多个具有相同类名的 jar。

于 2013-10-07T19:35:25.427 回答
0

新的 liferay 版本提供了一个 wildfly 包......这可能是一个起点,但是 ClassNotFound 通常源于该特殊上下文中缺少的 jar,无论是物理上还是被 jboss 模块系统抑制(开始是部署结构文件,或者更糟糕的是您安装的模块目录),但最终像我这样的人决定经常在自愿潜入新的工作环境之前获得一个新的工作环境......

于 2016-10-12T06:37:21.513 回答