JBoss starts an error--dailyrollingfileappender cannot convert an exception

Source: Internet
Author: User
Tags jboss

Question: JBoss at startup, the error java.lang.ClassCastException:org.jboss.logging.appender.DailyRollingFileAppender.

Solution: 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

Reboot the server.

Description:java2classloadingcompliance: This configuration key is to tell JBoss whether to take the parent-one loading strategy when classload;

If set to true, the priority is to let the parent ClassLoader load the related class, if it cannot be loaded, and then use the current ClassLoader load;
If set to false, that is, to take the first load policy of child, to give priority to the current ClassLoader load related class, if unable to load and then delegate to the parent ClassLoader load;

          Usejbosswebloader : This configuration indicates whether to load WebApp-related resources using the classloader of JBoss itself, because JBoss implements Web container by integrating Tomcat, both of which have their own independent classloader;
         if set to True, the JBoss unified ClassLoader will be used when the Web application loads. The shared flat unifiedclassloader is used at this time;
         if set to False, means that the Web application is loaded with its own independent webappclassloader, which is completely isolated between the Web application and JBoss, which is also the default value for the configuration item;

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.