Skip to main content

Debugging JSF?

2 replies [Last post]
darrensiegel
Offline
Joined: 2007-06-22

I'm using Netbeans 6.1, and I'm debugging an issue that I'm running into and I'd like to step through some of the JSF code, specifically method processSaveState of the UIComponentBase and the StateManagerImpl.

How do I set up Netbeans so that it recognizes the source for the project and allows me to set breakpoints, step into, etc? I have downloaded the latest Mojarra sources, added them to my project, and can kinda get everything to work, but it looks like I have possibly different versions of the jars since the debugger does weird things - and complains when I try to set breakpoints in certain locations. I added the latest jars to my project - but it still doesn't quite work.

Is there an easier, more straightforward way of setting up Netbeans for debugging into the JSF code base?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
marc_rabil
Offline
Joined: 2005-08-26

I am having a similar problem debugging those same JSF 1.1_02 classes - UIComponentBase and StateManagerImpl. I downloaded both the source and the binaries from here:

https://javaserverfaces.dev.java.net/download.html

I am using a different IDE and app server, so my problem has nothing to do with NetBeans or Glassfish. It just appears those source files are not the exact ones used to build the corresponding binaries. This seems kind of basic and I am surprised if this is the case, but I know over the years working with JSF this has been a problem.

Anyone know where to get the exact sources for those JARs?

Marc

Ryan Lubke

webtier@javadesktop.org wrote:
> I'm using Netbeans 6.1, and I'm debugging an issue that I'm running into and I'd like to step through some of the JSF code, specifically method processSaveState of the UIComponentBase and the StateManagerImpl.
>
> How do I set up Netbeans so that it recognizes the source for the project and allows me to set breakpoints, step into, etc? I have downloaded the latest Mojarra sources, added them to my project, and can kinda get everything to work, but it looks like I have possibly different versions of the jars since the debugger does weird things - and complains when I try to set breakpoints in certain locations. I added the latest jars to my project - but it still doesn't quite work.
>
>
Verify the version you're bundling with your webapp or what is already
included with the container.
Then ensure you've downloaded the source bundle appropriate to that version.

Mojarra will display its version number when a JSF based application is
initialized.
If you're not finding the version string in your container's log, then
the manifest
of the either the jsf-api or jsf-impl JARs will have the version.

> Is there an easier, more straightforward way of setting up Netbeans for debugging into the JSF code base?
> [Message sent by forum member 'darrensiegel' (darrensiegel)]
>
> http://forums.java.net/jive/thread.jspa?messageID=300113
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net