Fórumok

Strange error by Liferay's login jsp

thumbnail
Vinod Kumar Nair, módosítva 11 év-val korábban

Strange error by Liferay's login jsp

Junior Member Bejegyzések: 58 Csatlakozás dátuma: 2012.07.13. Legújabb bejegyzések
Hi, using hooks I'm overriding the login.jsp page. Sometimes it works fine but sometimes don't know what happens to it. It gives a strange error on console due to that display of Login portlet(liferay's default) does come up. Screen shot is attached. Please tell me what is wrong here.

Error is:-

07:13:14,562 INFO [PortletHotDeployListener:614] Registering portlets for SDPPortalHook-hook
07:13:14,658 INFO [PortletHotDeployListener:438] 2 portlets for SDPPortalHook-hook are available for use
07:13:19,261 ERROR [IncludeTag:426] Current URL / generates exception: Unable to compile class for JSP:

An error occurred at line: 32 in the jsp file: /html/portlet/login/login.jsp
PropsValues.COMPANY_SECURITY_AUTH_REQUIRES_HTTPS cannot be resolved to a type
29:
30:
31:
32: <portlet:actionURL secure="<%= PropsValues.COMPANY_SECURITY_AUTH_REQUIRES_HTTPS || request.isSecure() %>" var="loginURL">
33: <portlet:param name="saveLastPath" value="0" />
34: <portlet:param name="struts_action" value="/login/login" />
35: </portlet:actionURL>


Stacktrace:
07:13:19,263 ERROR [IncludeTag:154] org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 32 in the jsp file: /html/portlet/login/login.jsp
PropsValues.COMPANY_SECURITY_AUTH_REQUIRES_HTTPS cannot be resolved to a type
29:
30:
31:
32: <portlet:actionURL secure="<%= PropsValues.COMPANY_SECURITY_AUTH_REQUIRES_HTTPS || request.isSecure() %>" var="loginURL">
33: <portlet:param name="saveLastPath" value="0" />
34: <portlet:param name="struts_action" value="/login/login" />
35: </portlet:actionURL>


Stacktrace:
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:331)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:457)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
thumbnail
Vinod Kumar Nair, módosítva 11 év-val korábban

RE: Strange error by Liferay's login jsp

Junior Member Bejegyzések: 58 Csatlakozás dátuma: 2012.07.13. Legújabb bejegyzések
I have identified the issue. I imported <%@page import="com.liferay.portal.util.PropsValues"%> on JSP and it resolved.
But I had this import in a common jsp init.jsp and I called this jsp into it..anways its done emoticon