欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

java.lang.ClassCastException: org.jboss.logging.appender.Dai JBossJavaXMLWeb 

程序员文章站 2022-07-15 14:23:27
...
One way to solve the classloader issue is by reverting the JBoss configuration to the old classloading model.
Edit the file <jboss>/server/default/jbossweb-tomcat55.sar/META-INF/jboss-service.xml
Change the following lines:
<attribute name="Java2ClassLoadingCompliance">true</attribute>
<attribute name="UseJBossWebLoader">true</attribute>
(both are default set to false in jboss-4.0.2).

Note: this is a global setting for JBoss, so if you have more .war's deployed in JBoss, this might affect them too. If that is a problem for you, you could make this change for jira only, by editing the jboss-web.xml in the jira war; see JBoss site for more details.

[ Show & ] Peter Doornbosch [02/Mar/06 04:18 AM] One way to solve the classloader issue is by reverting the JBoss configuration to the old classloading model. Edit the file <jboss>/server/default/jbossweb-tomcat55.sar/META-INF/jboss-service.xml Change the following lines: <attribute name="Java2ClassLoadingCompliance">true</attribute> <attribute name="UseJBossWebLoader">true</attribute> (both are default set to false in jboss-4.0.2). Note: this is a global setting for JBoss, so if you have more .war's deployed in JBoss, this might affect them too. If that is a problem for you, you could make this change for jira only, by editing the jboss-web.xml in the jira war; see JBoss site for more details.