This content has been marked as final.
Show 1 reply
-
1. Re: aplication on portlet
mare Dec 20, 2006 9:52 AM (in response to jboss.mail.expandindustria)Hello!
I have s similar problem: I have JSF web aplication and I want to run it as portlet. I'm using jboss AS 4.0.5GA, jboss portal 2.4, java 1.5. Also, my aplication uses EJB3. I don't know how to deploy it on AS. I put the portlet aplication in war-file and that war-file together with persistence.jar-file in ear-file. Is that right? When I try to access aplication through portal, portlet window is shown but it says: Cannot render, Object not found /Obrazac5x5Portlet.Obrazac5x5Portlet. Obrazac5x5Portlet is the name of my portlet.
Is there anybody who can help me? Maybe some link...
Here are descriptors:
portal.xml<?xml version="1.0" encoding="UTF-8"?> <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" version="1.0"> <portlet> <portlet-name>Obrazac5x5Portlet</portlet-name> <portlet-class>org.apache.portals.bridges.jsf.FacesPortlet</portlet-class> <init-param> <name>ViewPage</name> <value>/WEB-INF/pages/form.jsp</value> </init-param> <supports> <mime-type>text/html</mime-type> <portlet-mode>VIEW</portlet-mode> </supports> <portlet-info> <title>Obrazac 5x5 Portlet</title> </portlet-info> </portlet> </portlet-app>
-object.xml<?xml version="1.0" encoding="UTF-8"?> <deployments> <deployment> <if-exists>overwrite</if-exists> <parent-ref>default</parent-ref> <properties /> <page> <page-name>Obrazac 5x5</page-name> <properties /> <window> <window-name>Obrazac5x5PortletWindow</window-name> <instance-ref>Obrazac5x5PortletInstance</instance-ref> <region>center</region> <height>0</height> </window> </page> </deployment> </deployments>
portlet-instances.xml<?xml version="1.0" standalone="yes"?> <deployments> <deployment> <instance> <instance-id>Obrazac5x5PortletInstance</instance-id> <portlet-ref>Obrazac5x5Portlet</portlet-ref> <component-ref>Obrazac5x5Portlet.Obrazac5x5Portlet</component-ref> </instance> </deployment> </deployments>
jboss-app.xml<jboss-app> <app-name>Obrazac5x5Portlet</app-name> <loader-repository> seam.jboss.org:loader=seam-booking </loader-repository> </jboss-app>
Thanks,
mare