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 198037 - Blocking: indexing and code completion does not work for JSTL
Summary: Blocking: indexing and code completion does not work for JSTL
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Anton Chechel
URL:
Keywords:
: 198521 199472 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-04-23 19:42 UTC by ecerichter
Modified: 2011-10-31 19:56 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of the problem (142.85 KB, image/png)
2011-05-03 13:57 UTC, ecerichter
Details
exception (4.40 KB, text/plain)
2011-05-16 01:34 UTC, David Konecny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ecerichter 2011-04-23 19:42:00 UTC
Whenever I try to open a page and start typing, I get an dialog message saying "C:\Program%20Files\NetBeans%207.0\enterprise\modules\ext\standard.jar does not exist."

Actually, the file exists, and is in the exactly place of the complain.

Version:
Product Version: NetBeans IDE 7.0 (Build 201104080000)
Java: 1.7.0-ea; Java HotSpot(TM) 64-Bit Server VM 21.0-b09
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Userdir: C:\Users\Edson\.netbeans\7.0

Relevant portion of Netbeans log:

"SEVERE [org.openide.util.Exceptions]

msg
Caused: org.openide.filesystems.FSException: File C:\Program%20Files\NetBeans%207.0\enterprise\modules\ext\standard.jar does not exist.
	at org.openide.filesystems.JarFileSystem.setJarFile(JarFileSystem.java:296)
	at org.openide.filesystems.JarFileSystem.<init>(JarFileSystem.java:196)
[catch] at org.netbeans.modules.web.core.syntax.completion.JspCompletionQuery.queryJspTagInContent(JspCompletionQuery.java:512)
	at org.netbeans.modules.web.core.syntax.completion.JspCompletionQuery.query(JspCompletionQuery.java:142)
	at org.netbeans.modules.web.core.syntax.completion.JspCompletionProvider$Query.doQuery(JspCompletionProvider.java:97)
	at org.netbeans.modules.web.core.syntax.completion.JspCompletionProvider$AbstractQuery.query(JspCompletionProvider.java:172)
	at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:223)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968)
ALL [null]: File C:\Program%20Files\NetBeans%207.0\enterprise\modules\ext\standard.jar does not exist.
SEVERE [org.openide.util.Exceptions]

msg
Caused: org.openide.filesystems.FSException: File C:\Program%20Files\NetBeans%207.0\enterprise\modules\ext\standard.jar does not exist.
	at org.openide.filesystems.JarFileSystem.setJarFile(JarFileSystem.java:296)
	at org.openide.filesystems.JarFileSystem.<init>(JarFileSystem.java:196)
[catch] at org.netbeans.modules.web.core.syntax.completion.JspCompletionQuery.queryJspTagInContent(JspCompletionQuery.java:512)
	at org.netbeans.modules.web.core.syntax.completion.JspCompletionQuery.query(JspCompletionQuery.java:142)
	at org.netbeans.modules.web.core.syntax.completion.JspCompletionProvider$Query.doQuery(JspCompletionProvider.java:97)
	at org.netbeans.modules.web.core.syntax.completion.JspCompletionProvider$AbstractQuery.query(JspCompletionProvider.java:172)
	at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:223)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968)
ALL [null]: File C:\Program%20Files\NetBeans%207.0\enterprise\modules\ext\standard.jar does not exist."
Comment 1 ecerichter 2011-04-23 20:05:51 UTC
Problem does not occur with JDK 1.6.0.22 (32bit), only on JDK 7 64bit.
Comment 2 Anton Chechel 2011-04-26 14:02:30 UTC
JDK 7 will be supported in NetBeans 7.0.1, there is no support for 7.0 yet.
Comment 3 Petr Jiricka 2011-05-03 12:38:10 UTC
Hi, which build of JDK 7 do you use? Thanks.
Comment 4 ecerichter 2011-05-03 12:55:51 UTC
Hi,


jdk-7-ea-bin-b139-windows-x64-21_apr_2011.exe

Regards,

Edson Richter
Comment 5 ecerichter 2011-05-03 13:57:34 UTC
Created attachment 108076 [details]
Screenshot of the problem

Here is a screenshot of the issue.
Happens with NetBeans 7.0 and JDK 7.0 b139.
Does not happens with JDK 1.6.0.24.
Comment 6 ecerichter 2011-05-03 14:14:10 UTC
Just confirmed:

JDK 7.0 b139 64bit: does not work.
JDK 1.6.0.22 32bit: works fine.
JDK 1.6.0.22 64bit: works fine.

Interesting, I tried JRockit 1.6.0.20, and NetBeans does not even starts (frozen, no error message at all)... but this is another problem.

My real problem is how to run JDK 7.0 b139 and NetBeans in WebApps...


Regards,

Edson.
Comment 7 ecerichter 2011-05-03 14:17:40 UTC
Forget the issue with JRockit: it works with "--locale en:US" on config file + removing special GC directives...
Comment 8 ecerichter 2011-05-07 23:46:44 UTC
Same problem with JDK 7 M1 Build 139 (64 bit) and JDK 7 M2 Build 140 (32 bit).

Regards,

Edson.
Comment 9 David Konecny 2011-05-12 03:09:54 UTC
On

  Product Version         = NetBeans IDE Dev (Build 20110511-3cecfb33a748) (#3cecfb33a748)
  Operating System        = Linux version 2.6.35-28-generic running on amd64
  Java; VM; Vendor        = 1.7.0-ea; Java HotSpot(TM) 64-Bit Server VM 21.0-b11; Oracle Corporation
  Runtime                 = Java(TM) SE Runtime Environment 1.7.0-ea-b141
  Java Home               = /home/software/jdk1.7.0/jre

I get different problem. I never get dialog but instead "<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>" is underlined and error is:

Unable to read TLD "META-INF/c.tld" from JAR file "file:/home/david/GlassFish_Server_3.1/glassfish/modules/jstl-impl.jar": org.apache.jasper.JasperException: PWC6169: Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV

On JDK6 this works fine. That's as far as I've got evaluating this. Will continue tomorrow unless somebody else takes over this issue.
Comment 10 David Konecny 2011-05-12 03:20:26 UTC
I'm slightly suspicious about spaces in path (.../Program Files/... and .../NetBeans 7.0/... ) and whether they might be causing Not Found dialog. I do not have Windows to try that out. ecerichter, if it is trivial could you try to copy your NB installation to a different path without space characters and try to reproduce the problem on JDK7? Thanks.
Comment 11 David Konecny 2011-05-12 03:20:59 UTC
While testing this I noticed also issue 198533.
Comment 12 David Konecny 2011-05-12 22:56:21 UTC
I can reproduce the problem even on Ubuntu - starting IDE with a GF which has space character in the path is causing this problem. And vice versa.
Comment 13 David Konecny 2011-05-12 23:28:07 UTC
Well now I can reproduce it even on JDK 6. Getting closer the the cause.
Comment 14 David Konecny 2011-05-13 04:13:20 UTC
Dialog problem fixed in e7cd189969ac. Somebody else please review and test. I was able to reproduce it on Ubuntu in JDK6 on standard index.jsp create in new Web Project. I just typed "<c:set" and CTRL+SPACE to create include and then space. I think I was able to reproduce it only when "c:set" is NOT in bold (taglib include was not processed).

There is second part of the problem which I describe in #9 and that one does happen to me only on JDK7. I will keep investigating on Monday unless somebody else fixes. The bigger problem I had today I was not able to find sources for glassfish JSP parser in order to debug it.
Comment 15 Petr Jiricka 2011-05-15 21:51:01 UTC
>  The bigger problem I had today I was not able to find sources for glassfish JSP parser

I also had this problem, I started to write up instructions here:
http://wiki.netbeans.org/DebuggingJspParser
Comment 16 David Konecny 2011-05-15 22:02:34 UTC
(In reply to comment #15)
> >  The bigger problem I had today I was not able to find sources for glassfish JSP parser
> 
> I also had this problem, I started to write up instructions here:
> http://wiki.netbeans.org/DebuggingJspParser

Great. Where did you learn it? Is it written somewhere? How do you know GF 3.1 is using JSP 2.2.1?

I will continue debugging this today.
Comment 17 David Konecny 2011-05-16 01:34:17 UTC
Created attachment 108304 [details]
exception

I was able to find underlying exception but because it is a classloader issue I was not able to find the cause. At the moment I know only that the problem can be anywhere - JDK 7 problem or NetBeans problem which we have not noticed prior JDK7 or JSP parser problem which we have not noticed prior to JDK7 or ...

I will try tomorrow again. Any hints welcome!
Comment 18 Petr Jiricka 2011-05-16 14:19:43 UTC
> How do you know GF 3.1 is using JSP 2.2.1?

This is GF 3.0.1, not 3.1. I think Kin-Man wrote this to me before, but right now I can not find this e-mail.
Comment 19 David Konecny 2011-05-16 19:29:35 UTC
*** Bug 198521 has been marked as a duplicate of this bug. ***
Comment 20 David Konecny 2011-05-18 03:06:00 UTC
This fixed. Remaining problem with with "Failed to load or instantiate
TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV" is tracked as separate issue 198692 - looks like something between NB module class loader and JDK7.
Comment 21 Vladimir Riha 2011-06-08 10:21:28 UTC
Verified...

Product Version: NetBeans IDE 7.0.1 Dev (Build 201106072116)
Java: 1.7.0 b145 (32bit)
Comment 22 Vince Kraemer 2011-10-31 19:56:57 UTC
*** Bug 199472 has been marked as a duplicate of this bug. ***