• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

cannot run tld file in subfolder

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
i have a tomcat server in my cpanel . i used a simple tag file in jsp file and taglib tag is

<%@taglib uri="http://jakarta.apache.org/tomcat/debug-taglib" prefix="as" %>

and setting in web.xml is
<taglib>
<taglib-uri>http://jakarta.apache.org/tomcat/debug-taglib</taglib-uri>;
<taglib-location>/WEB-INF/as1.tld</taglib-location>
</taglib>

structure of my project is :
puplic_html
|------------ index.jsp
|------------ admin
|------------ index.jsp
....
when i requested index.jsp it run correct . but when i requested admin/index.jsp i get is error :

HTTP Status 500 -

type Exception report

message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception

org.apache.jasper.JasperException: The absolute uri: http://jakarta.apache.org/tomcat/debug-taglib cannot be resolved in either web.xml or the jar files deployed with this application


the real path of /WEB-INF/as1.tld is /home/domainname/public_html/WEB-INF/as1.tld but when requested admin/index.jsp the return real path is /home/domainname/public_html/admin/WEB-INF/as1.tld That admin is Additional So tomcat throw file notFound exception .

when i get application.getContextPath() return error .

please help me .
 
Sheriff
Posts: 67756
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Where did you get this tld file?
 
amir taghvayi
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
what do you mean "Where did you get this tld file?" ? please explain completely .
 
Bear Bibeault
Sheriff
Posts: 67756
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Where did the TLD file come from? Did you create it? Download it? Get it from a man from Mars?
 
Bartender
Posts: 1845
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm pretty sure this issue is caused by the other problem you posted.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic