This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Compile JSP files during build fails with NoClassDefFoundError | ||
---|---|---|---|
Product: | javaee | Reporter: | stevefyfe <stevefyfe> |
Component: | JSP | Assignee: | Anton Chechel <manowar> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.0 | ||
Hardware: | PC | ||
OS: | Mac OS X | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
stevefyfe
2011-05-03 20:48:50 UTC
I diagnosed it as a problem with the upgrade from NB6.9 to NB7.0. NB6.9 had installed a library in my project specific library folder, but when NB7 was installed, it did not change the contents of that library. So NB7 tried to compile the JSPs using the classpath intended for NB6.9, which failed. I created a new project and compared the nblibraries.properties file from the new project with my original project. I found a library defined in both named jsp-compilation but the jar files defined in that library did not match. To fix the problem I had to upgrade that library by hand. I changed the nblibraries.properties file to look like this: libs.jsp-compilation.classpath=\ ${base}/jsp-compilation/ant.jar:\ ${base}/jsp-compilation/servlet3.0-jsp2.2-api.jar:\ ${base}/jsp-compilation/glassfish-jspparser-3.0.jar:\ ${base}/jsp-compilation/jsf-api.jar:\ ${base}/jsp-compilation/jstl.jar:\ ${base}/jsp-compilation/ant-launcher.jar And I put those jar files into that folder, replacing the ones that were already there. This resolved the problem. *** This bug has been marked as a duplicate of bug 198056 *** |