Hi , I am trying to build it with newer tiles version but i am getting error. That class was moved to another package. Nightly shale is using same old tiles as release 1.0.4. Any advice what i can do with this? Is it possible to use shale with new tiles at all?
SEVERE: Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener java.lang.NoClassDefFoundError: org/apache/tiles/DefinitionsFactoryException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) at java.lang.Class.getConstructor0(Class.java:2699) at java.lang.Class.getConstructor(Class.java:1657) at org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfigurator.java:677) at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:602) at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:148) at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:68) at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:51) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:566) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Lionel Port Sent: Thursday, October 04, 2007 12:01 AM To: user@shale.apache.org Subject: Re: shale 1.0.4 and tiles You may have a problem because the 1.0.4 of shale was built against a snapshot of tiles 2 when dtd hadn't been quit finalised. Looking at the issue tracking looks like release r468346 if that helps. On 10/4/07, Pavel Savara <[EMAIL PROTECTED]> wrote: > > Hi, > I have application with shale 1.0.4 and tiles build using maven and blank > shale example and it seems to work fine. The problem is when I try to use > template layout for pages and insert body and header by configuration in > tiles.xml. > Problem is with <tiles:insertAttribute name="header" /> tag, it says this > tag is not in tiles tld so it is not defined but in all examples I have > found this tag must be used. Since I am new in tiles and shale it is very > confusing for me and I don't know where to look for a mistake. Is the tiles > version downloaded by maven wrong? Am I using wrong tag or tld? > > I have template layout like > <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %> > <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %> > <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %> > <%@ taglib uri="http://shale.apache.org/core" prefix="s"%> > > <f:view> > <html> > <head> > <head> > <body> > test > <tiles:insertAttribute name="header" /> > </body> > </html> > </f:view> > > tiles.xml: > <tiles-definitions> > <definition name="test.definition" > template="/template/template.jsp"> > <put name="header" value="/common/header.jsp"/> > </definition> > <definition name="/firstTest" extends="test.definition" > > </definition> > > </tiles-definitions> > > Thanks for any help > Pavel >