Facelets plugins do not install with Patch 2

Two users have reported that neither of the Facelets support nbm files (for FCS and multilingual versions) will install to NetBeans 6.1. I have reproduced this problem. The plugins fail to install, returning an error that a necessary JSP parser module is missing.

The problem appears to be that Patch 2 replaced the JSP parser with a new version, and the nbm files are set up to use the old version. Until a new version of the nbm is created, I'm afraid you need to have an installation of NetBeans IDE 6.1 without updates in order to use Facelets support.
Comments:

Please, check this page, http://blogs.sun.com/poting/entry/build_and_install_facelets_support, there is a simple trick to let netbeans to install the facelets support.

Here is it:

Posted by Bob Treacy on July 09, 2008 at 11:05 AM PDT #

solution for jspparser problem.
go to your netbeans6/enterprise5/modules directory. Find org-netbeans-modules-web-jspparser.jar . Unpack and edit the META-INF/MANIFEST.MF file so that
OpenIDE-Module-Implementation-Version:
matches what your facelets is complaining about. save, reassemble jar, then start ide and install works fine. May need to change back after install :)
Cheers

Posted by Pedro Parra on August 05, 2008 at 09:29 AM CEST #

Bob,
That mostly works, but you cannot change back the OpenIDE-Module-Implementation-Version after installing the plugin, or the IDE deactivates the plugin on startup. So far though using the older version number doesn't <i>seem</i> to affect anything else.

Posted by Jeff Rubinoff on August 05, 2008 at 10:27 AM CEST #

Thankyou so much for this fix. I spent literally 3 hours last night, trying to find a useful solution (sorry, but going back to 6.0 is not an option where I work). I realise this fix is a tad dodgy, but at least it works.

In case other readers of this are as new to this as me...
The easiest way to apply this fix is:

copy the org-netbeans-modules-web-jspparser.jar file to some useful temporary place (for this example we pretend it is at "C:\\temp\\org-netbeans-modules-web-jspparser.jar"

now use jar to expand the archive (jar can be found in the bin directory of your java install (ie c:\\java\\jdk1.6.0_10\\bin\\jar.exe) the DOS command should be something like:

(change to temp directory containing jar file)
cd c:\\temp
c:\\java\\jdk1.6.0_10\\bin\\jar.exe -xv org-netbeans-modules-web-jspparser.jar

now edit the MANIFEST.MF file as stated above, that is:
Ensure that the "OpenIDE-Module-Implementation-Version:" property is equal to the value that Facelets (or whatever) complains about when it refuses to install.
Save the MANIFEST.MF file (yes, still in the temporary directory)

Now use jar to combine the new manifest into the old jar file

c:\\java\\jdk1.6.0_10\\bin\\jar.exe -vufm org-netbeans-modules-web-jspparser.jar c:\\temp\\META-INF\\MANIFEST.MF

ie: jar -vufm (directory/name-of-old-jar)O (directory/name-of-new-MANIFEST.MF)

v: verbose
u: update existing archive
f: name of jar file
m: just update the manifest from this named file

Again, Thankyou to both Pedro Parra and Bob Treacy for this solution.

Hope this helps someone else,

David

Posted by David Bastow on November 21, 2008 at 12:43 PM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
About

I'm a technical writer for NetBeans, covering web service support.

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today