-
1. Re: lifecycle: portalphase-listener execution: nullpointer
kenfinni Dec 19, 2011 9:27 AM (in response to xantos92)Could you provide the web.xml and portlet.xml for your Seam application?
-
2. Re: lifecycle: portalphase-listener execution: nullpointer
xantos92 Jan 12, 2012 6:13 AM (in response to kenfinni)Hi. Sorry for my late answer:
portlet.xml:
-----
<?xml version="1.0" encoding="UTF-8"?>
<portlet-app
xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
version="2.0">
<portlet>
<portlet-name>MyPortlet</portlet-name>
<display-name>My Portlet</display-name>
<portlet-class>
javax.portlet.faces.GenericFacesPortlet
</portlet-class>
<init-param>
<name>javax.portlet.faces.defaultViewId.view</name>
<value>/home.xhtml</value>
</init-param>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
</supports>
<portlet-info>
<title>My Portlet</title>
</portlet-info>
</portlet>
</portlet-app>
-----
can you say me what you exactly want to know from the web.xml. it's very long
maybe this is enough:
-----
<context-param>
<param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
<param-value>org.jboss.portletbridge.application.FaceletPortletViewHandler</param-value>
</context-param>
<context-param>
<param-name>javax.portlet.faces.renderPolicy</param-name>
<param-value>ALWAYS_DELEGATE</param-value>
</context-param>
(some other stuff...)
<context-param>
<param-name>org.jboss.portletbridge.ExceptionHandler</param-name>
<param-value>org.jboss.portletbridge.SeamExceptionHandlerImpl</param-value>
</context-param>
<context-param>
<param-name>org.jboss.portletbridge.WRAP_SCRIPTS</param-name>
<param-value>true</param-value>
</context-param>
-----
thanks and greetings
-
3. Re: lifecycle: portalphase-listener execution: nullpointer
xantos92 Jan 12, 2012 7:24 AM (in response to xantos92)i found another very strange error...
there is my gatein-portal (unmodified download) and my project (called myproject)
gateIn does not know myproject
localhost:8080/myproject does not work
gateIn: click on "import applications"
localhost:8080/myproject does not work
gateIn: drag the portlet of myproject on main page -> shows error (portlet only)
localhost:8080/myproject does work!
What the hell is going on here? :O
-
4. Re: lifecycle: portalphase-listener execution: nullpointer
kenfinni Jan 12, 2012 9:31 AM (in response to xantos92)Jonas,
Does your faces-config.xml contain the following lines:
<application>
<view-handler> org.jboss.portletbridge.application.PortletViewHandler </view-handler>
<state-manager>org.jboss.portletbridge.application.PortletStateManager</state-manager>
</application>
Looking at the original error message it looks like JSF is not setup properly.
As for the application only being available once it has been added to a portlet page, not sure what is happening there.
-
5. Re: lifecycle: portalphase-listener execution: nullpointer
xantos92 Jan 13, 2012 2:13 AM (in response to kenfinni)Hello Ken
my faces-config.xml contains these lines (and of course some other):
-----
<application> <view-handler>com.sun.facelets.FaceletViewHandler</view-handler> <view-handler>org.jboss.portletbridge.application.PortletViewHandler</view-handler> <state-manager>org.jboss.portletbridge.application.PortletStateManager</state-manager> <locale-config> <default-locale>en</default-locale> <supported-locale>bg</supported-locale> <supported-locale>de</supported-locale> <supported-locale>en</supported-locale> <supported-locale>fr</supported-locale> <supported-locale>tr</supported-locale> </locale-config> </application> -----
Because of the application that is not available, i have same new facts.
When i (re)start the server, the application is still not working, but it is still added to a portlet page. After calling my GateIn-Site, and going to localhost:8080/myproject after that, it works. But it still does not work inside the portlet.
Thanks and Greetings
-
6. Re: lifecycle: portalphase-listener execution: nullpointer
xantos92 Jan 13, 2012 8:19 AM (in response to xantos92)F... this. RAGEQUIT!
Maybe i keep going this in a few month..
bye
-
7. Re: lifecycle: portalphase-listener execution: nullpointer
kenfinni Jan 13, 2012 9:26 AM (in response to xantos92)I'm sorry for your frustration in trying to get the JBoss PortletBridge to work in a Portal.
Is it possible for you to replicate the error with a small sample portlet that you could attach to this thread that could be used to test with?
Regards
Ken