wood burning stoves 2.0*
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
Author

help! Where shall i put tld files in jboss

onion ai
Greenhorn

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\batch_jsp.java:146: _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
Greenhorn

Joined: Sep 07, 2004
Posts: 2
Hello,

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 ?

thanks.
Jessica Sant
Sheriff

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
Greenhorn

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
Greenhorn

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
Bartender

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: http://aspose.com/file-tools
 
subject: help! Where shall i put tld files in jboss
 
Similar Threads
adding taglib to web.xml
Problem with a simple struts application
Invalid TLD resource path
Internationalization of Struts program
duplicate tag lib