I am very new to Tomcat, jsp and Tiles.
I am trying to use tiles with java server faces.
I have Tomcat 5.0.27 on linux, I have downaloded struts 1.2 and 1.2.8
and I cannot find the TilesServlet
Well, I can but I found it in the management web app in tomcat but I
cant find it in struts.
Has it changed names? Is it a separate downloadable that I seem to be
unable to find? Is it obsolete and nobody has told me?
Any assistance would be appreciated.
...Lyall
Lyall - 21 Jan 2006 11:01 GMT
I am trying to get the CoreJSF chapter 8 book-viewer-tiles (see
corejsf.com) sample app working
I have the following jars in my WEB-INF/lib directory (probably
overkill at this stage but I am just trying to get something to work)
antlr.jar
commons-beanutils-core.jar
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-fileupload.jar
commons-logging.jar
commons-validator.jar
jakarta-oro.jar
jsf-api.jar
jsf-impl.jar
jstl.jar
log4j.jar
standard.jar
struts.jar
I receive the following error message in my localhost log
2006-01-21 21:11:19 StandardContext[/book-viewer-tiles]Marking servlet
Tiles Servlet as unavailable
2006-01-21 21:11:19 StandardContext[/book-viewer-tiles]Error loading
WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
StandardClassLoader
delegate: true
repositories:
----------> Parent Classloader:
StandardClassLoader
delegate: true
repositories:
file:/opt/tomcat5/common/endorsed/xercesImpl.jar
file:/opt/tomcat5/common/endorsed/xml-apis.jar
file:/opt/tomcat5/common/lib/ant-launcher.jar
file:/opt/tomcat5/common/lib/ant.jar
file:/opt/tomcat5/common/lib/commons-collections-2.1.1.jar
file:/opt/tomcat5/common/lib/commons-dbcp-1.2.1.jar
file:/opt/tomcat5/common/lib/commons-el.jar
file:/opt/tomcat5/common/lib/commons-pool-1.2.jar
file:/opt/tomcat5/common/lib/jasper-compiler.jar
file:/opt/tomcat5/common/lib/jasper-runtime.jar
file:/opt/tomcat5/common/lib/jsp-api.jar
file:/opt/tomcat5/common/lib/naming-common.jar
file:/opt/tomcat5/common/lib/naming-factory.jar
file:/opt/tomcat5/common/lib/naming-java.jar
file:/opt/tomcat5/common/lib/naming-resources.jar
file:/opt/tomcat5/common/lib/servlet-api.jar
file:/usr/share/jdbc-mysql/lib/jdbc-mysql.jar
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@1813fac
org.apache.struts.tiles.TilesServlet
java.lang.ClassNotFoundException: org.apache.struts.tiles.TilesServlet
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
...etc...
Lyall - 21 Jan 2006 13:21 GMT
I think I have it sorted - I had to use struts 1.1
TilesServlet does not appear to be in struts 1.2 or above.
If I wanted to use struts 1.2, how do I use TilesServlet? Is it now a
separate package?
...Lyall