wood burning stoves 2.0*
The moose likes Struts and the fly likes Tiles package not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Tiles package not found" Watch "Tiles package not found" New topic
Author

Tiles package not found

sameer kumar
Greenhorn

Joined: Jan 06, 2006
Posts: 17
An old application of mine was built on struts 1.1 but when i tried to run it recently, there were errors with finding the class for "insert" tag in tiles. I decided to upgrade to struts 1.3.8. I have tried with all possible changes required for the upgrade suggested at various forums but i still get the following error:

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

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

An error occurred at line: 12 in the jsp file: /jsp/login.jsp

Generated servlet error:
[javac] Compiling 1 source file

D:\Tomcat 4.1\work\Standalone\localhost\MyApp\jsp\login_jsp.java:77: package org.apache.struts.tiles.taglib does not exist
org.apache.struts.tiles.taglib.InsertTag _jspx_th_tiles_insert_0 = (org.apache.struts.tiles.taglib.InsertTag) _jspx_tagPool_tiles_insert_page_flush.get(org.apache.struts.tiles.taglib.InsertTag.class);
^



An error occurred at line: 12 in the jsp file: /jsp/login.jsp

Generated servlet error:
D:\Tomcat 4.1\work\Standalone\localhost\MyApp\jsp\login_jsp.java:77: package org.apache.struts.tiles.taglib does not exist
org.apache.struts.tiles.taglib.InsertTag _jspx_th_tiles_insert_0 = (org.apache.struts.tiles.taglib.InsertTag) _jspx_tagPool_tiles_insert_page_flush.get(org.apache.struts.tiles.taglib.InsertTag.class);
^



An error occurred at line: 12 in the jsp file: /jsp/login.jsp

Generated servlet error:
D:\Tomcat 4.1\work\Standalone\localhost\MyApp\jsp\login_jsp.java:77: package org.apache.struts.tiles.taglib does not exist
org.apache.struts.tiles.taglib.InsertTag _jspx_th_tiles_insert_0 = (org.apache.struts.tiles.taglib.InsertTag) _jspx_tagPool_tiles_insert_page_flush.get(org.apache.struts.tiles.taglib.InsertTag.class);
^



An error occurred at line: -1 in the jsp file: null

Generated servlet error:
D:\Tomcat 4.1\work\Standalone\localhost\MyApp\jsp\login_jsp.java:113: package org.apache.struts.tiles.taglib does not exist
org.apache.struts.tiles.taglib.PutTag _jspx_th_tiles_put_0 = (org.apache.struts.tiles.taglib.PutTag) _jspx_tagPool_tiles_put_value_type_name.get(org.apache.struts.tiles.taglib.PutTag.class);
^
D:\Tomcat 4.1\work\Standalone\localhost\MyApp\jsp\login_jsp.java:113: package org.apache.struts.tiles.taglib does not exist
org.apache.struts.tiles.taglib.PutTag _jspx_th_tiles_put_0 = (org.apache.struts.tiles.taglib.PutTag) _jspx_tagPool_tiles_put_value_type_name.get(org.apache.struts.tiles.taglib.PutTag.class);
^
D:\Tomcat 4.1\work\Standalone\localhost\MyApp\jsp\login_jsp.java:113: package org.apache.struts.tiles.taglib does not exist
org.apache.struts.tiles.taglib.PutTag _jspx_th_tiles_put_0 = (org.apache.struts.tiles.taglib.PutTag) _jspx_tagPool_tiles_put_value_type_name.get(org.apache.struts.tiles.taglib.PutTag.class);
^
D:\Tomcat 4.1\work\Standalone\localhost\MyApp\jsp\login_jsp.java:146: package org.apache.struts.tiles.taglib does not exist
org.apache.struts.tiles.taglib.PutTag _jspx_th_tiles_put_1 = (org.apache.struts.tiles.taglib.PutTag) _jspx_tagPool_tiles_put_value_name.get(org.apache.struts.tiles.taglib.PutTag.class);
^
D:\Tomcat 4.1\work\Standalone\localhost\MyApp\jsp\login_jsp.java:146: package org.apache.struts.tiles.taglib does not exist
org.apache.struts.tiles.taglib.PutTag _jspx_th_tiles_put_1 = (org.apache.struts.tiles.taglib.PutTag) _jspx_tagPool_tiles_put_value_name.get(org.apache.struts.tiles.taglib.PutTag.class);
^
D:\Tomcat 4.1\work\Standalone\localhost\MyApp\jsp\login_jsp.java:146: package org.apache.struts.tiles.taglib does not exist
org.apache.struts.tiles.taglib.PutTag _jspx_th_tiles_put_1 = (org.apache.struts.tiles.taglib.PutTag) _jspx_tagPool_tiles_put_value_name.get(org.apache.struts.tiles.taglib.PutTag.class);
^
D:\Tomcat 4.1\work\Standalone\localhost\MyApp\jsp\login_jsp.java:162: package org.apache.struts.tiles.taglib does not exist
org.apache.struts.tiles.taglib.PutTag _jspx_th_tiles_put_2 = (org.apache.struts.tiles.taglib.PutTag) _jspx_tagPool_tiles_put_value_name.get(org.apache.struts.tiles.taglib.PutTag.class);
^
D:\Tomcat 4.1\work\Standalone\localhost\MyApp\jsp\login_jsp.java:162: package org.apache.struts.tiles.taglib does not exist
org.apache.struts.tiles.taglib.PutTag _jspx_th_tiles_put_2 = (org.apache.struts.tiles.taglib.PutTag) _jspx_tagPool_tiles_put_value_name.get(org.apache.struts.tiles.taglib.PutTag.class);
^
D:\Tomcat 4.1\work\Standalone\localhost\MyApp\jsp\login_jsp.java:162: package org.apache.struts.tiles.taglib does not exist
org.apache.struts.tiles.taglib.PutTag _jspx_th_tiles_put_2 = (org.apache.struts.tiles.taglib.PutTag) _jspx_tagPool_tiles_put_value_name.get(org.apache.struts.tiles.taglib.PutTag.class);
^
D:\Tomcat 4.1\work\Standalone\localhost\MyApp\jsp\login_jsp.java:178: package org.apache.struts.tiles.taglib does not exist
org.apache.struts.tiles.taglib.PutTag _jspx_th_tiles_put_3 = (org.apache.struts.tiles.taglib.PutTag) _jspx_tagPool_tiles_put_value_name.get(org.apache.struts.tiles.taglib.PutTag.class);
^
D:\Tomcat 4.1\work\Standalone\localhost\MyApp\jsp\login_jsp.java:178: package org.apache.struts.tiles.taglib does not exist
org.apache.struts.tiles.taglib.PutTag _jspx_th_tiles_put_3 = (org.apache.struts.tiles.taglib.PutTag) _jspx_tagPool_tiles_put_value_name.get(org.apache.struts.tiles.taglib.PutTag.class);
^
D:\Tomcat 4.1\work\Standalone\localhost\MyApp\jsp\login_jsp.java:178: package org.apache.struts.tiles.taglib does not exist
org.apache.struts.tiles.taglib.PutTag _jspx_th_tiles_put_3 = (org.apache.struts.tiles.taglib.PutTag) _jspx_tagPool_tiles_put_value_name.get(org.apache.struts.tiles.taglib.PutTag.class);
^
15 errors


at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:199)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:145)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:139)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2460)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:119)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:157)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)



--------------------------------------------------------------------------------

Apache Tomcat/4.1.37-LE-jdk1.4


Please help me in resolving this.

Regards
sameer
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
In Struts 1.3.8, the tiles classes are in a separate jar file. The above problem should be solved simply by including the struts-tiles-1.3.8.jar file in your WEB-INF/lib folder and in your compile-time classpath.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tiles package not found
 
Similar Threads
please help with tomcat, javabean and jsp
Jasper Exception
An error occurred at line: -1, Unable to compile JSP
error while compiling
Error when installing on server