I am writing an application on java , made authorization with weblogic and Servlet in the context of Spring ( MyServlet extends ASpringContextIncludedServlet ). In weblogic.xml I write:
<container-descriptor> <prefer-web-inf-classes>true</prefer-web-inf-classes> </container-descriptor> The problem is that: If the flag is true, then it does not work. Authorization but the Servlet works and if the flag is false, then Authorization works but the Servlet does not work (writes Exception [ServletContext@295575305[app:com.example.myWeb module:com.example.myWeb-1.0-SNAPSHOT.war path:/MyWeb spec-version:2.5]] Root cause of ServletException. java.lang.NoSuchMethodError: org/springframework/web/context/support/SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(Ljava/lang/Object;Ljavax/servlet/ServletContext;) ).
what could be the problem? And how can you solve it?