Glad you sorted it out, Stephen.

Now that Java 7 is EOL, all the isisaddons are being built with 1.8.

Cheers
Dan


On 16 July 2015 at 14:28, Stephen Cameron <[email protected]>
wrote:

> Changing to Java version 1.8  has fixed the problem, sorry to have
> distracted you.
>
> On Thu, Jul 16, 2015 at 11:02 PM, Stephen Cameron <
> [email protected]> wrote:
>
> > Agreed its apparently not in the classpath, but I can see that the jar is
> > present, namely
> >
> >
> C:\Users\stevec\.m2\repository\org\isisaddons\module\togglz\isis-module-togglz-glue\1.9.0-SNAPSHOT\isis-module-togglz-glue-1.9.0-SNAPSHOT.jar
> >
> > That is the path copied from Maven dependencies list and the jar is
> > present.
> >
> > I don't think its got anything to do with isis.properties, how?
> >
> > here is the section in pom.xml dependancies
> >
> >         <!-- dependency of security module -->
> >         <dependency>
> >             <groupId>org.mindrot</groupId>
> >             <artifactId>jbcrypt</artifactId>
> >         </dependency>
> >
> >         <dependency>
> >             <groupId>org.isisaddons.module.togglz</groupId>
> >             <artifactId>isis-module-togglz-glue</artifactId>
> >         </dependency>
> >
> >         <dependency>
> >             <groupId>org.togglz</groupId>
> >             <artifactId>togglz-servlet</artifactId>
> >         </dependency>
> >
> >         <dependency>
> >             <groupId>org.togglz</groupId>
> >             <artifactId>togglz-console</artifactId>
> >         </dependency>
> >
> > I must be doing something else wrong, maybe Java version is incorrect? I
> > am using 1.7 and did change it from 1.8 in the parent pom.xml.
> >
> > Might have been lazy of me, but I was thinking of hosting support for
> 1.8.
> >
> >
> >
> >
> > On Thu, Jul 16, 2015 at 10:34 PM, Martin Grigorov <[email protected]>
> > wrote:
> >
> >> Hi,
> >>
> >> The exception looks like you have an entry in your isis.properties that
> >> mentions this class but you don't have the class in the classpath.
> >> You need https://github.com/isisaddons/isis-module-togglz if you want
> to
> >> use it. If you don't need it then remove it from isis.properties.
> >>
> >> Martin Grigorov
> >> Freelancer. Available for hire!
> >> Wicket Training and Consulting
> >> https://twitter.com/mtgrigorov
> >>
> >> On Thu, Jul 16, 2015 at 3:29 PM, Stephen Cameron <
> >> [email protected]
> >> > wrote:
> >>
> >> > Second thoughts, it probably did not have ever work with Isis 1.9.
> >> >
> >> > On Thu, Jul 16, 2015 at 10:12 PM, Stephen Cameron <
> >> > [email protected]> wrote:
> >> >
> >> > > Hi,
> >> > >
> >> > > I want to create a fixture script and am copying the todoitems
> >> examples.
> >> > > However I get the following error when I replace a FixtureScript
> that
> >> > > worked (modified from the simpleapp demo) with my new one.
> >> > >
> >> > > The org.isisaddons.module.togglz.glue.seed.TogglzModuleAdminRole
> >> seems to
> >> > > be present in the jar and war files generated in my webapp maven
> >> install,
> >> > > but when I execute jetty:run I get the following error when the
> >> webapp is
> >> > > starting:
> >> > >
> >> > > org.reflections.ReflectionsException: could not get type for name
> >> > > org.isisaddons.module.togglz.glue.seed.TogglzModuleAdminRole
> >> > >     at
> >> org.reflections.ReflectionUtils.forName(ReflectionUtils.java:389)
> >> > >     at
> >> org.reflections.ReflectionUtils.forNames(ReflectionUtils.java:398)
> >> > >     at
> org.reflections.Reflections.getSubTypesOf(Reflections.java:357)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.isis.applib.services.classdiscovery.ClassDiscoveryServiceUsingReflections.findSubTypesOfClasses(ClassDiscoveryServiceUsingReflections.java:82)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.isis.applib.fixturescripts.FixtureScripts.findSubTypesOfClasses(FixtureScripts.java:238)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.isis.applib.fixturescripts.FixtureScripts.findAndInstantiateFixtureScripts(FixtureScripts.java:215)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.isis.applib.fixturescripts.FixtureScripts.getFixtureScriptList(FixtureScripts.java:207)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.isis.applib.fixturescripts.FixtureScripts.disableRunFixtureScript(FixtureScripts.java:306)
> >> > >     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)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.isis.core.metamodel.adapter.ObjectAdapter$InvokeUtils.invoke(ObjectAdapter.java:358)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.isis.core.metamodel.adapter.ObjectAdapter$InvokeUtils.invoke(ObjectAdapter.java:362)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.isis.core.metamodel.facets.members.disabled.method.DisableForContextFacetViaMethod.disables(DisableForContextFacetViaMethod.java:83)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.isis.core.metamodel.interactions.InteractionUtils.isUsableResult(InteractionUtils.java:50)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.isis.core.metamodel.specloader.specimpl.ObjectMemberAbstract.isUsableResult(ObjectMemberAbstract.java:260)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.isis.core.metamodel.specloader.specimpl.ObjectMemberAbstract.isUsable(ObjectMemberAbstract.java:255)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.isis.viewer.wicket.ui.components.actionmenu.serviceactions.CssMenuItem.newSubMenuItem(CssMenuItem.java:320)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.isis.viewer.wicket.ui.components.actionmenu.serviceactions.ServiceActionUtil.buildMenuItems(ServiceActionUtil.java:111)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.isis.viewer.wicket.ui.components.actionmenu.serviceactions.ServiceActionUtil.buildMenu(ServiceActionUtil.java:87)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.isis.viewer.wicket.ui.components.actionmenu.serviceactions.ServiceActionsPanelFactory.createComponent(ServiceActionsPanelFactory.java:58)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.isis.viewer.wicket.viewer.registries.components.ComponentFactoryRegistryDefault.createComponent(ComponentFactoryRegistryDefault.java:128)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.isis.viewer.wicket.ui.components.header.HeaderPanel.addMenuBar(HeaderPanel.java:140)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.isis.viewer.wicket.ui.components.header.HeaderPanel.addServiceActionMenuBars(HeaderPanel.java:133)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.isis.viewer.wicket.ui.components.header.HeaderPanel.onInitialize(HeaderPanel.java:78)
> >> > >     at
> org.apache.wicket.Component.fireInitialize(Component.java:876)
> >> > >     at
> >> > >
> >> org.apache.wicket.MarkupContainer$3.component(MarkupContainer.java:967)
> >> > >     at
> >> > >
> >> org.apache.wicket.MarkupContainer$3.component(MarkupContainer.java:963)
> >> > >     at
> >> org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:144)
> >> > >     at
> >> org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:162)
> >> > >     at
> >> org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:123)
> >> > >     at
> >> org.apache.wicket.util.visit.Visits.visitChildren(Visits.java:192)
> >> > >     at
> >> > >
> >>
> org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:875)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.wicket.MarkupContainer.internalInitialize(MarkupContainer.java:962)
> >> > >     at
> org.apache.wicket.Page.internalPrepareForRender(Page.java:238)
> >> > >     at org.apache.wicket.Component.render(Component.java:2268)
> >> > >     at org.apache.wicket.Page.renderPage(Page.java:1024)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:129)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:228)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:175)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282)
> >> > >     at
> >> > >
> >> >
> >>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.isis.core.webapp.diagnostics.IsisLogOnExceptionFilter.doFilter(IsisLogOnExceptionFilter.java:52)
> >> > >     at
> >> > >
> >> >
> >>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
> >> > >     at
> >> > >
> >> >
> >>
> org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
> >> > >     at
> >> > >
> >> >
> >>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
> >> > >     at
> >> > >
> >> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
> >> > >     at
> >> > >
> >> >
> >>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> >> > >     at
> >> > >
> >> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> >> > >     at
> >> > >
> >> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
> >> > >     at
> >> > >
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
> >> > >     at
> >> > >
> >> >
> >>
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> >> > >     at
> >> > >
> >> >
> >>
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> >> > >     at
> >> > >
> >> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> >> > >     at org.mortbay.jetty.Server.handle(Server.java:326)
> >> > >     at
> >> > >
> >> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
> >> > >     at
> >> > >
> >> >
> >>
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
> >> > >     at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
> >> > >     at
> >> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
> >> > >     at
> >> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> >> > >     at
> >> > >
> >> >
> >>
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
> >> > >     at
> >> > >
> >> >
> >>
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> >> > >
> >> >
> >>
> >
> >
>

Reply via email to