Migrating Creator Apps to VWP and Tomcat
By divas on Apr 04, 2007
A customer recently sent email that he was having trouble migrating the Movie Administration Sample Application, originally written for Sun Java Studio Creator, into NetBeans Visual Web Pack. When he opened the project in VWP, he resolved the missing server error by setting the target server to the Bundled Tomcat server. Upon running the application, he received the following error message:
package javax.faces does not exist
This error indicates that the J2EE packages are not available to the Tomcat web server. The fix is to add the JSF 1.1 library to the project as follows:
- In the Projects window, right-click the Project_Name > Libraries node and choose Add Library from the pop-up menu.
- In the Add Library dialog box, select JSF 1.1 and click Add Library.
A second problem, an HTTP 500 Status error, occurred when deploying the application. The server log included this error:
java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/ConfigThis is because the
standard.jar/jstl.jarare needed for deploying to the Tomcat server. Here's the fix:
- In the Projects window, right-click the Project_Name > Libraries node and add in the JSTL 1.1 library.
For more information on migrating projects, see Importing a Sun Java Studio Creator 2 Project in NetBeans Visual Web Pack 5.5.