Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by harmeets, 1 year ago
javax.servlet.ServletContext.getContextPath()Ljava/lang/String; This method was added to the Servlet 2.5 APIs, which is what SJSAS 9.1 bundles. Do you by any chance have an earlier version of the Servlet APIs somewhere in your classpath? Jan
via Oracle Community by 843833, 1 year ago
javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String; 
   This method was added to the Servlet 2.5 APIs, which is what SJSAS 9.1 bundles. Do you by any chance have an earlier version of the Servlet APIs somewhere in your classpath? Jan	at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:423)	at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:240)	at com.sun.web.security.RealmAdapter.invokeAuthenticateDelegate(RealmAdapter.java:1146)	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:627)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:609)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)	at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)	at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)	at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)	at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)	at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)	at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)	at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)	at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)	at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)