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