You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by Christian Steinebach <Ch...@marintek.sintef.no> on 2013/05/08 15:53:32 UTC

LogonAsSvenFixture?

Hi!

I added the LogonAsSvenFixture to the list of isis.services in isis.properties.
I thought that would do an automatic login as user sven.
I use the unmoidified quickstart application
But I get an exception during start-up

    [exec] 11345 [Thread-4] WARN org.eclipse.jetty.util.component.AbstractLifeCycle - FAILED WicketFilter: com.google.inject.ProvisionException: Guice provision errors:
     [exec] 
     [exec] 1) Error in custom provider, org.apache.isis.core.metamodel.spec.ObjectSpecificationException: Service object fixture.LogonAsSvenFixture should have no fields, but has: roles, type, username
     [exec]   at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:138)
     [exec]   at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:138)
     [exec]   while locating org.apache.isis.core.runtime.system.IsisSystem
     [exec]     for field at org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.system(IsisWicketApplication.java:133)
     [exec]   while locating app.QuickStartApplication

Regards
     Christian

Re: LogonAsSvenFixture?

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Yes, I saw.  Thanks (I suppose :-)


On 8 May 2013 15:37, Christian Steinebach <
Christian.Steinebach@marintek.sintef.no> wrote:

> Hi Dan,
>
> It's called when added to isis.fixtures but doesn't logon Sven.
> I assigned a ticket, https://issues.apache.org/jira/browse/ISIS-399
>
> Regards
>       Christian
> ________________________________________
> From: Dan Haywood [dan@haywood-associates.co.uk]
> Sent: Wednesday, May 08, 2013 3:56 PM
> To: users
> Subject: Re: LogonAsSvenFixture?
>
> Er, no.  Two reasons.
>
> One, it's a fixture, not a service.  So it should be registered in
> isis.fixtures (there should be a key in isis.properties, somewhere).
>
> Two. Although what you're asking for is reasonable, and works with some of
> the other viewers, I'm not completely certain it works on Wicket viewer.
>  If it doesn't, please do raise a ticket so it doesn't get lost as a
> requirement.
>
> Cheers
> Dan
>
>
>
> On 8 May 2013 14:53, Christian Steinebach <
> Christian.Steinebach@marintek.sintef.no> wrote:
>
> > Hi!
> >
> > I added the LogonAsSvenFixture to the list of isis.services in
> > isis.properties.
> > I thought that would do an automatic login as user sven.
> > I use the unmoidified quickstart application
> > But I get an exception during start-up
> >
> >     [exec] 11345 [Thread-4] WARN
> > org.eclipse.jetty.util.component.AbstractLifeCycle - FAILED WicketFilter:
> > com.google.inject.ProvisionException: Guice provision errors:
> >      [exec]
> >      [exec] 1) Error in custom provider,
> > org.apache.isis.core.metamodel.spec.ObjectSpecificationException: Service
> > object fixture.LogonAsSvenFixture should have no fields, but has: roles,
> > type, username
> >      [exec]   at
> >
> org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:138)
> >      [exec]   at
> >
> org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:138)
> >      [exec]   while locating
> org.apache.isis.core.runtime.system.IsisSystem
> >      [exec]     for field at
> >
> org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.system(IsisWicketApplication.java:133)
> >      [exec]   while locating app.QuickStartApplication
> >
> > Regards
> >      Christian
>

RE: LogonAsSvenFixture?

Posted by Christian Steinebach <Ch...@marintek.sintef.no>.
Hi Dan,

It's called when added to isis.fixtures but doesn't logon Sven.
I assigned a ticket, https://issues.apache.org/jira/browse/ISIS-399

Regards
      Christian
________________________________________
From: Dan Haywood [dan@haywood-associates.co.uk]
Sent: Wednesday, May 08, 2013 3:56 PM
To: users
Subject: Re: LogonAsSvenFixture?

Er, no.  Two reasons.

One, it's a fixture, not a service.  So it should be registered in
isis.fixtures (there should be a key in isis.properties, somewhere).

Two. Although what you're asking for is reasonable, and works with some of
the other viewers, I'm not completely certain it works on Wicket viewer.
 If it doesn't, please do raise a ticket so it doesn't get lost as a
requirement.

Cheers
Dan



On 8 May 2013 14:53, Christian Steinebach <
Christian.Steinebach@marintek.sintef.no> wrote:

> Hi!
>
> I added the LogonAsSvenFixture to the list of isis.services in
> isis.properties.
> I thought that would do an automatic login as user sven.
> I use the unmoidified quickstart application
> But I get an exception during start-up
>
>     [exec] 11345 [Thread-4] WARN
> org.eclipse.jetty.util.component.AbstractLifeCycle - FAILED WicketFilter:
> com.google.inject.ProvisionException: Guice provision errors:
>      [exec]
>      [exec] 1) Error in custom provider,
> org.apache.isis.core.metamodel.spec.ObjectSpecificationException: Service
> object fixture.LogonAsSvenFixture should have no fields, but has: roles,
> type, username
>      [exec]   at
> org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:138)
>      [exec]   at
> org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:138)
>      [exec]   while locating org.apache.isis.core.runtime.system.IsisSystem
>      [exec]     for field at
> org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.system(IsisWicketApplication.java:133)
>      [exec]   while locating app.QuickStartApplication
>
> Regards
>      Christian

Re: LogonAsSvenFixture?

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Er, no.  Two reasons.

One, it's a fixture, not a service.  So it should be registered in
isis.fixtures (there should be a key in isis.properties, somewhere).

Two. Although what you're asking for is reasonable, and works with some of
the other viewers, I'm not completely certain it works on Wicket viewer.
 If it doesn't, please do raise a ticket so it doesn't get lost as a
requirement.

Cheers
Dan



On 8 May 2013 14:53, Christian Steinebach <
Christian.Steinebach@marintek.sintef.no> wrote:

> Hi!
>
> I added the LogonAsSvenFixture to the list of isis.services in
> isis.properties.
> I thought that would do an automatic login as user sven.
> I use the unmoidified quickstart application
> But I get an exception during start-up
>
>     [exec] 11345 [Thread-4] WARN
> org.eclipse.jetty.util.component.AbstractLifeCycle - FAILED WicketFilter:
> com.google.inject.ProvisionException: Guice provision errors:
>      [exec]
>      [exec] 1) Error in custom provider,
> org.apache.isis.core.metamodel.spec.ObjectSpecificationException: Service
> object fixture.LogonAsSvenFixture should have no fields, but has: roles,
> type, username
>      [exec]   at
> org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:138)
>      [exec]   at
> org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:138)
>      [exec]   while locating org.apache.isis.core.runtime.system.IsisSystem
>      [exec]     for field at
> org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.system(IsisWicketApplication.java:133)
>      [exec]   while locating app.QuickStartApplication
>
> Regards
>      Christian