Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help! Where shall i put tld files in jboss

 
onion ai
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!!
 
alexandre alexandre
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"onion ai"

Welcome to JavaRanch!

Please could you change your display name so it matches our Naming Policy. You can change it here. Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic