【问题标题】:Issue with build which build by eclipse and ant script由 eclipse 和 ant 脚本构建的构建问题
【发布时间】:2012-06-26 08:37:55
【问题描述】:

我正在尝试通过 Eclipse 使用 ANT 脚本构建我的项目。到星期五它工作正常......但是从最近两天开始,无论我从我的工作区构建哪个构建,构建都成功完成,但是当我尝试部署那个耳朵时,它给了我以下错误并且我的耳朵没有得到部署。

[DispatcherPortlet] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'PreReportController' defined in PortletContext resource [/WEB-INF/context/PreReport-portlet.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.adgo.portlet.PreReportController]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
    The import com.adgo.usercommon cannot be resolved
    The import app cannot be resolved
    The import app cannot be resolved
    The import app cannot be resolved
    The import app cannot be resolved
    The import app cannot be resolved
    The import app cannot be resolved
    The import app cannot be resolved
    The import com.k2.event cannot be resolved
    The import com.k2.util cannot be resolved
    The import com.k2.util cannot be resolved
    CustomeLogger cannot be resolved

我不知道出了什么问题。我有 5 个工作区,所有工作区都处于运行状态。但是现在所有这些工作空间的构建都给了我同样的错误。我没有为 Eclipse 和 JBoss 更改我的 java。请给我建议。我不知道我的 Java/Eclipse/System/Jboss 是不是这个问题.......

【问题讨论】:

  • 尝试在 Eclipse 中再次刷新、清理和构建项目。

标签: java eclipse ant jboss


【解决方案1】:

com.adgo.portlet.PreReportController 类似乎存在某种编译问题。

尝试解决它们。确保您拥有所有需要的库。您可能还必须将一些库放在服务器端文件夹中。

如果以上两项都勾选了,你应该不会遇到这个错误。

【讨论】:

  • 一切都在服务器端。实际上这个问题是我在一个工作空间遇到的,然后我告诉我的所有工作空间在部署由他们构建的构建时抛出相同的错误。
  • 您最近是否错误地删除了您的项目可能引用的任何 lib 文件夹?尝试检查一次。那样的话,无论你使用哪个工作空间,@每个地方都会抛出同样的问题。
猜你喜欢
  • 1970-01-01
  • 2011-04-30
  • 1970-01-01
  • 2013-03-24
  • 1970-01-01
  • 2013-05-09
  • 2014-07-23
  • 2011-10-12
  • 1970-01-01
相关资源
最近更新 更多