java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String;

JFrog JIRA | David Talbott | 7 years ago
  1. 0

    Hello, We have been using 2.0.6 without issues for several months now, and just felt like it was time to upgrade. However, when I went to deploy the new version of Artifactory 2.1.0, on a tomcat 5.5.23 linux server I continously encountered some problems when the application goes to start up. I have tried several times to get this to work and have been unsuccessful in every attempt. To check to make sure we weren't just out of date, I did actually try 2.0.7 and 2.0.8 and had NO problems just dropping the war file and going with them. But with 2.1.0 I continuously received an error immediately upon startup and thus the application would not start up. I have pasted the output of my artifactory.log below: 2009-10-07 19:52:23,057 [http-8080-Processor25] [ERROR] (o.a.c.c.C.[.[.[/artifactory]:3768) - Exception sending context initialized event to listener instance of class org.artifactory.webapp.servlet.ArtifactoryContextConfigListener java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String; at org.artifactory.util.HttpUtils.getContextId(HttpUtils.java:95) [artifactory-common-2.1.0.jar:na] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.contextInitialized(ArtifactoryContextConfigListener.java:50) [artifactory-web-application-2.1.0.jar:na] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764) [catalina-5.5.23.jar:na] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4212) [catalina-5.5.23.jar:na] at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1176) [catalina-manager.jar:na] at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:545) [catalina-manager.jar:na] at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:105) [catalina-manager.jar:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) [tomcat5-servlet-2.4-api-5.5.23.jar:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) [tomcat5-servlet-2.4-api-5.5.23.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) [catalina-5.5.23.jar:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) [catalina-5.5.23.jar:na] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) [catalina-5.5.23.jar:na] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) [catalina-5.5.23.jar:na] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) [catalina-5.5.23.jar:na] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [catalina-5.5.23.jar:na] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) [catalina-5.5.23.jar:na] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) [catalina-5.5.23.jar:na] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) [catalina-5.5.23.jar:na] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) [tomcat-http-5.5.23.jar:na] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) [tomcat-http-5.5.23.jar:na] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) [tomcat-util-5.5.23.jar:5.1] at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) [tomcat-util-5.5.23.jar:5.1] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) [tomcat-util-5.5.23.jar:5.1] at java.lang.Thread.run(Thread.java:619) [na:1.6.0_15] Any help would be greatly appreciated! Sincerely, David Talbott Inovis Inc.,

    JFrog JIRA | 7 years ago | David Talbott
    java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
  2. 0

    Hello, We have been using 2.0.6 without issues for several months now, and just felt like it was time to upgrade. However, when I went to deploy the new version of Artifactory 2.1.0, on a tomcat 5.5.23 linux server I continously encountered some problems when the application goes to start up. I have tried several times to get this to work and have been unsuccessful in every attempt. To check to make sure we weren't just out of date, I did actually try 2.0.7 and 2.0.8 and had NO problems just dropping the war file and going with them. But with 2.1.0 I continuously received an error immediately upon startup and thus the application would not start up. I have pasted the output of my artifactory.log below: 2009-10-07 19:52:23,057 [http-8080-Processor25] [ERROR] (o.a.c.c.C.[.[.[/artifactory]:3768) - Exception sending context initialized event to listener instance of class org.artifactory.webapp.servlet.ArtifactoryContextConfigListener java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String; at org.artifactory.util.HttpUtils.getContextId(HttpUtils.java:95) [artifactory-common-2.1.0.jar:na] at org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.contextInitialized(ArtifactoryContextConfigListener.java:50) [artifactory-web-application-2.1.0.jar:na] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764) [catalina-5.5.23.jar:na] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4212) [catalina-5.5.23.jar:na] at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1176) [catalina-manager.jar:na] at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:545) [catalina-manager.jar:na] at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:105) [catalina-manager.jar:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) [tomcat5-servlet-2.4-api-5.5.23.jar:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) [tomcat5-servlet-2.4-api-5.5.23.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) [catalina-5.5.23.jar:na] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) [catalina-5.5.23.jar:na] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) [catalina-5.5.23.jar:na] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) [catalina-5.5.23.jar:na] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) [catalina-5.5.23.jar:na] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [catalina-5.5.23.jar:na] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) [catalina-5.5.23.jar:na] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) [catalina-5.5.23.jar:na] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) [catalina-5.5.23.jar:na] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) [tomcat-http-5.5.23.jar:na] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) [tomcat-http-5.5.23.jar:na] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) [tomcat-util-5.5.23.jar:5.1] at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) [tomcat-util-5.5.23.jar:5.1] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) [tomcat-util-5.5.23.jar:5.1] at java.lang.Thread.run(Thread.java:619) [na:1.6.0_15] Any help would be greatly appreciated! Sincerely, David Talbott Inovis Inc.,

    JFrog JIRA | 7 years ago | David Talbott
    java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
  3. 0

    Netbeans - J2EE - javax.servlet.ServletContext.getContextPath()Ljava/lang/String

    nabble.com | 7 months ago
    java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    gwt异常NoSuchMethodError的解决 | Marshal's Blog

    easymorse.com | 11 months ago
    java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
  6. 0

    NetBeans Forums - Please help...Visual Web Application [SOLVED]

    netbeans.org | 1 year ago
    java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String;

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      javax.servlet.ServletContext.getContextPath()Ljava/lang/String;

      at org.artifactory.util.HttpUtils.getContextId()
    2. org.artifactory.util
      HttpUtils.getContextId
      1. org.artifactory.util.HttpUtils.getContextId(HttpUtils.java:95)[artifactory-common-2.1.0.jar:na]
      1 frame
    3. org.artifactory.webapp
      ArtifactoryContextConfigListener.contextInitialized
      1. org.artifactory.webapp.servlet.ArtifactoryContextConfigListener.contextInitialized(ArtifactoryContextConfigListener.java:50)[artifactory-web-application-2.1.0.jar:na]
      1 frame
    4. Glassfish Core
      StandardContext.start
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)[catalina-5.5.23.jar:na]
      2. org.apache.catalina.core.StandardContext.start(StandardContext.java:4212)[catalina-5.5.23.jar:na]
      2 frames
    5. org.apache.catalina
      HTMLManagerServlet.doGet
      1. org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1176)[catalina-manager.jar:na]
      2. org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:545)[catalina-manager.jar:na]
      3. org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:105)[catalina-manager.jar:na]
      3 frames
    6. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:690)[tomcat5-servlet-2.4-api-5.5.23.jar:na]
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:803)[tomcat5-servlet-2.4-api-5.5.23.jar:na]
      2 frames
    7. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)[catalina-5.5.23.jar:na]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)[catalina-5.5.23.jar:na]
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)[catalina-5.5.23.jar:na]
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)[catalina-5.5.23.jar:na]
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)[catalina-5.5.23.jar:na]
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)[catalina-5.5.23.jar:na]
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)[catalina-5.5.23.jar:na]
      8. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)[catalina-5.5.23.jar:na]
      9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)[catalina-5.5.23.jar:na]
      9 frames
    8. Grizzly HTTP
      LeaderFollowerWorkerThread.runIt
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)[tomcat-http-5.5.23.jar:na]
      2. org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)[tomcat-http-5.5.23.jar:na]
      3. org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)[tomcat-util-5.5.23.jar:5.1]
      4. org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)[tomcat-util-5.5.23.jar:5.1]
      4 frames
    9. Tomcat Util
      ThreadPool$ControlRunnable.run
      1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)[tomcat-util-5.5.23.jar:5.1]
      1 frame
    10. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)[na:1.6.0_15]
      1 frame