• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cannot run tld file in subfolder

 
amir taghvayi
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • 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 .
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64717
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where did you get this tld file?
 
amir taghvayi
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
what do you mean "Where did you get this tld file?" ? please explain completely .
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64717
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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?
 
Stefan Evans
Bartender
Posts: 1691
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm pretty sure this issue is caused by the other problem you posted.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic