Hi,
I am suffering on running myfaces app as portlet into websphere portal 5.1 these days.
I am really not sure what I have done wrong.
I can deploy the myfaces war file without a problem, but when I run the portlet, I will see an error "
This portlet is unavailable".
The log from PortalServer\log folder will only give this message:
2006.07.15 14:28:44.140 E com.ibm.wps.engine.tags.PortletRenderTag doStartTag
javax.portlet.UnavailableException: WebApplication is stopped
My environment:
websphere portal 5.1.0.2
myfaces 1.1.3
windows XP
Here is my web.xml:
------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "
http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app id="WebApp_ID">
<display-name>testPortal</display-name>
<context-param>
<param-name>javax.faces.CONFIG_FILES
</param-name>
<param-value>
/WEB-INF/faces-config.xml
</param-value>
</context-param>
<listener>
<listener-class>
org.apache.myfaces.webapp.StartupServletContextListener
</listener-class>
</listener>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>
javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm
</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>
default.jsp</welcome-file>
</welcome-file-list>
</web-app>
------------------------------------------------
my portlet.xml:
------------------------------------------------
<?xml version="
1.0" encoding="UTF-8"?>
<portlet-app xmlns="
http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" version="1.0" 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
" id="testPortal.8ba3a7c6c0">
<portlet>
<portlet-name>csc</portlet-name>
<display-name>csc portlet</display-name>
<display-name xml:lang="zh">csc portlet</display-name>
<portlet-class>
org.apache.myfaces.portlet.MyFacesGenericPortlet
</portlet-class>
<init-param>
<name>default-view</name>
<value>/test.jsp</value>
</init-param>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
</supports>
<portlet-info>
<title>csc portlet</title>
</portlet-info>
</portlet>
</portlet-app>
------------------------------------------------
My faces-config.xml is empty, as I want to test the plain jsf only, didn't use any managed bean.
- deploy MyFaces as portlet into Websphere Portal 5.1 Storm Spire
- RE: deploy MyFaces as portlet into Websphere Po... Strittmatter, Stephan
- Re: deploy MyFaces as portlet into Webspher... Storm Spire
- Re: deploy MyFaces as portlet into Webs... Matthias Wessendorf
- Re: deploy MyFaces as portlet into ... CD
- Re: deploy MyFaces as portlet ... Ryan Wynn
- Re: deploy MyFaces as port... Storm Spire
- Re: deploy MyFaces as ... Ryan Wynn
- Re: deploy MyFaces as ... Storm Spire
- Re: deploy MyFaces as ... Ryan Wynn
- Re: deploy MyFaces as ... Storm Spire

