[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1166
  • Last Modified:

how to install tiles 2 in tomcat 6

I know how to use tiles, but do not know how to set it up in the tomcat webserver.  Could someone explain this to me or point me to a tutorial explaining this? I have downloaded the tiles-2.1.2-bin zipped file.

Thanks much in advance.
0
tbboyett
Asked:
tbboyett
  • 5
  • 3
1 Solution
 
tbboyettAuthor Commented:
given this project is just for testing tiles, this is what i'm getting back when going to localhost:8080

any ideas why?
org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 2
 
1: <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
2: <tiles:insertDefinition name="main.layout" />
 
 
Stacktrace:
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 
root cause
 
javax.servlet.ServletException: org.apache.tiles.jsp.taglib.TilesJspException: TilesContainer not initialized
	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:852)
	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
	org.apache.jsp.index_jsp._jspService(index_jsp.java:66)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Open in new window

0
 
objectsCommented:
haven't used tiles for years but will do my best to help
whats your tiles definition look like?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
tbboyettAuthor Commented:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN"
       "http://tiles.apache.org/dtds/tiles-config_2_1.dtd">
<tiles-definitions>
  <definition name="main.layout" template="/layouts/mainLayouts.jsp">
    <put-attribute name="title" value="Unified Audio Solutions" />
    <put-attribute name="header" value="/global/shared/header.jsp" />
    <put-attribute name="menu" value="/global/shared/leftMenu.jsp" />
    <put-attribute name="body" value="/global/shared/body.jsp" />
    <put-attribute name="footer" value="/global/shared/footer.jsp" />
  </definition>
</tiles-definitions>
0
 
objectsCommented:
are you not using struts?
If not then I think you need to use: http://tiles.apache.org/

0
 
tbboyettAuthor Commented:
i'll try that and get back shortly
0
 
tbboyettAuthor Commented:
got it, thanks to you.  

Thanks very much!
0
 
tbboyettAuthor Commented:
excellent!
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now