NB 6.0 plugin to convert old Creator J2EE 1.4 project to VWP Java EE 5 (JSF 1.2) project
By winston on Sep 11, 2007
Using Netbeans 6.0 you can create and edit Visual Web Applications with JSF 1.2 and Java EE 5 support. These Java EE 5 projects use Project Woodstock Components with advanced AJAX capabilities. Netbeans 6.0 also provides a neat migration path to open and edit old J2EE 1.4 projects created using Sun Java Studio Creator. However, the components used in these J2EE 1.4 projects are still the old Sun Web UI Components with no AJAX capabilities. NB 6.0 Visual Web does not provide upgrade path for these projects, so that they can be converted to Java EE 5 project with JSF 1.2 support and AJAX capable components.
I've written a small helper plugin to "plugin" this hole. This tool takes the old JSF 1.1 (J2EE 1.4) project and converts it to JSF 1.2 (Java EE 5) Project. The converted project can be opened in Netbeans 6.0 and edited like any other Java EE 5 Web project created using Netbeans 6.0. The components are also upgraded from JSF 1.1 Sun Web UI Components to JSF 1.2 Project Woodstock Components. This could be accomplished easily because Project Woodstock components still use the same tag name and most of the old tag attributes.
Disclaimer: This is not a Netbeans 6.0 release supported plugin. It did not go through any rigorous QA tests like other Netbeans 6.0 VWP plugins. So comes without out any warranty.
Steps to install the plugin and convert a project
Download and install the plugin org-netbeans-modules-visualweb-projectconverter.nbm
(The sources are also available)
Before using this tool, first migrate the project using Netbeans 6.0, especially resolve the datasources. For details on datasource migration read John Baker's blog on Visual Web: Recovering database connections . For overall migration details read Tips for Migrating Java Studio Creator 2 Update 1 Projects to NetBeans IDE 6.0
This plugin adds a menu item called Visual Web Project Converter to the Tools Menu.
Clicking on this menu items pops up a dialog where you can browse and provide the directory of the old project and a new directory where the converted project will be placed.
Clicking on the convert button, converts the old Java EE 1.4 project and places the converted Java EE 5 project in the provided new directory. Once the project is converted a Diff Viewer dialog pops up and gives an opportunity to browse the diff of converted files in the old and newly converted project.
Click on the convert button in the Diff Viewer to complete the conversion and open the converted project in the IDE.
PS: Leave a comment if you are able to convert your project or having trouble using this tool.
- The layout switched to org.desktop.layout so that the NBM can be installed in Netbeans 6.0 IDE that runs on JDK 1.5.
- JSPF convesrion included.