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 help! Where shall i put tld files in jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "help! Where shall i put tld files in jboss" Watch "help! Where shall i put tld files in jboss" New topic

help! Where shall i put tld files in jboss

onion ai

Joined: Jan 09, 2006
Posts: 4
i have included the codes in my jsp file:

<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

but when i run it on the server,some errors occured:

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
C:\jboss\jboss-4.0.1sp1\server\default\work\jboss.web\localhost\vms\org\apache\jsp\batch\ _jspx_meth_html_hidden_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.batch.batch_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_html_hidden_0(_jspx_th_html_form_0, _jspx_page_context))

who knows the reason
Thank you!!!

I love xiaoxiao
alexandre alexandre

Joined: Sep 07, 2004
Posts: 2

I've the same problem on Tomcat 5.0. And I've look everywhere in my configuration, everything seems to be right...

I've you found a solution ?

Jessica Sant

Joined: Oct 17, 2001
Posts: 4313

I'm moving this to the JBoss forum, as it doesn't appear to be Portal-specific.

Also... I found this: JBWEB-30, not sure how helpful it is...
Wiley Snyder

Joined: Oct 26, 2005
Posts: 23
is this a war or an ear file ?
is it exploded, are you using eclipse ? xdoclet ?

it sounds like another descriptor file screw up with the context path
Alexandre Siqueira

Joined: May 23, 2002
Posts: 3
Hi, everyone!
I use to put the TLD files in <CONTEXT_PATH>/WEB-INF/tlds folder and then place this path in <taglib> tag declaration, like this:

<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>

In your example, looks like you have put those files in <CONTEXT_PATH>/WEB-INF folder.

Have you check if those files are really there?

Good luck, and good coding...

Alexandre Siqueira - Java Programmer - SCJP<br />Claro S/A<br />Sao Paulo - Brazil
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

"onion ai"

Welcome to JavaRanch!

Please could you change your display name so it matches our Naming Policy. You can change it here. Thanks!

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
subject: help! Where shall i put tld files in jboss
jQuery in Action, 3rd edition