Thursday, October 16, 2008

Facelets Support in NetBeans 6.1

After getting Seam working by manually deploying a .war, I moved onto the next step of integrating Seam into an IDE. Eclipse is a clunky heap of rubbish. I'd say its problem is that it is too flexible. There's a million ways to do one simple thing, but no single way to do one simple thing properly.

After serveral hours wasted on Eclipse, I moved over to NetBeans (6.1). There's a great little tutorial on getting your NetBeans environment setup over at Edem Morny's tech blog. Everything went smoothely, up to the part where one installs Facelets Support, where I get this nasty little message:
Missing required modules for Plugin Facelets Support:
JSP Parser [module org.netbeans.modules.web.jspparser/3 = 200805300101]
This can be avoided by not updating NetBeans. Fortunately there is a bit of a hack to get around this issue:
1. Go to your netbeans-6.1/enterprise5/modules directory
2. Unjar the org-netbeans-modules-web-jspparser.jar file
jar xf org-netbeans-modules-web-jspparser.jar
3. Create a backup of the orignal org-netbeans-modules-web-jspparser.jar just in case.
4. Edit the META-INF/MANIFEST.MF file.
5. Change the OpenIDE-Module-Implementation-Version: to match the verion the facelet is complaining about. In this instance 200805300101.
6. Save the file and jar the whole thing again (by explicitly adding the modified manifest file)
jar cfm org-netbeans-modules-web-jspparser.jar META-INF/MANIFEST.MF org

1 comment:

Bittel Juice said...

Gentoo used to be a good animal...

Now is just the son of barak obama...

Used to be cool... but now it sucks...

some "patches" seems to look like rootkits (I would put as example, the 32 bit emulation on 64b, its a binary... not a source... even when it does supports cross compiling and shit like that... )

Gentoo went from a good linux wanna be BSD to a linux wanna be bloated... (Even GNU has a good policy about everything.. gentoo instead.. is becoming like... i said... bloatware...

Mem: 4056712k total, 348372k used, 3708340k free, 18668k buffers
Swap: 2104476k total, 0k used, 2104476k free, 175012k cached

killing all process doesnt do nothing about it.. i still having a BIG amount of 'ghost' memory ... its a rootkit? I dont know... but i think it doesnt because in a default FreeBSD i can use 32M of ram... and i will still have free ram whitout using swapp 1 hour after init... in a default gentoo... it doesnt matter... if i add 4G to my system.. my wasted memory will be 2GB and so on...

Gentoo you used to be cool...