Hi Adam,

I got the Scimpi viewer to run earlier this evening from within Eclipse 
(Juno) by using the IDE launcher in the, for example:
claims-viewer-scimpi module:
In "/ide/eclipse/launch" there is a file "claims-viewer-scimpi.launch".
Right-click on the file and choose between "Debug as.." or "Run as.." 
option "1 claims-viewer-scimpi".

If you get an Eclipse error about "... references non-existing project..", 
then edit the .launch file:
Find the line that starts with:

<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="

and edit the value string to match the project name as it appears in 
your workspace (e.g. I had to change the quickstart_scimpi_nosql 
value to 
"quickstart_scimpi_nosql-viewer-scimpi")

I also had to edit the isis.properties to disable the authentication:
from:
isis.authentication=file
to
#isis.authentication=file

It seems that the file authentication module has not been added to the 
project.

It seems that there is something "generic" about the isis.properties, as 
the file is set up to use the in-memory object store whereas the 
project name indicates that nosql should be used...


Anyway, hope something in the  above helps you somehow..

Regards,
Kevin

On 17 Feb 2013 at 2:50, Adam Howard wrote:

> I want to start getting the @Aggregated annotation working in the Wicket
> viewer. I synced my isis clone and started looking at the source and saw
> that the only viewer that uses it now is Scimpi. So I wanted to fire up the
> Scimpi viewer to see what's done there but I had problems adding it to my
> project[1]. When running mvn jetty:run I get the following exception:
> 
> 2013-02-17 02:27:40.971:WARN:/onaboat-viewer-scimpi:unavailable
> org.apache.isis.core.commons.config.IsisConfigurationException: No
> configuration available
>     at
> org.apache.isis.runtimes.dflt.runtime.system.context.IsisContext.getConfiguration(IsisContext.java:320)
>     at
> org.apache.isis.viewer.scimpi.dispatcher.debug.DebugUsers.initialize(DebugUsers.java:49)
>     at
> org.apache.isis.viewer.scimpi.servlet.DispatcherServlet.init(DispatcherServlet.java:85)
>     at javax.servlet.GenericServlet.init(GenericServlet.java:241)
>     ...
> 
> I thought maybe Scimpi (at 0.2.0-incubating) was incompatible with the
> 1.1.0 release of Isis so I went back to Dan's revenue.ie demo[2] and after
> turning off the json viewer I was able to start up using the jetty-console
> war. But, when I go to localhost:8080/index.shtml I get the following
> exception:
> 
> Error while processing swf:services element at
> /scimpi/style/template.shtml:25 - null
> ...
> Caused by: java.lang.NullPointerException
>     at
> org.apache.isis.viewer.scimpi.dispatcher.context.RequestContext.mappedObject(RequestContext.java:194)
>     at
> org.apache.isis.viewer.scimpi.dispatcher.context.RequestContext.getMappedObject(RequestContext.java:151)
>     at
> org.apache.isis.viewer.scimpi.dispatcher.view.action.Methods.writeMethods(Methods.java:97)
>     at
> org.apache.isis.viewer.scimpi.dispatcher.view.action.Methods.writeMethods(Methods.java:73)
>     at
> org.apache.isis.viewer.scimpi.dispatcher.view.action.Services.process(Services.java:50)
>     at
> org.apache.isis.viewer.scimpi.dispatcher.processor.Request.process(Request.java:149)
>     ...
> 
> So I don't know if anyone is running the Scimpi viewer with a current Isis
> release or if anyone happens to know how Scimpi handles @Aggregated objects
> (Rob?) but I'd like to make Wicket handle them similarly (fully embedded
> fields?, fieldset to distinguish grouping?, etc.)
> 
> Thanks.
> --
> Adam
> 
> [1] https://github.com/adamhoward/onaboat/tree/master/viewer-scimpi
> [2] https://github.com/danhaywood/apacheisis-demo
> 

Reply via email to