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 143333 - unable to initialize tldlocations cache
Summary: unable to initialize tldlocations cache
Status: RESOLVED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP Parser (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-08 19:56 UTC by setdosa
Modified: 2011-04-28 13:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (71.84 KB, text/plain)
2008-08-08 19:56 UTC, setdosa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description setdosa 2008-08-08 19:56:08 UTC
I had setup a web application which uses spring framework. I had put the c.tld and spring.tld files under WEB-INF/tags
folder, created entries in the web.xml. 

I included the taglib tag in the jsp and I kept getting the error PW6180:  unable to initialize tldlocationscache. 

I was able to fix it eventually by moving the tld files to WEB-INF folder and making changes accordingly.
Comment 1 setdosa 2008-08-08 19:56:53 UTC
Created attachment 66925 [details]
messages.log
Comment 2 Marek Fukala 2008-08-11 09:41:15 UTC
org.apache.jasper.JasperException: PWC6336: Illegal TLD path /WEB-INF/tags/c.tld, must not start with "/WEB-INF/tags"

I belive the tld files are supposed to be stored in WEB-INF/tlds, not WEB-INF/tags so the parser complained about it.
OTOH I admit that the "unable to initialize tldlocationscache" is not self explanatory. This should be improved.
Comment 3 Tomas Mysik 2008-09-08 16:00:19 UTC
Yes, WEB-INF/tags folder is used for custom tags not for TLD files. But I agree with Marek, the message should be 
improved.
Comment 4 Anton Chechel 2011-04-28 13:50:15 UTC
Product Version: NetBeans IDE Dev (Build 20110411-95fa2f6ba3a6)
Java: 1.6.0_23; Java HotSpot(TM) 64-Bit Server VM 19.0-b09
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Userdir: C:\Projects\netbeans\web-main\nbbuild\testuserdir

Works for me in both locations.

The only note I am getting:
Note: C:\Projects\sandbox\WebApplication2\build\generated\src\org\apache\jsp\WEB_002dINF\jsp\index_jsp.java uses unchecked or unsafe operations.
But that is irrelevant to the issue.