Link to home
Start Free TrialLog in
Avatar of kumvjuec
kumvjuec

asked on

Helppppp Exception in jsp

hi,

I am getting this error -

JasperExcpetion : Unable to initialize tldlocations cache

What does this mean???

Thanks,
Avatar of kumvjuec
kumvjuec

ASKER

org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: null
      org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:248)
      org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.java:219)
      org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:475)
      org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:417)
      org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
      org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
      org.apache.jasper.compiler.Parser.parse(Parser.java:126)
      org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
      org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
      org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
kumvjuec,

I have move this to the JSP topic where I think you will have a better chance of getting a solution.

COBOLdinosaur
Page Editor, Web Development
Avatar of TimYates
Have you defined your taglib location correctly in WEB-INF/web.xml?

<taglib>
  <taglib-url>/my-taglib</taglib-url>
  <taglib-location>/WEB-INF/mydefinevar.tld</taglib-location>
</taglib>
If you have, can you post your JSP that causes the error, and the WEB-INF/web.xml file that defines the taglib?

Cheers :-)

Tim
You have problem in
<%@taglib prefix="xx" uri="someUri" %>
it cannot refer to the uri specified.
sompol,

another of my jsp is using the same tags. so declaration is not having problem.
      <taglib>
            <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
      </taglib>
      <taglib>
            <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
      </taglib>
      <taglib>
            <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
      </taglib>
      <taglib>
            <taglib-uri>/WEB-INF/struts-nested.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-nested.tld</taglib-location>
      </taglib>
      <taglib>
            <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-template.tld</taglib-location>
      </taglib>
      <taglib>
            <taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
      </taglib>
http://www.mmbase.org/design/mailarchive/msg82545.html
It seems you have not included one of your required TLD in web.xml

If not, please post your JSP.
Could you post the jsp that have a problem?

and please that you have all tld files defined in web.xml in WEB-INF folder.
i'm using websphere, and it also defines some jar files in the web.xml
i'm not using them, so can it cause problems.
I am sure that there's no problem with jsp since another of my jsp which is much more complicated and using the same taglibs is working fine. i get this error on different pages whenever i restart the server
ASKER CERTIFIED SOLUTION
Avatar of deleteguy
deleteguy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i don't know how delete could solve my problem. but anyways, it has :). thnx delete