File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes  Unable to initialize TldLocationsCache Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark " Unable to initialize TldLocationsCache" Watch " Unable to initialize TldLocationsCache" New topic
Author

Unable to initialize TldLocationsCache

Pawan Arora
Ranch Hand

Joined: Sep 14, 2008
Posts: 105
Hi,

I repeatedly getting the above exception whenever I try to run the body of custom tags by using classic tag handler.

The code of JSP file is:



The code of TLD file is:



the code of Classic tag handler is:


and the exception, which I'm getting is:


I'm calling a JSP page directly from the request, instead of request it from the servlet. I've not configured web.xml file. What's wrong I'm doing?

Chinmaya Chowdary
Ranch Hand

Joined: Apr 21, 2008
Posts: 432
Hi Pawan. Can you please tell, how many .tld files are present in your application? I think there is an error present in one of your .tld (not this .tld).
Pawan Arora
Ranch Hand

Joined: Sep 14, 2008
Posts: 105
Only this one.
Chinmaya Chowdary
Ranch Hand

Joined: Apr 21, 2008
Posts: 432
Restart the server and send request.
Pawan Arora
Ranch Hand

Joined: Sep 14, 2008
Posts: 105
I just changed the value of <body-content> element in TLD to JSP, and now it's working fine.
Chinmaya Chowdary
Ranch Hand

Joined: Apr 21, 2008
Posts: 432
Hi Pawan. For BodyTagSupport, 'scriptless' is one of the valid option of <body-content>. Can you please tell, why it is running after changing <body-content> option to 'JSP'?
Pawan Arora
Ranch Hand

Joined: Sep 14, 2008
Posts: 105
It's working fine by calling Tag's body with the value 'scriptless' too. There was actually a problem in deployment. I should have been more specific in specify my problem reason. Anyway, Thanks for your time.
 
 
subject: Unable to initialize TldLocationsCache
 
Similar Threads
Problem using Custom tag in JSP
org. apache. jasper.JasperException:
how to get .tld file working
Taglib
.tld error