Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Patrick Warnecke
Reject serveResource for ABC after I added $processor.processPortlet() ...
October 23, 2012 12:46 AM
Answer

Patrick Warnecke

Rank: New Member

Posts: 13

Join Date: September 18, 2012

Recent Posts

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):
106:58:11,161 ERROR [http-bio-8080-exec-7][LayoutAction:1019] Reject serveResource for http://localhost:8080/web/guest/welcome on SeparateClassificationTree_WAR_SeparateClassificationTreeportlet
206:58:11,161 ERROR [http-bio-8080-exec-5][LayoutAction:1019] Reject serveResource for http://localhost:8080/web/guest/welcome on SeparateClassificationTree_WAR_SeparateClassificationTreeportlet
306: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:
123.10.2012 06:58:09 org.icefaces.impl.event.BridgeSetup addMandatoryResources
2WARNUNG: When processing mandatory resource components, could not create instance of 'com.icesoft.faces.component.gmap.GMap'
323.10.2012 06:58:09 org.icefaces.impl.event.BridgeSetup addMandatoryResources
4WARNUNG: 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
RE: Reject serveResource for ABC after I added $processor.processPortlet()
October 25, 2012 6:25 AM
Answer

Patrick Warnecke

Rank: New Member

Posts: 13

Join Date: September 18, 2012

Recent Posts

Has noone any idea what might cause this problem?
Jitendra Rajput
RE: Reject serveResource for ABC after I added $processor.processPortlet()
October 25, 2012 6:28 AM
Answer

Jitendra Rajput

Rank: Liferay Master

Posts: 848

Join Date: January 7, 2011

Recent Posts

Did you set <add-default-resource>true</add-default-resource> in your liferay-portlet.xml ?
Srikanth Konjarla
RE: Reject serveResource for ABC after I added $processor.processPortlet()
October 25, 2012 6:36 AM
Answer

Srikanth Konjarla

Rank: Junior Member

Posts: 51

Join Date: October 24, 2008

Recent Posts

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
RE: Reject serveResource for ABC after I added $processor.processPortlet()
October 25, 2012 6:45 AM
Answer

Patrick Warnecke

Rank: New Member

Posts: 13

Join Date: September 18, 2012

Recent Posts

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
Neil Griffin
RE: Reject serveResource for ABC after I added $processor.processPortlet()
October 30, 2012 11:25 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2233

Join Date: July 26, 2005

Recent Posts

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:

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


Then report the stacktrace/cause of the error here.