Re: Unable to download example code from http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate

2012-07-30 Thread Sigbjørn Tvedt
I am still interrested in a way to unit test the hibernate/jpa integration
without having to put it into a page class. Does anybody have a backup of
the code that where on the wiki?

Regards

Sigbjørn Tvedt

On 5 July 2012 12:18, Sigbjørn Tvedt sigbjo...@gmail.com wrote:

 Thank you for replying Bob. do you know if it is available somewhere else?

 I have made an attempt to replicate the code at
 https://github.com/sigbjornt/tapestry5-standalone.git ,  but I cannot get
 it to work.

 The standalone application from
 http://wiki.apache.org/tapestry/Tapestry5HowToIocOnly works, but the
 hibernate example fails with the message
 Service id 'ClassNameLocator' has already been defined by
 org.apache.tapestry5.ioc.internal.services.ClassNameLocatorImpl(ClasspathURLConverter)
 (at ClassNameLocatorImpl.java:62) via
 org.apache.tapestry5.ioc.services.TapestryIOCModule.bind(ServiceBinder) (at
 TapestryIOCModule.java:49) and may not be redefined by
 org.apache.tapestry5.ioc.internal.services.ClassNameLocatorImpl(ClasspathURLConverter)
 (at ClassNameLocatorImpl.java:62) via
 tapestry.mini.services.MiniAppModule.bind(ServiceBinder) (at
 MiniAppModule.java:14). You should rename one of the service builder
 methods.


 When I tried to remove the ClassNameLocator (which the tutorial states
 that is needed) , I got the following error:
 Contribution
 tapestry.mini.services.MiniAppModule.contributeHibernateEntityPackageManager(Configuration)
 (at MiniAppModule.java:34) is for service 'HibernateEntityPackageManager',
 which does not exist.


 Could anybody give me some advice for how to do this? Are there an updated
 tutorial that I have not seen yet?



 In advance, Thanks.


 Sigbjørn Tvedt






 On 30 June 2012 01:03, Bob Harner bobhar...@gmail.com wrote:

 Sorry, last year the Apache infrastructure guys turned off the ability to
 download (or upload) attachments on the MoinMoin wiki due to spam
 problems.
 On Jun 29, 2012 10:43 AM, Sigbjørn Tvedt sigbjo...@gmail.com wrote:

  Hi.
 
  I am trying to get the source for the demo  Using Tapestry-IoC and
  Tapestry-Hibernate Standalone   located at
  http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate , but I
 am
  unable to download it. I am getting the error message You are not
 allowed
  to do AttachFile on this page. when I try the link.
 
  Could someone with edit rights please update the link so that it is
  possible to download the source?
 
 
 
  ps: I have the same problem on the page
  http://wiki.apache.org/tapestry/Tapestry5HowToIocOnly
 
 
 
 
  Regards.
 
  Sigbjørn Tvedt
 





Re: Unable to download example code from http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate

2012-07-05 Thread Sigbjørn Tvedt
Thank you for replying Bob. do you know if it is available somewhere else?

I have made an attempt to replicate the code at
https://github.com/sigbjornt/tapestry5-standalone.git ,  but I cannot get
it to work.

The standalone application from
http://wiki.apache.org/tapestry/Tapestry5HowToIocOnly works, but the
hibernate example fails with the message
Service id 'ClassNameLocator' has already been defined by
org.apache.tapestry5.ioc.internal.services.ClassNameLocatorImpl(ClasspathURLConverter)
(at ClassNameLocatorImpl.java:62) via
org.apache.tapestry5.ioc.services.TapestryIOCModule.bind(ServiceBinder) (at
TapestryIOCModule.java:49) and may not be redefined by
org.apache.tapestry5.ioc.internal.services.ClassNameLocatorImpl(ClasspathURLConverter)
(at ClassNameLocatorImpl.java:62) via
tapestry.mini.services.MiniAppModule.bind(ServiceBinder) (at
MiniAppModule.java:14). You should rename one of the service builder
methods.


When I tried to remove the ClassNameLocator (which the tutorial states that
is needed) , I got the following error:
Contribution
tapestry.mini.services.MiniAppModule.contributeHibernateEntityPackageManager(Configuration)
(at MiniAppModule.java:34) is for service 'HibernateEntityPackageManager',
which does not exist.


Could anybody give me some advice for how to do this? Are there an updated
tutorial that I have not seen yet?



In advance, Thanks.


Sigbjørn Tvedt






On 30 June 2012 01:03, Bob Harner bobhar...@gmail.com wrote:

 Sorry, last year the Apache infrastructure guys turned off the ability to
 download (or upload) attachments on the MoinMoin wiki due to spam problems.
 On Jun 29, 2012 10:43 AM, Sigbjørn Tvedt sigbjo...@gmail.com wrote:

  Hi.
 
  I am trying to get the source for the demo  Using Tapestry-IoC and
  Tapestry-Hibernate Standalone   located at
  http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate , but I am
  unable to download it. I am getting the error message You are not
 allowed
  to do AttachFile on this page. when I try the link.
 
  Could someone with edit rights please update the link so that it is
  possible to download the source?
 
 
 
  ps: I have the same problem on the page
  http://wiki.apache.org/tapestry/Tapestry5HowToIocOnly
 
 
 
 
  Regards.
 
  Sigbjørn Tvedt
 



Unable to download example code from http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate

2012-06-29 Thread Sigbjørn Tvedt
Hi.

I am trying to get the source for the demo  Using Tapestry-IoC and
Tapestry-Hibernate Standalone   located at
http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate , but I am
unable to download it. I am getting the error message You are not allowed
to do AttachFile on this page. when I try the link.

Could someone with edit rights please update the link so that it is
possible to download the source?



ps: I have the same problem on the page
http://wiki.apache.org/tapestry/Tapestry5HowToIocOnly




Regards.

Sigbjørn Tvedt


Re: Unable to download example code from http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate

2012-06-29 Thread Bob Harner
Sorry, last year the Apache infrastructure guys turned off the ability to
download (or upload) attachments on the MoinMoin wiki due to spam problems.
On Jun 29, 2012 10:43 AM, Sigbjørn Tvedt sigbjo...@gmail.com wrote:

 Hi.

 I am trying to get the source for the demo  Using Tapestry-IoC and
 Tapestry-Hibernate Standalone   located at
 http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate , but I am
 unable to download it. I am getting the error message You are not allowed
 to do AttachFile on this page. when I try the link.

 Could someone with edit rights please update the link so that it is
 possible to download the source?



 ps: I have the same problem on the page
 http://wiki.apache.org/tapestry/Tapestry5HowToIocOnly




 Regards.

 Sigbjørn Tvedt