Yeah, it seems the demo will need a couple tweaks before it works with 5.4. I'd guess it's mostly dependency stuff. It seems like you're getting two different Tapestry-IoC versions in the classpath at the same time.

On Fri, 01 Nov 2013 10:02:48 -0200, Boris Horvat <horvat.z.bo...@gmail.com> wrote:

and running it on my app gives me this


ioc.RegistryBuilder Adding module definition for class
org.apache.tapestry5.modules.InternalModule
2013-11-01 13:01:13.818:WARN:oejuc.AbstractLifeCycle:FAILED app:
java.lang.RuntimeException: Error invoking service binder method
org.apache.tapestry5.modules.InternalModule.bind(ServiceBinder) (at
InternalModule.java:46): org/apache/tapestry5/ioc/IOOperation
java.lang.RuntimeException: Error invoking service binder method
org.apache.tapestry5.modules.InternalModule.bind(ServiceBinder) (at
InternalModule.java:46): org/apache/tapestry5/ioc/IOOperation
at
org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl.bind(DefaultModuleDefImpl.java:562)
 at
org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl.<init>(DefaultModuleDefImpl.java:123)
at org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:131)

I guess dependant module like tynamo security or resteasy may not be
prepared for this yet


On Fri, Nov 1, 2013 at 12:26 PM, Boris Horvat <horvat.z.bo...@gmail.com>wrote:

I guess it wont be that easy


TapestryIOCModule.RegistryStartup Construction of service RegistryStartup
failed: Error invoking service contribution method
com.tap5.hotelbooking.dal.DataModule.initialize():
java.lang.NullPointerException
org.apache.tapestry5.ioc.internal.OperationException: Error invoking
service contribution method
com.tap5.hotelbooking.dal.DataModule.initialize():
java.lang.NullPointerException



Caused by: java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:332) at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:987)


at $Session_1bd9a23d201e8.persist(Unknown Source)
at
com.tap5.hotelbooking.dal.HibernateCrudServiceDAO.create(HibernateCrudServiceDAO.java:28)
 at $CrudServiceDAO_1bd9a23d20203.create(Unknown Source)
at $CrudServiceDAO_1bd9a23d20206.advised$create_1bd9a23d2020a(Unknown
Source)
 at
$CrudServiceDAO_1bd9a23d20206$Invocation_create_1bd9a23d20209.proceedToAdvisedMethod(Unknown
Source)
at
org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:84)
 at
org.apache.tapestry5.internal.hibernate.HibernateTransactionAdvisorImpl$1.advise(HibernateTransactionAdvisorImpl.java:40)
at
org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:86)
 at $CrudServiceDAO_1bd9a23d20206.create(Unknown Source)
at $CrudServiceDAO_1bd9a23d20201.create(Unknown Source)
 at com.tap5.hotelbooking.dal.DataModule.create(DataModule.java:126)
at com.tap5.hotelbooking.dal.DataModule.initialize(DataModule.java:114)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)



On Fri, Nov 1, 2013 at 12:22 PM, Boris Horvat <horvat.z.bo...@gmail.com>wrote:

Should i use 5.4-SNAPSHOT or 5.4-alpha-3-SNAPSHOT

tnx


On Fri, Nov 1, 2013 at 12:13 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

On Fri, 01 Nov 2013 06:13:34 -0200, Boris Horvat <
horvat.z.bo...@gmail.com> wrote:

Is there any way of checking out the demo for 5.4, I would like to see
how do components look like without creating the code my self in order to
see
if we should maybe start to move our webapp on the tapestry alpha


I guess you can get the Hotel Booking demo sources from
https://github.com/ccordenier/**tapestry5-hotel-booking/<https://github.com/ccordenier/tapestry5-hotel-booking/>and change the <tapestry-release-version> property to 5.4-alpha-23 and it'll work. You'll need to add this to your pom.xml in order to get the
Tapestry 5.4 alpha and snapshot versions:

<repositories>
        <repository>
                <id>apache-staging</id>
                <name>Apache staging</name>
                <url>https://repository.**apache.org/content/groups/**
staging <https://repository.apache.org/content/groups/staging></url>
        </repository>
        <repository>
                <id>apache-snapshot</id>
                <name>Apache snapshot</name>
                <url>https://repository.**apache.org/content/groups/**
snapshots <https://repository.apache.org/content/groups/snapshots></url>
        </repository>
</repositories>

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

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




--
Sincerely
*Boris Horvat*




--
Sincerely
*Boris Horvat*






--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

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

Reply via email to