webtier@glassfish.java.net

Re: how to debug JSF 2.x in Glassfish 3.1?

From: <forums_at_java.net>
Date: Wed, 2 Nov 2011 07:25:38 -0500 (CDT)

It's a lot easier if you're using a maven project. As a NetBeans user, I just
right click the server instance and start in debug mode, then hit the Debug
Main Project icon at the top of the screen. Then in my dependencies list in
the Projects tab, I open jsf-api-2.1.3.jar, then javax.faces.component.html,
then double click HtmlOutputText.class, the java file is opened. Then set a
method breakpoint on for example on setDir(), then add a tag h:outputText
dir="RTL" somewhere and off you go...   Without maven (again in NetBeans) I
right click on the project in the Projects tab, select Sources and in Source
Package Folders select Add Folder. Assuming I've unzipped the sources to a
directory mojarra-2.1.3-FCS-source, add the folder
mojarra-2.1.3-FCS-source\jsf-api\src\main. Do the same for jsf-ri. This
non-maven stuff I'm typing from memory, so caveat emptor.   If you're using
Eclipse, I'd hope it's not all that different.

--
[Message sent by forum member 'oversteer']
View Post: http://forums.java.net/node/819973