Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-1005

NSS does not start from command line: bigdata-war/src not found.

    Details

      Description

      This issue was also reported on the developers list in the context of the scale-out cluster. The problem can be produced by running the ant script to start the bigdata server for the lubm benchmark.

           [java] INFO: com.bigdata.util.config.LogUtil: Configure and watch: file:src/resources/logging/log4j.properties
           [java] WARN : 0      main org.eclipse.jetty.webapp.WebInfConfiguration.unpack(WebInfConfiguration.java:492): Web application not found bigdata-war/src
           [java] WARN : 8      main org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:506): Failed startup of context o.e.j.w.WebAppContext@67e1a796{/bigdata,null,null}{bigdata-war/src}
           [java] java.io.FileNotFoundException: bigdata-war/src
           [java] 	at org.eclipse.jetty.webapp.WebInfConfiguration.unpack(WebInfConfiguration.java:493)
           [java] 	at org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:72)
           [java] 	at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:460)
           [java] 	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:496)
           [java] 	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
           [java] 	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:125)
           [java] 	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:107)
           [java] 	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:60)
           [java] 	at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:154)
           [java] 	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
           [java] 	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:125)
           [java] 	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:107)
           [java] 	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:60)
           [java] 	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
           [java] 	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:125)
           [java] 	at org.eclipse.jetty.server.Server.start(Server.java:358)
           [java] 	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:107)
           [java] 	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:60)
           [java] 	at org.eclipse.jetty.server.Server.doStart(Server.java:325)
           [java] 	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
           [java] 	at com.bigdata.rdf.sail.webapp.NanoSparqlServer.main(NanoSparqlServer.java:339)
           [java] serviceURL: http://192.168.1.11:80
      

      The problem appears only in the main development branch after the RDR merge and prior to the 1.3.1 release. The problem is not present in any released version.

        Activity

        Hide
        bryanthompson bryanthompson added a comment -

        Ok. I do see the bigdata-war/src directory structure in the bigdata.jar:

        jar tvf ant-build/bigdata-1.3.0-20140515.jar | grep bigdata-war
             0 Thu May 15 11:54:10 EDT 2014 bigdata-war/
             0 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/
             0 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/WEB-INF/
             0 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/WEB-INF/classes/
             0 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/
             0 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/css/
             0 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/css/vendor/
             0 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/images/
             0 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/
             0 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/
             0 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/cm-addons/
             0 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/cm-modes/
          1577 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/WEB-INF/GraphStore.properties
          1577 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/WEB-INF/RWStore.properties
          3742 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/WEB-INF/classes/log4j.properties
          9992 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/WEB-INF/web.xml
          5896 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/css/style.css
          6342 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/css/vendor/codemirror.css
          1406 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/favicon.ico
         11748 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/images/logo.png
          8495 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/index.html
          5884 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/indexLBS.html
          1843 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/cm-addons/placeholder.js
         25005 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/cm-modes/javascript.js
          6515 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/cm-modes/ntriples.js
          5168 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/cm-modes/sparql.js
          4698 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/cm-modes/turtle.js
         12221 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/cm-modes/xml.js
        300891 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/codemirror.js
          3569 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/jquery.hotkeys.js
         93100 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/jquery.min.js
         41875 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/workbench.js
          7827 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/new.html
          5712 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/old.html
          4263 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/result-to-html.xsl
          8828 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/jetty.xml
        
        Show
        bryanthompson bryanthompson added a comment - Ok. I do see the bigdata-war/src directory structure in the bigdata.jar: jar tvf ant-build/bigdata-1.3.0-20140515.jar | grep bigdata-war 0 Thu May 15 11:54:10 EDT 2014 bigdata-war/ 0 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/ 0 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/WEB-INF/ 0 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/WEB-INF/classes/ 0 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/ 0 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/css/ 0 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/css/vendor/ 0 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/images/ 0 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/ 0 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/ 0 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/cm-addons/ 0 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/cm-modes/ 1577 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/WEB-INF/GraphStore.properties 1577 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/WEB-INF/RWStore.properties 3742 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/WEB-INF/classes/log4j.properties 9992 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/WEB-INF/web.xml 5896 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/css/style.css 6342 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/css/vendor/codemirror.css 1406 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/favicon.ico 11748 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/images/logo.png 8495 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/index.html 5884 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/indexLBS.html 1843 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/cm-addons/placeholder.js 25005 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/cm-modes/javascript.js 6515 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/cm-modes/ntriples.js 5168 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/cm-modes/sparql.js 4698 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/cm-modes/turtle.js 12221 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/cm-modes/xml.js 300891 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/codemirror.js 3569 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/jquery.hotkeys.js 93100 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/vendor/jquery.min.js 41875 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/js/workbench.js 7827 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/new.html 5712 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/old.html 4263 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/html/result-to-html.xsl 8828 Thu May 15 11:54:10 EDT 2014 bigdata-war/src/jetty.xml
        Hide
        bryanthompson bryanthompson added a comment -

        Workaround:

        -Djetty.resourceBase=jar:file:../BIGDATA_RELEASE_1_3_0/ant-build/bigdata-1.3.0.jar!/bigdata-war/src

        The old NanoSparqlServer code had logic to explicitly locate the WEB-INF/web.xml file and then report the URL for ../.. above that directory. I am going to re-create similar logic to provide the default value for jetty.resourceBase if that variable is not specified on the command line. This should recover the historical behavior and allow the NSS to operate against the bigdata-war/src web app packaged within the JAR.

        Show
        bryanthompson bryanthompson added a comment - Workaround: -Djetty.resourceBase=jar: file:../BIGDATA_RELEASE_1_3_0/ant-build/bigdata-1.3.0.jar!/bigdata-war/src The old NanoSparqlServer code had logic to explicitly locate the WEB-INF/web.xml file and then report the URL for ../.. above that directory. I am going to re-create similar logic to provide the default value for jetty.resourceBase if that variable is not specified on the command line. This should recover the historical behavior and allow the NSS to operate against the bigdata-war/src web app packaged within the JAR.
        Hide
        bryanthompson bryanthompson added a comment -

        Working on BLZG-1005 (NSS does not start from command line: bigdata-war/src not found).

        NanoSparqlServer: code has been modified to explicitly search (if jetty.resourceBase is not defined) (a) the local file system; (b) the classpath; and then (c) default to whatever is the default value in jetty.xml for the jetty.resourceBase property.

        TestNSSHealthCheck: added a basic test suite for checking the health of an NSS instance once deployed. This is a starting point for CI based tests of the various deployment models.

        build.xml: modified to illustrate a possible way of performing the CI deployment tests. More needs to be done here!

        Committed revision r8351.

        Show
        bryanthompson bryanthompson added a comment - Working on BLZG-1005 (NSS does not start from command line: bigdata-war/src not found). NanoSparqlServer: code has been modified to explicitly search (if jetty.resourceBase is not defined) (a) the local file system; (b) the classpath; and then (c) default to whatever is the default value in jetty.xml for the jetty.resourceBase property. TestNSSHealthCheck: added a basic test suite for checking the health of an NSS instance once deployed. This is a starting point for CI based tests of the various deployment models. build.xml: modified to illustrate a possible way of performing the CI deployment tests. More needs to be done here! Committed revision r8351.
        Hide
        bryanthompson bryanthompson added a comment -

        Further modifications to the NSS to start correctly with the embedded web app found along the classpath. This has been tested locally. We actually need to check different locations for eclipse and a deployed instance using a jar.

        Committed revision r8352.

        Show
        bryanthompson bryanthompson added a comment - Further modifications to the NSS to start correctly with the embedded web app found along the classpath. This has been tested locally. We actually need to check different locations for eclipse and a deployed instance using a jar. Committed revision r8352.
        Hide
        bryanthompson bryanthompson added a comment -

        Works.

        Show
        bryanthompson bryanthompson added a comment - Works.

          People

          • Assignee:
            bryanthompson bryanthompson
            Reporter:
            bryanthompson bryanthompson
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: