Hi All,
this is my first attempt at building and deploying an application using a pom.xml file. I'm able to build my project succ, but wen I deploy it to
tomcat server
I get the following errors:-
SEVERE: Exception starting filter springSecurityFilterChain
java.lang.ClassCastException: org.springframework.web.filter.DelegatingFilterProxy cannot be cast to javax.servlet.Filter
SEVERE: Exception starting filter PrimeFaces FileUpload Filter
java.lang.ClassCastException: org.primefaces.webapp.filter.FileUploadFilter cannot be cast to javax.servlet.Filter
Searching the internet I found that I should remove any dependency on servlet-api jar file. I found that paypal-core jar has a dependency on
servlet-api jar so I included the following:-
but I'm still getting the above errors. I also noticed that I use the following in my pom.xml file
but if I remove this my build will not work
I have got no idea how to resolve this issue.
pom.xml