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

ProxyServlet in web.xml breaks tomcat WAR (HA LBS)

    Details

      Description

      We do not bundle jetty with the WAR distribution. The existence of the HALoadBalancerServlet in web.xml drags in the jetty ProxyServlet which then results in a classpath error:

      SEVERE: Error deploying web application archive bigdata.war
      java.lang.NoClassDefFoundError: org/eclipse/jetty/proxy/ProxyServlet
      	at java.lang.ClassLoader.defineClass1(Native Method)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:792)
      	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      	at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2854)
      	at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)
      	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
      	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
      	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1128)
      	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
      	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
      	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
      	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
      	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
      	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
      	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
      	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
      	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
      	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
      	at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
      	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
      	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
      	at org.apache.catalina.core.StandardService.start(StandardService.java:525)
      	at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
      	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
      Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.proxy.ProxyServlet
      	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
      	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
      	... 33 more
      

      We probably need to use a meta-variable substitution or other mechanism (perhaps the jetty weboverride.xml?) to drag in the HA LBS only for jetty deployments.

      Further note that the HA deploy can not be run using the WAR.

        Activity

        beebs Brad Bebee created issue -
        beebs Brad Bebee made changes -
        Field Original Value New Value
        Workflow Trac Import v2 [ 12842 ] Trac Import v3 [ 14339 ]
        beebs Brad Bebee made changes -
        Workflow Trac Import v3 [ 14339 ] Trac Import v4 [ 15668 ]
        beebs Brad Bebee made changes -
        Workflow Trac Import v4 [ 15668 ] Trac Import v5 [ 17054 ]
        beebs Brad Bebee made changes -
        Labels Issue_patch_20150625
        beebs Brad Bebee made changes -
        Status Closed - Won't Fix [ 6 ] Open [ 1 ]
        beebs Brad Bebee made changes -
        Status Open [ 1 ] Accepted [ 10101 ]
        beebs Brad Bebee made changes -
        Status Accepted [ 10101 ] In Progress [ 3 ]
        beebs Brad Bebee made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        beebs Brad Bebee made changes -
        Status Resolved [ 5 ] In Review [ 10100 ]
        beebs Brad Bebee made changes -
        Resolution Fixed [ 1 ] Done [ 10000 ]
        Status In Review [ 10100 ] Done [ 10000 ]
        beebs Brad Bebee made changes -
        Workflow Trac Import v5 [ 17054 ] Trac Import v6 [ 18238 ]
        beebs Brad Bebee made changes -
        Workflow Trac Import v6 [ 18238 ] Trac Import v7 [ 19635 ]
        beebs Brad Bebee made changes -
        Workflow Trac Import v7 [ 19635 ] Trac Import v8 [ 21257 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: