RE: shale 1.0.4 and tiles

2007-10-04 Thread Pavel Savara
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

Re: shale 1.0.4 and tiles

2007-10-04 Thread Antonio Petrelli
2007/10/4, Pavel Savara [EMAIL PROTECTED]:

 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.



Shale 1.0.4 does not support the latest version of Tiles, you HAVE to use
the version bundled with Shale itself.

Antonio


RE: shale 1.0.4 and tiles

2007-10-04 Thread Pavel Savara
Hi 

I made it working it took me long time mainly because of  my stupidity and 
little confusing dependencies between shale and tiles versions ..:) thanks for 
help to everybody.

Here are important parts of my sample application may be useful for somebody:

Shale with tiles.
You must use version of tiles which is bundled with shale other versions will 
not work.
With default shale web.xml from blank shale application page firstTest will be 
visible at url /firstTest.faces 

web.xml (only part for tiles)
!-- Tiles --
  context-param
param-namedefinitions-config/param-name
param-value/WEB-INF/tiles.xml/param-value
  /context-param
  listener
listener-class
  org.apache.tiles.listener.TilesListener
/listener-class
  /listener

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

template.jsp
%@ 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:attribute name=header flush=false/ !-- tiles documentation 
talks about insertAtribute tag but that tag is not available with tiles 
bundeled to shale.--
  /body
/html
/f:view

header.jsp
header


-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 04, 2007 11:09 AM
To: user@shale.apache.org
Subject: Re: shale 1.0.4 and tiles


2007/10/4, Pavel Savara [EMAIL PROTECTED]:

 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.



Shale 1.0.4 does not support the latest version of Tiles, you HAVE to use
the version bundled with Shale itself.

Antonio


Re: shale 1.0.4 and tiles

2007-10-03 Thread Lionel Port
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

 www.intrade.com
 The Prediction Market

 ABOUT US: Intrade is The Prediction Market where members can buy and sell
 shares in financial, political, weather and other important subjects. You
 can trade using real US$ and you can learn to trade using virtual Intrade
 I$.

 Intrade and the predictive information generated by our members have been
 featured on CNBC, CNN, Bloomberg, Fox, Fortune  others.

 Becoming a member of Intrade gives you profit opportunity and access to
 the wisdom of a crowd of many thousands of people from over 120 countries.

 Intrade News is available on RSS at
 http://www.intrade.com/news/newsRss.xml

 CONFIDENTIALITY  DISCLAIMER: The information within this email is
 confidential and may be privileged. It is intended solely for party to which
 it is addressed.

 Please notify us immediately if you received this mail in error by
 returning it to the sender and delete this copy from your system. You should
 also notify us at +353-1-6200 300.