在liferay 6.2中构建服务时出错

时间:2016-09-02 06:21:57

标签: java liferay

我是liferay的新手,并为数据库操作制作示例应用程序。但我最终在构建服务时遇到错误。堆栈跟踪如下: -

1. ERROR in E:\Liferay 6.2 CE GA-3\liferay-plugins-sdk-6.2\portlets\portletsessiondemo-portlet\docroot\WEB-INF\service\com\liferay\sample\model\userdetails.java (at line 1)
    [javac]     /**
    [javac]     ^
    [javac] The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
    [javac] ----------
    [javac] ----------
    [javac] 2. ERROR in E:\Liferay 6.2 CE GA-3\liferay-plugins-sdk-6.2\portlets\portletsessiondemo-portlet\docroot\WEB-INF\service\com\liferay\sample\service\ClpSerializer.java (at line 0)
    [javac]     /**
    [javac]     ^
    [javac] The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files
    [javac] ----------
    [javac] 2 problems (2 errors)

BUILD FAILED

任何帮助将不胜感激。 Thanx很多..

1 个答案:

答案 0 :(得分:0)

我得到了解决方案..我将jdk版本从1.8降级到1.7,问题解决了。似乎服务构建器与1.8

不兼容