Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
Blaise Grand
MyFaces portlet deployment
7. April 2008 02:22
Antwort

Blaise Grand

Rang: New Member

Nachrichten: 3

Eintrittsdatum: 7. April 2008

Neue Beiträge

Hi all !

I've a problem for my MyFaces portlet's deployment... I'm actually unable to view my portlet in Liferay. Maybe someone can say why ?

I'm using the bundle Liferay 4.4.2 + JBoss 4.2 and MyFaces 1.2

Do I forget something or make wrong ?! You guessed it, I am beginning with Liferay and portlets...

Thanks for all answers !

My descriptors :

liferay-display.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE display PUBLIC "-//Liferay//DTD Display 4.0.0//EN" "http://www.liferay.com/dtd/liferaydisplay_4_0_0.dtd">
<display>
<category name="category.connect">
<portlet id="timemanagement" />
</category>
</display>


liferay-portlet.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 4.2.0//EN" "http://www.liferay.com/dtd/liferay-portlet-app_4_2_0.dtd">

<liferay-portlet-app>
<portlet>
<portlet-name>timemanagement</portlet-name>
<render-weight>10</render-weight>
</portlet>
</liferay-portlet-app>


portlet.xml
<?xml version="1.0" encoding="UTF-8"?>
<portlet-app version="1.0"
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">
<portlet>

<description xml:lang="FR">
TimeManagement application portlet
</description>

<portlet-name>timemanagement</portlet-name>

<portlet-class>
com.example.client.portlet.TimeManagementPortlet
</portlet-class>

<init-param>
<name>default-view</name>
<value>/jsf/lists/timbrage-list.xhtml</value>
</init-param>

<supports>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
</supports>

<portlet-info>
<title>TimeManagement</title>
<short-title>TimeManagement</short-title>
<keywords>TimeManagement</keywords>
</portlet-info>

</portlet>
</portlet-app>

Note: com.example.client.portlet.TimeManagementPortlet extends org.apache.myfaces.portlet.MyFacesGenericPortlet

jboss-web.xml
<jboss-web>
<context-root>/timemanagement</context-root>
</jboss-web>


faces-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config>
<application>
<locale-config>
<default-locale>fr</default-locale>
<supported-locale>de</supported-locale>
</locale-config>
<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
</application>
<!-- HERE navigation-rules and managed-beans configuration -->
<!-- factory>
<faces-context-factory>org.apache.myfaces.context.FacesContextFactoryImpl</faces-context-factory>
</factory -->
</faces-config>


I deploy my portlet war in liferay-portal-jboss-tomcat-4.2-4.4.2\server\default\deploy, and just receive this message in the JBoss console:
deploy, ctxPath=/timemanagement, warUrl=.../tmp/deploy/tmp4961eap-connect-timemanagement-client-exp.war/