Can't get JSF sources from CVS

I'm trying to download the correct version of JSF to debug a problem I'm having with JSF in Glassfish. I'm using GF v2 b41c, which states that it uses JSF cvs tag: JSF_1_2_GFINT_B17. (See http://wiki.java.net/bin/view/Projects/GlassFishSourcesBundle.)

When I try to use CVS to get JSF, I get the following error msg:

"User rickhoro doesn't have <VersionControl - Read> access to project javaserverfaces-sources"

I'm using the following setup for CVS in NetBeans 5.5.1, but I get the same response with a CVS client.

Access Method: pserver

User: <my username>

Host: cvs.dev.java.net

Repository Path: /cvs

Module: javaserverfaces-sources

Branch: JSF_1_2_GFINT_B17

Do I need to request access from somebody? I find this strange -- JSF is open source now, correct? Why isn't it available?

Please help.

[889 byte] By [rick789a] at [2007-11-27 7:54:56]
# 1

You need to request membership to the project.

I've added you, so you should be able to check the sources out.

However, the tag you're referring to is very old. That's was one of the initial 1.2 integrations.

If you deploy an application to GF v2 b41c, you will see the version string.

If you provide the version string here, I can provide the tag.

rlubkea at 2007-7-12 19:36:15 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

I see you are the module lead listed on the GF wiki. Thank you for your reply.

I checked a more recent version of GF (v2 b50c) and the web page that details the GF modules is the same as that for v2 b41c: should be fixed, I guess: (http://wiki.java.net/bin/view/Projects/GlassFishSourcesBundle)

I looked around and in the Glassfish source distribution and found that the file: bootstrap/project.properties contains the versions of each included 3rd party module used in GF:

For GF v2 b41c - glassfish.jsf.version=1.2_04-p01-b10

Can you please provide instructions for how to turn these version numbers into a tag I can use to checkout the correct version of JSF from CVS? I don't want to bother you with this again, but will undoubtedly need new versions. In fact, I will probably upgrade to b50c. Do you happen to know if I can just copy my build.xml file from b41c to b50c and have it work?

Thanks again,

Rick Horowitz

rick789a at 2007-7-12 19:36:15 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
The following page has source code bundles available for download, without needing CVS access:https://javaserverfaces.dev.java.net/download.html
RaymondDeCampoa at 2007-7-12 19:36:15 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
I was going to point out the same.
rlubkea at 2007-7-12 19:36:15 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

Thank you both, but I still would like more specific information if possible.

https://javaserverfaces.dev.java.net/download.html contains stable releases only up until March 2007, which may cover Glassfish v2b41c, but will not (I suspect) cover more recent GF builds.

In addition, the version in GF v2b41c for JSF is given as: 1.2_04-p01-b10, which I would think is not the same as the closest match on thedownload page: 1.2_04 P01.

I'd still like to know how to translate the JSF version number from the GF project.properties file into a CVS tag so I can download the exact right match so I can use the debugger to figure out the problem with my system (using JSF).

Thanks again,

Rick

P.S. Different screen name from my other posts in this thread as "rick789" -- can't get my other account working for some reason.

rick788a at 2007-7-12 19:36:15 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6

Actually, that's a bug in the page (which I will fix after this is posted).

If you go to the actual download section [1] you will see that there is a more recent release (May 2007 in fact).

As far as the naming goes, 1.2_04-p01-b10 is the same as 1.2_04 P01. We just haven't included the build numbers in the name.

Additionally, the version number in the GF project.properties is there in order for the build process to download the appropriate binary. I don't believe it grabs the source.

At any rate, the tag for 1.2_04-p01-b10 is: JSF_1_2_04P01_B10

I typically tag like: JSF_1_2_<MINOR_RELEASE><PATCH RELEASE>_<BUILD_NUMBER>

Note that the PATCH_RELEASE portion (i.e. p01, or p02 isn't normally used, so drop it if it isn't relevant to the source you're interested in).

[1] https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folderID=7515&expandFolder=7515&folderID=0

rlubkea at 2007-7-12 19:36:15 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 7
Also, you may wish to ask CVS/build related stuff on the RI mailing lists as opposed to here. I typically check these forums once a day where as the lists I'm generally quick to respond.
rlubkea at 2007-7-12 19:36:15 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 8

Thanks for detailed info, but still no solution here.

I downloaded the 1.2_04-p01-b10 source and added the src folders to the Sources tab of the Glassfish v2b41c server in NetBeans 5.5.1.

I'm using Seam, so I put a breakpoint in SeamPhaseListener.beforePhase(). When I click on the LifecycleImpl.execute() or LifecycleImpl.phase() in the Call Stack tab (of NB) the program counter (ie. cursor) appears on the wrong line -- about 8 lines off from where it should be: (see the following)

while (listenersIterator.hasNext()) {

PhaseListener listener = listenersIterator.next();

if (phaseId.equals(listener.getPhaseId()) ||

PhaseId.ANY_PHASE.equals(listener.getPhaseId())) {

listener.beforePhase(event);[i][b][SHOULD BE HERE][/b][/i]

}

}

}

}

catch (Exception e) {

if (LOGGER.isLoggable(Level.WARNING)) {

LOGGER.warning("phase("

+ phaseId.toString() [i][b][SHOWS UP HERE INSTEAD][/b][/i]

+ ','

+ context

+

") threw exception: "

+ e

+ ' '

+ e.getMessage()

+

"\n"

+ Util.getStackTraceString(e));

}

I assume that these JSF sources do not match the binaries used by this Glassfish implementation. Is there any other reason I would be seeing this mismatch? Makes it pretty near impossible to debug the problem. Please, I would really appreciate further help here.

Thanks very much,

Rick

rick788a at 2007-7-12 19:36:15 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 9
I just downloaded the GF v2b41c binaries and the 1.2_04-p01-b10 source and stepped through the section you pointed out and it stepped through as I would expect.So I believe the binary and sources are correct.Could be a bug in the NB debugger.
rlubkea at 2007-7-12 19:36:15 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 10

Thanks again. I'm not surprised that NB debugger has a bug -- it has lot of bugs. :-(

I did finally come across the cause of my problem and fixed it! You might be interested in the resolution. It turned out that I had nested <h:form> tags -- boy, does that screw things up. Would it be possible to add an explicit error message such as, "Nested <h:form> tags found in file: xxxx.xhtml. Fix them!!" That would have saved me 2 days of hair pulling.

Is NB 6.0 M9 any better, I wonder. I tried installing it, but it picked up old NB 5.5 settings instead of my 5.5.1 settings. I then uninstalled, deleted all my nb 5.5 directories and tried installing it again. This time it didn't ask to import any settings. I didn't feel like spending an hour getting all the libraries and projects set up right, so I closed it. How annoying.

Rick

P.S. Well I still can't get my old screen name back -- this time I have yet another one courtesy of Sun Customer Support. Well, at least they were prompt in getting back to me, as were you. Much appreciate your help.

rick790a at 2007-7-12 19:36:15 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...