File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Tld not found in jboss 6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Tld not found in jboss 6" Watch "Tld not found in jboss 6" New topic

Tld not found in jboss 6

barbar beb

Joined: Apr 01, 2011
Posts: 2
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="" %> 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?
barbar beb

Joined: Apr 01, 2011
Posts: 2
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( [:6.0.0.Final]
at org.apache.jasper.compiler.ErrorDispatcher.dispatch( [:6.0.0.Final]
at org.apache.jasper.compiler.ErrorDispatcher.jspError( [:6.0.0.Final]
at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>( [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseTaglibDirective( [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseDirective( [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseElements( [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parse( [:6.0.0.Final]
at org.apache.jasper.compiler.ParserController.doParse( [:6.0.0.Final]
at org.apache.jasper.compiler.ParserController.parse( [:6.0.0.Final]
at org.apache.jasper.compiler.Compiler.generateJava( [:6.0.0.Final]
at org.apache.jasper.compiler.Compiler.compile( [:6.0.0.Final]
at org.apache.jasper.compiler.Compiler.compile( [:6.0.0.Final]
at org.apache.jasper.compiler.Compiler.compile( [:6.0.0.Final]
I agree. Here's the link:
subject: Tld not found in jboss 6
It's not a secret anymore!