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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]