portals-wsrp4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris.DeBr...@perficient.com
Subject Re: servlet-api
Date Tue, 27 Jun 2006 13:35:27 GMT
<div>Kristofer,<br><br>Grab the latest source out of CVS. There was missing
handler that was preventing anything from being produced.<br><div><br>I'm
currently working on some Portal code that will handle the url rewriting tokens for resources
such as graphics. Once that's done, I'll create a patch and send it in to the JBoss folk for
them to commit.<br><br>So far JBoss Portal looks the most promising.<br><br>Chris&nbsp;DeBracy<br><font
color="#990099">-----Kristofer Arnar Einarsson &lt;kristofer@kristofer.com&gt;
wrote: -----<br><br></font><blockquote style="border-left: 2px solid
rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">To:
wsrp4j-user@portals.apache.org<br>From: Kristofer Arnar Einarsson &lt;kristofer@kristofer.com&gt;<br>Date:
06/26/2006 05:26PM<br>Subject: Re: servlet-api<br><br><font face="monospace"
size="3">I haven't<br><br>I am currently experimenting with JBoss Portal 2.4
beta which has a WSRP <br>producer.<br><br>mbk / regards,<br>Kristofer<br><br><br>Venkatesh
Jayakumar wrote:<br>&gt; Hi Kristofer,<br>&gt; <br>&gt; I have
the same problem <br>&gt; <br>&gt; Could you pls let me know How u solved
this ?<br>&gt; <br>&gt; -----Original Message-----<br>&gt; From:
Kristofer Arnar Einarsson [<a href="mailto:kristofer@kristofer.com">mailto:kristofer@kristofer.com</a>]
<br>&gt; Sent: Friday, June 16, 2006 8:07 AM<br>&gt; To: wsrp4j-user@portals.apache.org<br>&gt;
Subject: Re: servlet-api<br>&gt; <br>&gt; Hi<br>&gt; <br>&gt;
I have a very simple Hello World portlet which works fine with web app <br>&gt;
2.3 in web.xml:<br>&gt; &lt;!DOCTYPE web-app PUBLIC<br>&gt; "-//Sun
Microsystems, Inc.//DTD Web Application 2.3//EN"<br>&gt; "<a href="http://java.sun.com/dtd/web-app_2_3.dtd">http://java.sun.com/dtd/web-app_2_3.dtd</a>"&gt;<br>&gt;
&lt;web-app&gt;<br>&gt; <br>&gt; <br>&gt; However, when
I try to use web app 2.4 it seems to break:<br>&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;<br>&gt;
&lt;web-app version="2.4"<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;xmlns="http://java.sun.com/xml/ns/j2ee"<br>&gt; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp;xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee<br>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd</a>"&gt;<br>&gt;
<br>&gt; <br>&gt; I have a servlet-api jar which has both 2.3 and 2.4.
The error that I <br>&gt; get in the wsrp log is attached.<br>&gt; <br>&gt;
Using only:<br>&gt; &lt;web-app version="2.4"&gt;<br>&gt; seems
to be ok but I am not sure it is actually using 2.4 or just <br>&gt; skipping the
version attribute. I have yet to add 2.4 features in my <br>&gt; portlet.<br>&gt;
<br>&gt; The error:<br>&gt; 2006-06-16 11:48:20,926 [http-8080-Processor25]
DEBUG <br>&gt; org.apache.pluto.PortletContainerImpl: <br>&gt; PortletContainerImpl.portletService(7_0_5I5)
called.<br>&gt; 2006-06-16 11:48:21,130 [http-8080-Processor25] ERROR <br>&gt;
org.apache.wsrp4j.producer.provider.pluto.driver.PortletInvokerImpl: <br>&gt; Call
of portletService() failed!<br>&gt; java.lang.NullPointerException<br>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.j<br>&gt;
ava:109)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt;
org.apache.pluto.invoker.impl.PortletInvokerImpl.render(PortletInvokerImpl.j<br>&gt;
ava:73)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt;
org.apache.pluto.PortletContainerImpl.renderPortlet(PortletContainerImpl.jav<br>&gt;
a:119)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt;
org.apache.pluto.portalImpl.core.PortletContainerWrapperImpl.renderPortlet(P<br>&gt;
ortletContainerWrapperImpl.java:70)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;at <br>&gt; org.apache.wsrp4j.producer.provider.pluto.driver.PortletInvokerImpl.invokeGe<br>&gt;
tMarkup(PortletInvokerImpl.java:177)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;at <br>&gt; org.apache.wsrp4j.commons.producer.driver.WSRPEngine.getMarkup(WSRPEngine.ja<br>&gt;
va:758)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt;
org.apache.wsrp4j.commons.producer.binding.WSRPMarkupBindingImpl.getMarkup(W<br>&gt;
SRPMarkupBindingImpl.java:62)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39<br>&gt;
)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt;
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl<br>&gt;
.java:25)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at java.lang.reflect.Method.invoke(Method.java:585)<br>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397<br>&gt;
)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt;
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:1<br>&gt;
86)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt;
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)<br>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:<br>&gt;
32)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)<br>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)<br>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)<br>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)<br>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)<br>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)<br>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:<br>&gt;
327)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application<br>&gt;
FilterChain.java:252)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at
<br>&gt; org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh<br>&gt;
ain.java:173)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt;
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja<br>&gt;
va:213)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt;
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja<br>&gt;
va:178)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt;
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126<br>&gt;
)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt;
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105<br>&gt;
)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt;
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java<br>&gt;
:107)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt;
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)<br>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)<br>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC<br>&gt;
onnection(Http11BaseProtocol.java:664)<br>&gt; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp;at <br>&gt; org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav<br>&gt;
a:527)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt;
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo<br>&gt;
rkerThread.java:80)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at
<br>&gt; org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav<br>&gt;
a:684)<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at java.lang.Thread.run(Thread.java:595)<br>&gt;
2006-06-16 11:48:21,137 [http-8080-Processor25] DEBUG <br>&gt; org.apache.wsrp4j.producer.provider.pluto.driver.PortletInvokerImpl:
<br>&gt; Exiting method 'invokeGetMarkup'.<br>&gt; <br>&gt;
<br>&gt; <br>&gt; <br>&gt; mbk / regards,<br>&gt;
Kristofer<br>&gt; <br>&gt; <br>&gt; Yoni Moses wrote:<br>&gt;&gt;
Although i'm not fully familiar with wsrp4j, i think that you can. after<br>&gt;
all, the servlet-api maintains backward compability, and replacing the<br>&gt; string
in the web.xml should not cause any problem.<br>&gt;&gt; &nbsp;<br>&gt;&gt;
Best,<br>&gt;&gt; Y.<br>&gt;&gt;<br>&gt;&gt; ________________________________<br>&gt;&gt;<br>&gt;&gt;
&#1502;&#1488;&#1514;: Kristofer Arnar Einarsson [<a href="mailto:kristofer@kristofer.com">mailto:kristofer@kristofer.com</a>]<br>&gt;&gt;
&#1504;&#1513;&#1500;&#1495;: &#1492; 15/06/2006 00:54<br>&gt;&gt;
&#1488;&#1500;: wsrp4j-user@portals.apache.org<br>&gt;&gt; &#1504;&#1493;&#1513;&#1488;:
servlet-api<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;
Hi<br>&gt;&gt;<br>&gt;&gt; I have some portlets that use servlet-api
2.4.<br>&gt;&gt;<br>&gt;&gt; Is it possible to use web-app version
2.4 in wsrp4j instead of 2.3 in<br>&gt;&gt; web.xml?<br>&gt;&gt;<br>&gt;&gt;
--<br>&gt;&gt; mbk / regards,<br>&gt;&gt; Kristofer<br>&gt;&gt;<br>&gt;&gt;<br>&gt;
<br>&gt; <br></font>
</blockquote><br></div></div>
Mime
View raw message