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

Summary: unable to initialize tldlocations cache
Product: javaee Reporter: setdosa <setdosa>
Component: JSP ParserAssignee: Anton Chechel <manowar>
Status: RESOLVED WORKSFORME    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: messages.log

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.