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 172334 - is already defined in SimplifiedJSPServlet error
Summary: is already defined in SimplifiedJSPServlet error
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-15 21:26 UTC by nmaves
Modified: 2015-09-17 13:10 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
error screen shot (26.90 KB, image/jpeg)
2009-09-15 21:27 UTC, nmaves
Details
Sample TLD that causes error when used 2 times in JSP (970 bytes, text/plain)
2013-04-16 18:28 UTC, ccsheng
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nmaves 2009-09-15 21:26:25 UTC
The following include displays an error in the editor but runs fine.

<%@include file="/include.jsp" %>

The errors are below :

index is already defined in SimplifiedJSPServlet
error is already defined in SimplifiedJSPServlet

The source of the include is the following

<%@ page language="java" contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="js" uri="http://www.midwesttapes/jsp/jstl/js/functions" %>
<%@ taglib prefix="html" uri="struts-html" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="mwt" uri="mwt" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<f:setBundle basename="ApplicationResources"/>
<f:setBundle basename="StripesResources" var="stripesResources"/>
Comment 1 nmaves 2009-09-15 21:27:19 UTC
Created attachment 87721 [details]
error screen shot
Comment 2 Tomasz Slota 2009-11-13 04:47:36 UTC
What version of NetBeans have you used? I cannot reproduce it with the 6.8 nightly builds. I haven't used all the 3rd party libs though..
Comment 3 nmaves 2009-11-16 13:57:01 UTC
I just downloaded NB 6.8 beta and it has the same issue.
Comment 4 Marek Fukala 2010-05-13 15:17:00 UTC
I belive this is a duplicate of Issue 139380 -  incorrect error marks when mixing jsp tags and scriptlets.

Leaving the final decision on Tomasz though
Comment 5 nmaves 2010-05-13 15:38:35 UTC
I just checked this issue in the 6.8 release and it appears to have gone away
Comment 6 Marek Fukala 2010-05-13 16:35:04 UTC
ok, closing as fixed, the second issue I mentioned is still valid.
Comment 7 Venk 2012-11-27 20:13:53 UTC
I have NetBeans 6.8 but I am still getting the same error, can you please provide me what library file needs to add?
Comment 8 ccsheng 2013-04-16 18:26:52 UTC
I am seeing the same error message as #172334 (reported against NB 6.8) in NetBeans IDE 7.3 patch 1 (Build 201302132200) on Windows 7.

What I found was that in my JSP if I only have:
<%@taglib uri="/component_1.tld" prefix="a" %>
I don't have any error.

However, if I have 2 instances of the TLD, like:
<%@taglib uri="/component_1.tld" prefix="a" %>
<%@taglib uri="/component_1.tld" prefix="b" %>

I get the error message:
variable key is already defined in class SimplifiedJSPServlet
variable value is already defined in class SimplifiedJSPServlet

I am attaching the sample TLD for reference.
Comment 9 ccsheng 2013-04-16 18:28:15 UTC
Created attachment 133533 [details]
Sample TLD that causes error when used 2 times in JSP
Comment 10 jsdude 2013-07-19 21:00:42 UTC
Confirmed the exact same conditions for failure here on the latest stable build.

I am working with out of the box vendor code that references the same tld twice using two different prefixes.

I am getting moot errors all over the place all referring to SimplifiedJSPServlet.
Comment 11 Martin Balin 2015-09-17 13:10:34 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.