> Caused by: java.lang.NoClassDefFoundError: org/apache/isis/core/ > metamodel/facets/propparam/maxlen/MaxLengthFacet > at org.isisaddons.module.security.dom.feature.ApplicationFeatures. > createApplicationFeaturesFor(ApplicationFeatures.java:113)
your local copy of isisaddons security module is stale. Suggest you delete everything under ~/.m2/repository/org/isisaddons (or rebuild locally). On 10 February 2015 at 10:42, <[email protected]> wrote: > Here's what I get: > > > > > 11:37:50,785 [IsisWicketApplication main ERROR] Failed to > initialize > > com.google.inject.ProvisionException: Guice provision errors: > > > > 1) Error in custom provider, > org.apache.isis.core.runtime.system.transaction.IsisTransactionManagerException: > org.apache.isis.core.metamodel.exceptions.MetaModelException: > java.lang.NoClassDefFoundError: > org/apache/isis/core/metamodel/facets/propparam/maxlen/MaxLengthFacet > > at > org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132) > > at > org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132) > > while locating org.apache.isis.core.runtime.system.IsisSystem > > for field at > org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.system(IsisWicketApplication.java:142) > > while locating nl.matching.app.webapp.MatchingApp > > > > 1 error > > at > com.google.inject.internal.Errors.throwProvisionExceptionIfErrorsExist(Errors.java:451) > > at > com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:65) > > at > com.google.inject.internal.InjectorImpl.injectMembers(InjectorImpl.java:944) > > at > org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.init(IsisWicketApplication.java:254) > > at > org.apache.wicket.Application.initApplication(Application.java:823) > > at > org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:424) > > at > org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:351) > > at > org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > > at > org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115) > > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > > at org.mortbay.jetty.Server.doStart(Server.java:224) > > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > > at > org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132) > > at > org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:454) > > at > org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:396) > > at > org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210) > > at > org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184) > > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132) > > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) > > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) > > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) > > at > org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) > > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120) > > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347) > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154) > > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) > > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213) > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:157) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > at java.lang.reflect.Method.invoke(Method.java:601) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) > > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) > > Caused by: > org.apache.isis.core.runtime.system.transaction.IsisTransactionManagerException: > org.apache.isis.core.metamodel.exceptions.MetaModelException: > java.lang.NoClassDefFoundError: > org/apache/isis/core/metamodel/facets/propparam/maxlen/MaxLengthFacet > > at > org.apache.isis.core.runtime.system.IsisSystemFixturesHookAbstract.initializeServices(IsisSystemFixturesHookAbstract.java:162) > > at > org.apache.isis.core.runtime.system.IsisSystemFixturesHookAbstract.init(IsisSystemFixturesHookAbstract.java:122) > > at > org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:133) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > at java.lang.reflect.Method.invoke(Method.java:601) > > at > com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:104) > > at > com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40) > > at > com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) > > at > com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031) > > at > com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) > > at com.google.inject.Scopes$1$1.get(Scopes.java:65) > > at > com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40) > > at > com.google.inject.internal.SingleFieldInjector.inject(SingleFieldInjector.java:53) > > at > com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:110) > > at > com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:75) > > at > com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:73) > > at > com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024) > > at > com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:73) > > at > com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:60) > > ... 48 more > > Caused by: > org.apache.isis.core.metamodel.exceptions.MetaModelException: > java.lang.NoClassDefFoundError: > org/apache/isis/core/metamodel/facets/propparam/maxlen/MaxLengthFacet > > at > org.apache.isis.core.commons.lang.ThrowableExtensions.throwWithinIsisException(ThrowableExtensions.java:60) > > at > org.apache.isis.core.commons.lang.MethodExtensions.invoke(MethodExtensions.java:57) > > at > org.apache.isis.core.commons.lang.MethodExtensions.invoke(MethodExtensions.java:47) > > at > org.apache.isis.core.metamodel.specloader.ServiceInitializer.postConstruct(ServiceInitializer.java:116) > > at > org.apache.isis.core.runtime.system.IsisSystemFixturesHookAbstract.initializeServices(IsisSystemFixturesHookAbstract.java:158) > > ... 68 more > > Caused by: java.lang.NoClassDefFoundError: > org/apache/isis/core/metamodel/facets/propparam/maxlen/MaxLengthFacet > > at > org.isisaddons.module.security.dom.feature.ApplicationFeatures.createApplicationFeaturesFor(ApplicationFeatures.java:113) > > at > org.isisaddons.module.security.dom.feature.ApplicationFeatures.createApplicationFeaturesFor(ApplicationFeatures.java:83) > > at > org.isisaddons.module.security.dom.feature.ApplicationFeatures.init(ApplicationFeatures.java:68) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > at java.lang.reflect.Method.invoke(Method.java:601) > > at > org.apache.isis.core.commons.lang.MethodExtensions.invoke(MethodExtensions.java:53) > > ... 71 more > > Caused by: java.lang.ClassNotFoundException: > org.apache.isis.core.metamodel.facets.propparam.maxlen.MaxLengthFacet > > at > org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) > > at > org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259) > > at > org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235) > > at > org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227) > > at > org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:401) > > at > org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:363) > > ... 79 more > > 11:37:50,795 [WicketFilter main ERROR] The > initialization of an application with name 'WicketFilter' has failed. > > com.google.inject.ProvisionException: Guice provision errors: > > > > > > > > ----- Original Message ---- > > From: Dan Haywood > > To: users > > Sent: Din, 10 Feb 2015 11:18 > > Subject: Re: optionality=Optionality.OPTIONAL issue > > > > > sadness, much sadness. > > Computers are meant to make us more productive, aren't they? > > On 10 February 2015 at 10:14, wrote: > > > Yep, I just did that. > > > > What I do next is building isis from git so my .m2 is up-to-date. > > > > Because now I get: java.lang.NoClassDefFoundError: > > org/apache/isis/core/metamodel/facets/propparam/maxlen/MaxLengthFacet > > > > > > > > > > > > > > At this point I'd start deleting the contents of > > ~/.m2/repository/org/apache/isis > > > > > > > > On 10 February 2015 at 10:00, wrote: > > > > > Tnx Martin, > > > > > > > > > > > > That's what I did and I am doing it again.. Eclipse is retrieving from > > .m2 > > > it says but maybe it has some secrets... I just wonder where ;-) > > > > > > > > > > > > grtz Johan > > > > > > > > > > > > > > > I'd bet it is Eclipse that keeps some cache. > > > To verify you can build your project on the command line (console) > with : > > > mvn clean compile > > > > > > Martin Grigorov > > > Wicket Training and Consulting > > > https://twitter.com/mtgrigorov > > > > > > On Tue, Feb 10, 2015 at 11:51 AM, wrote: > > > > > > > Alright, > > > > > > > > > > > > > > > > I did all those things. Nevermind... I will find out. I just > wonderered > > > > git and cloudbees are in sync. That is all there is right? > > > > > > > > > > > > > > > > grtz Johan > > > > > > > > > > > > > > > > > > > > Ah, misunderstood. > > > > > > > > No, Cloudbees looks like it's building ok, don't think the issue is > > > there. > > > > > > > > In Eclipse, have you updated the .project files. IIRC it's ctrl-F5 > or > > > > something like that (don't use Eclipse any more myself). Otherwise > > > perhaps > > > > remove and re-add to workspace. > > > > > > > > You can also use "show in explorer" for the class file to see where > it > > > > physically resides... > > > > > > > > HTH > > > > Dan > > > > > > > > > > > > > > > > > > > > > > > > > > > > On 10 February 2015 at 09:30, wrote: > > > > > > > > > Hi Dan, > > > > > > > > > > > > > > > > > > > > Yes, I observed that already ;-) > > > > > > > > > > The issue is that somehow I get the old class file everytime. I > > wonder > > > > > where it comes from, because I clean every cache I can find. Is it > on > > > > > cloudbees or something I wonder? > > > > > > > > > > > > > > > > > > > > grtz Johan > > > > > > > > > > > > > > > > > > > > > > > > > Yup, sorry; I changed: > > > > > > > > > > optional=Optionality.TRUE --> optionality=Optionality.OPTIONAL > > > > > optional=Optionality.FALSE --> optionality=Optionality.MANDATORY > > > > > > > > > > so is more consistent with other attribuets. > > > > > > > > > > Hopefully a quick search/replace through your codebase will fix... > > > Don't > > > > > intend to make any further changes :-) > > > > > > > > > > Cheers > > > > > Dan > > > > > > > > > > > > > > > On 10 February 2015 at 09:17, wrote: > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > > > > > I wonder why - after building in Eclipse (and yes, I cleaned .m2 > > and > > > > > > eclipse workspace) - I have problems with > > > > > > 'optionality=Optionality.OPTIONAL' annotation. (It want to revert > > to > > > > > > "@Parameter(optional=Optionality.TRUE)" > > > > > > > > > > > > When I check out [1] on git it seems OK. > > > > > > > > > > > > Are there some changes in POM that I missed or ...? > > > > > > > > > > > > > > > > > > > > > > > > grtz Johan > > > > > > > > > > > > > > > > > > > > > > > > [1] > > > > > > > > > > > > > > > > > > > > > https://github.com/apache/isis/blob/master/core/applib/src/main/java/org/apache/isis/applib/annotation/Optionality.java > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
