Foros de discusión

Reject serveResource for ABC after I added $processor.processPortlet() ...

Patrick Warnecke, modificado hace 11 años.

Reject serveResource for ABC after I added $processor.processPortlet() ...

New Member Mensajes: 13 Fecha de incorporación: 18/09/12 Mensajes recientes
Hi,

I want to include a static Portlet on all my Pages, thus I added $processor.processPortlet("PORTLETID") in a custom layout. This works fine after I fixed the Bug mentioned here: https://www.liferay.com/de/community/forums/-/message_boards/message/15753181#_19_message_15753056
But now I get the errors (couple more, all the same except other threads):
06:58:11,161 ERROR [http-bio-8080-exec-7][LayoutAction:1019] Reject serveResource for http://localhost:8080/web/guest/welcome on SeparateClassificationTree_WAR_SeparateClassificationTreeportlet
06:58:11,161 ERROR [http-bio-8080-exec-5][LayoutAction:1019] Reject serveResource for http://localhost:8080/web/guest/welcome on SeparateClassificationTree_WAR_SeparateClassificationTreeportlet
06:58:11,161 ERROR [http-bio-8080-exec-9][LayoutAction:1019] Reject serveResource for http://localhost:8080/web/guest/welcome on SeparateClassificationTree_WAR_SeparateClassificationTreeportlet


And the following:
23.10.2012 06:58:09 org.icefaces.impl.event.BridgeSetup addMandatoryResources
WARNUNG: When processing mandatory resource components, could not create instance of 'com.icesoft.faces.component.gmap.GMap'
23.10.2012 06:58:09 org.icefaces.impl.event.BridgeSetup addMandatoryResources
WARNUNG: When processing mandatory resource components, could not create instance of 'com.icesoft.faces.component.inputrichtext.InputRichText'


Somewhere (can't find the source at the moment) I found the suggestion to edit "portla-service/src/com/liferay/portal/util/PortalUtil.java" line ~1367. I edited it so if the method "isAllowAddPortletDefaultResource" for my specific portlet ID would always return true. That got rid of the first error itself, but the Portlet still isn't working.
I still get the second error and now I'm not sure wheter it is purely an ICEFaces thing or if it has something to do with liferay.
Plus I'm not sure if my "bug fixes" are appropriate or something of the portlet configuration is wrong.

Any help appreciated!
Patrick Warnecke, modificado hace 11 años.

RE: Reject serveResource for ABC after I added $processor.processPortlet()

New Member Mensajes: 13 Fecha de incorporación: 18/09/12 Mensajes recientes
Has noone any idea what might cause this problem?
thumbnail
Jitendra Rajput, modificado hace 11 años.

RE: Reject serveResource for ABC after I added $processor.processPortlet()

Liferay Master Mensajes: 875 Fecha de incorporación: 7/01/11 Mensajes recientes
Did you set <add-default-resource>true</add-default-resource> in your liferay-portlet.xml ?
Srikanth Konjarla, modificado hace 11 años.

RE: Reject serveResource for ABC after I added $processor.processPortlet()

Junior Member Mensajes: 51 Fecha de incorporación: 25/10/08 Mensajes recientes
Check this out. http://www.liferay.com/community/forums/-/message_boards/message/17083203

Essentially, review the parameter "portlet.add.default.resource.check.enabled=true"
Patrick Warnecke, modificado hace 11 años.

RE: Reject serveResource for ABC after I added $processor.processPortlet()

New Member Mensajes: 13 Fecha de incorporación: 18/09/12 Mensajes recientes
None of that helped.
But my mainproblem isn't really the "reject serveResource". The "hack" I applied to portal-service.jar would be fine to me, that is no problem. But this error "When processing mandatory resource components [...]" really annoys me and blocks any further development emoticon
thumbnail
Neil Griffin, modificado hace 11 años.

RE: Reject serveResource for ABC after I added $processor.processPortlet()

Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
I would recommend that you download the source code for ICEfaces and set a breakpoint in MandatoryResourcesSetup.addMandatoryResources(FacesContext,Map,String) in this block of code:

                } catch (Exception e) {
                    if (log.isLoggable(Level.WARNING)) {
                        log.log(Level.WARNING, "When processing mandatory " +
                                "resource components, could not create instance " +
                                "of '" + compClassName + "'");
                    }
                }


Then report the stacktrace/cause of the error here.