That's great :) I'll be waiting for it anxiously :) On Sun, Nov 30, 2008 at 9:24 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> I've added an issue to split tapestry-hibernate into two parts; one > for use with tapestry-ioc, and one that adds extra support for use > with tapestry-core. > > On Sun, Nov 30, 2008 at 11:54 AM, Juan E. Maya <[EMAIL PROTECTED]> > wrote: > > Running the application posted in the wiki using tapestry 5.0.16 gives > the > > same problem :( > > > > On Sun, Nov 30, 2008 at 8:42 PM, Juan E. Maya <[EMAIL PROTECTED]> > wrote: > > > >> Angelo, thank you for the link. However after following the instructions > >> i'm still having problems. > >> 1. When i run the application i get the following runtime error: > >> > >> Exception in thread "main" java.lang.RuntimeException: Service id > >> 'ClassNameLocator' has already been defined by > >> > org.apache.tapestry5.ioc.internal.services.ClassNameLocatorImpl(ClasspathURLConverter) > >> (at ClassNameLocatorImpl.java:61) via > >> org.apache.tapestry5.ioc.services.TapestryIOCModule.bind(ServiceBinder) > (at > >> TapestryIOCModule.java:36) and may not be redefined by > >> > org.apache.tapestry5.ioc.internal.services.ClassNameLocatorImpl(ClasspathURLConverter) > >> (at ClassNameLocatorImpl.java:61) via > >> com.superm.lampmanager.service.LampManagerModule.bind(ServiceBinder) (at > >> LampManagerModule.java:29). You should rename one of the service builder > >> methods. > >> at > >> > org.apache.tapestry5.ioc.internal.RegistryImpl.<init>(RegistryImpl.java:170) > >> at > >> org.apache.tapestry5.ioc.RegistryBuilder.build(RegistryBuilder.java:168) > >> at com.superm.lampmanager.Shell.main(Shell.java:26) > >> > >> If i remove the line the application works, however i can't use a > >> transaction decorator because i get the following runtime error: > >> Caused by: java.lang.RuntimeException: No service implements the > interface > >> org.apache.tapestry5.hibernate.HibernateTransactionDecorator. > >> > >> This is the code use to configure the decorator. > >> @Match("*Manager*") > >> public static <T> T > >> decorateTransactionally(HibernateTransactionDecorator decorator, > Class<T> > >> serviceInterface, T delegate, String serviceId) { > >> return decorator.build(serviceInterface, delegate, serviceId); > >> } > >> > >> and i have a final question regarding the sentencye: "definitely make > sure > >> to call registry.cleanupThread(); at the end of the main method" > >> Does this mean that i have to run this line to commit the transaction? > If > >> so, then i suppose that the decorator can't be used. is there a special > >> reason the decorator will not work? > >> > >> Thanks a lot! > >> > >> > >> > >> On Sun, Nov 30, 2008 at 12:14 AM, Angelo Chen < > [EMAIL PROTECTED]>wrote: > >> > >>> > >>> > >>> http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate > >>> > >>> > >>> Juan Maya wrote: > >>> > > >>> > Hi! I am creating a standalone application using Tapestry IoC outside > of > >>> > Tapestry. now i am struggling to find a way to use the > >>> Tapestry-Hibernate > >>> > integration? Do you know how to this? > >>> > I kinda prefer to give a try to the Tapestry IoC (i have liked it a > >>> lot!) > >>> > and forget about Spring for awhile :) > >>> > > >>> > Thanks a lot for the help! > >>> > > >>> > > >>> > >>> -- > >>> View this message in context: > >>> > http://www.nabble.com/Tapestry-Hiberante-with-Tapestry-IoC-tp20749684p20752632.html > >>> Sent from the Tapestry - User mailing list archive at Nabble.com. > >>> > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: [EMAIL PROTECTED] > >>> For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >> > > > > > > -- > Howard M. Lewis Ship > > Creator Apache Tapestry and Apache HiveMind > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >