Topic
3 replies Latest Post - ‏2012-04-25T15:57:21Z by SystemAdmin
SystemAdmin
SystemAdmin
32 Posts
ACCEPTED ANSWER

Pinned topic Portlet Container Does not Inject EJB

‏2012-04-19T13:42:16Z |
Environment RAD 8.5 Beta
Portal 8 Beta
Basic JSR 286 Portlet Development

Injection Code - Local EJBs from the same EAR
@EJB(name="InjectMe")
Injectme me;
public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException {
System.out.println(me.hi());
response.setContentType(request.getResponseContentType());
PortletRequestDispatcher rd = getPortletContext().getRequestDispatcher("/InjectPortletView.jsp");
rd.include(request,response);
}

I get the following Error
4/19/12 19:02:34:899 IST 0000006a servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: An exception was thrown by one of the service methods of the servlet InjectPortlet in application injectsampleEAR. Exception created : [java.lang.NullPointerException
at injection.injectportlet.InjectPortlet.init(InjectPortlet.java:22)
at javax.portlet.GenericPortlet.init(GenericPortlet.java:107)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doInit(PortletServlet.java:830)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:140)
at com.ibm.isclite.container.collaborator.PortletServletCollaborator.doInit(PortletServletCollaborator.java:50)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:133)
at com.ibm.ws.portletcontainer.rrd.RRDServerPortletServletCollaborator.doInit(RRDServerPortletServletCollaborator.java:111)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:133)
at com.ibm.ws.portletcontainer.cache.CacheCollaborator.doInit(CacheCollaborator.java:97)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:133)
at com.ibm.wps.pe.pc.waspc.core.impl.PortletServletCollaboratorImpl.doInit(PortletServletCollaboratorImpl.java:71)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:133)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.initClone(PortletServlet.java:767)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.getPortletClone(PortletServlet.java:853)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:234)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:82)
at com.ibm.isclite.container.collaborator.PortletServletCollaborator.doDispatch(PortletServletCollaborator.java:143)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:74)
at com.ibm.ws.portletcontainer.rrd.RRDServerPortletServletCollaborator.doDispatch(RRDServerPortletServletCollaborator.java:60)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:74)
at com.ibm.ws.portletcontainer.cache.CacheCollaborator.doDispatch(CacheCollaborator.java:74)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:74)
at com.ibm.wps.pe.pc.waspc.core.impl.PortletServletCollaboratorImpl.doDispatch(PortletServletCollaboratorImpl.java:112)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:74)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.dispatch(PortletServlet.java:208)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.service(PortletServlet.java:165)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1188)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:763)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:454)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:125)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:77)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:919)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1016)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1384)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:548)
at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:214)
at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaborator(PortletInvokerCollaboratorChainImpl.java:78)
at com.ibm.ws.portletcontainer.cache.PortletInvokerCacheCollaborator.doRender(PortletInvokerCacheCollaborator.java:58)
at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaborator(PortletInvokerCollaboratorChainImpl.java:67)
at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.invoke(PortletInvokerPerformanceCollaborator.java:313)
at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.doInvoke(PortletInvokerPerformanceCollaborator.java:101)
at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.invokePMI(PortletInvokerPerformanceCollaborator.java:163)
at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.doInvoke(PortletInvokerPerformanceCollaborator.java:91)
at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.doRender(PortletInvokerPerformanceCollaborator.java:74)
at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaborator(PortletInvokerCollaboratorChainImpl.java:67)
at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerImpl.render(PortletInvokerImpl.java:97)
at com.ibm.ws.portletcontainer.PortletContainerImpl.doRender(PortletContainerImpl.java:121)
at com.ibm.ws.portletcontainer.PortletContainerInvokerCollaboratorChainImpl.doCollaborator(PortletContainerInvokerCollaboratorChainImpl.java:80)
at com.ibm.ws.portletcontainer.ext.ExtCollaborator.doRender(ExtCollaborator.java:76)
at com.ibm.ws.portletcontainer.PortletContainerInvokerCollaboratorChainImpl.doCollaborator(PortletContainerInvokerCollaboratorChainImpl.java:67)
at com.ibm.ws.portletcontainer.cache.CacheInvokerCollaborator.doRender(CacheInvokerCollaborator.java:66)
at com.ibm.ws.portletcontainer.PortletContainerInvokerCollaboratorChainImpl.doCollaborator(PortletContainerInvokerCollaboratorChainImpl.java:67)
at com.ibm.wps.resolver.iwidget.filter.IWidgetPCInvokerCollaborator.doRender(IWidgetPCInvokerCollaborator.java:200)
at com.ibm.ws.portletcontainer.PortletContainerInvokerCollaboratorChainImpl.doCollaborator(PortletContainerInvokerCollaboratorChainImpl.java:67)
at com.ibm.ws.portletcontainer.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:91)
at com.ibm.ws.portletcontainer.pcinvoker.PortletInvokerImpl$2.run(PortletInvokerImpl.java:100)
at java.security.AccessController.doPrivileged(AccessController.java:254)
at com.ibm.ws.portletcontainer.pcinvoker.PortletInvokerImpl.invokeRender(PortletInvokerImpl.java:96)
at com.ibm.wps.pe.pc.waspc.core.impl.PortletInvokerImpl$1.invoke(PortletInvokerImpl.java:98)
at com.ibm.wps.pe.pc.waspc.core.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:182)
at com.ibm.wps.pe.pc.waspc.core.impl.PortletInvokerImpl.invokeRender(PortletInvokerImpl.java:96)
at com.ibm.wps.pe.pc.waspc.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:148)
at com.ibm.wps.pe.pc.waspc.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:128)
at com.ibm.wps.pe.pc.PortletContainerImpl.doRenderPortlet(PortletContainerImpl.java:602)
at com.ibm.wps.pe.ext.render.AbstractRenderManager.performService(AbstractRenderManager.java:263)
at com.ibm.wps.pe.pc.PortletContainerImpl.renderPortlet(PortletContainerImpl.java:120)
at com.ibm.wps.resolver.model.layout.LayoutControlDataSource.renderPortlet(LayoutControlDataSource.java:864)
at com.ibm.wps.resolver.model.layout.LayoutControlDataSource.renderLayoutControl(LayoutControlDataSource.java:767)
at com.ibm.wps.resolver.model.layout.LayoutControlDataSource.write(LayoutControlDataSource.java:1177)
at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.ibm.wps.util.ContextWrapper$Handler.invoke(ContextWrapper.java:127)
at $Proxy201.write(Unknown Source)
at com.ibm.wps.spa.renderer.skin.DynamicContentSkinContentHandler.endDynamicContentSpot(DynamicContentSkinContentHandler.java:251)
at com.ibm.wps.spa.parser.skin.RecordingSkinContentHandler.parse(RecordingSkinContentHandler.java:116)
at com.ibm.wps.spa.parser.skin.CachingSkinURIParserImpl.parse(CachingSkinURIParserImpl.java:178)
at com.ibm.wps.spa.data.locale.LocalizedContextDataSourceParserImpl.parse(LocalizedContextDataSourceParserImpl.java:278)
at com.ibm.wps.spa.data.locale.LocalizedContextDataSource.write(LocalizedContextDataSource.java:179)
at com.ibm.wps.spa.data.skin.DynamicContentSkinDataSource.write(DynamicContentSkinDataSource.java:188)
at com.ibm.wps.engine.templates.skins.SPASkinTemplate.render(SPASkinTemplate.java:238)
at com.ibm.wps.engine.templates.SkinTemplate.render(SkinTemplate.java:68)
at com.ibm.wps.model.layout.rendering.DefaultPortalLayoutNodeRenderFilter.layoutNodeRender(DefaultPortalLayoutNodeRenderFilter.java:285)
at com.ibm.wps.model.layout.rendering.DefaultPortalLayoutNodeRenderFilter.controlRender(DefaultPortalLayoutNodeRenderFilter.java:312)
at com.ibm.wps.model.layout.rendering.DefaultPortalLayoutNodeRenderFilter.componentRender(DefaultPortalLayoutNodeRenderFilter.java:245)
at com.ibm.wps.model.layout.rendering.DefaultPortalLayoutNodeRenderFilter.doFilter(DefaultPortalLayoutNodeRenderFilter.java:135)
at com.ibm.wps.model.layout.rendering.LayoutRenderFilterChain.doFilter(LayoutRenderFilterChain.java:84)
at com.ibm.wps.model.layout.rendering.LayoutModelRenderServiceImpl.render(LayoutModelRenderServiceImpl.java:128)
at com.ibm.wps.engine.tags.ComponentRenderTag.doStartTag(ComponentRenderTag.java:182)
at com.ibm._jsp._UnlayeredContainer_2D_V._jspx_meth_portal$1skin_layoutNodeRender_0(_UnlayeredContainer_2D_V.java:156)
at com.ibm._jsp._UnlayeredContainer_2D_V._jspService(_UnlayeredContainer_2D_V.java:112)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1188)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:763)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:454)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:205)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1020)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1384)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:548)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:93)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:53)
at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:50)
at com.ibm.wps.engine.templates.skins.Default.render(Default.java:265)
at com.ibm.wps.engine.templates.skins.Default.render(Default.java:147)
at com.ibm.wps.engine.templates.SkinTemplate.render(SkinTemplate.java:68)
at com.ibm.wps.model.layout.rendering.DefaultPortalLayoutNodeRenderFilter.layoutNodeRender(DefaultPortalLayoutNodeRenderFilter.java:285)
at com.ibm.wps.model.layout.rendering.DefaultPortalLayoutNodeRenderFilter.componentRender(DefaultPortalLayoutNodeRenderFilter.java:247)
at com.ibm.wps.model.layout.rendering.DefaultPortalLayoutNodeRenderFilter.doFilter(DefaultPortalLayoutNodeRenderFilter.java:135)
at com.ibm.wps.model.layout.rendering.LayoutRenderFilterChain.doFilter(LayoutRenderFilterChain.java:84)
at com.ibm.wps.model.layout.rendering.LayoutModelRenderServiceImpl.render(LayoutModelRenderServiceImpl.java:128)
at com.ibm.wps.engine.tags.ComponentRenderTag.doStartTag(ComponentRenderTag.java:182)
at com.ibm._jsp._UnlayeredContainer_2D_H._jspx_meth_portal$1skin_layoutNodeRender_0(_UnlayeredContainer_2D_H.java:179)
at com.ibm._jsp._UnlayeredContainer_2D_H._jspService(_UnlayeredContainer_2D_H.java:130)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1188)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:763)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:454)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:205)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1020)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1384)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:548)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:93)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:53)
at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:50)
at com.ibm.wps.engine.templates.skins.Default.render(Default.java:265)
at com.ibm.wps.engine.templates.skins.Default.render(Default.java:147)
at com.ibm.wps.engine.templates.SkinTemplate.render(SkinTemplate.java:68)
at com.ibm.wps.model.layout.rendering.DefaultPortalLayoutNodeRenderFilter.layoutNodeRender(DefaultPortalLayoutNodeRenderFilter.java:285)
at com.ibm.wps.model.layout.rendering.DefaultPortalLayoutNodeRenderFilter.componentRender(DefaultPortalLayoutNodeRenderFilter.java:247)
at com.ibm.wps.model.layout.rendering.DefaultPortalLayoutNodeRenderFilter.doFilter(DefaultPortalLayoutNodeRenderFilter.java:135)
at com.ibm.wps.model.layout.rendering.LayoutRenderFilterChain.doFilter(LayoutRenderFilterChain.java:84)
at com.ibm.wps.model.layout.rendering.LayoutModelRenderServiceImpl.render(LayoutModelRenderServiceImpl.java:98)
at com.ibm.wps.engine.tags2.PageRenderTag.doStartTag(PageRenderTag.java:568)
at com.ibm._jsp._Home._jspService(_Home.java:101)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1188)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:763)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:454)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:205)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:125)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:92)
at com.ibm.wps.engine.ExtensionFilter$ExtendedFilterChain.doFilter(ExtensionFilter.java:110)
at com.ibm.wps.engine.ExtensionFilter.doFilter(ExtensionFilter.java:197)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:919)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1016)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1384)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:548)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:93)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:53)
at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:50)
at com.ibm.wps.engine.templates.screens.Default.render(Default.java:133)
at com.ibm.wps.engine.templates.ScreenTemplate.render(ScreenTemplate.java:59)
at com.ibm.wps.resolver.model.layout.LayoutTemplateDataSource.write(LayoutTemplateDataSource.java:294)
at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.ibm.wps.util.ContextWrapper$Handler.invoke(ContextWrapper.java:127)
at $Proxy199.write(Unknown Source)
at sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.ibm.wps.util.ContextWrapper$Handler.invoke(ContextWrapper.java:127)
at $Proxy200.write(Unknown Source)
at com.ibm.wps.spa.renderer.theme.DynamicContentThemeContentHandler.endDynamicContentSpot(DynamicContentThemeContentHandler.java:249)
at com.ibm.wps.spa.parser.theme.RecordingThemeContentHandler.parse(RecordingThemeContentHandler.java:109)
at com.ibm.wps.spa.parser.theme.CachingThemeURIParserImpl.parse(CachingThemeURIParserImpl.java:178)
at com.ibm.wps.spa.data.locale.LocalizedContextDataSourceParserImpl.parse(LocalizedContextDataSourceParserImpl.java:278)
at com.ibm.wps.spa.data.locale.LocalizedContextDataSource.write(LocalizedContextDataSource.java:179)
at com.ibm.wps.spa.data.theme.DynamicContentThemeDataSource.write(DynamicContentThemeDataSource.java:186)
at com.ibm.wps.resolver.tags.DataSourceTag.doEndTag(DataSourceTag.java:252)
at com.ibm._jsp._Default._jspService(_Default.java:592)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1188)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:763)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:454)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:205)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1020)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1384)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:548)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.handleRequest(DispatcherServiceImpl.java:93)
at com.ibm.wps.services.dispatcher.DispatcherServiceImpl.include(DispatcherServiceImpl.java:53)
at com.ibm.wps.services.dispatcher.Dispatcher.include(Dispatcher.java:50)
at com.ibm.wps.engine.templates.themes.Default.doDispatch(Default.java:294)
at com.ibm.wps.engine.templates.themes.Default.render(Default.java:247)
at com.ibm.wps.engine.templates.ThemeTemplate.render(ThemeTemplate.java:65)
at com.ibm.wps.engine.phases.WPRenderPhase.processRendering(WPRenderPhase.java:520)
at com.ibm.wps.engine.phases.WPBaseRenderPhase.execute(WPBaseRenderPhase.java:231)
at com.ibm.wps.state.phases.AbstractRenderPhase.next(AbstractRenderPhase.java:106)
at com.ibm.wps.engine.phases.WPAbstractRenderPhase.next(WPAbstractRenderPhase.java:100)
at com.ibm.wps.engine.Servlet.callPortal(Servlet.java:301)
at com.ibm.wps.engine.Servlet.doGet(Servlet.java:654)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
at com.ibm.wps.engine.Servlet.doFilter(Servlet.java:397)
at com.ibm.wps.resolver.servlet.ContentHandlerCleanup.doFilter(ContentHandlerCleanup.java:672)
at com.ibm.wps.resolver.servlet.AbstractFilter.doFilter(AbstractFilter.java:96)
at com.ibm.wps.engine.Servlet.service(Servlet.java:1328)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1188)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:763)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:454)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:125)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:92)
at com.ibm.wps.engine.ExtensionFilter$ExtendedFilterChain.doFilter(ExtensionFilter.java:110)
at com.ibm.wps.engine.ExtensionFilter.doFilter(ExtensionFilter.java:197)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
at com.ibm.wps.engine.SupportedLocalesFilter.doFilter(SupportedLocalesFilter.java:113)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
at com.ibm.wps.engine.ExtendedLocaleFilter.doFilter(ExtendedLocaleFilter.java:113)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
at com.ibm.wps.resolver.friendly.servlet.FriendlySelectionFilter.doFilter(FriendlySelectionFilter.java:191)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
at com.ibm.wps.project.filter.ProjectIdFilter.doFilter(ProjectIdFilter.java:251)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
at com.ibm.wps.mappingurl.impl.URLAnalyzer.doFilter(URLAnalyzer.java:412)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
at com.ibm.wps.engine.VirtualPortalFilter.doFilter(VirtualPortalFilter.java:88)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
at com.ibm.wps.resolver.servlet.ContentHandlerGzip.internalDoFilter(ContentHandlerGzip.java:617)
at com.ibm.wps.resolver.servlet.ContentHandlerGzip.doFilter(ContentHandlerGzip.java:383)
at com.ibm.wps.resolver.servlet.AbstractFilter.doFilter(AbstractFilter.java:96)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
at com.ibm.wps.state.filter.StateCleanup.doFilter(StateCleanup.java:103)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:192)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:89)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:919)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1016)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:895)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1662)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:195)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1659)
]
4/19/12 19:02:34:915 IST 0000006a LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly() being called.
Updated on 2012-04-25T15:57:21Z at 2012-04-25T15:57:21Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    32 Posts
    ACCEPTED ANSWER

    Re: Portlet Container Does not Inject EJB

    ‏2012-04-19T13:44:17Z  in response to SystemAdmin
    I also have attached sample code
    • MJonker
      MJonker
      17 Posts
      ACCEPTED ANSWER

      Re: Portlet Container Does not Inject EJB

      ‏2012-04-25T14:09:39Z  in response to SystemAdmin
      Hi,

      Does this work on a standard WebSphere Application Server 8 ?

      Michel
      • SystemAdmin
        SystemAdmin
        32 Posts
        ACCEPTED ANSWER

        Re: Portlet Container Does not Inject EJB

        ‏2012-04-25T15:57:21Z  in response to MJonker
        Hi,
        I have attached sample code - a servlet and a portlet both in the same EAR, servlet works on the same Portal Server, however the portlet does not work.

        Then Again,
        Are you asking me to check if the portlet is running on WAS that comes with the Portal 8?