当tomcat 8出现liferay时,我收到以下严重消息.
SEVERE [localhost-startStop-1] org.apache.tomcat.util.descriptor.web.SecurityConstraint.findUncoveredHttpMethods For security constraints with URL pattern [/bg/c/portal/protected] only the HTTP methods [POST GET] are covered. All other methods are uncovered.
03-Sep-2015 07:06:00.733 SEVERE [localhost-startStop-1] org.apache.tomcat.util.descriptor.web.SecurityConstraint.findUncoveredHttpMethods For security constraints with URL pattern [/sv/c/portal/protected] only the HTTP methods [POST GET] are covered. All other methods are uncovered.
03-Sep-2015 07:06:00.733 SEVERE [localhost-startStop-1] org.apache.tomcat.util.descriptor.web.SecurityConstraint.findUncoveredHttpMethods For security constraints with URL pattern [/zh/c/portal/protected] only the HTTP methods [POST GET] are covered. All other methods are uncovered.
Run Code Online (Sandbox Code Playgroud)
这对服务器启动没有任何影响,但不确定是什么原因引起的?任何帮助都会非常感激.
我在 service.xml 中定义了服务实体,如下所示:
<entity name="LoginData" local-service="true" remote-service="false">
<!-- PK fields -->
<column name="userId" type="long" primary="true" />
<column name="loginDate" type="Date" primary="true" />
</entity>
我正在尝试使用 LocalServiceImpl 类中定义的dynamicQuery 来获取行。
DynamicQuery dynamicQuery=DynamicQueryFactoryUtil.forClass(LoginData.class);
dynamicQuery.add(RestrictionsFactoryUtil.eq("userId", userId));
dynamicQuery.add(RestrictionsFactoryUtil.between("loginDate", startDate, endDate));
return (List<LoginData>)LoginDataLocalServiceUtil.dynamicQuery(dynamicQuery);
但上面代码的最后一行抛出异常
Caused by: org.hibernate.QueryException: could not resolve property: userId of: com.example.model.impl.LoginDataImpl
有人能告诉我这里出了什么问题吗?或者我错过了什么?