You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Stephane Decleire <sd...@cariboo-networks.com> on 2008/05/23 00:54:40 UTC

T5.0.12 : MappedConfiguration error in AppModule

Hi,

I've just tried to move an application from T5.0.11 to 5.0.12-SNAPSHOT 
but get the following error at startup :

Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/tapestry/ioc/MappedConfiguration

Looking at my AppModule class, i have :

import org.apache.tapestry5.ioc.MappedConfiguration;
...
public static void 
contributeApplicationDefaults(MappedConfiguration<String, String> 
configuration) {
    ...
}

Has anybody already faced the same error ? I don't understand why the 
NoClassDefFoundError refers the org.apache.tapestry package while i use 
the org.apache.tapestry5 package ...

Stephane

Re: T5.0.12 : MappedConfiguration error in AppModule

Posted by Stephane Decleire <sd...@cariboo-networks.com>.
I've just found the problem. I had integrated tapestry-acegi which is 
not ported under 5.0.12 yet ...

Stephane Decleire a écrit :
> Here is my complete stack trace :
>
> 12:57:12.140 INFO   [main] 
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:198) 
> >09> Root WebApplicationContext: initialization completed in 4058 ms
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/apache/tapestry/ioc/MappedConfiguration
>    at java.lang.Class.getDeclaredMethods0(Native Method)
>    at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
>    at java.lang.Class.privateGetPublicMethods(Class.java:2547)
>    at java.lang.Class.getMethods(Class.java:1410)
>    at 
> org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl.grind(DefaultModuleDefImpl.java:137) 
>
>    at 
> org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl.<init>(DefaultModuleDefImpl.java:106) 
>
>    at 
> org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:121)
>    at 
> org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:148)
>    at 
> org.apache.tapestry5.ioc.IOCUtilities.addModulesInList(IOCUtilities.java:120) 
>
>    at 
> org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:104) 
>
>    at 
> org.apache.tapestry5.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:76) 
>
>    at 
> org.apache.tapestry5.internal.TapestryAppInitializer.<init>(TapestryAppInitializer.java:75) 
>
>    at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:72)
>    at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:71)
>    at 
> org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:310) 
>
>    at 
> org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:509) 
>
>    at org.mortbay.util.Container.start(Container.java:72)
>    at org.mortbay.http.HttpServer.doStart(HttpServer.java:708)
>    at org.mortbay.util.Container.start(Container.java:72)
>    at 
> com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282)
>    at 
> com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104)
>    at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75)
>
> I still don't understand why the right package (tapestry5) is used has 
> shown in the stack trace and the error message refers to the old 
> tapestry package ...
>
> Stephane
>
> Filip S. Adamsen a écrit :
>> That's weird. Have you changed the 
>> org.apache.tapestry:tapestry-annotations dependency to 
>> org.apache.tapestry:tapestry5-annotations?
>>
>> -Filip
>>
>> Stephane Decleire skrev:
>>> I use Maven and i have forced a refresh of my repository but i get 
>>> the same error ...
>>>
>>> Stephane
>>>
>>> Filip S. Adamsen a écrit :
>>>> Hi,
>>>>
>>>> This is most likely due to classpath conflicts. Make absolutely 
>>>> sure that you don't have any old Tapestry jars around from before 
>>>> the package rename.
>>>>
>>>> -Filip
>>>>
>>>> On 2008-05-23 00:54, Stephane Decleire wrote:
>>>>> Hi,
>>>>>
>>>>> I've just tried to move an application from T5.0.11 to 
>>>>> 5.0.12-SNAPSHOT but get the following error at startup :
>>>>>
>>>>> Exception in thread "main" java.lang.NoClassDefFoundError: 
>>>>> org/apache/tapestry/ioc/MappedConfiguration
>>>>>
>>>>> Looking at my AppModule class, i have :
>>>>>
>>>>> import org.apache.tapestry5.ioc.MappedConfiguration;
>>>>> ...
>>>>> public static void 
>>>>> contributeApplicationDefaults(MappedConfiguration<String, String> 
>>>>> configuration) {
>>>>>    ...
>>>>> }
>>>>>
>>>>> Has anybody already faced the same error ? I don't understand why 
>>>>> the NoClassDefFoundError refers the org.apache.tapestry package 
>>>>> while i use the org.apache.tapestry5 package ...
>>>>>
>>>>> Stephane
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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: T5.0.12 : MappedConfiguration error in AppModule

Posted by Stephane Decleire <sd...@cariboo-networks.com>.
Here is my complete stack trace :

12:57:12.140 INFO   [main] 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:198) 
 >09> Root WebApplicationContext: initialization completed in 4058 ms
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/tapestry/ioc/MappedConfiguration
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
    at java.lang.Class.privateGetPublicMethods(Class.java:2547)
    at java.lang.Class.getMethods(Class.java:1410)
    at 
org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl.grind(DefaultModuleDefImpl.java:137)
    at 
org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl.<init>(DefaultModuleDefImpl.java:106)
    at 
org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:121)
    at 
org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:148)
    at 
org.apache.tapestry5.ioc.IOCUtilities.addModulesInList(IOCUtilities.java:120)
    at 
org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:104)
    at 
org.apache.tapestry5.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:76)
    at 
org.apache.tapestry5.internal.TapestryAppInitializer.<init>(TapestryAppInitializer.java:75)
    at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:72)
    at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:71)
    at 
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:310)
    at 
org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:509)
    at org.mortbay.util.Container.start(Container.java:72)
    at org.mortbay.http.HttpServer.doStart(HttpServer.java:708)
    at org.mortbay.util.Container.start(Container.java:72)
    at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282)
    at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104)
    at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75)

I still don't understand why the right package (tapestry5) is used has 
shown in the stack trace and the error message refers to the old 
tapestry package ...

Stephane

Filip S. Adamsen a écrit :
> That's weird. Have you changed the 
> org.apache.tapestry:tapestry-annotations dependency to 
> org.apache.tapestry:tapestry5-annotations?
>
> -Filip
>
> Stephane Decleire skrev:
>> I use Maven and i have forced a refresh of my repository but i get 
>> the same error ...
>>
>> Stephane
>>
>> Filip S. Adamsen a écrit :
>>> Hi,
>>>
>>> This is most likely due to classpath conflicts. Make absolutely sure 
>>> that you don't have any old Tapestry jars around from before the 
>>> package rename.
>>>
>>> -Filip
>>>
>>> On 2008-05-23 00:54, Stephane Decleire wrote:
>>>> Hi,
>>>>
>>>> I've just tried to move an application from T5.0.11 to 
>>>> 5.0.12-SNAPSHOT but get the following error at startup :
>>>>
>>>> Exception in thread "main" java.lang.NoClassDefFoundError: 
>>>> org/apache/tapestry/ioc/MappedConfiguration
>>>>
>>>> Looking at my AppModule class, i have :
>>>>
>>>> import org.apache.tapestry5.ioc.MappedConfiguration;
>>>> ...
>>>> public static void 
>>>> contributeApplicationDefaults(MappedConfiguration<String, String> 
>>>> configuration) {
>>>>    ...
>>>> }
>>>>
>>>> Has anybody already faced the same error ? I don't understand why 
>>>> the NoClassDefFoundError refers the org.apache.tapestry package 
>>>> while i use the org.apache.tapestry5 package ...
>>>>
>>>> Stephane
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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: T5.0.12 : MappedConfiguration error in AppModule

Posted by Stephane Decleire <sd...@cariboo-networks.com>.
Didn't know that the maven package had its artifactid changed ... 
Perhaps that should be added to the 5.0.12 release notes.

In any case, my error is still there ...

Stephane

Filip S. Adamsen a écrit :
> That's weird. Have you changed the 
> org.apache.tapestry:tapestry-annotations dependency to 
> org.apache.tapestry:tapestry5-annotations?
>
> -Filip
>
> Stephane Decleire skrev:
>> I use Maven and i have forced a refresh of my repository but i get 
>> the same error ...
>>
>> Stephane
>>
>> Filip S. Adamsen a écrit :
>>> Hi,
>>>
>>> This is most likely due to classpath conflicts. Make absolutely sure 
>>> that you don't have any old Tapestry jars around from before the 
>>> package rename.
>>>
>>> -Filip
>>>
>>> On 2008-05-23 00:54, Stephane Decleire wrote:
>>>> Hi,
>>>>
>>>> I've just tried to move an application from T5.0.11 to 
>>>> 5.0.12-SNAPSHOT but get the following error at startup :
>>>>
>>>> Exception in thread "main" java.lang.NoClassDefFoundError: 
>>>> org/apache/tapestry/ioc/MappedConfiguration
>>>>
>>>> Looking at my AppModule class, i have :
>>>>
>>>> import org.apache.tapestry5.ioc.MappedConfiguration;
>>>> ...
>>>> public static void 
>>>> contributeApplicationDefaults(MappedConfiguration<String, String> 
>>>> configuration) {
>>>>    ...
>>>> }
>>>>
>>>> Has anybody already faced the same error ? I don't understand why 
>>>> the NoClassDefFoundError refers the org.apache.tapestry package 
>>>> while i use the org.apache.tapestry5 package ...
>>>>
>>>> Stephane
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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: T5.0.12 : MappedConfiguration error in AppModule

Posted by "Filip S. Adamsen" <fs...@fsadev.com>.
That's weird. Have you changed the 
org.apache.tapestry:tapestry-annotations dependency to 
org.apache.tapestry:tapestry5-annotations?

-Filip

Stephane Decleire skrev:
> I use Maven and i have forced a refresh of my repository but i get the 
> same error ...
> 
> Stephane
> 
> Filip S. Adamsen a écrit :
>> Hi,
>>
>> This is most likely due to classpath conflicts. Make absolutely sure 
>> that you don't have any old Tapestry jars around from before the 
>> package rename.
>>
>> -Filip
>>
>> On 2008-05-23 00:54, Stephane Decleire wrote:
>>> Hi,
>>>
>>> I've just tried to move an application from T5.0.11 to 
>>> 5.0.12-SNAPSHOT but get the following error at startup :
>>>
>>> Exception in thread "main" java.lang.NoClassDefFoundError: 
>>> org/apache/tapestry/ioc/MappedConfiguration
>>>
>>> Looking at my AppModule class, i have :
>>>
>>> import org.apache.tapestry5.ioc.MappedConfiguration;
>>> ...
>>> public static void 
>>> contributeApplicationDefaults(MappedConfiguration<String, String> 
>>> configuration) {
>>>    ...
>>> }
>>>
>>> Has anybody already faced the same error ? I don't understand why the 
>>> NoClassDefFoundError refers the org.apache.tapestry package while i 
>>> use the org.apache.tapestry5 package ...
>>>
>>> Stephane
>>>
>>
>> ---------------------------------------------------------------------
>> 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: T5.0.12 : MappedConfiguration error in AppModule

Posted by Peter Stavrinides <P....@albourne.com>.
Have changed it in your web.xml?
<filter>
 <filter-name>app</filter-name>
 <filter-class>org.apache.tapestry5.TapestryFilter</filter-class>
</filter>

----- Original Message -----
From: "Stephane Decleire" <sd...@cariboo-networks.com>
To: "Tapestry users" <us...@tapestry.apache.org>
Sent: Friday, 23 May, 2008 1:03:28 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul
Subject: Re: T5.0.12 : MappedConfiguration error in AppModule

I use Maven and i have forced a refresh of my repository but i get the 
same error ...

Stephane

Filip S. Adamsen a écrit :
> Hi,
>
> This is most likely due to classpath conflicts. Make absolutely sure 
> that you don't have any old Tapestry jars around from before the 
> package rename.
>
> -Filip
>
> On 2008-05-23 00:54, Stephane Decleire wrote:
>> Hi,
>>
>> I've just tried to move an application from T5.0.11 to 
>> 5.0.12-SNAPSHOT but get the following error at startup :
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError: 
>> org/apache/tapestry/ioc/MappedConfiguration
>>
>> Looking at my AppModule class, i have :
>>
>> import org.apache.tapestry5.ioc.MappedConfiguration;
>> ...
>> public static void 
>> contributeApplicationDefaults(MappedConfiguration<String, String> 
>> configuration) {
>>    ...
>> }
>>
>> Has anybody already faced the same error ? I don't understand why the 
>> NoClassDefFoundError refers the org.apache.tapestry package while i 
>> use the org.apache.tapestry5 package ...
>>
>> Stephane
>>
>
> ---------------------------------------------------------------------
> 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: T5.0.12 : MappedConfiguration error in AppModule

Posted by Stephane Decleire <sd...@cariboo-networks.com>.
I use Maven and i have forced a refresh of my repository but i get the 
same error ...

Stephane

Filip S. Adamsen a écrit :
> Hi,
>
> This is most likely due to classpath conflicts. Make absolutely sure 
> that you don't have any old Tapestry jars around from before the 
> package rename.
>
> -Filip
>
> On 2008-05-23 00:54, Stephane Decleire wrote:
>> Hi,
>>
>> I've just tried to move an application from T5.0.11 to 
>> 5.0.12-SNAPSHOT but get the following error at startup :
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError: 
>> org/apache/tapestry/ioc/MappedConfiguration
>>
>> Looking at my AppModule class, i have :
>>
>> import org.apache.tapestry5.ioc.MappedConfiguration;
>> ...
>> public static void 
>> contributeApplicationDefaults(MappedConfiguration<String, String> 
>> configuration) {
>>    ...
>> }
>>
>> Has anybody already faced the same error ? I don't understand why the 
>> NoClassDefFoundError refers the org.apache.tapestry package while i 
>> use the org.apache.tapestry5 package ...
>>
>> Stephane
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

Re: T5.0.12 : MappedConfiguration error in AppModule

Posted by "Filip S. Adamsen" <fs...@fsadev.com>.
Hi,

This is most likely due to classpath conflicts. Make absolutely sure 
that you don't have any old Tapestry jars around from before the package 
rename.

-Filip

On 2008-05-23 00:54, Stephane Decleire wrote:
> Hi,
> 
> I've just tried to move an application from T5.0.11 to 5.0.12-SNAPSHOT 
> but get the following error at startup :
> 
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/apache/tapestry/ioc/MappedConfiguration
> 
> Looking at my AppModule class, i have :
> 
> import org.apache.tapestry5.ioc.MappedConfiguration;
> ...
> public static void 
> contributeApplicationDefaults(MappedConfiguration<String, String> 
> configuration) {
>    ...
> }
> 
> Has anybody already faced the same error ? I don't understand why the 
> NoClassDefFoundError refers the org.apache.tapestry package while i use 
> the org.apache.tapestry5 package ...
> 
> Stephane
> 

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