フォーラム

ホーム » Liferay Faces » Liferay Faces - English

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
Sven Schoeni
Faces Bridge as JBoss 7 module
2012/11/14 7:43
答え

Sven Schoeni

ランク: New Member

投稿: 3

参加年月日: 2011/10/24

最近の投稿

Hey community
currently i try to expose the liferay faces bridge as a jboss module. the module is all done and the module xml looks like:
 1<?xml version="1.0"?>
 2
 3<module xmlns="urn:jboss:module:1.0" name="com.liferay.faces.bridge">
 4    <resources>
 5        <resource-root path="liferay-faces-bridge-api-3.1.0-ga1.jar" />
 6        <resource-root path="liferay-faces-bridge-impl-3.1.0-ga1.jar" />
 7        <resource-root path="liferay-faces-util-3.1.0-ga1.jar" />
 8    </resources>
 9    <dependencies>
10    <module name="javax.portlet" />
11    <module name="javax.faces.api" />
12    </dependencies>
13</module>

I also changed the jsf impl to 2.1.13 (cause of a memory leak).
the module.xml has to be changed to:
 1<?xml version="1.0"?>
 2
 3<module xmlns="urn:jboss:module:1.0" name="com.liferay.portal">
 4    <resources>
 5        <resource-root path="hsql.jar" />
 6        <resource-root path="jtds.jar" />
 7       
 8        <resource-root path="portal-service.jar" />
 9        <resource-root path="portlet.jar" />
10        <resource-root path="postgresql.jar" />
11    </resources>
12    <dependencies>
13        <module name="javax.api" />
14        <module name="com.liferay.faces.bridge" />
15        <module name="javax.mail.api" />
16        <module name="javax.servlet.api" />
17        <module name="javax.servlet.jsp.api" />
18        <module name="javax.transaction.api" />
19    </dependencies>
20</module>


But when i now deploy a portlet the followin stack trace occurs:

16:34:36,303 INFO (http-localhost-127.0.0.1-9090-1) 16:34:36,301 ERROR [http-localhost-127.0.0.1-9090-1][PortletContextFactory:73] Portlet portlet_WAR_portlet has a null portlet bag

16:34:36,305 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/].] (http-localhost-127.0.0.1-9090-1) Servlet.service() for servlet jsp threw exception: java.lang.NullPointerException
at com.liferay.portlet.PortletContextFactory._create(PortletContextFactory.java:80) [portal-impl.jar:]
at com.liferay.portlet.PortletContextFactory.create(PortletContextFactory.java:39) [portal-impl.jar:]
at com.liferay.portlet.PortletConfigFactoryImpl.create(PortletConfigFactoryImpl.java:52) [portal-impl.jar:]
at com.liferay.portlet.PortletConfigFactoryUtil.create(PortletConfigFactoryUtil.java:32) [portal-service.jar:]
at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:489)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [jbossweb-7.0.13.Final.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) [jbossweb-7.0.13.Final.jar:]
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [jbossweb-7.0.13.Final.jar:]
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [jbossweb-7.0.13.Final.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73) [portal-service.jar:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:840) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:720) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:657) [jbossweb-7.0.13.Final.jar:]
at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:53) [portal-impl.jar:]
at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90) [portal-impl.jar:]
at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54) [portal-impl.jar:]
at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:5158) [portal-impl.jar:]
at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1569) [portal-service.jar:]
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:165) [portal-impl.jar:]
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:97) [portal-impl.jar:]
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doProcessTemplate(RuntimePortletImpl.java:531) [portal-impl.jar:]
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doDispatch(RuntimePortletImpl.java:394) [portal-impl.jar:]
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:228) [portal-impl.jar:]
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:216) [portal-impl.jar:]
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:113) [portal-service.jar:]
at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(portlet_jsp.java:477)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [jbossweb-7.0.13.Final.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) [jbossweb-7.0.13.Final.jar:]
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [jbossweb-7.0.13.Final.jar:]
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [jbossweb-7.0.13.Final.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73) [portal-service.jar:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:840) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:720) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:657) [jbossweb-7.0.13.Final.jar:]
at com.liferay.portal.action.LayoutAction.includeLayoutContent(LayoutAction.java:468) [portal-impl.jar:]
at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:735) [portal-impl.jar:]
at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:249) [portal-impl.jar:]
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) [struts.jar:]
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) [struts.jar:]
at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:176) [portal-impl.jar:]
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) [struts.jar:]
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) [struts.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:560) [portal-impl.jar:]
at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:537) [portal-impl.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163) [portal-service.jar:]
at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294) [portal-impl.jar:]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73) [portal-service.jar:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:840) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:622) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:560) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:488) [jbossweb-7.0.13.Final.jar:]
at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:138) [portal-impl.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163) [portal-service.jar:]
at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:335) [portal-impl.jar:]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163) [portal-service.jar:]
at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:123) [portal-impl.jar:]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163) [portal-service.jar:]
at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294) [portal-impl.jar:]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163) [portal-service.jar:]
at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:241) [portal-impl.jar:]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163) [portal-service.jar:]
at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:432) [portal-impl.jar:]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163) [portal-service.jar:]
at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:56) [portal-impl.jar:]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163) [portal-service.jar:]
at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:253) [portal-impl.jar:]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163) [portal-service.jar:]
at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83) [portal-impl.jar:]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163) [portal-service.jar:]
at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80) [portal-impl.jar:]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163) [portal-service.jar:]
at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:216) [portal-impl.jar:]
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-service.jar:]
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738) [urlrewrite.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95) [portal-service.jar:]
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73) [portal-service.jar:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0]

Anyone has an idea whats wrong
Neil Griffin
RE: Faces Bridge as JBoss 7 module
2012/11/14 8:13
答え

Neil Griffin

LIFERAY STAFF

ランク: Liferay Legend

投稿: 2136

参加年月日: 2005/07/26

最近の投稿

Do you see any errors during deployment when your portlet WAR is copied to the Liferay /deploy folder?

You should see something like the following during deployment:

1Registering portlets for ...
2...
3portlets for ... are available for use


If that happens correctly, then Liferay's PortletHotDeployListener class should call PortletBagFactory.create(Portlet) and the NPE woud not happen.
Sven Schoeni
RE: Faces Bridge as JBoss 7 module
2012/11/15 22:42
答え

Sven Schoeni

ランク: New Member

投稿: 3

参加年月日: 2011/10/24

最近の投稿

No I can't see anythin like this. But an exception occurs while trying to deploy the portlet:

 107:38:36,714 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/portlet]] (MSC service thread 1-3) Initializing Spring root WebApplicationContext
 207:38:36,805 INFO  [stdout] (MSC service thread 1-3) 07:38:36,795 ERROR [MSC service thread 1-3][HotDeployImpl:191] com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for portlet
 3
 407:38:36,806 INFO  [stdout] (MSC service thread 1-3) com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for portlet
 5
 607:38:36,807 INFO  [stdout] (MSC service thread 1-3)     at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.throwHotDeployException(BaseHotDeployListener.java:46)
 7
 807:38:36,807 INFO  [stdout] (MSC service thread 1-3)     at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:123)
 9
1007:38:36,807 INFO  [stdout] (MSC service thread 1-3)     at com.liferay.portal.deploy.hot.HotDeployImpl.doFireDeployEvent(HotDeployImpl.java:188)
11
1207:38:36,808 INFO  [stdout] (MSC service thread 1-3)     at com.liferay.portal.deploy.hot.HotDeployImpl.fireDeployEvent(HotDeployImpl.java:96)
13
1407:38:36,808 INFO  [stdout] (MSC service thread 1-3)     at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:27)
15
1607:38:36,808 INFO  [stdout] (MSC service thread 1-3)     at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextListener.java:151)
17
1807:38:36,809 INFO  [stdout] (MSC service thread 1-3)     at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListener.java:141)
19
2007:38:36,809 INFO  [stdout] (MSC service thread 1-3)     at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
21
2207:38:36,810 INFO  [stdout] (MSC service thread 1-3)     at com.liferay.portal.kernel.util.PortalLifecycleUtil.flushInits(PortalLifecycleUtil.java:48)
23
2407:38:36,810 INFO  [stdout] (MSC service thread 1-3)     at com.liferay.portal.servlet.MainServlet.initPlugins(MainServlet.java:858)
25
2607:38:36,810 INFO  [stdout] (MSC service thread 1-3)     at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:366)
27
2807:38:36,811 INFO  [stdout] (MSC service thread 1-3)     at javax.servlet.GenericServlet.init(GenericServlet.java:242)
29
3007:38:36,811 INFO  [stdout] (MSC service thread 1-3)     at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)
31
3207:38:36,811 INFO  [stdout] (MSC service thread 1-3)     at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102)
33
3407:38:36,812 INFO  [stdout] (MSC service thread 1-3)     at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655)
35
3607:38:36,812 INFO  [stdout] (MSC service thread 1-3)     at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873)
37
3807:38:36,812 INFO  [stdout] (MSC service thread 1-3)     at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)
39
4007:38:36,813 INFO  [stdout] (MSC service thread 1-3)     at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
41
4207:38:36,813 INFO  [stdout] (MSC service thread 1-3)     at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
43
4407:38:36,813 INFO  [stdout] (MSC service thread 1-3)     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
45
4607:38:36,814 INFO  [stdout] (MSC service thread 1-3)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
47
4807:38:36,814 INFO  [stdout] (MSC service thread 1-3)     at java.lang.Thread.run(Thread.java:722)
49
5007:38:36,815 INFO  [stdout] (MSC service thread 1-3) Caused by: java.lang.ClassCastException: javax.portlet.faces.GenericFacesPortlet cannot be cast to javax.portlet.Portlet
51
5207:38:36,815 INFO  [stdout] (MSC service thread 1-3)     at com.liferay.portlet.PortletBagFactory.create(PortletBagFactory.java:131)
53
5407:38:36,816 INFO  [stdout] (MSC service thread 1-3)     at com.liferay.portal.deploy.hot.PortletHotDeployListener.initPortlet(PortletHotDeployListener.java:546)
55
5607:38:36,817 INFO  [stdout] (MSC service thread 1-3)     at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:321)
57
5807:38:36,817 INFO  [stdout] (MSC service thread 1-3)     at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:120)
59
6007:38:36,818 INFO  [stdout] (MSC service thread 1-3)     ... 20 more
Neil Griffin
RE: Faces Bridge as JBoss 7 module
2012/11/16 12:16
答え

Neil Griffin

LIFERAY STAFF

ランク: Liferay Legend

投稿: 2136

参加年月日: 2005/07/26

最近の投稿

The ClassCastException might indicate that portlet.jar is present in two places. Perhaps one in the JBoss global classpath, and also in WEB-INF/lib.
Sven Schoeni
RE: Faces Bridge as JBoss 7 module
2012/12/17 23:46
答え

Sven Schoeni

ランク: New Member

投稿: 3

参加年月日: 2011/10/24

最近の投稿

Hello Neil
Yes that was the problem. Thanks a lot.
Neil Griffin
RE: Faces Bridge as JBoss 7 module
2012/12/18 7:37
答え

Neil Griffin

LIFERAY STAFF

ランク: Liferay Legend

投稿: 2136

参加年月日: 2005/07/26

最近の投稿

OK glad to hear it. Thanks for letting us know. emoticon