ModeShape explorer, ModeShape 3.7.0, EAP 6.1, can't access sample repository
andyredhead Jan 8, 2014 7:21 AMHi,
I'm very new to modeshape, so it's entirely possible I'm doing something stupid...
On my Win7 64bit laptop I have installed a fresh instance of EAP 6.1 and unzipped the modeshape eap starter kit into the root directory.
I start eap standalone with -c standalone-modeshape.xml
I point a browser at "http://localhost:8080/modeshape-explorer/", which brings up a login screen asking for a username/password and a repository name...
I use the admin account from the modeshape-users.properties for the credentials and I guessed at "sample" for the repository, this gave me a popup saying:
"No repository 'sample' was found. or sample -- service jboss.naming.context.java.sample"
Screenshot:
In the server console there is the stack trace:
11:51:52,721 ERROR [stderr] (http-/127.0.0.1:8080-3) org.modeshape.web.jcr.NoSuchRepositoryException: No repository 'sample' was found.
11:51:52,722 ERROR [stderr] (http-/127.0.0.1:8080-3) at org.modeshape.web.jcr.RepositoryManager.getRepository(RepositoryManager.java:142)
11:51:52,723 ERROR [stderr] (http-/127.0.0.1:8080-3) at org.modeshape.web.server.JcrServiceImpl.login(JcrServiceImpl.java:93)
11:51:52,723 ERROR [stderr] (http-/127.0.0.1:8080-3) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:51:52,724 ERROR [stderr] (http-/127.0.0.1:8080-3) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
11:51:52,724 ERROR [stderr] (http-/127.0.0.1:8080-3) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
11:51:52,725 ERROR [stderr] (http-/127.0.0.1:8080-3) at java.lang.reflect.Method.invoke(Method.java:601)
11:51:52,725 ERROR [stderr] (http-/127.0.0.1:8080-3) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
11:51:52,728 ERROR [stderr] (http-/127.0.0.1:8080-3) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
11:51:52,729 ERROR [stderr] (http-/127.0.0.1:8080-3) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
11:51:52,729 ERROR [stderr] (http-/127.0.0.1:8080-3) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
11:51:52,731 ERROR [stderr] (http-/127.0.0.1:8080-3) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
11:51:52,731 ERROR [stderr] (http-/127.0.0.1:8080-3) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
11:51:52,731 ERROR [stderr] (http-/127.0.0.1:8080-3) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
11:51:52,736 ERROR [stderr] (http-/127.0.0.1:8080-3) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
11:51:52,736 ERROR [stderr] (http-/127.0.0.1:8080-3) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
11:51:52,737 ERROR [stderr] (http-/127.0.0.1:8080-3) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)
11:51:52,742 ERROR [stderr] (http-/127.0.0.1:8080-3) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)
11:51:52,743 ERROR [stderr] (http-/127.0.0.1:8080-3) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)
11:51:52,743 ERROR [stderr] (http-/127.0.0.1:8080-3) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
11:51:52,744 ERROR [stderr] (http-/127.0.0.1:8080-3) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
11:51:52,744 ERROR [stderr] (http-/127.0.0.1:8080-3) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)
11:51:52,745 ERROR [stderr] (http-/127.0.0.1:8080-3) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
11:51:52,747 ERROR [stderr] (http-/127.0.0.1:8080-3) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
11:51:52,747 ERROR [stderr] (http-/127.0.0.1:8080-3) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)
11:51:52,747 ERROR [stderr] (http-/127.0.0.1:8080-3) at java.lang.Thread.run(Thread.java:722)
I used the repository name "sample" because using the rest interface I can see what I thought was a repository called sample:
Any hints or pointers as to what I need to do to use the explorer application to browse a modeshape repository will be gratefully received.
(I tried all this with EAP6.1/ModeShape 3.6.0 and got the same results)
Cheers, Andy