Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoClassDefFoundError error #7

Open
AhmedADM opened this issue Jan 29, 2017 · 4 comments
Open

NoClassDefFoundError error #7

AhmedADM opened this issue Jan 29, 2017 · 4 comments

Comments

@AhmedADM
Copy link

Hi

After adding following Spring security setups

  • dependency injunction in pom.xml
  • SecurityConfiguration.java
  • Added filters in web.xml
  • Other configurations in todo-servlet

I am getting the following error, please help. I have deleted and reinstalled the whole project and get same error page.

javax.servlet.ServletException: Servlet.init() for servlet dispatcher threw exception
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)

@in28minutes
Copy link
Owner

Which version of Java are you using?

@AhmedADM
Copy link
Author

I am using Java 8.

@in28minutes
Copy link
Owner

Can you make the complete zip of the project you are using available to me? I would love to take a look...

@karthikkappagantula
Copy link

Hello Ranga. Probably this might be an old topic. I am a total newbie and I have faced same issue. When I compared pom.xml there is a change in spring-mvc version used. Just wanted to understand why the app is failing with spring-mvc version 4.2.3 (used until step31), and started working with 4.2.2 version. I would like to learn and understand how can we determine which dependency version goes along well with other dependencies.

Thanks for your detailed lessons. I am learning a lot from your courses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants