Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 75831 invoked from network); 22 Dec 2009 10:12:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Dec 2009 10:12:57 -0000 Received: (qmail 22522 invoked by uid 500); 22 Dec 2009 10:12:55 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 22416 invoked by uid 500); 22 Dec 2009 10:12:55 -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 22406 invoked by uid 99); 22 Dec 2009 10:12:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Dec 2009 10:12:54 +0000 X-ASF-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of walter.mourao@gmail.com designates 209.85.219.227 as permitted sender) Received: from [209.85.219.227] (HELO mail-ew0-f227.google.com) (209.85.219.227) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Dec 2009 10:12:43 +0000 Received: by ewy27 with SMTP id 27so7246683ewy.36 for ; Tue, 22 Dec 2009 02:12:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=F1dEEUmgClJiR3LeQ60qBPvfATO4aPlpTreRdVbXa8o=; b=V19+qK9CfrjFk4WV1py5HSI2WP5CErGCmFj3nwUvVAyLwbW+nVm9f5lQqBFpcmHeMO eebEDOWbZyn51WrsJboL22G/64GHaYVSto1y8eZlzyj9iykqk3H8DDylCsSu0gKcU/MW VHQcqTPC6xKbRxXRQVzL5LTiVVuavlnAPwzp0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=bWECqhgceMnsrbhCV3GUZoABrRVdMEKCuMgk88YC7QQzwx8biqf2ZMEX6bZuhchHC/ rKt42CAC+U7zYuxQy7IIqC8MqtyHn1Z5Hq3bC1X/V5g5qy5nKDOJOnaKotYRyMUmByVJ XT5uhQWqJsx6mIl8gJ0vxZTgXE7TTKTloRADI= MIME-Version: 1.0 Received: by 10.216.90.76 with SMTP id d54mr3256846wef.55.1261476741173; Tue, 22 Dec 2009 02:12:21 -0800 (PST) In-Reply-To: <71235db40912210438i6fd5765cke94d40469dc7e324@mail.gmail.com> References: <8bf03ded0912210434j72f49ba4p12051216f8463648@mail.gmail.com> <71235db40912210438i6fd5765cke94d40469dc7e324@mail.gmail.com> From: =?UTF-8?Q?Walter_Mour=C3=A3o?= Date: Tue, 22 Dec 2009 08:12:01 -0200 Message-ID: <8bf03ded0912220212h70d43381xbb56ff332ff7c3fa@mail.gmail.com> Subject: Re: [Trinidad] Trinidad and Glassfish: resource servlet does not work To: MyFaces Discussion Content-Type: multipart/alternative; boundary=0016e6d778dd0cd122047b4e71df --0016e6d778dd0cd122047b4e71df Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Matthias, thanks the attention. I just checked and I'm sure the resource servlet is executed. The url is null after "URL url =3D loader.getResource(resourcePath);" in: ... ResourceLoader loader =3D _getResourceLoader(request); String resourcePath =3D getResourcePath(request); URL url =3D loader.getResource(resourcePath); // Make sure the resource is available if (url =3D=3D null) { response.sendError(HttpServletResponse.SC_NOT_FOUND); return; } ... Some "not found" resources I saw during debug: /adf/jsLibs/DebugCommon1_0_10.js /adf/styles/cache/default-desktop-lmwkb-ltr-gecko.css /adf/images/t.gif Since the application is running fine in a standalone Tomcat, I think the problem is related with some classloader issue regarding Glassfish X Trinidad ... Hints ? Should I open a Jira issue ? In Glassfish or Trinidad :-) ? Walter Mour=C3=A3o http://waltermourao.com.br http://arcadian.com.br http://oriens.com.br On Mon, Dec 21, 2009 at 10:38 AM, Matthias Wessendorf wr= ote: > did you check (w/ debugger) that the resource servlet is really executed = ? > If not, that's likely some container specific issue > > -M > > 2009/12/21 Walter Mour=C3=A3o : > > Hi folks, > > I'm trying to make an existing Trinidad (1.0.10) application to work in > > Glassfish (2.1.1). > > After creating the sun-web.xml with the property useMyFaces=3Dtrue, the > > application started to work, but the resources from Trinidad (css, > > javascript) isn't going to the browser. > > The urls inside the html source code are correct and it looks like the > > servlet isn't being executed. > > I checked in Glassfish and the servlet is recognized (appears as > > "sub-component" of the web application). > > > > Any hints ? > > > > Thanks in advance, > > > > Walter Mour=C3=A3o > > http://waltermourao.com.br > > http://arcadian.com.br > > http://oriens.com.br > > > > > > -- > Matthias Wessendorf > > blog: http://matthiaswessendorf.wordpress.com/ > sessions: http://www.slideshare.net/mwessendorf > twitter: http://twitter.com/mwessendorf > --0016e6d778dd0cd122047b4e71df--