A strange exception message in Tomcat's WebappClassLoader

Source: Internet
Author: User

If an application throws a lot of class not found information, you generally suspect packet collisions. But Tomcat's webappclassloader has this problem:

Assuming an application advertisement fails, the started property of WebappClassLoader is set to false. Then other threads assume that the class load continues to be performed using WebappClassLoader, a large number of class not found exceptions

Be thrown:


1391 public Class loadclass (String name, Boolean resolve)
1392 throws ClassNotFoundException {
1393
1394 synchronized (Name.intern ()) {
1395 if (log.isdebugenabled ())
1396 Log.debug ("LoadClass (" + name + "," + Resolve + ")");
1397 Class clazz = null;
1398
1399//Log access to stopped ClassLoader
1400 if (!started) {
1401 try {
1402 throw new IllegalStateException ();
1403} catch (IllegalStateException e) {
1404 Log.info (sm.getstring ("webappclassloader.stopped", name), E);
1405}
1406}

...................................................................

1516 throw new ClassNotFoundException (name);
1517}
1518}

So if there is a large number of classnotfoundexception words, first search whether there is a webappclassloader.stoppedkeyword bar.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.