使用eclipse和ant脚本构建的构建问题

时间:2012-06-26 08:37:56

标签: java eclipse ant jboss

我正在尝试使用ANT脚本通过Eclipse构建我的项目。到星期五它工作正常....但是从最近两天我从我的工作区构建的构建版本中,Build已成功完成,但是当我尝试部署该耳朵时它会让我出现以下错误并且我的耳朵没有部署。

[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这个问题是什么.......

1 个答案:

答案 0 :(得分:0)

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

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

如果选中上述两个,则不应该遇到此错误。