Thanks for your reply! but I can't find enough info from the website. I think my problem is specific to websphere only, as I can deploy my application to pluto without any problem.
I have turned on the trace level to all for websphere_portal server setting, and can't find enough debug information as well.
The only error I found from the huge log file is the following:
java.io.FileNotFoundException: D:\Program Files\WebSphere\AppServer\config\cells\ibm-server\nodes\ibm-server\servers\variables.xml
&
[06-7-18 1:58:57:578 CST] 567da6db ConfigInfoBui d initConfiguredBindingInfo: Absorb FileNotFoundException, java.io.FileNotFoundException: d:\Program Files\WebSphere\AppServer\config\cells\ibm-server\nodes\ibm-server\namebindings.xml
Will these two files affect the program?
Regards,
Bruce
On 7/17/06, Strittmatter, Stephan <
[EMAIL PROTECTED]> wrote:
Hi Storm,I am not familar with WebShere, but I know, that there are some things to do before MyFaces is working within portlet environment.Have a look at http://wiki.apache.org/myfaces/Using_Portlets I started there a section about portlets. Probably this could help you.You are welcome tho share your knowledge there also! Porlets & MyFaces are still a seldom combination, I learned.Regards,Stephan
From: Storm Spire [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 15, 2006 9:13 AM
To: [email protected]
Subject: deploy MyFaces as portlet into Websphere Portal 5.1Hi,
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.

