You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Steve Eynon <st...@alienfactory.co.uk> on 2010/08/30 11:06:28 UTC

[T5.2.0] java.lang.NoSuchMethodError: MutableComponentModel.addMixinClassName()

Hello,

I really want to upgrade to T5.2 but have come across a bit of a hurdle.

I'm trying to add a bit of markup to *every* page. I've written a
mixin to supply the markup and am using a
ComponentClassTransformWorker to add the mixin to every page. This
worked flawlessly in T5.1.0.5 but in T5.2.0 I'm getting:

java.lang.NoSuchMethodError:
org.apache.tapestry5.model.MutableComponentModel.addMixinClassName(Ljava/lang/String;)V

It seems like the underlying page model in T5.2 doesn't yet support mixins!?

Is this expected behaviour and / or is there a better way of achieving
what I'm after?

I've tried adding a component instead but then I get a snobby:

Embedded component(s) XXXX are defined within component class
org.apache.tapestry5.corelib.pages.ExceptionReport (or a super-class
of ExceptionReport), but are not present in the component template
(classpath:org/apache/tapestry5/corelib/pages/ExceptionReport.tml).

Any ideas?

Steve.

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


Re: [T5.2.0] java.lang.NoSuchMethodError: MutableComponentModel.addMixinClassName()

Posted by based2 <ba...@free.fr>.
! http://tapestry.formos.com/nightly/tapestry5/upgrade.html

== http://wiki.apache.org/tapestry/Tapestry5HowTos
== http://wiki.apache.org/tapestry/Tapestry5OpensourceApps
== http://wiki.apache.org/tapestry/Tapestry5ModuleRegistry
http://people.apache.org/~uli/tapestry-site/frequently-asked-questions.html#FrequentlyAskedQuestions-HowdoIstoremypageclassesinadifferentpackage
-- 
View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-0-java-lang-NoSuchMethodError-MutableComponentModel-addMixinClassName-tp2796493p2802698.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: [T5.2.0] java.lang.NoSuchMethodError: MutableComponentModel.addMixinClassName()

Posted by Howard Lewis Ship <hl...@gmail.com>.
Do a clean recompile of your sources.  Looks like the API changed to
add a varargs of strings to the method; that's source compatible but
not binary compatible.

On Mon, Aug 30, 2010 at 2:06 AM, Steve Eynon
<st...@alienfactory.co.uk> wrote:
> Hello,
>
> I really want to upgrade to T5.2 but have come across a bit of a hurdle.
>
> I'm trying to add a bit of markup to *every* page. I've written a
> mixin to supply the markup and am using a
> ComponentClassTransformWorker to add the mixin to every page. This
> worked flawlessly in T5.1.0.5 but in T5.2.0 I'm getting:
>
> java.lang.NoSuchMethodError:
> org.apache.tapestry5.model.MutableComponentModel.addMixinClassName(Ljava/lang/String;)V
>
> It seems like the underlying page model in T5.2 doesn't yet support mixins!?
>
> Is this expected behaviour and / or is there a better way of achieving
> what I'm after?
>
> I've tried adding a component instead but then I get a snobby:
>
> Embedded component(s) XXXX are defined within component class
> org.apache.tapestry5.corelib.pages.ExceptionReport (or a super-class
> of ExceptionReport), but are not present in the component template
> (classpath:org/apache/tapestry5/corelib/pages/ExceptionReport.tml).
>
> Any ideas?
>
> Steve.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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