facebook

Exception initializing TldLocationsCache?!?

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #230643 Reply

    lukeb
    Member

    Environment:
    Eclipse 3.0.2/MyEclipseIDE 3.8.4GA
    Fedora Core 4
    java version “1.4.2_06”

    I got this exception. But I don’t use this tag library!!
    “Exception initializing TldLocationsCache: XML parsing error on file /WEB-INF/tlds/sql.tld: (line 3, col 8): Document is invalid: no grammar found.”
    The application runs well but it is delayed by this exception
    How can I correct that?

    Thanks

    #230667 Reply

    Riyad Kalla
    Member

    Where do you get this exception? Is this from your app server or from MyEclipse? Is this TLD defined in your web.xml file? Have you tried removing the <taglib> entry as well as the TLD file itself?

    #230679 Reply

    lukeb
    Member

    @support-rkalla wrote:

    Where do you get this exception? Is this from your app server or from MyEclipse? Is this TLD defined in your web.xml file? Have you tried removing the <taglib> entry as well as the TLD file itself?

    I got the exception from the app server (tomcat 4). I’ve tried to remove the tld files and now the application runs well. The tlds are: sql, x, fn, scriptfree. I deleted the tld file and the exception has gone.

    LuKe

    #233048 Reply

    I had the same problem.
    It came from an incomplete web.xml lacking the associations between TLDs files localisation andtheir uri.

    after adding the following (web.xml), solved the problem
    <taglib>
    <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
    <taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
    </taglib>
    etc … for the other TLDs

    rgds

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Exception initializing TldLocationsCache?!?

You must be logged in to post in the forum log in