Monday February 13, 2006
Creator 2 Portlets in the JBoss Portal
OK, after I found the solution for the JSF API classes (See the entry below), I hoped to get a Creator 2 Portlet project deployed to the JBoss Portal as well. It worked
It was just a matter of removing the WEB-INF/lib/jsf-api.jar and adding all the needed configuration WEB-INF/jboss-*.xml files.
Then just deploy the war file and add your new PortletInstance
somewhere into the Portal. Of course, you will probably do it a bit
better than what I did in the screen shot
But I don't claim to have any experience with JBoss Portal and for me it's more important to get it working.
It's always nice to see standards (JSR-168 in this case) just work as expected
Have fun with your portlets
-- Marco
Update for JBoss Portal 2.2 (from the floor of J1 2006
* You have to remove the WEB-INF/lib/jsf-api.jar and the WEB-INF/lib/portlet.jar.
* Create a WEB-INF/jboss-app.xml
<jboss-app>
<app-name>your_app_name</app-name>
</jboss-app>
* Create a WEB-INF/
foo-object.xml, find a good example in the
jboss-portal-2.2.1 users guide, chapter 4.1.1. The only interesting
part is the <component-ref> element near the end. That value has
to be
your_app_name.
your_portlet_name . The
your_app_name is the one you have choosen above, the
your_portlet_name comes from the <portlet-name> in the WEB-INF/portlet.xml.
* Package everything up and deploy it

I hope this helps a bit

Thanks to J. Viet from the JBoss team for helping me figuring out what I needed to do here

Thanks,
-- Marco
( Feb 13 2006, 01:54:07 PM PST )
Permalink
Creator 2 Apps @ JBoss + Portal - One Step at a time I found the solution for my problem from last Friday. I simply had to remove the JSF API classes (WEB-INF/lib/jsf-api.jar) out of the war file. Then that application will work in a JBoss + JBoss Portal bundle. Apparently, the Portal adds those javax.faces.* packages somewhere very global?
Next step, try a Creator Portlet on the JBoss Portal

Have fun,
-- Marco
( Feb 13 2006, 11:44:05 AM PST )
Permalink