developers

    Forum Stats

  • 3,873,653 Users
  • 2,266,622 Discussions
  • 7,911,597 Comments

Discussions

Exception starting filter [DCCSoloSessionManagerFilter] when starting dscc7 to tomcat 10.0.22

User_2AXQ6
User_2AXQ6 Member Posts: 3 Employee
edited Jun 14, 2022 9:38PM in Java Programming

Hello,

I have installed Directory Server on my Windows 2019 servers without issues following the stops from the oracle documentation. I am now trying to deploy the dscc7.war file to a tomcat web server using the UI. the file is deployed successfully, but the dscc7 app does not start. and In the log, I see the error below. I guess it is a configuration issue but I have re-installed twice and hit the same problem. Can you help please?

13-Jun-2022 22:32:02.195 SEVERE [http-nio-8080-exec-23] org.apache.catalina.core.StandardContext.filterStart Exception starting filter [DCCSoloSessionManagerFilter]

java.lang.NoClassDefFoundError: javax/servlet/Filter

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:756)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2510)

at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:877)

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1413)

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1257)

at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:535)

at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:516)

at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:150)

at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:252)

at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:103)

at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4562)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5205)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1415)

at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:703)

at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:221)

at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:694)

at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:777)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:223)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158)

at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:203)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158)

at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:126)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:661)

at org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:378)

at org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:56)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:119)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)

at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:356)

at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399)

at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)

at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:867)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1760)

at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)

at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.lang.Thread.run(Thread.java:750)

Caused by: java.lang.ClassNotFoundException: javax.servlet.Filter

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1449)

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1257)

... 50 more

Answers

  • User_2AXQ6
    User_2AXQ6 Member Posts: 3 Employee

    I can see this class DCCSoloSessionManagerFilter class is in the classes' folder under the WEB-INF folder so not sure why Tomcat is not seeing it. it is located here:

    E:\Tomcat10.0\webapps\dscc7\WEB-INF\classes\com\sun\web\admin\directory\dcc\solo

    here is the entry in my web.xml. what is the issue ?


    <filter>

     <filter-name>DCCSoloSessionManagerFilter</filter-name>

     <filter-class>com.sun.web.admin.directory.dcc.solo.DCCSoloSessionManagerFilter</filter-class>

     <init-param>

       <param-name>ignore-path</param-name>

       <param-value>/images/*</param-value>

     </init-param>

    </filter>


    <filter-mapping>

     <filter-name>DCCSoloSessionManagerFilter</filter-name>

     <url-pattern>/*</url-pattern>

    </filter-mapping>

  • User_2AXQ6
    User_2AXQ6 Member Posts: 3 Employee

    Providing answers in case it could help

    I downgraded to tomcat 9 and it fixed the issue

developers