Tapestry with Spring

2012-03-18 Thread ksrijith
Hi, I'm currently building a solution using Tapestry and Spring and I'm facing an issue once the war is build and deployed. On deploying the war file i'm getting the following error: I'm aware that this issue comes due to the antlr version differences. Currently Tapestry uses antlr 2.7.6/7 but

Re: Tapestry with Spring

2012-03-18 Thread Thiago H. de Paula Figueiredo
On Sun, 18 Mar 2012 04:37:23 -0300, ksrijith ksrij...@gmail.com wrote: Hi, Hi! I'm currently building a solution using Tapestry and Spring What Tapestry and Spring versions? As far as I recall, Tapestry 5.3.2 works with Spring 3.1. -- Thiago H. de Paula Figueiredo Independent Java,

Re: tapestry-security 0.4.3 released!

2012-03-18 Thread trsvax
Thanks for the update but when I upgraded from 0.4.0 I can authenticate but my roles quit working. When I run the app in debug mode it appears protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) in my UserRealm is not called. It does get called in 0.4.0. My

Re: tapestry-security 0.4.3 released!

2012-03-18 Thread Kalle Korhonen
On Sun, Mar 18, 2012 at 6:56 AM, trsvax trs...@gmail.com wrote: Thanks for the update but when I upgraded from 0.4.0 I can authenticate but my roles quit working. When I run the app in debug mode it appears protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) in

Re: tapestry-security 0.4.3 released!

2012-03-18 Thread trsvax
Tried 0.4.1 and I have the same problem. I'll see if I can track it down and report back. -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry-security-0-4-3-released-tp5574027p5575350.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Tapestry with Spring

2012-03-18 Thread ksrijith
Thanks... Man I feel stupid now.. I was using Spring 2.5.6 instead of the newest version. Once I changed it to use the correct version 3.1.0.RELEASE everything started working perfectly. Thanks for your help. - -- Don't Forget to Rate -- View this message in context:

Tapestry 5.3.2: JPA and JBoss 7 datasources

2012-03-18 Thread Miguel Figueiredo
Hello, I am using tapestry 5.3.2 with JBoss 7, and I'm having some problems when using a JBoss datasource with JPA. My datasource configuration: datasource jta=false jndi-name=java:jboss/myDatasource pool-name=mysqlDS enabled=true use-java-context=true use-ccm=true

Re: tapestry-security 0.4.3 released!

2012-03-18 Thread trsvax
I see what the problem is although now I not sure why it works at all. I have this in my AppModule binder.bind(Realm.class, UserRealm.class); and public static void contributeWebSecurityManager(ConfigurationRealm configuration, Realm userRealm) { configuration.add(userRealm);

Re: tapestry-security 0.4.3 released!

2012-03-18 Thread Kalle Korhonen
On Sun, Mar 18, 2012 at 2:43 PM, trsvax trs...@gmail.com wrote: I see what the problem is although now I not sure why it works at all. I have this in my AppModule binder.bind(Realm.class, UserRealm.class); public static void contributeWebSecurityManager(ConfigurationRealm configuration, Realm

Re: tapestry-security 0.4.3 released!

2012-03-18 Thread trsvax
I guess I've just gotten in the habit of making everything a service with an Interface. Class reloading without a restart is pretty handy, but in this case you are correct the following is the way to go: public static void contributeWebSecurityManager(ConfigurationRealm configuration, UserDAO

simple user authentication

2012-03-18 Thread Paul Stanton
Hi group, Is it recommended to use a security module such as tynamo's tapestry-security when all you require is username/password authentication to a couple of pages? Is there a simpler add-on module? Is 'roll-your-own' a generally accepted practice for a simple implementation?

Re: simple user authentication

2012-03-18 Thread Taha Hafeez Siddiqi
Hi On Mar 19, 2012, at 6:50 AM, Paul Stanton wrote: Hi group, Is it recommended to use a security module such as tynamo's tapestry-security when all you require is username/password authentication to a couple of pages? If the project is going to stay at a couple of pages of

Re: simple user authentication

2012-03-18 Thread Bob Harner
My advice... Roll-your-own can be okay for simple cases, but home-grown security implementations, even for such simple cases, can have subtle security vulnerabilities that a well-tested library like Tapestry-security probably won't. And many simple cases evolve into complex ones over time, so

Re: tapestry-security 0.4.3 released!

2012-03-18 Thread Kalle Korhonen
On Sun, Mar 18, 2012 at 3:41 PM, trsvax trs...@gmail.com wrote: I guess I've just gotten in the habit of making everything a service with an Interface. Class reloading without a restart is pretty handy, but in this Of course, you can make it a service, you just don't need to. If you

Re: tapestry-security 0.4.3 released!

2012-03-18 Thread trsvax
That's interesting. I did not know you could bind an abstract class instead of an interface. -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry-security-0-4-3-released-tp5574027p5576063.html Sent from the Tapestry - User mailing list archive at Nabble.com.

A translator error

2012-03-18 Thread dick_hu
I write a string translator like this: public class EditorTranslator extends AbstractTranslatorString { public KindEditorTranslator() { super(editor, String.class, editor-format-exception); } public String parseClient(Field field, String clientValue, String