Re: Help with Tapestry IoC

2010-01-26 Thread Howard Lewis Ship
I believe you do need to invoke performRegistryStartup(). This is how EagerLoad services get loaded. TapestryFilter normally does this. On Tue, Jan 26, 2010 at 4:08 AM, Thiago H. de Paula Figueiredo wrote: > On Tue, 26 Jan 2010 09:35:33 -0200, Ashwanth Kumar > wrote: > >> registry.performRegist

Re: Help with Tapestry IoC

2010-01-26 Thread Thiago H. de Paula Figueiredo
On Tue, 26 Jan 2010 09:35:33 -0200, Ashwanth Kumar wrote: registry.performRegistryStartup(); AFAIK, you don't need to invoke this method yourself. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software arch

Re: Help with Tapestry IoC

2010-01-26 Thread Thiago H. de Paula Figueiredo
On Tue, 26 Jan 2010 09:43:59 -0200, Sven Homburg wrote: remove the line IOCUtilities.addDefaultModules(builder); I can't see why this line would cause any problems, as it just scans the JARs in the classpath for manifest files containing a Tapestry-Module-Classes line. -- Thiago H. de

Re: Help with Tapestry IoC

2010-01-26 Thread Sven Homburg
remove the line IOCUtilities.addDefaultModules(builder); with regards Sven Homburg Founder of the Chenille Kit Project http://chenillekit.codehaus.org 2010/1/26 Ashwanth Kumar > This is my class: > > package reformists.util; > > import org.apache.tapestry5.ioc.IOCUtilities; > import org.apac

Re: Help with Tapestry IoC

2010-01-26 Thread Ashwanth Kumar
Actually, I'm trying to build a frontend interface using Vaadin, (though i was using tapestry, i just want to give it a try).. And I got used to accessing my database, from hibernate and tapestry: @Inject private Session _session; >From Tapestry, I just want the same, for this app too. Thats y,

Re: Help with Tapestry IoC

2010-01-26 Thread Ashwanth Kumar
This is my class: package reformists.util; import org.apache.tapestry5.ioc.IOCUtilities; import org.apache.tapestry5.ioc.Registry; import org.apache.tapestry5.ioc.RegistryBuilder; import reformists.services.BtmyModule; public class URegistry { private static final Registry registry; static {

Re: Help with Tapestry IoC

2010-01-26 Thread Thiago H. de Paula Figueiredo
On Tue, 26 Jan 2010 09:16:19 -0200, Ashwanth Kumar wrote: Thiago, I get the following error: 2010-01-26 16:43:11,453 ERROR [SerializationSupport] Setting a new service proxy provider when there's already an existing provider. This may indicate that you have multiple IoC Registries. I'

Re: Help with Tapestry IoC

2010-01-26 Thread Ashwanth Kumar
Thiago, I get the following error: 2010-01-26 16:43:11,453 ERROR [SerializationSupport] Setting a new service proxy provider when there's already an existing provider. This may indicate that you have multiple IoC Registries. I've only one instance of Registry running!!?? - Ashwanth Kumar On T

Re: Help with Tapestry IoC

2010-01-26 Thread Ashwanth Kumar
Thanks Thiago, I got it working. Thanks a lot!! :) - Ashwanth Kumar On Tue, Jan 26, 2010 at 4:00 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 26 Jan 2010 05:10:56 -0200, Ashwanth Kumar < > ashwanth.ku...@gmail.com> wrote: > > Hello, >> > > Hi! > > > I'm now, tryin

Re: Help with Tapestry IoC

2010-01-26 Thread Thiago H. de Paula Figueiredo
On Tue, 26 Jan 2010 05:10:56 -0200, Ashwanth Kumar wrote: Hello, Hi! I'm now, trying to do a desktop client for which i need some CRUD actions, and since, being a user of Tapestry, i thought i could use Tapestry IoC standalone for my app. Can anyone provide me some light on using Tapest