Foros de discusión

include portal jsps from hook

thumbnail
Peter Ruzicka, modificado hace 12 años.

include portal jsps from hook

Junior Member Mensajes: 48 Fecha de incorporación: 7/12/06 Mensajes recientes
Hello,

I have hook with jsps overiding liferay portlet ones. e.g. document_library/view.jsp - tested - works fine. (I have custom-jsp-dir set etc )

Now I want to create my portlet in this hook, which at the end renders hook's document_library/view.jsp.

But I get error:
org.apache.jasper.JasperException: /WEB-INF/html/portlet/document_library/view.jsp(17,1) File "/html/portlet/document_library/init.jsp" not found


I didn't create init.jsp - I want this hook to use Liferay document_library original one.

Can you help me?

Thank you
thumbnail
Olaf Kock, modificado hace 12 años.

RE: include portal jsps from hook (Respuesta)

Liferay Legend Mensajes: 6403 Fecha de incorporación: 23/09/08 Mensajes recientes
Copying my answer from stackoverflow:

Short answer: You can't.

Reason: JSPs from a hooks custom-jsp directory will be copied over to the portal - thus they will run in liferay's classloader. Your portlet however will run in your plugin's classloader, thus have no access to liferay's jsps.

JSPs in hooks (those that are declared as custom-jsps for the portal) cannot be used from portlets in the same plugin. This is by design, you can't work around this other than through copying them to a path where your portlet can reach them.

As a best practice, I'd advise to create a hook for modifications to Liferay and a separate portlet plugin with new (additional) portlets. Make the portlets self-contained. There are situations where it's good to combine hooks and portlets, but I like it best if modifications and additions are kept apart.
thumbnail
Nishikant sapkal, modificado hace 12 años.

RE: include portal jsps from hook

Junior Member Mensajes: 80 Fecha de incorporación: 16/02/10 Mensajes recientes
Hi Kock,

The explanation u had given seems to be pretty satisfactory.
But then what is the way of creating hook in liferay 6 sdk env. If i have to make small change in only view.jsp will it not be possible using jsp -hook

I am facing same issue like i have migrated a hook from liferay 5,x in which only following jsp's are overridden
view.jsp,tabs1.jsp
and in view.jsp i am using import statement to include the init.jsp from the root folder as..

<liferay-util:include page="/html/portlet/document_library/tabs1.jsp" />

But this is not working for me the variables that are declared in init.jsp are not available to view.jsp and its giving me jasper error at runtime........

Please help me....
Thanks in advance....
thumbnail
Olaf Kock, modificado hace 12 años.

RE: include portal jsps from hook

Liferay Legend Mensajes: 6403 Fecha de incorporación: 23/09/08 Mensajes recientes
AFAIK <liferay-util:includepage="/html/portlet/document_library/tabs1.jsp" /> will not bring in the variables - e.g. it will be a delegation to that jsp, not an inclusion in the current compiler context. <%@ include file="/html/portlet/document_library/tabs1.jsp" %> should do the trick.
thumbnail
Peter Ruzicka, modificado hace 12 años.

RE: include portal jsps from hook

Junior Member Mensajes: 48 Fecha de incorporación: 7/12/06 Mensajes recientes
I am looking for "Thank you " button in this message board.

Thank you
Gustavo Fernandes, modificado hace 12 años.

RE: include portal jsps from hook

Junior Member Mensajes: 25 Fecha de incorporación: 3/10/11 Mensajes recientes
Hi Olaf,

I am trying to extend the Calendar portlet, much in a similar way as for the Inkwell case presented in the "Liferay in Action" book, by Richard Sezov.
My goal is to associate an image to a calendar event.
So i used service builder , created the CAlEventService overrides.
My problem is trying to use the created classes in the day.jspf file (for the Calendar hook) as follows:

&lt;%@page import="pt.sucessios.services.model.CalEventImage" %&gt;
&lt;%@page import="pt.sucessios.services.extension.SucessiosCalEventLocalServiceImpl" %&gt;
..........
&lt;%
    CalEventImage eventimage = CalEventImageLocalServiceUtil.getCalEventImageByEvent(event.getEventId());
%&gt;   


This throws me the following log lines, so i deduce i cannot access this layer from the jspf.

Stacktrace:
2011-11-06 20:17:04,403 ERROR [com.liferay.taglib.util.IncludeTag] (http-0.0.0.0-8080-1) org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 233 in the generated java file
Only a type can be imported. pt.sucessios.services.model.CalEventImage resolves to a package

An error occurred at line: 234 in the generated java file
Only a type can be imported. pt.sucessios.services.service.CalEventImageLocalServiceUtil resolves to a package

An error occurred at line: 307 in the jsp file: /html/portlet/calendar/day.jspf
CalEventImage cannot be resolved to a type
304: 				<b>ID do Evento : &lt;%=event.getEventId() %&gt;</b>	
305: 			
306: 				&lt;%
307: 					CalEventImage eventimage = CalEventImageLocalServiceUtil.getCalEventImageByEvent(event.getEventId());
308: 				%&gt;	
309: 					<!--  <img src="http://www.sucessios.pt:8080/image/image_gallery?img_id=22403" width="80px" height="25px" /> -->
310: 					<img src="#" width="80px" height="25px"> 


An error occurred at line: 307 in the jsp file: /html/portlet/calendar/day.jspf
CalEventImageLocalServiceUtil cannot be resolved
304: 				<b>ID do Evento : &lt;%=event.getEventId() %&gt;</b>	
305: 			
306: 				&lt;%
307: 					CalEventImage eventimage = CalEventImageLocalServiceUtil.getCalEventImageByEvent(event.getEventId());
308: 				%&gt;	
309: 					<!--  <img src="http://www.sucessios.pt:8080/image/image_gallery?img_id=22403" width="80px" height="25px" /> -->
310: 					<img src="#" width="80px" height="25px"> 



The new entity table is created in the database, i can even create a new record on that table when i create a new calendar event.
The same thing is happening in the Inkwell example.

I tried to put the JAR file in the global /lib folder as suggested by the book. The import problem is solved, but.... i continue to get error, when executing the line:

 CalEventImage eventimage = CalEventImageLocalServiceUtil.getCalEventImageByEvent(event.getEventId());


I attached both my Eclipse project zip files: one for the Calendar, and the other for the Inkwell case.
I am using the Liferay+JBOSS bundle.

Your help would be much appreciated.
Thanks in advance.

Gustavo
thumbnail
Olaf Kock, modificado hace 12 años.

RE: include portal jsps from hook

Liferay Legend Mensajes: 6403 Fecha de incorporación: 23/09/08 Mensajes recientes
When you extend the Calendar portlet with a modified jsp, this jsp will run in the portal's classloader - thus it does not have access to the service-jar that is located in your extension hook. This is the explanation why the first problem went away when you put the service jar in the global classpath: Now the portal classloader has access to your custom service.

As I don't have enough time at hand to set up and debug your problem: For the currently left problem you just state that there is an error. It would be good if you could specify this a bit more. You'll have to understand that every class you return from your services must be available to the portal as well - e.g. if you have any additional beans, they are not reachable from the portal if they are just deployed to your hook. By design all web applications are well shielded against accessing their respective data/classes. This is what is mitigated through the global classpath / global lib directory.
Gustavo Fernandes, modificado hace 12 años.

RE: include portal jsps from hook

Junior Member Mensajes: 25 Fecha de incorporación: 3/10/11 Mensajes recientes
Hi Olaf,

Thank you so much for your response and your time.

As said, I moved the generated -service.jar to the global lib directory:

[liferay]\[jboss]\server\default\deploy\ROOT.war\WEB-INF\lib\


The error occurring in day.jspf is the following:


2011-11-08 19:00:38,942 INFO [com.liferay.portal.deploy.hot.HookHotDeployListener] (HDScanner) Hook for CalEvent-hook is available for use
2011-11-08 19:00:57,489 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[jsp]] (http-0.0.0.0-8080-7) Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at pt.sucessios.services.service.CalEventImageLocalServiceClp.<init>(CalEventImageLocalServiceClp.java:480)
at pt.sucessios.services.service.CalEventImageLocalServiceUtil.getService(CalEventImageLocalServiceUtil.java:262)
at pt.sucessios.services.service.CalEventImageLocalServiceUtil.getCalEventImageByEvent(CalEventImageLocalServiceUtil.java:241)
at org.apache.jsp.html.portlet.calendar.view_jsp._jspService(view_jsp.java:2649)

[......]

2011-11-08 19:00:58,301 ERROR [com.liferay.taglib.util.IncludeTag] (http-0.0.0.0-8080-7) Current URL /teste?p_p_id=8&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_p_col_count=1&_8_tabs1=day&_8_month=10&_8_struts_action=%2Fcalendar%2Fview&_8_year=2011&_8_day=10 generates exception: An exception occurred processing JSP page /html/portlet/calendar/day.jspf at line 306

303:
304: <b>ID do Evento : <%=event.getEventId() %></b>
305: <%
306: CalEventImage eventimage = CalEventImageLocalServiceUtil.getCalEventImageByEvent(event.getEventId());
307: %>
308: <img src="#" width="80px" height="25px" />
309: </div>


Stacktrace:
2011-11-08 19:00:58,317 ERROR [com.liferay.taglib.util.IncludeTag] (http-0.0.0.0-8080-7) java.lang.NullPointerException
at pt.sucessios.services.service.CalEventImageLocalServiceClp.<init>(CalEventImageLocalServiceClp.java:480)
at pt.sucessios.services.service.CalEventImageLocalServiceUtil.getService(CalEventImageLocalServiceUtil.java:262)
at pt.sucessios.services.service.CalEventImageLocalServiceUtil.getCalEventImageByEvent(CalEventImageLocalServiceUtil.java:241)


According to the log above, the error occurs at the generated Java class CalEventImageLocalServiceUtil.java:


public static pt.sucessios.services.model.CalEventImage getCalEventImageByEvent(long calEventId)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().getCalEventImageByEvent(calEventId);
}

...Where getService() method is:

public static CalEventImageLocalService getService() {
if (_service == null) {
Object obj = PortletBeanLocatorUtil.locate(ClpSerializer.SERVLET_CONTEXT_NAME,
CalEventImageLocalService.class.getName());
ClassLoader portletClassLoader = (ClassLoader)PortletBeanLocatorUtil.locate(ClpSerializer.SERVLET_CONTEXT_NAME,
"portletClassLoader");

ClassLoaderProxy classLoaderProxy = new ClassLoaderProxy(obj,
portletClassLoader);

_service = new CalEventImageLocalServiceClp(classLoaderProxy);

ClpSerializer.setClassLoader(portletClassLoader);
}

return _service;
}

It's like you said: it is probably some class not beeing found and loaded correctly.
I'm back to square one.

Thank You for your help!
Cheers!
thumbnail
Anupam Ranjan, modificado hace 11 años.

RE: include portal jsps from hook

New Member Mensajes: 5 Fecha de incorporación: 27/10/11 Mensajes recientes
Hi All,
I am facing the problem in Including the /html/portlet/css_init.jsp page .

I have read the thread regarding this but have not got the real idea why this error is coming in server.log file.

Here is the piece of error of log file:

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 27 in the jsp file: /html/portlet/css_init.jsp
Duplicate local variable companyId
24: <%@ page import="com.liferay.portal.util.PortalUtil" %>
25:
26: <%
27: long companyId = PortalUtil.getCompanyId(request);
28:
29: String themeId = ParamUtil.getString(request, "themeId");
30:


An error occurred at line: 29 in the jsp file: /html/portlet/css_init.jsp
Duplicate local variable themeId
26: <%
27: long companyId = PortalUtil.getCompanyId(request);
28:
29: String themeId = ParamUtil.getString(request, "themeId");
30:
31: Theme theme = ThemeLocalServiceUtil.getTheme(companyId, themeId, false);
32:


An error occurred at line: 31 in the jsp file: /html/portlet/css_init.jsp
Duplicate local variable theme
28:
29: String themeId = ParamUtil.getString(request, "themeId");
30:
31: Theme theme = ThemeLocalServiceUtil.getTheme(companyId, themeId, false);
32:
33: String themeStaticResourcePath = theme.getStaticResourcePath();
34:


An error occurred at line: 33 in the jsp file: /html/portlet/css_init.jsp
Duplicate local variable themeStaticResourcePath
30:
31: Theme theme = ThemeLocalServiceUtil.getTheme(companyId, themeId, false);
32:
33: String themeStaticResourcePath = theme.getStaticResourcePath();
34:
35: String cdnHost = PortalUtil.getCDNHost(request.isSecure());
36:


An error occurred at line: 35 in the jsp file: /html/portlet/css_init.jsp
Duplicate local variable cdnHost
32:
33: String themeStaticResourcePath = theme.getStaticResourcePath();
34:
35: String cdnHost = PortalUtil.getCDNHost(request.isSecure());
36:
37: String themeImagesPath = cdnHost + themeStaticResourcePath + theme.getImagesPath();
38:


An error occurred at line: 37 in the jsp file: /html/portlet/css_init.jsp
Duplicate local variable themeImagesPath
34:
35: String cdnHost = PortalUtil.getCDNHost(request.isSecure());
36:
37: String themeImagesPath = cdnHost + themeStaticResourcePath + theme.getImagesPath();
38:
39: response.addHeader(HttpHeaders.CONTENT_TYPE, ContentTypes.TEXT_CSS);
40: %>


Stacktrace:
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:335)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:313)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:300)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.servlet.filters.minifier.MinifierFilter.getMinifiedContent(MinifierFilter.java:359)
at com.liferay.portal.servlet.filters.minifier.MinifierFilter.processFilter(MinifierFilter.java:426)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:110)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:398)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:45)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.servlet.filters.header.HeaderFilter.processFilter(HeaderFilter.java:137)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:81)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:181)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:141)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.servlet.filters.absoluteredirects.AbsoluteRedirectsFilter.processFilter(AbsoluteRedirectsFilter.java:85)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.servlet.filters.threadlocal.ThreadLocalFilter.processFilter(ThreadLocalFilter.java:52)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:662)


Please suggest me why this error is coming even my appliocation is working or, how i should include the same file in other pages.

Awaiting for Quick Reply.

Thanks

-Anupam Ranjan
thumbnail
Suraj Bihari, modificado hace 9 años.

RE: include portal jsps from hook

Junior Member Mensajes: 44 Fecha de incorporación: 20/12/13 Mensajes recientes
Hi Anupam,

What kind of jsp include are you using? I've encountered an issue like this before, try:

<liferay-util:include page="/css_init.jsp" servletContext="<%=this.getServletContext() %>" />

HTH,
Suraj