Download glassfish v2.1 for windows6/19/2023 ![]() ![]() ![]() You cannot overload the lib by placing them in overloading folders such as lib/endorsed and lib/ext like with other libs ![]() There is no way of including these Mojarra jars in your application and force the application to use it, delegate=false in sun-web.xml does not work because JSF is an integral park of Glassfish unlike other stuff So what you need to do is download and replace jsf-impl.jar in the lib library of glassfish, copy the new jsf-api.jar into the same folder, then goto domain.xml and add the reference to the new jsf-api.jar. Basically for Glassfish v2 some plonker (excuse my flame) decided jsf-api.jar which contains most of the api documents (tld doc, sources etc) should be combined and bundled into javaee.jar which contains other stuff. The office Mojarra JSF installation instruction is actually in the release notes, I found it quite strange that there has been little documentation of this, including the official wiki that Cagatay has pointed out. As strange as it seems, it could be because doing it manually is quite easy anyway instead of going to command line to do java functions, so they gave up. The instructions in the 'official' wiki mentions a glassfish-update.jar, this jar is created for the snapshot beta releases and some older releases but not for the all the stable releases. So I've spent the night researching this and this is what I found. I've also tried using Myfaces as a prove of concept, it works but I can't stop it complaining about reference jsf in the classpath, again not ideal solution in the first place and definitely not if it produces an error message like that on load. Mojarra site (to my annoyance) has created a jar file that will update glassfish specifically to the newest mojarra impl, however that would mean to a beta version, not a stable one, so that's out the window for production application. Further more unlike other class-loader classes, the newer classes will not be used if you place them in lib/endorsed folder or if you place them in your project and set class-loader delegate to false. Problem with the mojarra download is that it comes with jsf-impl.jar and jsf-api.jar, however from Glassfish v2 jsf-api.jar is bundled inside javaee.jar so a direct replacement is out of the question (Or is it?). There has been a few users that have updated to a newer version of JSF from Mojarra site to 1.2_12 or above (current stable version is 1.2_13).Ĭan you guys that have done this share how you went about it? This version seem to be causing a problem with the primeface's ajax feature where it will delete all (or most) tag attributes when re-rendering the page partially. It seems both Glassfish v2.1 (as a direct download) and Glassfish V2ur2 (bundled with netbeans) both comes with jsf version 1.2_04-b22-p05. ![]()
0 Comments
Leave a Reply. |