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.

Bug 211976 - Cannot run JSP file with JSTL without manually adding library
Summary: Cannot run JSP file with JSTL without manually adding library
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: TomasKraus
URL:
Keywords:
: 209597 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-05-02 16:25 UTC by Vladimir Riha
Modified: 2012-06-11 14:51 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2012-05-02 16:25:38 UTC
I installed 2 versions of GlassFish: 3.0.1 and 3.1.2 (b23) and for both of them I followed these steps:

- create new Java Web app (JavaEE 6 Web)
- in new index.jsp, add c:out and taglib declaration : <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><c:out value="foo"/>
- run index.jsp

=> Result with GF 3.0.1: No problems

=> Result with GF 3.1.2: Can't run with result:

/WebApplication13/build/generated/src/org/apache/jsp/index_jsp.java:88: error: package org.apache.taglibs.standard.tag.rt.core does not exist
    org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_out_0 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _jspx_tagPool_c_out_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class);
                                           ^

Deploying, Building and Running entire application is without problems.

Also code completion for <c: is not working and NetBeans shows error "The absolute uri:http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application". If I add JSTL library by myself (from NetBeans folder enterprise/modules/ext/...) to the project, it works but this is not necessary in GF 3.0.1. It seems like NetBeans can't find the JSTL library (which was apparently renamed according to Vince's comment at [1])

[1] http://stackoverflow.com/a/9013837/475726
 


Product Version: NetBeans IDE Dev (Build 201205020400)
Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21
System: Linux version 3.0.0-17-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Martin Fousek 2012-05-04 07:54:44 UTC
*** Bug 209597 has been marked as a duplicate of this bug. ***
Comment 2 Martin Fousek 2012-05-04 07:57:28 UTC
There is needed to include "javax.servlet.jsp.jstl.jar" into GF library.

Must be resolved into NB7.2 -> increasing priority.
Comment 3 Vince Kraemer 2012-05-04 17:29:47 UTC
tomas: look in glassfish.javaee/src/org/netbeans/modules/glassfish/javaee/ide/Hk2PluginProperties.java.  I think the method is getClasses.
Comment 4 Vince Kraemer 2012-05-15 20:55:06 UTC
Tomas: please make sure this commits get pushed into the beta if necessary...
http://hg.netbeans.org/web-main/rev/dcd434db8219
Comment 5 Petr Jiricka 2012-05-16 08:48:04 UTC
I am afraid it's too late for the beta release.
Comment 6 Marian Mirilovic 2012-05-16 10:10:38 UTC
Too late for 7.2 Beta
Comment 7 Quality Engineering 2012-05-16 11:19:26 UTC
Integrated into 'main-golden', will be available in build *201205160400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/dcd434db8219
User: vince kraemer <vkraemer@netbeans.org>
Log: #211976 : jstl stuff got moved around and the javaee.jar MANIFEST.MF was not updated
Comment 8 Vladimir Riha 2012-06-11 14:51:20 UTC
verified, thanks

Product Version: NetBeans IDE Dev (Build 201206110001)
Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21
System: Linux version 3.0.0-20-generic-pae running on i386; UTF-8; en_US (nb)