portals-wsrp4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kristofer Arnar Einarsson <kristo...@kristofer.com>
Subject Re: servlet-api
Date Fri, 16 Jun 2006 13:06:35 GMT
Hi

I have a very simple Hello World portlet which works fine with web app 
2.3 in web.xml:
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>


However, when I try to use web app 2.4 it seems to break:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
         xmlns="http://java.sun.com/xml/ns/j2ee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
         http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">


I have a servlet-api jar which has both 2.3 and 2.4. The error that I 
get in the wsrp log is attached.

Using only:
<web-app version="2.4">
seems to be ok but I am not sure it is actually using 2.4 or just 
skipping the version attribute. I have yet to add 2.4 features in my 
portlet.

The error:
2006-06-16 11:48:20,926 [http-8080-Processor25] DEBUG 
org.apache.pluto.PortletContainerImpl: 
PortletContainerImpl.portletService(7_0_5I5) called.
2006-06-16 11:48:21,130 [http-8080-Processor25] ERROR 
org.apache.wsrp4j.producer.provider.pluto.driver.PortletInvokerImpl: 
Call of portletService() failed!
java.lang.NullPointerException
         at 
org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:109)
         at 
org.apache.pluto.invoker.impl.PortletInvokerImpl.render(PortletInvokerImpl.java:73)
         at 
org.apache.pluto.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:119)
         at 
org.apache.pluto.portalImpl.core.PortletContainerWrapperImpl.renderPortlet(PortletContainerWrapperImpl.java:70)
         at 
org.apache.wsrp4j.producer.provider.pluto.driver.PortletInvokerImpl.invokeGetMarkup(PortletInvokerImpl.java:177)
         at 
org.apache.wsrp4j.commons.producer.driver.WSRPEngine.getMarkup(WSRPEngine.java:758)
         at 
org.apache.wsrp4j.commons.producer.binding.WSRPMarkupBindingImpl.getMarkup(WSRPMarkupBindingImpl.java:62)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at 
org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
         at 
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
         at 
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
         at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at 
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
         at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
         at 
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at 
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)
2006-06-16 11:48:21,137 [http-8080-Processor25] DEBUG 
org.apache.wsrp4j.producer.provider.pluto.driver.PortletInvokerImpl: 
Exiting method 'invokeGetMarkup'.




mbk / regards,
Kristofer


Yoni Moses wrote:
> Although i'm not fully familiar with wsrp4j, i think that you can. after all, the servlet-api
maintains backward compability, and replacing the string in the web.xml should not cause any
problem.
>  
> Best,
> Y.
> 
> ________________________________
> 
> מאת: Kristofer Arnar Einarsson [mailto:kristofer@kristofer.com]
> נשלח: ה 15/06/2006 00:54
> אל: wsrp4j-user@portals.apache.org
> נושא: servlet-api
> 
> 
> 
> Hi
> 
> I have some portlets that use servlet-api 2.4.
> 
> Is it possible to use web-app version 2.4 in wsrp4j instead of 2.3 in
> web.xml?
> 
> --
> mbk / regards,
> Kristofer
> 
> 

Mime
View raw message