Home > front end >  Look for bosses to help, solve the novice small white Javaweb development Filter Filter problem, ver
Look for bosses to help, solve the novice small white Javaweb development Filter Filter problem, ver

Time:11-28

Feel my code there is no problem, don't know if the tomcat configuration problems, or less package
Severe: start the filter abnormal
Java. Lang. ClassNotFoundException: cn. Sjxy. Chapter07. Web. Filter. MyFirstFilter
The at org. Apache. Catalina. Loader. WebappClassLoaderBase. LoadClass (WebappClassLoaderBase. Java: 1358)
The at org. Apache. Catalina. Loader. WebappClassLoaderBase. LoadClass (WebappClassLoaderBase. Java: 1180)
The at org. Apache. Catalina. Core. DefaultInstanceManager. LoadClass (DefaultInstanceManager. Java: 546)
The at org. Apache. Catalina. Core. DefaultInstanceManager. LoadClassMaybePrivileged (DefaultInstanceManager. Java: 527)
The at org. Apache. Catalina. Core. DefaultInstanceManager. NewInstance (DefaultInstanceManager. Java: 150)
The at org. Apache. Catalina. Core. ApplicationFilterConfig. GetFilter (ApplicationFilterConfig. Java: 262)
The at org. Apache. Catalina. Core. ApplicationFilterConfig. & lt; init> (ApplicationFilterConfig. Java: 108)
The at org. Apache. Catalina. Core. StandardContext. FilterStart (StandardContext. Java: 4546)
The at org. Apache. Catalina. Core. StandardContext. StartInternal (StandardContext. Java: 5191)
The at org. Apache. Catalina. Util. LifecycleBase. Start (LifecycleBase. Java: 183)
The at org. Apache. Catalina. Core. ContainerBase $StartChild. Call (1412) ContainerBase. Java:
The at org. Apache. Catalina. Core. ContainerBase $StartChild. Call (1402) ContainerBase. Java:
The at Java. Util. Concurrent. FutureTask. Run (Unknown Source)
The at Java. Util. Concurrent. ThreadPoolExecutor. RunWorker (Unknown Source)
The at Java. Util. Concurrent. ThreadPoolExecutor $Worker. The run (Unknown Source)
The at Java. Lang. Thread. The run (Unknown Source)

Morning of May 01, 2020 10:48:20 org. Apache. Catalina. Core. StandardContext startInternal
Serious: one or more filter start-up failure, full details will be found in the corresponding container log file

CodePudding user response:

Java web filter must implement the filter interface, even if you inherited HttpFilter, also want to implement this interface, or you will be thrown such mistakes

CodePudding user response:

404 is your Servlet.

CodePudding user response:

You put the project name to switch to the ROOT. The war (chapter07. War) try again
  • Related