You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Bramy Audrey <au...@atos.net> on 2012/10/03 14:08:20 UTC

Error LibraryMapping

Hi,

I have been trying to upgrade from tapestry 5.1.0.5 to tapestry 5.3.5
I work on a generic project and a specific project whose use generic project.
When I try to start my web site (specific project) I have an error with the library mapping :

" Error invoking service contribution method
org.apache.tapestry5.services.TapestryModule.addMappingsForLibraryVirtualFolders(MappedConfiguration, ComponentClassResolver):
Package names for library folder 'core' (net.prefix.tapestry.core.corelib.components, org.apache.tapestry5.core, org.apache.tapestry5.corelib, org.apache.tapestry5.upload)
can not be reduced to a common base package (of at least one term). "

Before to have this error I defined
"configuration.add(new LibraryMapping("core", "net.prefix.tapestry.core.corelib.components"));"
But I have removed the contribution of the Library Mapping and the problem persist.

Regards,

Audrey

________________________________

Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne pouvant ?tre assur?e sur Internet, la responsabilit? d'Atos ne pourra ?tre recherch?e quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'exp?diteur ne donne aucune garantie ? cet ?gard et sa responsabilit? ne saurait ?tre recherch?e pour tout dommage r?sultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.

RE: Error LibraryMapping

Posted by Bramy Audrey <au...@atos.net>.
Thanks for your help.
I have found the solution. It was a fix in for de tapestry 5.1 which had been added in my generic project and contribute my package to "core".

I start my web site but I have another error about the ValidationDecorator class which seems to don't exist in tapestry 5.3. I don't find a solution to replace this class.

" public void contributeMarkupRenderer(OrderedConfiguration<MarkupRendererFilter> configuration, final Environment environment) {

                MarkupRendererFilter ddsaValidationDecorator = new MarkupRendererFilter() {

                        public void renderMarkup(final MarkupWriter writer, MarkupRenderer renderer) {
                                ValidationDecorator defaultDecorator = environment.peekRequired(ValidationDecorator.class);

                                ValidationDecorator decorator = new ValidationDecoratorWrapper(defaultDecorator) {

                                        public void insideLabel(Field field, Element labelElement) {
                                                super.insideLabel(field, labelElement);

                                                if (field != null && field.isRequired()) {
                                                        labelElement.element("span").raw("*").addClassName("mandatory");
                                                }
                                                if (!(Radio.class.getName().equals(field.getClass().getName()))) {
                                                        labelElement.element("span").raw(" :");
                                                }
                                        }

                                };

                                environment.push(ValidationDecorator.class, decorator);

                                renderer.renderMarkup(writer);

                                environment.pop(ValidationDecorator.class);
                        }
                };
                configuration.add("wladminValidationDecorator", ddsaValidationDecorator, "after:DefaultValidationDecorator");
        } "

I use a decorator to adding a "*" on each label when the field is required. Also adds ":" after labels.
Audrey

-----Message d'origine-----
De : fra.facon@gmail.com [mailto:fra.facon@gmail.com] De la part de François Facon
Envoyé : mercredi 3 octobre 2012 16:25
À : Tapestry users
Objet : Re: Error LibraryMapping


I guess Thomas is right.
It must be something related to maven on eclipse.
seems like there is a old version of component lib on the classpath.
mvn clean form a console.

call me back if the problem persist
Regards
François

2012/10/3 Taha Siddiqi <ta...@gmail.com>:
> I think there is a hack... if your package name starts with "org" you can contribute it to "core". No sure if it is possible now but I did it some time back.
>
> Remember, it is a hack :)
>
> regards
> Taha
>
> On Oct 3, 2012, at 6:16 PM, Thomas Cucchietti wrote:
>
>> Hello Thiago,
>>
>> I think that her problem is that even after the removal of this
>> contribution (now illegal in 5.3), she keeps the same error message.
>>
>> Do you know if there is any other way for this
>> "net.prefix.tapestry.core.corelib.components" package to be related
>> to the "core" ?
>>
>> If not, in my opinion, It could be related to a deployment problem
>> with her IDE.
>>
>> Regards,
>> Thomas
>>
>> 2012/10/3 Thiago H de Paula Figueiredo <th...@gmail.com>
>>
>>> On Wed, 03 Oct 2012 09:08:20 -0300, Bramy Audrey
>>> <au...@atos.net>
>>> wrote:
>>>
>>> Hi,
>>>>
>>>
>>> Hi!
>>>
>>>
>>>
>>>> I have been trying to upgrade from tapestry 5.1.0.5 to tapestry
>>>> 5.3.5 I work on a generic project and a specific project whose use
>>>> generic project.
>>>> When I try to start my web site (specific project) I have an error
>>>> with the library mapping :
>>>>
>>>> " Error invoking service contribution method
>>>> org.apache.tapestry5.services.**TapestryModule.**
>>>> addMappingsForLibraryVirtualFo**lders(MappedConfiguration,
>>>> ComponentClassResolver):
>>>> Package names for library folder 'core'
>>>> (net.prefix.tapestry.core.**corelib.components,
>>>> org.apache.tapestry5.core, org.apache.tapestry5.corelib,
>>>> org.apache.tapestry5.upload)
>>>> can not be reduced to a common base package (of at least one term). "
>>>>
>>>
>>> Since Tapestry 5.2 or 5.3 you cannot contribute a library mapping
>>> with "core" as its prefix.
>>>
>>> --
>>> Thiago H. de Paula Figueiredo
>>>
>>> ------------------------------**------------------------------**----
>>> ----- To unsubscribe, e-mail:
>>> users-unsubscribe@tapestry.**apache.org<users-unsubscribe@tapestry.a
>>> pache.org> For additional commands, e-mail:
>>> users-help@tapestry.apache.org
>>>
>>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

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


Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité d'Atos ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.


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


Re: Error LibraryMapping

Posted by François Facon <fr...@atos.net>.
I guess Thomas is right.
It must be something related to maven on eclipse.
seems like there is a old version of component lib on the classpath.
mvn clean form a console.

call me back if the problem persist
Regards
François

2012/10/3 Taha Siddiqi <ta...@gmail.com>:
> I think there is a hack... if your package name starts with "org" you can contribute it to "core". No sure if it is possible now but I did it some time back.
>
> Remember, it is a hack :)
>
> regards
> Taha
>
> On Oct 3, 2012, at 6:16 PM, Thomas Cucchietti wrote:
>
>> Hello Thiago,
>>
>> I think that her problem is that even after the removal of this
>> contribution (now illegal in 5.3), she keeps the same error message.
>>
>> Do you know if there is any other way for this
>> "net.prefix.tapestry.core.corelib.components" package to be related to the
>> "core" ?
>>
>> If not, in my opinion, It could be related to a deployment problem with her
>> IDE.
>>
>> Regards,
>> Thomas
>>
>> 2012/10/3 Thiago H de Paula Figueiredo <th...@gmail.com>
>>
>>> On Wed, 03 Oct 2012 09:08:20 -0300, Bramy Audrey <au...@atos.net>
>>> wrote:
>>>
>>> Hi,
>>>>
>>>
>>> Hi!
>>>
>>>
>>>
>>>> I have been trying to upgrade from tapestry 5.1.0.5 to tapestry 5.3.5
>>>> I work on a generic project and a specific project whose use generic
>>>> project.
>>>> When I try to start my web site (specific project) I have an error with
>>>> the library mapping :
>>>>
>>>> " Error invoking service contribution method
>>>> org.apache.tapestry5.services.**TapestryModule.**
>>>> addMappingsForLibraryVirtualFo**lders(MappedConfiguration,
>>>> ComponentClassResolver):
>>>> Package names for library folder 'core' (net.prefix.tapestry.core.**corelib.components,
>>>> org.apache.tapestry5.core, org.apache.tapestry5.corelib,
>>>> org.apache.tapestry5.upload)
>>>> can not be reduced to a common base package (of at least one term). "
>>>>
>>>
>>> Since Tapestry 5.2 or 5.3 you cannot contribute a library mapping with
>>> "core" as its prefix.
>>>
>>> --
>>> Thiago H. de Paula Figueiredo
>>>
>>> ------------------------------**------------------------------**---------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.**apache.org<us...@tapestry.apache.org>
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

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


Re: Error LibraryMapping

Posted by Taha Siddiqi <ta...@gmail.com>.
I think there is a hack... if your package name starts with "org" you can contribute it to "core". No sure if it is possible now but I did it some time back.

Remember, it is a hack :)

regards
Taha

On Oct 3, 2012, at 6:16 PM, Thomas Cucchietti wrote:

> Hello Thiago,
> 
> I think that her problem is that even after the removal of this
> contribution (now illegal in 5.3), she keeps the same error message.
> 
> Do you know if there is any other way for this
> "net.prefix.tapestry.core.corelib.components" package to be related to the
> "core" ?
> 
> If not, in my opinion, It could be related to a deployment problem with her
> IDE.
> 
> Regards,
> Thomas
> 
> 2012/10/3 Thiago H de Paula Figueiredo <th...@gmail.com>
> 
>> On Wed, 03 Oct 2012 09:08:20 -0300, Bramy Audrey <au...@atos.net>
>> wrote:
>> 
>> Hi,
>>> 
>> 
>> Hi!
>> 
>> 
>> 
>>> I have been trying to upgrade from tapestry 5.1.0.5 to tapestry 5.3.5
>>> I work on a generic project and a specific project whose use generic
>>> project.
>>> When I try to start my web site (specific project) I have an error with
>>> the library mapping :
>>> 
>>> " Error invoking service contribution method
>>> org.apache.tapestry5.services.**TapestryModule.**
>>> addMappingsForLibraryVirtualFo**lders(MappedConfiguration,
>>> ComponentClassResolver):
>>> Package names for library folder 'core' (net.prefix.tapestry.core.**corelib.components,
>>> org.apache.tapestry5.core, org.apache.tapestry5.corelib,
>>> org.apache.tapestry5.upload)
>>> can not be reduced to a common base package (of at least one term). "
>>> 
>> 
>> Since Tapestry 5.2 or 5.3 you cannot contribute a library mapping with
>> "core" as its prefix.
>> 
>> --
>> Thiago H. de Paula Figueiredo
>> 
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.**apache.org<us...@tapestry.apache.org>
>> For additional commands, e-mail: users-help@tapestry.apache.org
>> 
>> 


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


Re: Error LibraryMapping

Posted by Thomas Cucchietti <th...@gmail.com>.
Hello Thiago,

I think that her problem is that even after the removal of this
contribution (now illegal in 5.3), she keeps the same error message.

Do you know if there is any other way for this
"net.prefix.tapestry.core.corelib.components" package to be related to the
"core" ?

If not, in my opinion, It could be related to a deployment problem with her
IDE.

Regards,
Thomas

2012/10/3 Thiago H de Paula Figueiredo <th...@gmail.com>

> On Wed, 03 Oct 2012 09:08:20 -0300, Bramy Audrey <au...@atos.net>
> wrote:
>
>  Hi,
>>
>
> Hi!
>
>
>
>> I have been trying to upgrade from tapestry 5.1.0.5 to tapestry 5.3.5
>> I work on a generic project and a specific project whose use generic
>> project.
>> When I try to start my web site (specific project) I have an error with
>> the library mapping :
>>
>> " Error invoking service contribution method
>> org.apache.tapestry5.services.**TapestryModule.**
>> addMappingsForLibraryVirtualFo**lders(MappedConfiguration,
>> ComponentClassResolver):
>> Package names for library folder 'core' (net.prefix.tapestry.core.**corelib.components,
>> org.apache.tapestry5.core, org.apache.tapestry5.corelib,
>> org.apache.tapestry5.upload)
>> can not be reduced to a common base package (of at least one term). "
>>
>
> Since Tapestry 5.2 or 5.3 you cannot contribute a library mapping with
> "core" as its prefix.
>
> --
> Thiago H. de Paula Figueiredo
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.**apache.org<us...@tapestry.apache.org>
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Error LibraryMapping

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Wed, 03 Oct 2012 09:08:20 -0300, Bramy Audrey <au...@atos.net>  
wrote:

> Hi,

Hi!

>
> I have been trying to upgrade from tapestry 5.1.0.5 to tapestry 5.3.5
> I work on a generic project and a specific project whose use generic  
> project.
> When I try to start my web site (specific project) I have an error with  
> the library mapping :
>
> " Error invoking service contribution method
> org.apache.tapestry5.services.TapestryModule.addMappingsForLibraryVirtualFolders(MappedConfiguration,  
> ComponentClassResolver):
> Package names for library folder 'core'  
> (net.prefix.tapestry.core.corelib.components, org.apache.tapestry5.core,  
> org.apache.tapestry5.corelib, org.apache.tapestry5.upload)
> can not be reduced to a common base package (of at least one term). "

Since Tapestry 5.2 or 5.3 you cannot contribute a library mapping with  
"core" as its prefix.

-- 
Thiago H. de Paula Figueiredo

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