You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Dmitriy Vsekhvalnov <dv...@gmail.com> on 2013/07/02 10:38:54 UTC

T5.1 -> T5.3 migration question

Hi everyone,

doing app migration from 5.1 to 5.3, currently face with weird exception:


Caused by: org.apache.tapestry5.ioc.internal.OperationException: Base class
java.lang.Enum (super class of xxx.xx.xx) is not in a controlled package
and is therefore not valid. You should try moving the class to package
xxx.base.


What does it mean?

Re: T5.1 -> T5.3 migration question

Posted by Lance Java <la...@googlemail.com>.
This is likely caused by having classes in the pages / components packages
that shouldn't be there.

Move any non page / component classes out of the controlled packages (pages
/ components / base). This includes interfaces, enums and utilities.

Re: T5.1 -> T5.3 migration question

Posted by Dmitriy Vsekhvalnov <dv...@gmail.com>.
Thanks, got it.

On Tue, Jul 2, 2013 at 12:46 PM, Kristian Marinkovic <
kristian.marinkovic@gmail.com> wrote:

> Hi,
>
> Tapestry over time added additional checks to detect whether the classes in
> the Tapestry specific packages are really only relevant to Tapestry. Not
> doing so can cause unexpected exceptions due to classloading issues.
>
> in other words: only page, component and mixin classes go into the
> respective packages. everything else should be moved outside (eg. base or
> services)
>
> not a big deal, just a precaution.
>
> g,
> Kris
>
>
>
>
> On Tue, Jul 2, 2013 at 10:38 AM, Dmitriy Vsekhvalnov <
> dvsekhvalnov@gmail.com
> > wrote:
>
> > Hi everyone,
> >
> > doing app migration from 5.1 to 5.3, currently face with weird exception:
> >
> >
> > Caused by: org.apache.tapestry5.ioc.internal.OperationException: Base
> class
> > java.lang.Enum (super class of xxx.xx.xx) is not in a controlled package
> > and is therefore not valid. You should try moving the class to package
> > xxx.base.
> >
> >
> > What does it mean?
> >
>

Re: T5.1 -> T5.3 migration question

Posted by Kristian Marinkovic <kr...@gmail.com>.
Hi,

Tapestry over time added additional checks to detect whether the classes in
the Tapestry specific packages are really only relevant to Tapestry. Not
doing so can cause unexpected exceptions due to classloading issues.

in other words: only page, component and mixin classes go into the
respective packages. everything else should be moved outside (eg. base or
services)

not a big deal, just a precaution.

g,
Kris




On Tue, Jul 2, 2013 at 10:38 AM, Dmitriy Vsekhvalnov <dvsekhvalnov@gmail.com
> wrote:

> Hi everyone,
>
> doing app migration from 5.1 to 5.3, currently face with weird exception:
>
>
> Caused by: org.apache.tapestry5.ioc.internal.OperationException: Base class
> java.lang.Enum (super class of xxx.xx.xx) is not in a controlled package
> and is therefore not valid. You should try moving the class to package
> xxx.base.
>
>
> What does it mean?
>