aspose file tools*
The moose likes JSP and the fly likes cannot run tld file in subfolder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "cannot run tld file in subfolder " Watch "cannot run tld file in subfolder " New topic
Author

cannot run tld file in subfolder

amir taghvayi
Ranch Hand

Joined: Sep 16, 2011
Posts: 54
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

Joined: Jan 10, 2002
Posts: 61430
    
  67

Where did you get this tld file?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
amir taghvayi
Ranch Hand

Joined: Sep 16, 2011
Posts: 54
hi
what do you mean "Where did you get this tld file?" ? please explain completely .
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61430
    
  67

Where did the TLD file come from? Did you create it? Download it? Get it from a man from Mars?
Stefan Evans
Bartender

Joined: Jul 06, 2005
Posts: 1018
I'm pretty sure this issue is caused by the other problem you posted.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cannot run tld file in subfolder