Forums Register Login
Tld not found in jboss 6
Hi, I had an application working perfectly in jboss 5. But in jboss 6 i encountered errors. I changed my spring libraries into newest spring libraries online, it fixed some issues. However, now I have problem with tld's not found.

In JbOSS 5 I didnt have this issue, I wrote tld folder in same level of web-inf, not inside it. When I reference it on top of jsp page , it finds it in JBOSS 5 ( <%@ taglib uri="/tld/CustomSprinSecTags.tld" prefix="sec" %> ) . However in Jboss 6, page crashes when i open it, saying tld not found.

When I changed this <%@ taglib uri="/tld/CustomSprinSecTags.tld" prefix="sec" %> into <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %> the page worked again. How can I solve this issue, and make tld's be found.

this solution didnt help my case

<bean name="TldParsingDeployer" class="org.jboss.deployment.TldParsingDeployer">
<property name="relativeOrder">2002</property>
<property name="useSchemaValidation">false</property>

why isnt it finidng the tld that I have written in jboss 6?
2011-04-01 10:07:58,468 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/newApplication].[jsp]] (http- Servlet.service() for servlet jsp threw exception: org.apache.jasper.JasperException: File "/tld/CustomSprinSecTags.tld" not found
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51) [:6.0.0.Final]
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409) [:6.0.0.Final]
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116) [:6.0.0.Final]
at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:177) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:386) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:448) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1398) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parse(Parser.java:130) [:6.0.0.Final]
at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255) [:6.0.0.Final]
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) [:6.0.0.Final]
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:196) [:6.0.0.Final]
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:358) [:6.0.0.Final]
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:338) [:6.0.0.Final]
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:325) [:6.0.0.Final]
brevity is the soul of wit - shakepeare. Tiny ad:
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter

This thread has been viewed 1476 times.

All times above are in ranch (not your local) time.
The current ranch time is
Feb 21, 2018 00:29:10.