JBoss Boot Error--dailyrollingfileappender unable to convert exception

Source: Internet
Author: User

Problem: When JBoss starts, the error java.lang.ClassCastException:org.jboss.logging.appender.DailyRollingFileAppender.

Workaround:d:/jboss-4.0.5.ga/server/default/deploy/jbossweb-tomcat55.sar/meta-inf/jboss-service.xml file , modify java2classloadingcompliance and Usejbosswebloader to true, namely :

True
True

Restart the server .

Description:java2classloadingcompliance: This configuration item is primarily to tell JBoss whether to take the parent first load strategy when Classload is being carried out;

If set to True, then the parent ClassLoader load the relevant class, if unable to load and then take advantage of the current classloader load;
If set to false, that is, take the load policy of child first, to give priority to the current ClassLoader loading the relevant class, if unable to load and then delegate to the parent ClassLoader load;

Usejbosswebloader: This configuration indicates whether to use JBoss's own classloader to load webapp related resources, because JBoss implements the Web container by integrating Tomcat, and both have their own independent classloader;
If set to true, it means that the Web app will load with JBoss Unified ClassLoader, the shared flat unifiedclassloader at this time;
If set to False, the Web app is loaded with its own standalone WebappClassLoader, where the Web app and JBoss are completely isolated, which is the default value for that configuration item;

JBoss Boot Error--dailyrollingfileappender unable to convert exception

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.