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: | Cannot compile JSPs due to unrecognized arguments in build-impl.xml | ||
---|---|---|---|
Product: | javaee | Reporter: | SMR |
Component: | JSP | Assignee: | David Konecny <dkonecny> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | hof, jskrivanek, mmirilovic, mohsin061, pjiricka, stevefyfe |
Priority: | P2 | ||
Version: | 7.0 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
SMR
2011-04-25 12:55:37 UTC
Anton, it looks like user's web project was not updated properly and is using old versions of JSP compiler library and not the latest one which has new options like -schema. Can you investigate please? SMR, is your project using Libraries Folder (a setting in the project properties -> libraries panel) or not? (In reply to comment #1) > SMR, is your project using Libraries Folder (a setting in the project > properties -> libraries panel) or not? Yes, in fact all my projects use the same shared Libraries Folder. In this folder, the jsp-compiler and jsp-compilation haven't been modified since the upgrade, although there is a jsp-compilation-syscp directory with the same timestamp as the 7.0 install date. The jsp-compiler's jspcompile.jar doesn't contain any useful versioning information in its manifest or other files, but its filesystem timestamp is from last June; it has a filesize of 6312 bytes. It's surely out-of-date. How do I go about upgrading it? Let me reproduce it first and then I will advice how to workaround this bug. Evaluation: all Web projects created prior to NetBeans 7.0 which are #1) using Libraries Folder and #2) has JSP compilation enabled will fail to compile in NetBeans 7.0 with compiler error: org.apache.jasper.JasperException: Unrecognized option: -schemas /resources/schemas/. Use -help for help. Problem workaround is: 1. shutdown NetBeans 7.0 2. delete {your Libraries Folder}/jsp-compilation folder 3. delete {your Libraries Folder}/jsp-compiler folder 4. edit {your Libraries Folder}/nblibraries.properties file and remove two properties: libs.jsp-compilation.classpath and libs.jsp-compiler.classpath 5. start NetBeans 7.0 These steps will result in recreation of two deleted libraries and everything should work. I'm working on the fix for NetBeans 7.0.1. Fixed as 37c31e6a4ee1. The libraries are automatically updated now. There is lower priority issue that old library jars are not removed from filesystem - I filled that one as issue 198497. The procedure to regenerate/update the jsp-comp* folders worked, thanks! Verified in Dev build 201105150400. Please, transplant to 70patch1 branch. Also please, next time use "#198056 - ..." pattern in commit messages to let us know when the fix is integrated in daily builds. Transplanted as: changeset: 198374:4f05b09f76c2 branch: release70_fixes Sorry for wrong commit message. Typo on my side. And also: c1505b4d3d05 increasing module version and updating Long Description (as per wiki.netbeans.org/NetBeansPatchesProcess) *** Bug 198293 has been marked as a duplicate of this bug. *** *** Bug 203366 has been marked as a duplicate of this bug. *** *** Bug 198343 has been marked as a duplicate of this bug. *** |