works in Jetty, not in Tomcat 6?

2011-12-19 Thread Hugi Thordarson
Hi all.
I'm fighting a little weird problem. I've got a component that works fine when 
I run my project in Jetty. But when I attempt to use the same component (in the 
same application) in Tomcat, I'm getting a NullPointerException.

Here's the component:
https://gist.github.com/1496826

And this is the error I'm getting in Tomcat:
http://hugi.karlmenn.is/d/exception.html

Any ideas?

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



Re: works in Jetty, not in Tomcat 6?

2011-12-19 Thread Hugi Thordarson
Hi Thiago!

I hesitate to post it, since it's just an ugly hack meant to save us until 
tapestry5-cayenne works with 5.3 :). But here goes:

https://gist.github.com/1497082

I don't think the error is there though—the NullPointerException there is just 
an artifact of the fact that the object passed to toClient() is null.

- hugi



On 19.12.2011, at 12:24, Thiago H. de Paula Figueiredo wrote:

 On Mon, 19 Dec 2011 09:46:56 -0200, Hugi Thordarson h...@karlmenn.is wrote:
 
 Hi all.
 
 Hi!
 
 I'm fighting a little weird problem. I've got a component that works fine 
 when I run my project in Jetty. But when I attempt to use the same component 
 (in the same application) in Tomcat, I'm getting a NullPointerException.
 
 Could you post the source of 
 is.landsvirkjun.admin.util.CayenneDataObjectEncoder?
 
 -- 
 Thiago H. de Paula Figueiredo
 Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and 
 instructor
 Owner, 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
 


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



Re: works in Jetty, not in Tomcat 6?

2011-12-19 Thread Hugi Thordarson
 I hesitate to post it, since it's just an ugly hack meant to save us until 
 tapestry5-cayenne works with 5.3 :). But here goes:
 
 https://gist.github.com/1497082
 
 I don't think the error is there though—the NullPointerException there is 
 just an artifact of the fact that the object passed to toClient() is null.
 
 A null object being passed to toClient() is 100% valid, so you code should 
 handle this situation.

Aaaand it works. I owe you a beer. Or five.

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



Re: Tapestry 5.1.0.5 vs Prototype 1.7 and Scriptaculous 1.9

2011-12-19 Thread Hugi Thordarson
 Thank you, Dmitriy! Works like a charm! Now I'm chasing a non-related 
 IE-specific JavaScript bug (sigh). Hugi, please pay the beers you owe me to 
 Dmitriy! :D

Sure — just have him contact me next time he's here in Reykjavik, Iceland (yes: 
that's how I can afford to promise beer to everyone, mahaha :o).

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



Re: prototypejs is dead - time to bring t5-jquery in?

2011-12-14 Thread Hugi Thordarson
As a new Tapestry user with no legacy code whatsoever… +1

;-)

- hugi



On 14.12.2011, at 18:30, Lenny Primak wrote:

 I would say it's better to favor better functionality rather than backwards 
 compatibility in this case.
 
 On Dec 14, 2011, at 1:27 PM, Howard Lewis Ship wrote:
 
 We are currently caught between the wrong technology (PrototypeJS) and
 the need for backwards compatibility. I'm not sure how that will play
 out in 5.4 but it will (finally!) be addressed.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 


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



Returning an instance of a page

2011-12-09 Thread Hugi Thordarson
Hi all.

Quick newbie question: How do I return an instance of a page whose class I do 
not know until at runtime? Example: I have a list page, listing objects of 
various types. when I click an object, I want to return a page class based on 
the class of the object I select (UserDetailPage for User, 
CompanyDetailPage for Company etc…).

@InjectPage requires me to specify a particular page at compile time, so I 
can't use that—and I cant do a plain return UserDetailPage.class since I need 
to set the selected object.

Any ideas?

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



Re: Returning an instance of a page

2011-12-09 Thread Hugi Thordarson
Yes, that would work for returning the page, but I need to initialize it (with 
the object). In pseudocode, what I'm looking for wouls be something along the 
lines of:

Object onActionFromSelect() {
Class? extends DetailPage detailPageClass = 
determineDetailPageClass( currentObject );
DetailPage detailPagePage = // obtain page instance of type 
detailPageClass
detailPage.setSelectedObject( currentObject );
return detailPage;
}

(the detail pages all inherit from DetailPage)

Cheers,
- hugi



On 9.12.2011, at 09:43, angelochen wrote:

 how about: return UserDetailPage
 
 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/Returning-an-instance-of-a-page-tp5061220p5061225.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 


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



Re: Returning an instance of a page

2011-12-09 Thread Hugi Thordarson
Thank you, exactly what I was looking for!

Cheers,
- hugi


On 9.12.2011, at 10:58, Thiago H. de Paula Figueiredo wrote:

 ROn Fri, 09 Dec 2011 07:48:46 -0200, Hugi Thordarson h...@karlmenn.is wrote:
 
 Yes, that would work for returning the page, but I need to initialize it 
 (with the object). In pseudocode, what I'm looking for wouls be something 
 along the lines of:
 
  Object onActionFromSelect() {
  Class? extends DetailPage detailPageClass = 
 determineDetailPageClass( currentObject );
  DetailPage detailPagePage = // obtain page instance of type 
 detailPageClass
  detailPage.setSelectedObject( currentObject );
  return detailPage;
  }
 
 (the detail pages all inherit from DetailPage)
 
 Use the ComponentSource service and its getPage() method.
 
 -- 
 Thiago H. de Paula Figueiredo
 Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and 
 instructor
 Owner, 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



Another newbie question: Type coercions not working for me

2011-12-09 Thread Hugi Thordarson
Hi again.

Another noob question: I've been trying to google this one for quite some time, 
but I still can't figure out how I can pass a CayenneDataObject to a component 
using a binding.

I have registered a Type Coercer from String to CayenneDataObject, and it's 
getting invoked when I read the binding, but if I do this…

t:MyCustomComponent input=someCayenneDataObject /

…the coerce( String ) method of the Type Coercer recieves the string 
someCayenneDataObject as parameter?

Help!

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



Re: Another newbie question: Type coercions not working for me

2011-12-09 Thread Hugi Thordarson
Oh dear… After reading the sentence Tapestry parameters can be of any type 
without any conversion I performed a little sanity check on my code—turns out 
the example code I copied form somewhere had defaultPrefix = 
BindingConstants.LITERAL specified on the binding. Silly, silly…

Thanks!
- hugi



On 9.12.2011, at 11:54, Thiago H. de Paula Figueiredo wrote:

 On Fri, 09 Dec 2011 09:08:13 -0200, Hugi Thordarson h...@karlmenn.is wrote:
 
 Hi again.
 
 Hi!
 
 Another noob question: I've been trying to google this one for quite some 
 time, but I still can't figure out how I can pass a CayenneDataObject to a 
 component using a binding.
 
 Just do it. :)
 
 I have registered a Type Coercer from String to CayenneDataObject, and it's 
 getting invoked when I read the binding, but if I do this…
 t:MyCustomComponent input=someCayenneDataObject /
 …the coerce( String ) method of the Type Coercer recieves the string 
 someCayenneDataObject as parameter?
 
 Tapestry parameters can be of any type without any conversion to String 
 needed. What's the type of the input filed in your custom component? What's 
 its binding? Could you post the component source (or at least the component 
 declaration)?
 
 -- 
 Thiago H. de Paula Figueiredo
 Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and 
 instructor
 Owner, 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



Re: Another newbie question: Type coercions not working for me

2011-12-09 Thread Hugi Thordarson
OK, now it _almost_ works Still, interestingly enough though, it doesn't seem 
to work in a loop. Consider the following code:

t:loop source=objects value=currentObject
t:ObjectLink 
object=currentObject${currentObject.name}/t:ObjectLink
/t:loop

In the component ObjectLink, I can print the value of currentObject.name. 
However, if I use the object binding in an action method (onActionFromSelect) 
the object parameter is always null?

Code for ObjectLink here:

https://gist.github.com/1451368

Any ideas?

Cheers,
- hugi



On 9.12.2011, at 12:02, Hugi Thordarson wrote:

 Oh dear… After reading the sentence Tapestry parameters can be of any type 
 without any conversion I performed a little sanity check on my code—turns 
 out the example code I copied form somewhere had defaultPrefix = 
 BindingConstants.LITERAL specified on the binding. Silly, silly…
 
 Thanks!
 - hugi
 
 
 
 On 9.12.2011, at 11:54, Thiago H. de Paula Figueiredo wrote:
 
 On Fri, 09 Dec 2011 09:08:13 -0200, Hugi Thordarson h...@karlmenn.is wrote:
 
 Hi again.
 
 Hi!
 
 Another noob question: I've been trying to google this one for quite some 
 time, but I still can't figure out how I can pass a CayenneDataObject to a 
 component using a binding.
 
 Just do it. :)
 
 I have registered a Type Coercer from String to CayenneDataObject, and it's 
 getting invoked when I read the binding, but if I do this…
 t:MyCustomComponent input=someCayenneDataObject /
 …the coerce( String ) method of the Type Coercer recieves the string 
 someCayenneDataObject as parameter?
 
 Tapestry parameters can be of any type without any conversion to String 
 needed. What's the type of the input filed in your custom component? What's 
 its binding? Could you post the component source (or at least the component 
 declaration)?
 
 -- 
 Thiago H. de Paula Figueiredo
 Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and 
 instructor
 Owner, 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
 


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



Re: Another newbie question: Type coercions not working for me

2011-12-09 Thread Hugi Thordarson
Hmm, interesting. Doesn't seem to work even if I send the object as a context 
parameter, the object is still null in the action method :-/

- hugi




On 9.12.2011, at 12:50, Thiago H. de Paula Figueiredo wrote:

 On Fri, 09 Dec 2011 10:38:07 -0200, Hugi Thordarson h...@karlmenn.is wrote:
 
 In the component ObjectLink, I can print the value of currentObject.name. 
 However, if I use the object binding in an action method 
 (onActionFromSelect) the object parameter is always null?
 
 Because onActionFromSelect() is invoked in another request, so the value of 
 currentObject is lost unless you persist it in some way. In Tapestry 4 your 
 code would work, but T4 had something called the rewind phase that caused 
 worse problems, so T5 doesn't have rewind (yeah!). The recommended solution 
 here is to add context=currentObject to the ActionLink inside your 
 component and make onActionFromSelect() to receive the context. Something 
 like this:
 
 t:actionLink t:id=select context=objectt:body //t:actionLink
 
 Object onActionFromSelect(CayenneDataObject object) {
   Class pageClass = CRUDUtil.detailPageClass( object.getClass() );
   DetailPageCayenneDataObject t = 
 (DetailPageCayenneDataObject)componentSource.getPage( pageClass );
   t.setSelectedObject( object );
   return t;
 }
 
 -- 
 Thiago H. de Paula Figueiredo
 Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and 
 instructor
 Owner, 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



Re: Another newbie question: Type coercions not working for me

2011-12-09 Thread Hugi Thordarson
 (just ignore the commented out code, it's what I'm using to work around the 
 problem until I find a solution)
 
 What's the rendered HTML?

Well, if I disable the ValueEncoder I made for CayenneDataObjects, it will look 
like this:

http://localhost:8080/tap/userlist.objectlink2.select/$007b$003cObjectId:User$002c$0020id$003d2$003e$003b$0020committed$003b$0020$005bid$003d$003e2$003b$0020creationDate$003d$003eFri$0020Dec$002002$002015:37:45$0020GMT$00202011$003b$0020registrationOffers$003d$003e$003f$003b$0020address$003d$003eGla$00f0heimar$002010$003b$0020contactName$003d$003eGummi$003b$0020userDocuments$003d$003e$003f$003b$0020registrations$003d$003e$003f$003b$0020visitorID$003d$003e1$003b$0020visitor$003d$003e$003f$003b$0020city$003d$003eReykjav$00edk$003b$0020ipAddress$003d$003e$005d$007d

But if the ValueEncoder is enabled, it looks like this:

http://localhost:8080/tap/userlist.objectlink2.select/1503831936-User-2


 I think the commented-out code is better because it avoids one request (the 
 redirection).

Ah, I see. I like the other style better since it allows me to work with the 
actual page class (passing in variables etc).
It seems that when I use the LinkSource-method of generating page URLs, 
variables I set in a page one time leak over to the next time the page is 
opened (for inspecting a different object). I'm still not entirely sure what 
how the lifecycle of page instances works, so I guess I'm going back to the 
documentation on that one.

Thanks you for all your help.

Cheers,
- hugi


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



Re: Tapestry 5.3 and tapestry5-cayenne

2011-12-07 Thread Hugi Thordarson
Thanks for the listing Robert, looking forward to being able to use it :).

One quick question: Does tapestry5-cayenne provide me with a way to use Cayenne 
Objects in bindings to my components? I implemented a simple ValueEncoder and 
thought that would be enough, but it doesn't seem to work very well (instead, 
I'm passing the entity name and object ID to components that need bound Cayenne 
objects).

Cheers,
- hugi


On 7.12.2011, at 05:42, Robert Zeigler wrote:

 P.S. - unfortunately, I never finished the tutorial referenced below, and it 
 cuts out before you get a chance to really see the benefit of the integration 
 module.
 
 Robert
 
 On Dec 6, 2011, at 12/610:01 PM , Seamus Minogue wrote:
 
 So I dont get it. I have used Tapestry/Cayenne in several projects and 
 integration is basically nothing. Just a filter and making sure you drop the 
 xml files into src/main/resources if I remember correctly. I was looking at 
 the project page for tapestry5-cayenne 
 (http://code.google.com/p/tapestry5-cayenne/  
 http://t5cayenne.saiwai-solutions.com/tutorial/) and its just not very clear 
 to me exactly what this project buys me. 
 
 Anyone used this that can point me at what using this gets me?
 
 -Seamus
 
 
 - Original Message -
 From: Hugi Thordarson h...@karlmenn.is
 To: Tapestry users users@tapestry.apache.org
 Cc: 
 Sent: Monday, December 5, 2011 7:55 AM
 Subject: Re: Tapestry 5.3 and tapestry5-cayenne
 
 Hi Dragan.
 Thank you, this will definitely be useful for us.
 
 Cheers,
 - hugi
 
 PS: I'm impressed with the helpfulness of the community!
 
 
 On 5.12.2011, at 10:41, Dragan Sahpaski wrote:
 
 Hi,
 I haven't used  tapestry5-cayenne, but I'd like to point you to another
 project that uses Cayenne with tapestry, if you like to browse it and see
 how cayenne is used in this project.
 
 https://github.com/bobharner/Tapestry-finder
 
 Hope it helps.
 
 Cheers,
 Dragan Sahpaski
 
 
 
 On Mon, Dec 5, 2011 at 11:31 AM, Hugi Thordarson h...@karlmenn.is wrote:
 
 Hi all!
 
 First time Tapestry user here, just started coding this weekend and liking
 it so far.
 
 Now, for my first question: I'm using Cayenne (3.0.2) so I just downloaded
 the tapestry5-cayenne extension (0.5-snapshot) and installed it. Now, when
 I start my application, I get the following exception:
 
 --
 
 2011-12-05 10:29:57.846::WARN:  Failed startup of context
 org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@7817bcd4
 {/tap,/Users/hugi/Documents/workspace/tap/src/main/webapp}
 java.lang.RuntimeException: Exception loading module(s) from manifest
 jar:file:/Users/hugi/.m2/repository/com/googlecode/tapestry5-cayenne/tapestry5-cayenne-server/0.5-SNAPSHOT/tapestry5-cayenne-server-0.5-SNAPSHOT.jar!/META-INF/MANIFEST.MF:
 Failure loading Tapestry IoC module class
 com.googlecode.tapestry5cayenne.services.TapestryCayenneModule: Error
 invoking service binder method
 com.googlecode.tapestry5cayenne.services.TapestryCayenneCoreModule.bind(ServiceBinder)
 (at TapestryCayenneCoreModule.java:93):
 org/apache/tapestry5/PrimaryKeyEncoder
   at
 org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:123)
   at
 org.apache.tapestry5.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:77)
   at
 org.apache.tapestry5.internal.TapestryAppInitializer.init(TapestryAppInitializer.java:124)
 
 [ … ]
 
 Caused by: java.lang.RuntimeException: Failure loading Tapestry IoC module
 class com.googlecode.tapestry5cayenne.services.TapestryCayenneModule: Error
 invoking service binder method
 com.googlecode.tapestry5cayenne.services.TapestryCayenneCoreModule.bind(ServiceBinder)
 (at TapestryCayenneCoreModule.java:93):
 org/apache/tapestry5/PrimaryKeyEncoder
   at
 org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:162)
   at
 org.apache.tapestry5.ioc.IOCUtilities.addModulesInList(IOCUtilities.java:137)
   at
 org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:107)
 
 --
 
 Any ideas what might be happening?
 
 Cheers,
 - hugi
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 


-
To unsubscribe, e-mail: users

Building large projects, based around the same framework

2011-12-06 Thread Hugi Thordarson
Good morning everyone.

I'd like to seek a little advice from the community.

I've just spent a couple of days using Tapestry, and as a longtime 
WebObjects-user I'm feeling right at home with the Tapestry+Cayenne combination.
I recently started working at a web development shop where most of the websites 
are run on an inhouse developed CMS which is very nice on the client side, but 
starting to show its age on the backend (J2EE/JSP). Tapestry looks like a great 
potential way for our future.

Anyone care to give a quick comment on how to design a Tapestry-based structure 
for this use case?

* About ~500 websites running in our CMS, each site a single web application.
* In addition to the CMS, generic extensions that can be added (Shopping, Event 
scheduling etc).
* Most sites include some custom components and logic.

All in all, a pretty typical setup for a CMS/Web Development shop.

So… Should I just declare the tapestry application package in the parent 
project (the CMS itself) and then create components/pages/additional services 
in that same package in my application project? Or do I have a better way of 
modualrizing the systems? Should I do something like this 
(http://tapestry.apache.org/component-libraries.html) for all the applications 
and extensions?

Sorry if this is a FAQ—I'm still plowing through the documentation and mailing 
list archives to gain some familiarity with the framework.

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



Tapestry 5.3 and tapestry5-cayenne

2011-12-05 Thread Hugi Thordarson
Hi all!

First time Tapestry user here, just started coding this weekend and liking it 
so far.

Now, for my first question: I'm using Cayenne (3.0.2) so I just downloaded the 
tapestry5-cayenne extension (0.5-snapshot) and installed it. Now, when I start 
my application, I get the following exception:

--

2011-12-05 10:29:57.846::WARN:  Failed startup of context 
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@7817bcd4{/tap,/Users/hugi/Documents/workspace/tap/src/main/webapp}
java.lang.RuntimeException: Exception loading module(s) from manifest 
jar:file:/Users/hugi/.m2/repository/com/googlecode/tapestry5-cayenne/tapestry5-cayenne-server/0.5-SNAPSHOT/tapestry5-cayenne-server-0.5-SNAPSHOT.jar!/META-INF/MANIFEST.MF:
 Failure loading Tapestry IoC module class 
com.googlecode.tapestry5cayenne.services.TapestryCayenneModule: Error invoking 
service binder method 
com.googlecode.tapestry5cayenne.services.TapestryCayenneCoreModule.bind(ServiceBinder)
 (at TapestryCayenneCoreModule.java:93): org/apache/tapestry5/PrimaryKeyEncoder
at 
org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:123)
at 
org.apache.tapestry5.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:77)
at 
org.apache.tapestry5.internal.TapestryAppInitializer.init(TapestryAppInitializer.java:124)

[ … ]

Caused by: java.lang.RuntimeException: Failure loading Tapestry IoC module 
class com.googlecode.tapestry5cayenne.services.TapestryCayenneModule: Error 
invoking service binder method 
com.googlecode.tapestry5cayenne.services.TapestryCayenneCoreModule.bind(ServiceBinder)
 (at TapestryCayenneCoreModule.java:93): org/apache/tapestry5/PrimaryKeyEncoder
at 
org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:162)
at 
org.apache.tapestry5.ioc.IOCUtilities.addModulesInList(IOCUtilities.java:137)
at 
org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:107)

--

Any ideas what might be happening?

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



Re: Tapestry 5.3 and tapestry5-cayenne

2011-12-05 Thread Hugi Thordarson
Great to hear, thank you so much :).

Cheers,
- hugi


On 5.12.2011, at 12:50, Robert Zeigler wrote:

 Hi Hugi,
 
 0.5-snapshot works with 5.2. I'll be updating tapestry5-cayenne for 5.3 
 compatibility in the next couple of weeks.
 
 Robert
 
 On Dec 5, 2011, at 12/54:31 AM , Hugi Thordarson wrote:
 
 Hi all!
 
 First time Tapestry user here, just started coding this weekend and liking 
 it so far.
 
 Now, for my first question: I'm using Cayenne (3.0.2) so I just downloaded 
 the tapestry5-cayenne extension (0.5-snapshot) and installed it. Now, when I 
 start my application, I get the following exception:
 
 --
 
 2011-12-05 10:29:57.846::WARN:  Failed startup of context 
 org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@7817bcd4{/tap,/Users/hugi/Documents/workspace/tap/src/main/webapp}
 java.lang.RuntimeException: Exception loading module(s) from manifest 
 jar:file:/Users/hugi/.m2/repository/com/googlecode/tapestry5-cayenne/tapestry5-cayenne-server/0.5-SNAPSHOT/tapestry5-cayenne-server-0.5-SNAPSHOT.jar!/META-INF/MANIFEST.MF:
  Failure loading Tapestry IoC module class 
 com.googlecode.tapestry5cayenne.services.TapestryCayenneModule: Error 
 invoking service binder method 
 com.googlecode.tapestry5cayenne.services.TapestryCayenneCoreModule.bind(ServiceBinder)
  (at TapestryCayenneCoreModule.java:93): 
 org/apache/tapestry5/PrimaryKeyEncoder
  at 
 org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:123)
  at 
 org.apache.tapestry5.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:77)
  at 
 org.apache.tapestry5.internal.TapestryAppInitializer.init(TapestryAppInitializer.java:124)
 
 [ … ]
 
 Caused by: java.lang.RuntimeException: Failure loading Tapestry IoC module 
 class com.googlecode.tapestry5cayenne.services.TapestryCayenneModule: Error 
 invoking service binder method 
 com.googlecode.tapestry5cayenne.services.TapestryCayenneCoreModule.bind(ServiceBinder)
  (at TapestryCayenneCoreModule.java:93): 
 org/apache/tapestry5/PrimaryKeyEncoder
  at 
 org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:162)
  at 
 org.apache.tapestry5.ioc.IOCUtilities.addModulesInList(IOCUtilities.java:137)
  at 
 org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:107)
 
 --
 
 Any ideas what might be happening?
 
 Cheers,
 - hugi
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 


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



Re: Tapestry 5.3 and tapestry5-cayenne

2011-12-05 Thread Hugi Thordarson
Hi Dragan.
Thank you, this will definitely be useful for us.

Cheers,
- hugi

PS: I'm impressed with the helpfulness of the community!


On 5.12.2011, at 10:41, Dragan Sahpaski wrote:

 Hi,
 I haven't used  tapestry5-cayenne, but I'd like to point you to another
 project that uses Cayenne with tapestry, if you like to browse it and see
 how cayenne is used in this project.
 
 https://github.com/bobharner/Tapestry-finder
 
 Hope it helps.
 
 Cheers,
 Dragan Sahpaski
 
 
 
 On Mon, Dec 5, 2011 at 11:31 AM, Hugi Thordarson h...@karlmenn.is wrote:
 
 Hi all!
 
 First time Tapestry user here, just started coding this weekend and liking
 it so far.
 
 Now, for my first question: I'm using Cayenne (3.0.2) so I just downloaded
 the tapestry5-cayenne extension (0.5-snapshot) and installed it. Now, when
 I start my application, I get the following exception:
 
 --
 
 2011-12-05 10:29:57.846::WARN:  Failed startup of context
 org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@7817bcd4
 {/tap,/Users/hugi/Documents/workspace/tap/src/main/webapp}
 java.lang.RuntimeException: Exception loading module(s) from manifest
 jar:file:/Users/hugi/.m2/repository/com/googlecode/tapestry5-cayenne/tapestry5-cayenne-server/0.5-SNAPSHOT/tapestry5-cayenne-server-0.5-SNAPSHOT.jar!/META-INF/MANIFEST.MF:
 Failure loading Tapestry IoC module class
 com.googlecode.tapestry5cayenne.services.TapestryCayenneModule: Error
 invoking service binder method
 com.googlecode.tapestry5cayenne.services.TapestryCayenneCoreModule.bind(ServiceBinder)
 (at TapestryCayenneCoreModule.java:93):
 org/apache/tapestry5/PrimaryKeyEncoder
   at
 org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:123)
   at
 org.apache.tapestry5.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:77)
   at
 org.apache.tapestry5.internal.TapestryAppInitializer.init(TapestryAppInitializer.java:124)
 
 [ … ]
 
 Caused by: java.lang.RuntimeException: Failure loading Tapestry IoC module
 class com.googlecode.tapestry5cayenne.services.TapestryCayenneModule: Error
 invoking service binder method
 com.googlecode.tapestry5cayenne.services.TapestryCayenneCoreModule.bind(ServiceBinder)
 (at TapestryCayenneCoreModule.java:93):
 org/apache/tapestry5/PrimaryKeyEncoder
   at
 org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:162)
   at
 org.apache.tapestry5.ioc.IOCUtilities.addModulesInList(IOCUtilities.java:137)
   at
 org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:107)
 
 --
 
 Any ideas what might be happening?
 
 Cheers,
 - hugi
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 


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



Re: Wanted: New title for the Tapestry book

2011-12-05 Thread Hugi Thordarson
+1 for the unicorns.

Tapestry 5: Farting rainbows

- hugi



On 5.12.2011, at 20:28, Daniel Jue wrote:

 How about naming it after a famous tapestry?
 I Googled 'famous tapestry' and found this one, and it even has a UNICORN!
 
 http://en.wikipedia.org/wiki/The_Lady_and_the_Unicorn
 
 On Mon, Dec 5, 2011 at 11:18 AM, Borut Bolcina borut.bolc...@gmail.com 
 wrote:
 That is funny, with a grain of salt.
 
 
 Sent from my iPad
 
 On 5. dec. 2011, at 13:22, Koka Kiknadze 226...@gmail.com wrote:
 
 Is there any timetable? I think it's the most awaited manual on java web
 development - so you could just name it accordingly :)
 
 Tapetry 5 Guide:  The Most Awaited Manual For Java Web Development
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 


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