• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Tiles package not found  RSS feed

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Paper jam tastes about as you would expect. Try some on this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!