0

当我尝试部署我的时,我收到以下错误(完整堆栈跟踪)TagsNavigation-hook.war

14:04:37,562 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "TagsNavigation-hook.war"
14:04:37,589 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) added javax.persistence.api dependency to TagsNavigation-hook.war
14:04:37,596 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."TagsNavigation-hook.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."TagsNavigation-hook.war".INSTALL: Failed to process phase INSTALL of deployment "TagsNavigation-hook.war"
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [:1.7.0_04]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.7.0_04]
        at java.lang.Thread.run(Unknown Source) [:1.7.0_04]
Caused by: java.lang.RuntimeException: Failed to load class com.liferay.taglib.portlet.NamespaceTag
        at org.jboss.as.ee.component.deployers.EEClassConfigurationProcessor$1.compute(EEClassConfigurationProcessor.java:141)
        at org.jboss.as.ee.component.deployers.EEClassConfigurationProcessor$1.compute(EEClassConfigurationProcessor.java:122)
        at org.jboss.as.ee.component.LazyValue.get(LazyValue.java:40)
        at org.jboss.as.ee.component.EEApplicationDescription.getClassConfiguration(EEApplicationDescription.java:183)
        at org.jboss.as.ee.component.ComponentDescription.createConfiguration(ComponentDescription.java:153)
        at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:70)
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]
        ... 5 more
Caused by: java.lang.ClassNotFoundException: com.liferay.taglib.portlet.NamespaceTag from [Module "deployment.TagsNavigation-hook.war:main" from Service Module Loader]
        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)
        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)
        at java.lang.Class.forName0(Native Method) [:1.7.0_04]
        at java.lang.Class.forName(Unknown Source) [:1.7.0_04]
        at org.jboss.as.ee.component.deployers.EEClassConfigurationProcessor$1.compute(EEClassConfigurationProcessor.java:139)
        ... 11 more

这以前可以工作,但是在我通过直接TagsNavigation-hook.war从位置删除取消部署后无法正常工作\liferay-portal-6.1.10-ee-ga1\jboss-7.0.2\standalone\deployments,在我通过liferay取消部署的另一台Jboss服务器上Control Panel --> Update Manager

我尝试了以下方法:

  1. 将文件重命名TagsNavigation-hook.war.failedTagsNavigation-hook.war.dodeploy但仍然相同的错误。
  2. 停止服务器,然后将其更改为TagsNavigation-hook.war.dodeploy然后重新启动服务器,但仍然是同一件事。
  3. 完全删除TagsNavigation-hook.warTagsNavigation-hook.war.failed文件,然后部署它。我尝试将此作为热部署以及停止服务器->部署->启动服务器。

其他插件部署(主题、钩子和 portlet)运行良好。这个钩子在 Tomcat-7 上也能正常工作!

环境: Liferay 6.1.10 EE 与 Linux 上的 JBOSS 7.0.2 捆绑

4

1 回答 1

0

现在它正在工作。

我刚刚添加了这个属性:portal-dependency-jars=util-taglib.jar在里面liferay-plugin-package.properties然后部署。

这感觉很奇怪,因为钩子在没有定义属性的情况下在 tomcat 上工作得非常好,而且只有在 Jboss 上它才会给出这个错误,而且只有在我取消部署它之后才会出现这个错误。

于 2012-07-19T08:58:27.583 回答