Re: Jetty startup error with 5.3.1-SNAPSHOT in project working before with 5.2.4

2011-06-18 Thread Ben Tomasini
This is the initial issue I encountered which prompted me to do the
exclusion and explicit dependency declaration for
tapestry5-annotations in the first place:

http://tapestry.1045711.n5.nabble.com/Gradle-install-and-missing-tapestry-annotations-dependency-td4500534.html

As mentioned previously, the test scope is a typo.

On Fri, Jun 17, 2011 at 9:48 PM, Josh Canfield joshcanfi...@gmail.com wrote:
 From your pom:

    dependency
      groupIdorg.apache.tapestry/groupId
      artifactIdtapestry-core/artifactId
      version${tapestry-release-version}/version
      exclusions
        exclusion
                artifactIdtapestry-annotations/artifactId
                groupIdorg.apache.tapestry/groupId
        /exclusion
      /exclusions
    /dependency
    dependency
      groupIdorg.apache.tapestry/groupId
      artifactIdtapestry5-annotations/artifactId
      version${tapestry-release-version}/version
      scopetest/scope
    /dependency

 Why are you excluding tapestry-annotations and only including them in
 test scope? They are required at runtime for tapestry-core, thus the
 declared dependency :)

 Josh

 On Fri, Jun 17, 2011 at 8:48 PM, Ben Tomasini ben.tomas...@gmail.com wrote:
 I am trying to use Tapestry  5.3 (5.3.1-SNAPSHOT) in my Maven project
 after doing a gradle install of the head of trunk.  When starting up
 Jetty on my app, I get the following exception.  This project was
 working with tapestry 5.2.4.  Any help would be appreciated.



 ** Jetty startup output:

 [INFO] Starting jetty 6.1.16 ...
 2011-06-17 20:31:01.280::INFO:  jetty-6.1.16
 2011-06-17 20:31:01.549::INFO:  No Transaction manager found - if your
 webapp requires one, please configure one.
 [INFO] ioc.RegistryBuilder Adding module definition for class
 org.apache.tapestry5.ioc.services.TapestryIOCModule
 [INFO] ioc.RegistryBuilder Adding module definition for class
 org.apache.tapestry5.upload.services.UploadModule
 [INFO] ioc.RegistryBuilder Adding module definition for class
 org.apache.tapestry5.services.TapestryModule
 2011-06-17 20:31:30.132::WARN:  failed app
 java.lang.ArrayStoreException:
 sun.reflect.annotation.TypeNotPresentExceptionProxy
        at 
 sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:653)
        at 
 sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:460)
        at 
 sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:286)
        at 
 sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:222)
        at 
 sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69)
        at 
 sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52)
        at java.lang.reflect.Method.declaredAnnotations(Method.java:693)
        at java.lang.reflect.Method.getAnnotation(Method.java:679)
        at 
 org.apache.tapestry5.ioc.internal.util.InternalUtils.getServiceId(InternalUtils.java:1342)
        at 
 org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl.addServiceDef(DefaultModuleDefImpl.java:420)
        at 
 org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl.grind(DefaultModuleDefImpl.java:228)
        at 
 org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl.init(DefaultModuleDefImpl.java:152)
        at 
 org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:131)
        at 
 org.apache.tapestry5.internal.TapestryAppInitializer.addModules(TapestryAppInitializer.java:195)
        at 
 org.apache.tapestry5.internal.TapestryAppInitializer.init(TapestryAppInitializer.java:145)
        at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:90)

 ** Details:

 On Ubuntu natty.  Running Sun JDK 6

 ** Maven depdendencies:

 dependencies
    dependency
      groupIdorg.apache.tapestry/groupId
      artifactIdtapestry-core/artifactId
      version${tapestry-release-version}/version
      exclusions
        exclusion
                artifactIdtapestry-annotations/artifactId
                groupIdorg.apache.tapestry/groupId
        /exclusion
      /exclusions
    /dependency
    dependency
      groupIdorg.apache.tapestry/groupId
      artifactIdtapestry5-annotations/artifactId
      version${tapestry-release-version}/version
      scopetest/scope
    /dependency
    dependency
      groupIdorg.apache.tapestry/groupId
      artifactIdtapestry-test/artifactId
      version${tapestry-release-version}/version
      scopetest/scope
    /dependency
    dependency
      groupIdorg.apache.tapestry/groupId
      artifactIdtapestry-upload/artifactId
      version${tapestry-release-version}/version
    /dependency
    dependency
      groupIdorg.testng/groupId
      artifactIdtestng/artifactId
      version5.12.1/version
    /dependency
    dependency
      groupIdjavax.servlet/groupId
      artifactIdservlet-api/artifactId
      version2.5/version
      scopeprovided/scope
    /dependency
    dependency
      groupIdorg.springframework/groupId
   

Re: Which tapx version?

2011-06-18 Thread françois facon
Hi Nicolas,

Tapx 1.0.0 is available at
http://tapestry.formos.com/maven-repository/com/howardlewisship/tapx-project/1.0.0/

source code https://github.com/hlship/tapx/blob/release-1.0.0

François


2011/6/17 Nicolas Barrera nbarr...@gmail.com:
 Hi,

 Just wanted to ask about tapx...

 I 'm using Tapestry 5.1.0.5, which tapx version should I use?

 also I 've found in the mailing list that formos repositories won't be used
 anymore... but I only found snapshot repository on howardlewisship.com

 aren't release repositories available for tapx?

 I've resurrected my tapx-prototype module, to patch Tapestry to Prototype
 1.7 (and Scriptaculous 1.9.0).

 It's in my snapshot Maven repository:

 http://howardlewisship.com/snapshot-repository/

 dependency groupIdcom.howardlewisship/groupId
 artifactIdtapx-prototype/artifactId version1.1-SNAPSHOT/version
 /dependency



 cheers, and thanks in advance

 Nicolás.-


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: Theming Support

2011-06-18 Thread françois facon
Hi Angelo,

Have a look around ComponentResourceSelector.

see 
https://github.com/apache/tapestry5/commit/ae4e668c0c9778fdcfbc3938a98ec5903551ccfb
perclient message.

and 
https://github.com/apache/tapestry5/commit/65c87cd6b11ae62459c72d4cef3eba4b05ddf2e4
perclient template.

groovy!

2011/6/18 Angelo C. angelochen...@gmail.com:
 Hi,

 T5.3.0 has Skin and Theming Support, any reference to these two great
 features? Thanks,

 Angelo

 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/T5-Theming-Support-tp4500606p4500606.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: Theming Support

2011-06-18 Thread Howard Lewis Ship
I'll be working on a cookbook page to describe how to hook this all up.

2011/6/18 françois facon fra.fa...@gmail.com:
 Hi Angelo,

 Have a look around ComponentResourceSelector.

 see 
 https://github.com/apache/tapestry5/commit/ae4e668c0c9778fdcfbc3938a98ec5903551ccfb
 perclient message.

 and 
 https://github.com/apache/tapestry5/commit/65c87cd6b11ae62459c72d4cef3eba4b05ddf2e4
 perclient template.

 groovy!

 2011/6/18 Angelo C. angelochen...@gmail.com:
 Hi,

 T5.3.0 has Skin and Theming Support, any reference to these two great
 features? Thanks,

 Angelo

 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/T5-Theming-Support-tp4500606p4500606.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: How to use context-param or init-param from web.xml in contributeApplicationDefaults?

2011-06-18 Thread Nillehammer

Hi Martin,

sorry for late reply. I was busy the last two days. I have tried the 
solution you suggested and indeed it just works. That was realy easy! 
Not having found the solution myself after digging into the sources, I 
have to admit that I'm feeling a bit stupid now.


Thanks a lot, for your solution (and for making me feel stupid),
nillehammer

Am 17.06.2011 01:41, schrieb Martin Strand:
ApplicationDefaults is only one of many SymbolProviders, you don't 
need to configure that specific SymbolProvider to set the supported 
locales.
There are other options, including support for .properties files or 
system properties.



I prefer context parameters myself, everything should just work if 
you add it to web.xml like so:


context-param
param-nametapestry.supported-locales/param-name
param-valueen,de/param-value
/context-param

The ServletContextSymbolProvider will handle the rest for you.
I'm sure you're already doing this for other symbols, at least 
tapestry.app-package :)



On Fri, 17 Jun 2011 00:28:17 +0200, Nillehammer 
tapestry.nilleham...@winfonet.eu wrote:



Hi List,

I would like to replace the constant Strings in the method 
contributeApplicationDefaults in my AppModule. E.g. replace the 
following line:


configuration.add(SymbolConstants.SUPPORTED_LOCALES, en,de); // 
don't like the en,de here. Would like to replace it.


with something configurable in  a text file. I thought providing the 
values in web.xml either as context-param or as init-param for the 
TapestryFilter was a good idea.


My first try was to inject the Context service as additional 
parameter to the contribution method to get access to the 
context-params. That did not work. The parameter is null and Tapestry 
throws an exception. Same with ApplicationGlobals.


I then browsed through Tapestry's source code and found out that I 
could implement my own filter inheriting from 
org.apache.tapestry5.TapestryFilter. So my next try was to do that 
and override the method protected void init(Registry registry ). My 
hope was to be able to do something sensible with the 
javax.servlet.FilterConfig that is returned by getFilter(). But I 
have no clue, what to do.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org





--
http://www.winfonet.eu


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org