You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by Stefan Magnus Landrø <st...@gmail.com> on 2007/08/15 10:50:28 UTC
PortletTag causes ELParseException on weblogic 9.2
I'm trying to run some portlets from a JSP. This works nicely on
Tomcat and jetty, but on weblogic I ran into trouble. First of all,
why id the portletId being evaluated by an EL parser? Second, could
this problem be related to the fact that I've declared the app as a
2.3 app?
Greetings,
Stefan
<pluto:portlet portletId="/get_portlets.JRLogin">
<div class="portlet" id="get_portlets.JRLogin">
<div class="header">
<h2 class="title"><pluto:title></pluto:title></h2>
</div>
<div class="body">
<pluto:render></pluto:render>
</div>
</div>
</pluto:portlet>
Caused by: javax.servlet.jsp.el.ELParseException: Error occured while
trying to parse '/get_portlets.JRLogin'
at javelin.jsp.el.ExpressionEvaluatorImpl.parseEL(ExpressionEvaluatorImpl.java:169)
at javelin.jsp.el.ExpressionEvaluatorImpl.parseExpression(ExpressionEvaluatorImpl.java:132)
at javelin.jsp.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:123)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown
Source)
at org.apache.pluto.tags.el.JSP20ExpressionEvaluatorProxy.evaluate(JSP20ExpressionEvaluatorProxy.java:51)
at org.apache.pluto.driver.tags.PortletTag.evaluatePortletId(PortletTag.java:211)
at org.apache.pluto.driver.tags.PortletTag.doStartTag(PortletTag.java:108)
--
Bekk Open Source
http://boss.bekk.no
Re: PortletTag causes ELParseException on weblogic 9.2
Posted by Stefan Magnus Landrø <st...@gmail.com>.
Actually managed to get around this one too, by defaulting to
buffering supported instead of
unsupported in Configuration.java.
I'd love to use the configuration file, however I've no clue where
this is to be included in my webapp, or what setting this property to
true actually means.
Anyone?
public static boolean isBufferingSupported() {
if (buffering == null) {
try {
String buffer = BUNDLE.getString(BUFFER_SUPPORT);
buffering = new Boolean(buffer);
} catch (MissingResourceException mre) {
//buffering = Boolean.FALSE;
buffering = Boolean.TRUE;
}
}
return buffering.booleanValue();
}
2007/8/15, landro <st...@gmail.com>:
>
> I modified the evaluatePortletId() method in PortletTag.java (not very nice
> to do this, but we don't want to evaluate any EL in the portletId, so that's
> ok for us), and got a bit further.
>
> Now I'm getting this instead:
>
> Nested Exception is java.lang.IllegalStateException: portlet container does
> not support buffering
> at
> org.apache.pluto.internal.impl.RenderResponseImpl.setBufferSize(RenderResponseImpl.java:176)
> at weblogic.servlet.jsp.PageContextImpl.initialize(PageContextImpl.java:70)
>
> Any pointers on this one?
>
>
> private void evaluatePortletId() throws JspException {
> evaluatedPortletId = portletId;
> /*
> ExpressionEvaluatorProxy proxy =
> ExpressionEvaluatorProxy.getProxy();
> Object obj = proxy.evaluate(portletId, pageContext);
> if (LOG.isDebugEnabled()) {
> LOG.debug("Evaluated portletId to: " + obj);
> }
> evaluatedPortletId = (String) obj;
> */
> }
> --
> View this message in context: http://www.nabble.com/PortletTag-causes-ELParseException-on-weblogic-9.2-tf4271889.html#a12159000
> Sent from the Pluto - Dev mailing list archive at Nabble.com.
>
>
--
Bekk Open Source
http://boss.bekk.no
Re: PortletTag causes ELParseException on weblogic 9.2
Posted by landro <st...@gmail.com>.
I modified the evaluatePortletId() method in PortletTag.java (not very nice
to do this, but we don't want to evaluate any EL in the portletId, so that's
ok for us), and got a bit further.
Now I'm getting this instead:
Nested Exception is java.lang.IllegalStateException: portlet container does
not support buffering
at
org.apache.pluto.internal.impl.RenderResponseImpl.setBufferSize(RenderResponseImpl.java:176)
at weblogic.servlet.jsp.PageContextImpl.initialize(PageContextImpl.java:70)
Any pointers on this one?
private void evaluatePortletId() throws JspException {
evaluatedPortletId = portletId;
/*
ExpressionEvaluatorProxy proxy =
ExpressionEvaluatorProxy.getProxy();
Object obj = proxy.evaluate(portletId, pageContext);
if (LOG.isDebugEnabled()) {
LOG.debug("Evaluated portletId to: " + obj);
}
evaluatedPortletId = (String) obj;
*/
}
--
View this message in context: http://www.nabble.com/PortletTag-causes-ELParseException-on-weblogic-9.2-tf4271889.html#a12159000
Sent from the Pluto - Dev mailing list archive at Nabble.com.