3 Replies Latest reply on Feb 6, 2014 4:56 AM by akrambenaissi

    ModeShape explorer, ModeShape 3.7.0, EAP 6.1, can't access sample repository

    andyredhead

      Hi,

       

      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:

      20140108-modeshape-explorer-sample-error.png

      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:

       

      20140108-modeshape-sample-repo-rest.png

       

      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

        • 1. Re: ModeShape explorer, ModeShape 3.7.0, EAP 6.1, can't access sample repository
          rhauch

          Try using "jcr/sample" for the repository name in the repository explorer's login window.

          • 2. Re: ModeShape explorer, ModeShape 3.7.0, EAP 6.1, can't access sample repository
            andyredhead

            Hi,

             

            That works perfectly, thanks

             

            Need a workspace of "default" as well.

             

            Cheers, Andy

            • 3. Re: Re: ModeShape explorer, ModeShape 3.7.0, EAP 6.1, can't access sample repository
              akrambenaissi

              Hi all,

               

              sorry for re-opening the subject, but I am facing the following issue while doing this same scenario with modeshape 3.7.1. The provided modeshape-explorer seems to be 3.6 .

              10:55:26,685 ERROR [stderr] (http-/127.0.0.1:8080-1) org.modeshape.web.jcr.NoSuchRepositoryException: No repository 'jcr/sample' was found.
              10:55:26,687 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.modeshape.web.jcr.RepositoryManager.getRepository(RepositoryManager.java:142)
              10:55:26,688 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.modeshape.web.server.JcrServiceImpl.login(JcrServiceImpl.java:93)
              10:55:26,688 ERROR [stderr] (http-/127.0.0.1:8080-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              10:55:26,689 ERROR [stderr] (http-/127.0.0.1:8080-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              10:55:26,689 ERROR [stderr] (http-/127.0.0.1:8080-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              10:55:26,689 ERROR [stderr] (http-/127.0.0.1:8080-1) at java.lang.reflect.Method.invoke(Method.java:601)
              10:55:26,689 ERROR [stderr] (http-/127.0.0.1:8080-1) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
              10:55:26,690 ERROR [stderr] (http-/127.0.0.1:8080-1) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
              10:55:26,690 ERROR [stderr] (http-/127.0.0.1:8080-1) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
              10:55:26,690 ERROR [stderr] (http-/127.0.0.1:8080-1) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
              10:55:26,691 ERROR [stderr] (http-/127.0.0.1:8080-1) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
              10:55:26,691 ERROR [stderr] (http-/127.0.0.1:8080-1) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
              10:55:26,691 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
              10:55:26,692 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
              10:55:26,692 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
              10:55:26,692 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)
              10:55:26,693 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)
              10:55:26,693 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)
              10:55:26,693 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
              10:55:26,694 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
              10:55:26,694 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)
              10:55:26,694 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
              10:55:26,695 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
              10:55:26,695 ERROR [stderr] (http-/127.0.0.1:8080-1) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)
              10:55:26,695 ERROR [stderr] (http-/127.0.0.1:8080-1) at java.lang.Thread.run(Thread.java:722)
              10:55:26,803 INFO  [org.infinispan.factories.GlobalComponentRegistry] (http-/127.0.0.1:8080-1) ISPN000128: Infinispan version: Infinispan 'Delirium' 5.2.7.Final
              10:55:27,611 INFO  [org.infinispan.jmx.CacheJmxRegistration] (http-/127.0.0.1:8080-1) ISPN000031: MBeans were successfully registered to the platform MBean server.
              10:55:27,612 INFO  [org.jboss.as.clustering.infinispan] (http-/127.0.0.1:8080-1) JBAS010281: Started sample cache from modeshape container
              10:55:28,195 INFO  [org.infinispan.jmx.CacheJmxRegistration] (http-/127.0.0.1:8080-1) ISPN000031: MBeans were successfully registered to the platform MBean server.
              10:55:28,197 INFO  [org.jboss.as.clustering.infinispan] (http-/127.0.0.1:8080-1) JBAS010281: Started sample/system cache from modeshape container
              10:55:29,055 INFO  [org.hibernate.search.Version] (http-/127.0.0.1:8080-1) HSEARCH000034: Hibernate Search 4.3.0.Final
              10:55:29,086 INFO  [org.hibernate.annotations.common.Version] (http-/127.0.0.1:8080-1) HCANN000001: Hibernate Commons Annotations {4.0.1.Final-redhat-2}
              10:55:29,478 INFO  [org.infinispan.jmx.CacheJmxRegistration] (http-/127.0.0.1:8080-1) ISPN000031: MBeans were successfully registered to the platform MBean server.
              10:55:29,478 INFO  [org.jboss.as.clustering.infinispan] (http-/127.0.0.1:8080-1) JBAS010281: Started sample/default cache from modeshape container
              10:55:30,050 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/modeshape-explorer]] (http-/127.0.0.1:8080-2) Exception while dispatching incoming RPC call: com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract org.modeshape.web.shared.JcrRepositoryDescriptor org.modeshape.web.client.JcrService.repositoryInfo()' threw an unexpected exception: java.lang.NullPointerException
                at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:389) [gwt-servlet-2.5.1.jar:]
                at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:579) [gwt-servlet-2.5.1.jar:]
                at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208) [gwt-servlet-2.5.1.jar:]
                at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248) [gwt-servlet-2.5.1.jar:]
                at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) [gwt-servlet-2.5.1.jar:]
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
                at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
                at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_05]
              Caused by: java.lang.NullPointerException
                at org.modeshape.web.server.JcrServiceImpl.repositoryInfo(JcrServiceImpl.java:335) [classes:]
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_05]
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_05]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_05]
                at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_05]
                at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561) [gwt-servlet-2.5.1.jar:]
                ... 18 more
              
              
              10:55:30,055 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/modeshape-explorer]] (http-/127.0.0.1:8080-3) Exception while dispatching incoming RPC call: com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String[] org.modeshape.web.client.JcrService.supportedQueryLanguages()' threw an unexpected exception: java.lang.NullPointerException
                at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:389) [gwt-servlet-2.5.1.jar:]
                at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:579) [gwt-servlet-2.5.1.jar:]
                at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208) [gwt-servlet-2.5.1.jar:]
                at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248) [gwt-servlet-2.5.1.jar:]
                at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) [gwt-servlet-2.5.1.jar:]
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
                at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920) [jbossweb-7.2.2.Final-redhat-1.jar:7.2.2.Final-redhat-1]
                at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_05]
              Caused by: java.lang.NullPointerException
                at org.modeshape.web.server.JcrServiceImpl.supportedQueryLanguages(JcrServiceImpl.java:385) [classes:]
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_05]
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_05]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_05]
                at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_05]
                at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561) [gwt-servlet-2.5.1.jar:]
                ... 18 more
              

               

              And after logging successfully I am receving a popup "Session has expired".

              Untitled.tiff