Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 58792 invoked from network); 20 Oct 2010 13:23:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Oct 2010 13:23:11 -0000 Received: (qmail 25386 invoked by uid 500); 20 Oct 2010 13:23:10 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 25344 invoked by uid 500); 20 Oct 2010 13:23:08 -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 25336 invoked by uid 99); 20 Oct 2010 13:23:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Oct 2010 13:23:07 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcjmu-myfaces-user@m.gmane.org designates 80.91.229.12 as permitted sender) Received: from [80.91.229.12] (HELO lo.gmane.org) (80.91.229.12) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Oct 2010 13:22:59 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P8Yck-0001X2-8O for users@myfaces.apache.org; Wed, 20 Oct 2010 15:22:34 +0200 Received: from cm129-141.liwest.at ([81.10.129.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Oct 2010 15:22:34 +0200 Received: from werner.punz by cm129-141.liwest.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Oct 2010 15:22:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: users@myfaces.apache.org From: Werner Punz Subject: Re: Need help getting started with GlassFish, MyFaces, and Trinidad Date: Wed, 20 Oct 2010 15:22:21 +0200 Lines: 64 Message-ID: References: <493AB26F-73D5-4006-87C5-B4F8ACC8D98A@charmides.in-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm129-141.liwest.at User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 In-Reply-To: <493AB26F-73D5-4006-87C5-B4F8ACC8D98A@charmides.in-berlin.de> Can you check your build, you might bundle mojarra as well as myfaces, here is an excerpt of a sun-web.xml which works for me: /helloworld Keep a copy of the generated servlet class' java code. but that does not help you you bundle both implementations in your ear or war, it just overrides the one bundled with Glassfish. Werner Am 20.10.10 10:07, schrieb burghard.britzke: > but even if I set those elements in my sun-web.xml, I get > > -->INFO: Mojarra 2.0.2 (FCS b10) f�r Kontext '/myapp' wird initialisiert. > ... > --> SCHWERWIEGEND: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations. > ... > INFO: Starting up MyFaces-package : myfaces-api in version : 2.0.2 from path : file:/Users/Shared/.../myapp/WEB-INF/lib/myfaces-api-2.0.2.jar > INFO: Starting up MyFaces-package : myfaces-impl in version : 2.0.2 from path : file:/Users/Shared/.../myapp/WEB-INF/lib/myfaces-impl-2.0.2.jar > .. > INFO: ServletContext '/Users/Shared/glassfishv3/.../myapp/' initialized. > > what is wrong? > > burghard. > > Am 20.10.2010 um 09:51 schrieb Werner Punz: > >>> OK, thanks to Jakob's hints I got MyFaces-2 running under GlassFish. One >>> thing that is essential (I am putting it here for reference) is the format >>> of the sun-web.xml entry has to be: >>> >>> >>> >>> Also you have to set: >>> >>> >>> >>> I encountered something very disturbing when experimenting with this. In >>> many cases something actually over-writes the sun-web.xml file when I try to >>> run the application. It seems to happen somewhere in the deployment >>> process. I don't know if this is a bug in netbeans or the MyFaces servlet >>> is doing something. Has anyone else seen this? >> > >