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 <ashwanth.ku...@gmail.com> > 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 { > System.out.println("Im building the Registry!"); > RegistryBuilder builder = new RegistryBuilder(); > // builder.add(Session.class); > builder.add(BtmyModule.class); > IOCUtilities.addDefaultModules(builder); > registry = builder.build(); > registry.performRegistryStartup(); > } > > public static Registry getRegistry() { > return registry; > } > > } > > Do u find any problems with that? > > - Ashwanth Kumar > > On Tue, Jan 26, 2010 at 5:01 PM, Thiago H. de Paula Figueiredo < > thiag...@gmail.com> wrote: > > > On Tue, 26 Jan 2010 09:16:19 -0200, Ashwanth Kumar < > > ashwanth.ku...@gmail.com> 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've only one instance of Registry running!!?? > >> > > > > I've never had that error message. Please post your code. > > > > > > -- > > Thiago H. de Paula Figueiredo > > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, > > and instructor > > Owner, software architect and developer, Ars Machina Tecnologia da > > Informação Ltda. > > http://www.arsmachina.com.br > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > >