Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 42532 invoked from network); 18 Jul 2006 14:00:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Jul 2006 14:00:13 -0000 Received: (qmail 17234 invoked by uid 500); 18 Jul 2006 14:00:07 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 17209 invoked by uid 500); 18 Jul 2006 14:00:07 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 17198 invoked by uid 99); 18 Jul 2006 14:00:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jul 2006 07:00:07 -0700 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=HTML_MESSAGE,MAILTO_TO_SPAM_ADDR X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [65.87.110.161] (HELO symscan2.miamidade.gov) (65.87.110.161) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jul 2006 07:00:04 -0700 Received: from s0141021.miamidade.gov (s0141021.miamidade.gov [10.254.236.35]) by symscan2.miamidade.gov (Symantec Mail Security) with ESMTP id 9E5B87FC for ; Tue, 18 Jul 2006 09:59:42 -0400 (EDT) Received: from s0141207.miamidade.gov ([10.254.239.84]) by s0141021.miamidade.gov with Microsoft SMTPSVC(6.0.3790.1830); Tue, 18 Jul 2006 09:59:42 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6AA72.6B0693C9" Subject: RE: deploy MyFaces as portlet into Websphere Portal 5.1 Date: Tue, 18 Jul 2006 09:59:41 -0400 Message-ID: <7CA6ED41F8109F47999F0D4B5C97DC6A4FD5C7@s0141207.miamidade.gov> In-Reply-To: <57cc6c070607180403o3743de92y125452ef188c9bbb@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: deploy MyFaces as portlet into Websphere Portal 5.1 Thread-Index: AcaqWdbn0H1TawS4TlqwgifZ5NDIcQAGH0Xw From: "Iordanov, Borislav \(GIC\)" To: "MyFaces Discussion" X-OriginalArrivalTime: 18 Jul 2006 13:59:42.0549 (UTC) FILETIME=[6B0AA050:01C6AA72] X-Brightmail-Tracker: AAAAAA== X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C6AA72.6B0693C9 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Is that true? Does MyFaces really require JSP 2.0? Does JSF itself require it? =20 ________________________________ From: Storm Spire [mailto:stormspire@gmail.com]=20 Sent: Tuesday, July 18, 2006 7:03 AM To: users@myfaces.apache.org Subject: Re: deploy MyFaces as portlet into Websphere Portal 5.1 =20 I can deploy my application to pluto 1.0.1 without a problem I suspect the reason is due to JSP version, as websphere portal 5.1.0.1 is using JSP 1.3, and myFaces needs JSP 2.0. Is there any way to hack the portal to JSP 2.0? On 7/18/06, Storm Spire wrote: Hi Wynn, Do you have a simple WAR that can be run inside websphere portal? Or I mail you my WAR file to check whether mine is workable? Best Regards, Bruce On 7/18/06, Ryan Wynn wrote:=20 On 7/18/06, Storm Spire wrote: > Hi Ryan,=20 > > I have added the parameters into the portlet.xml like following: > > =20 > default-view > /Jsr168_2View.jsp > > > > ViewPage=20 > /Jsr168_2View.jsp > Did that fix your problem or are you still seeing a blank portlet page? > > I think it may be required by tomcat.=20 > > > Regards, > Bruce > > On 7/18/06, Ryan Wynn < bigwynnr@gmail.com > wrote: > > On 7/17/06, Storm Spire < stormspire@gmail.com > wrote: > > > Hi Ryan, > > > Your information is really helpful! > > > Just found I didn't have jsp-api.jar inside my lib, after I placed > the=20 > > > jar inside my WAR lib, it could be deployed without a problem. > > > However I met another problem, my first page for the portlet is simply > a > > > plain HTML content, like "

Place content here 2.

". But after I=20 > > > deployed it successfully, I can't see anything inside my deployed > portlet, I > > > can only see the portlet title, no content at all. > > > > Try adding this parameter to your portlet.xml and see if the page gets > displayed > > > > > > ViewPage > > /test.jsp > > =20 > > > > > > > > > > By the way, you mentioned about commons-logging, I am not clear about > it, > > > did you place it inside the lib or not? I didn't put commons-logging=20 > into > > > the lib folder. > > > > Initially I tested my app in both tomcat and Portal Server. One of > > which I can't remember required that commons-logging to be located in=20 > > the webapp to work properly. It looks like it wasn't required in > > portal since the names I sent you did not include it. > > > > > > > > Here is the files inside my lib:=20 > > > commons-beanutils-1.7.0.jar > > > commons-collections-3.1.jar > > > commons-digester-1.6.jar > > > commons-el-1.0.jar > > > commons-lang-2.1.jar=20 > > > jsp-api.jar > > > myfaces-api-1.1.3.jar > > > myfaces-impl-1.1.3.jar > > > > > > Regards, > > > Bruce > > > > > > On 7/18/06, Ryan Wynn < bigwynnr@gmail.com> wrote: > > > > Storm, > > > >=20 > > > > Are you running the app on the Portal Server 5.1 Test Environment or > > > > the full blown Portal 5.1 Server? Have you packaged the myfaces > > > > dependencies in your portlet war or do you have them at a higher > > > > classloader level? > > > > > > > > If you are running from within Rational Application Developer what do=20 > > > > you see in the console when you right click on the Server and > > > > Restart->Project? Also you may want to check the Problems window. I > > > > have found seemingly benign reported problems that make PS unable to=20 > > > > load the app (disregard these questions if you are deploying with > > > > xmlaccess or through the portal admin interface). > > > > > > > > Let's see it could be missing dependencies or maybe you left ibm jars=20 > > > > in the war from a RAD wizard (if you have any ibm related jars in your > > > > WAR you should remove them). > > > > > > > > Did you use a RAD wizard to create you project?=20 > > > > > > > > Sorry if I can't give you any easy answer. I did get Myfaces working > > > > with portal 5.1.0.3 and I have seen obscure error messages previously=20 > > > > like the ones you are seeing. > > > > > > > > One problem I had was that my the context-root in my web app > > > > (.websettings) and enterprise app ( application.xml ) did not match. > > > > Another problem I had was that I was missing commons-logging. > > > > Unfortunately both these problems result in the same obscure error > > > > message that you are seeing.=20 > > > > > > > > You portlet.xml and web.xml look okay to me. > > > > > > > > These are the jars I have in my lib directory. > > > > > > > > commons-beanutils.jar > > > > commons-codec.jar > > > > commons-collections.jar > > > > commons-digester.jar > > > > commons-el.jar > > > > commons-fileupload.jar=20 > > > > commons-lang.jar > > > > commons-validator.jar > > > > jsp-api.jar > > > > myfaces-api.jar > > > > myfaces-impl.jar > > > > tomahawk.jar > > > > > > > > > > > > > > > > > > > > On 7/17/06, CD < dcypher67@gmail.com > wrote: > > > > > > > > > > Bruce, > > > > > > > > > > Have you selected the box in your server config in RAD that allows > the > > > > > portal to pipe it's output to the console?=20 > > > > > > > > > > Also, one thing I noticed when attempting to use myfaces with > JSR-168 is > > > > > that a problem occurs due to the faces-config.xml being included in=20 > the > > > jar > > > > > file. > > > > > > > > > > > > > > > On 7/17/06, Matthias Wessendorf < matzew@apache.org > wrote: > > > > > > mmm strange, > > > > > > > > > > > > but there is a user here in this list (Ryan) he has AFAIK > experiences=20 > > > > > > with MyFaces_Portlets and Websphere. > > > > > > > > > > > > I guess you should wait abit. > > > > > > Any update on the wiki regarding problems you solved are *warmly*=20 > > > welcome > > > > > :) > > > > > > > > > > > > -Matthias > > > > > > > > > > > > On 7/17/06, Storm Spire < stormspire@gmail.com > wrote: > > > > > > > Hi Stephan,=20 > > > > > > > Thanks for your reply! but I can't find enough info from the=20 > > > website. > > > > > I > > > > > > > think my problem is specific to websphere only, as I can deploy > my > > > > > > > application to pluto without any problem.=20 > > > > > > > > > > > > > > I have turned on the trace level to all for websphere_portal > > > server > > > > > > > setting, and can't find enough debug information as well.=20 > > > > > > > > > > > > > > The only error I found from the huge log file is the > following: > > > > > > > java.io.FileNotFoundException: D:\Program=20 > > > > > > > > > > > > > > > > Files\WebSphere\AppServer\config\cells\ibm-server\nodes\ibm-server\serve rs\variables.xml > > > > > > > &=20 > > > > > > > [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\nameb indings.xml > > > > > > > > > > > > > > Will these two files affect the program? > > > > > > > > > > > > > > Regards, > > > > > > > Bruce=20 > > > > > > > > > > > > > > > > > > > > > On 7/17/06, Strittmatter, Stephan < > > > > > > > Stephan.Strittmatter.ext@siemens.com > wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hi Storm,=20 > > > > > > > > > > > > > > > > I am not familar with WebShere, but I know, that there are > some > > > things > > > > > to > > > > > > > do before MyFaces is working within portlet environment.=20 > > > > > > > > Have a look at > > > > > > > http://wiki.apache.org/myfaces/Using_Portlets I > > > started=20 > > > > > > > there a section about portlets. Probably this could help you. > > > > > > > > You are welcome tho share your knowledge there also! Porlets & > > > MyFaces=20 > > > > > are > > > > > > > still a seldom combination, I learned. > > > > > > > > > > > > > > > > Regards, > > > > > > > >=20 > > > > > > > > Stephan > > > > > > > > > > > > > > > > > > > > > > > > ________________________________ > > > > > > > From: Storm Spire [mailto: stormspire@gmail.com] > > > > > > > > Sent: Saturday, July 15, 2006 9:13 AM=20 > > > > > > > > To: users@myfaces.apache.org > > > > > > > > Subject: deploy MyFaces as portlet into Websphere Portal 5.1 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hi, > > > > > > > > I am suffering on running myfaces app as portlet into > websphere > > > > > portal=20 > > > > > > > 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=20 > when I > > > run > > > > > the > > > > > > > portlet, I will see an error " This portlet is unavailable". > > > > > > > > The log from PortalServer\log folder will only give this=20 > > > message: > > > > > > > > > > > > > > > > 2006.07.15 14:28:44.140 E > > > > > > > com.ibm.wps.engine.tags.PortletRenderTag > doStartTag > > > > > > > > javax.portlet.UnavailableException: > > > WebApplication > > > > > is > > > > > > > stopped > > > > > > > >=20 > > > > > > > > > > > > > > > > My environment: > > > > > > > > websphere portal 5.1.0.2 > > > > > > > > myfaces 1.1.3 > > > > > > > > windows XP > > > > > > > > > > > > > > > > Here is my web.xml: > > > > > > > > > ------------------------------------------------=20 > > > > > > > > > > > > > > > > > > > > Application > > > > > > > 2.3//EN" " > http://java.sun.com/dtd/web-app_2_3.dtd > > > ">=20 > > > > > > > > > > > > > > > > testPortal > > > > > > > > =20 > > > > > > > > javax.faces.CONFIG_FILES > > > > > > > > > > > > > > > > /WEB-INF/faces- config.xml > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > =20 > > > > > > > > > > > > > > > > > > org.apache.myfaces.webapp.StartupServletContextListener > > > > > > > > =20 > > > > > > > > > > > > > > > > > > > > > > > > Faces Servlet=20 > > > > > > > > > > > > > javax.faces.webapp.FacesServlet > > > > > > > > 1=20 > > > > > > > > > > > > > > > > > > > > > > > > Faces Servlet=20 > > > > > > > > *.jsf > > > > > > > > > > > > > > > > =20 > > > > > > > > index.html > > > > > > > > index.htm > > > > > > > > index.jsp > > > > > > > > default.html > > > > > > > > default.htm =20 > > > > > > > > default.jsp > > > > > > > > > > > > > > > > =20 > > > > > > > > > ------------------------------------------------ > > > > > > > > > > > > > > > > my portlet.xml: > > > > > > > >=20 > ------------------------------------------------ > > > > > > > > > > > > > > > > > > > > > > > > > http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd > " > > > > > > > version=3D" 1.0" xmlns:xsi=3D" > > > > > > > http://www.w3.org/2001/XMLSchema-instance" > > > > > > > xsi:schemaLocation=3D"=20 > > > > > > > > > > http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd > > > > > > > > > > http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd=20 > > > > > " > > > > > > > id=3D" testPortal.8ba3a7c6c0"> > > > > > > > > > > > > > > > > csc > > > > > > > > csc portlet=20 > > > > > > > > csc portlet > > > > > > > > > > > > > > > >=20 > > > > > > > > org.apache.myfaces.portlet.MyFacesGenericPortlet > > > > > > > > > > > > > > > > =20 > > > > > > > > default-view > > > > > > > > /test.jsp > > > > > > > > =20 > > > > > > > > > > > > > > > > text/html > > > > > > > > view=20 > > > > > > > > > > > > > > > > > > > > > > > > csc portlet=20 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >=20 > ------------------------------------------------ > > > > > > > > My faces-config.xml is empty, as I want to test the plain jsf > > > only, > > > > > didn't=20 > > > > > > > use any managed bean. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >=20 > > > > > > -- > > > > > > Matthias Wessendorf > > > > > > > > > > > > further stuff: > > > > > > blog: http://jroller.com/page/mwessendorf > > > > > > mail: mwessendorf-at-gmail-dot-com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > =20 ------_=_NextPart_001_01C6AA72.6B0693C9 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Is that true? Does MyFaces really = require JSP 2.0? Does JSF itself require it?

 


From: Storm = Spire [mailto:stormspire@gmail.com]
Sent: Tuesday, July 18, = 2006 7:03 AM
To: = users@myfaces.apache.org
Subject: Re: deploy = MyFaces as portlet into Websphere Portal 5.1

 

I can deploy = my application to pluto 1.0.1 without a problem
I suspect the reason is due to JSP version, as websphere portal 5.1.0.1 is using JSP 1.3, and myFaces needs JSP 2.0.
Is there any way to hack the portal to JSP = 2.0?

On 7/18/06, Storm Spire <stormspire@gmail.com> wrote:

Hi Wynn,

   Do you have a simple WAR that can be run inside websphere = portal?
   Or I mail you my WAR file to check whether mine is = workable?

Best Regards,


Bruce

On 7/18/06, Ryan Wynn <bigwynnr@gmail.com> wrote: =

On 7/18/06, Storm Spire <stormspire@gmail.com> wrote:
> Hi Ryan,
>
>   I have added the parameters into the portlet.xml like following:
>
>         <init-param> =
>           &nb= sp; <name>default-view</name>
>           &nb= sp; <value>/Jsr168_2View.jsp</value>
>         = </init-param>
>
>         = <init-param>
>           &nb= sp; <name>ViewPage</name>
>           &nb= sp; <value>/Jsr168_2View.jsp</value>
>         = </init-param>

Did that fix your problem or are you still seeing a blank portlet = page?

>
>    I think it may be required by tomcat.
>
>
> Regards,
> Bruce
>
> On 7/18/06, Ryan Wynn < = bigwynnr@gmail.com> wrote:
> > On 7/17/06, Storm Spire < = stormspire@gmail.com> wrote:
> > > Hi Ryan,
> > >     Your information is really = helpful!
> > >     Just found I didn't have = jsp-api.jar inside my lib, after I placed
> the
> > > jar inside my WAR lib, it could be deployed without a = problem.
> > >   However I met another problem, my first page = for the portlet is simply
> a
> > > plain HTML content, like "<P>Place content = here 2.</P>".  But after I
> > > deployed it successfully, I can't see anything inside my deployed
> portlet, I
> > > can only see the portlet title, no content at all.
> >
> > Try adding this parameter to your portlet.xml and see if the = page gets
> displayed
> >
> > <init-param>
> > <name>ViewPage</name>
> > <value>/test.jsp</value>
> > </init-param>
> >
> >
> > >
> > >   By the way, you mentioned about = commons-logging, I am not clear about
> it,
> > > did you place it inside the lib or not?  I = didn't put commons-logging
> into
> > > the lib folder.
> >
> > Initially I tested my app in both tomcat and Portal Server.  One of
> > which I can't remember required that commons-logging to be = located in
> > the webapp to work properly.  It looks like it = wasn't required in
> > portal since the names I sent you did not include it.
> >
> > >
> > >   Here is the files inside my lib:
> > >    commons-beanutils-1.7.0.jar
> > >   commons-collections-3.1.jar
> > >   commons-digester-1.6.jar
> > >   commons-el-1.0.jar
> > >   commons-lang-2.1.jar
> > >   jsp-api.jar
> > >   myfaces-api-1.1.3.jar
> > >   myfaces-impl-1.1.3.jar
> > >
> > >  Regards,
> > > Bruce
> > >
> > > On 7/18/06, Ryan Wynn < bigwynnr@gmail.com> wrote:
> > > > Storm,
> > > >
> > > > Are you running the app on the Portal Server 5.1 = Test Environment or
> > > > the full blown Portal 5.1 Server? Have you packaged = the myfaces
> > > > dependencies in your portlet war or do you have them = at a higher
> > > > classloader level?
> > > >
> > > > If you are running from within Rational Application Developer what do
> > > > you see in the console when you right click on the = Server and
> > > > Restart->Project?  Also you may want to = check the Problems window.  I
> > > > have found seemingly benign reported problems that = make PS unable to
> > > > load the app (disregard these questions if you are deploying with
> > > > xmlaccess or through the portal admin = interface).
> > > >
> > > > Let's see it could be missing dependencies or maybe = you left ibm jars
> > > > in the war from a RAD wizard (if you have any ibm = related jars in your
> > > > WAR you should remove them).
> > > >
> > > > Did you use a RAD wizard to create you project?
> > > >
> > > > Sorry if I can't give you any easy = answer.  I did get Myfaces working
> > > > with portal 5.1.0.3 and I have seen obscure error = messages previously
> > > > like the ones you are seeing.
> > > >
> > > > One problem I had was that my the context-root in my = web app
> > > > (.websettings) and enterprise app ( application.xml = ) did not match.
> > > > Another problem I had was that I was missing commons-logging.
> > > > Unfortunately both these problems result in the same obscure error
> > > > message that you are seeing.
> > > >
> > > > You portlet.xml and web.xml look okay to me.
> > > >
> > > > These are the jars I have in my lib directory.
> > > >
> > > > commons-beanutils.jar
> > > > commons-codec.jar
> > > > commons-collections.jar
> > > > commons-digester.jar
> > > > commons-el.jar
> > > > commons-fileupload.jar
> > > > commons-lang.jar
> > > > commons-validator.jar
> > > > jsp-api.jar
> > > > myfaces-api.jar
> > > > myfaces-impl.jar
> > > > tomahawk.jar
> > > >
> > > >
> > > >
> > > >
> > > > On 7/17/06, CD < = dcypher67@gmail.com > wrote:
> > > > >
> > > > > Bruce,
> > > > >
> > > > > Have you selected the box in your server config = in RAD that allows
> the
> > > > > portal to pipe it's output to the console?
> > > > >
> > > > > Also, one thing I noticed when attempting to = use myfaces with
> JSR-168 is
> > > > > that a problem occurs due to the = faces-config.xml being included in
> the
> > > jar
> > > > > file.
> > > > >
> > > > >
> > > > > On 7/17/06, Matthias Wessendorf < matzew@apache.org> wrote:
> > > > > > mmm strange,
> > > > > >
> > > > > > but there is a user here in this list = (Ryan) he has AFAIK
> experiences
> > > > > > with MyFaces_Portlets and Websphere.
> > > > > >
> > > > > > I guess you should wait abit.
> > > > > > Any update on the wiki regarding problems = you solved are *warmly*
> > > welcome
> > > > > :)
> > > > > >
> > > > > > -Matthias
> > > > > >
> > > > > > On 7/17/06, Storm Spire < stormspire@gmail.com > = wrote:
> > > > > > > Hi Stephan,
> > > > > > >   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\server= s\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\namebi= ndings.xml
> > > > > > >
> > > > > > >   Will these two files = affect the program?
> > > > > > >
> > > > > > > Regards,
> > > > > > > Bruce
> > > > > > >
> > > > > > >
> > > > > > > On 7/17/06, Strittmatter, Stephan = <
> > > > > > > Stephan.Strittmatte= r.ext@siemens.com > 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.apach= e.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: = stormspire@gmail.com]
> > > > > > > > Sent: Saturday, July 15, 2006 = 9:13 AM
> > > > > > > > To: users@myfaces.apache.org > > > > > > > > Subject: deploy MyFaces as = portlet into Websphere Portal 5.1
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > 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=3D"1.0" encoding=3D"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=3D"WebApp_ID">
> > > > > > > >     <display-name>testPortal</display-name>
> > > > > > > >     <context-param>
> > > > > > > >         <param-name> javax.faces.CONFIG_FILES </param-name>
> > > > > > > >         = <param-value>
> > > > > > > >           &nb= sp; /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=3D" = 1.0" encoding=3D"UTF-8"?>
> > > > > > > > <portlet-app xmlns=3D" =
> > > > > > >
> > > http://j= ava.sun.com/xml/ns/portlet/portlet-app_1_0.xsd
> "
> > > > > > > version=3D" 1.0" = xmlns:xsi=3D"
> > > > > > > http://www.w3.org/200= 1/XMLSchema-instance"
> > > > > > > xsi:schemaLocation=3D"
> > > > > > >
> > > http://j= ava.sun.com/xml/ns/portlet/portlet-app_1_0.xsd
> > > > > > >
> > > http://j= ava.sun.com/xml/ns/portlet/portlet-app_1_0.xsd
> > > > > "
> > > > > > > id=3D" = testPortal.8ba3a7c6c0">
> > > > > > > >     = <portlet>
> > > > > > > >         <portlet-name>csc</portlet-name>
> > > > > > > >         = <display-name>csc portlet</display-name>
> > > > > > > >         <display-name xml:lang=3D"zh">csc portlet</display-name>
> > > > > > > >         = <portlet-class>
> > > > > > > >
> > > > > > >
> org.apache.myfaces.portlet.MyFacesGenericPortlet
> > > > > > > >         = </portlet-class>
> > > > > > > >         <init-param> =
> > > > > > > >           &nb= sp; <name>default-view</name>
> > > > > > > >           &nb= sp; <value>/test.jsp</value>
> > > > > > > >         </init-param> =
> > > > > > > >         = <supports>
> > > > > > > >           &nb= sp; <mime-type>text/html</mime-type>
> > > > > > > >           &nb= sp; <portlet-mode>view</portlet-mode>
> > > > > > > >         = </supports>
> > > > > > > >         = <portlet-info>
> > > > > > > >           &nb= sp; <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.
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Matthias Wessendorf
> > > > > >
> > > > > > further stuff:
> > > > > > blog: http://jroller.com/page/mwe= ssendorf
> > > > > > mail: mwessendorf-at-gmail-dot-com
> > > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> >
>
>



 

------_=_NextPart_001_01C6AA72.6B0693C9--