小编Pan*_*iya的帖子

严重的安全限制,而tomcat 8启动与liferay

当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)

这对服务器启动没有任何影响,但不确定是什么原因引起的?任何帮助都会非常感激.

security tomcat liferay liferay-6 tomcat8

7
推荐指数
1
解决办法
1万
查看次数

Liferay 中遇到异常:org.hibernate.QueryException:无法解析属性

我在 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

有人能告诉我这里出了什么问题吗?或者我错过了什么?

liferay dynamicquery liferay-6

3
推荐指数
1
解决办法
1650
查看次数

标签 统计

liferay ×2

liferay-6 ×2

dynamicquery ×1

security ×1

tomcat ×1

tomcat8 ×1