I didn't read far enough - but it didn't help, either.

I can register and create a user, which again, works with htmlviewer, 
but I still can't login with the REST client.

I'm doing a GET on http://localhost:8080/ with the authorisation header 
set.

On 1 Dec 2011 at 10:59, Kevin Meyer - KMZ wrote:

> Hi Dan,
> 
> Is this demo the same as what is built in:
> trunk/examples/onlinedemo
> Specifically:
> onlinedemo-webapp-0.2.0-incubating-SNAPSHOT-jetty-console.war 
> 
> When I run that app, I get the picture with the two bugs, two buttons 
> and a port entry box...
> 
> Anyway - I can login with standard "sven/pass" via the HTML viewer, 
> but I can't authenticate with the JSON viewer.
> 
> I'm assuming basic auth, which my JSON viewer encodes as:
> Authorization Basic c3ZlbjpwYXNz
> 
> Response header: 401 Unauthorised
> Body: 
> {
>   "message" : null,
>   "stackTrace" : [ 
> "org.apache.isis.viewer.json.viewer.JsonApplicationException.create(JsonApplicationException.java:39)",
>  
> "org.apache.isis.viewer.json.viewer.JsonApplicationException.create(JsonApplicationException.java:35)",
>  
> "org.apache.isis.viewer.json.viewer.JsonApplicationException.create(JsonApplicationException.java:27)",
>  
> "org.apache.isis.viewer.json.viewer.resources.home.HomePageResourceServerside.notAuthenticated(HomePageResourceServerside.java:63)",
>  "sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)", 
> "sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)",
>  
> "sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)",
>  "java.lang.reflect.Method.invoke(Method.java:597)", 
> "org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)",
>  
> "org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255)",
>  "org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220)", 
> "org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209)", 
> "org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519)",
>  
> "org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496)",
>  
> "org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)",
>  
> "org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)",
>  
> "org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)",
>  
> "org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)",
>  "javax.servlet.http.HttpServlet.service(HttpServlet.java:820)", 
> "org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)", 
> "org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1355)",
>  
> "org.apache.isis.runtimes.dflt.webapp.IsisSessionFilter$SessionState$1.handle(IsisSessionFilter.java:108)",
>  "org.apache.isis.runtimes.dflt.webapp.IsisSession
>   "httpStatusCode" : 401,
>   "causedBy" : null
> }
> 
> 

Reply via email to