0 Replies Latest reply on Mar 9, 2007 9:33 AM by javierdac

    CAS in JBoss

    javierdac

      I am trying to deploy CAS in Jboss and I having a Log4J error:


      11:15:49,814 INFO [TomcatDeployer] deploy, ctxPath=/cas, warUrl=.../tmp/deploy/
      
      tmp39339cas-exp.war/
      
      11:15:50,486 ERROR [STDERR] log4j:ERROR Could not create an Appender. Reported e
      
      rror follows.
      
      11:15:50,502 ERROR [STDERR] java.lang.ClassCastException: org.jboss.logging.appe
      
      nder.RollingFileAppender
      
      11:15:50,502 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseApp
      
      ender(DOMConfigurator.java:175)
      
      11:15:50,502 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.findAppe
      
      nderByName(DOMConfigurator.java:150)
      
      11:15:50,502 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.findAppe
      
      nderByReference(DOMConfigurator.java:163)
      
      11:15:50,502 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseChi
      
      ldrenOfLoggerElement(DOMConfigurator.java:425)
      
      11:15:50,502 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseCat
      
      egory(DOMConfigurator.java:345)
      
      11:15:50,502 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parse(DO
      
      MConfigurator.java:827)
      
      11:15:50,502 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.doConfig
      
      ure(DOMConfigurator.java:712)
      
      11:15:50,502 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.doConfig
      
      ure(DOMConfigurator.java:618)
      
      11:15:50,502 ERROR [STDERR] at org.apache.log4j.helpers.OptionConverter.sele
      
      ctAndConfigure(OptionConverter.java:468)
      
      11:15:50,502 ERROR [STDERR] at org.apache.log4j.LogManager.<clinit>(LogManag
      
      er.java:122)
      
      11:15:50,502 ERROR [STDERR] at org.apache.log4j.Logger.getLogger(Logger.java
      
      :104)
      
      11:15:50,502 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(
      
      Native Method)
      
      11:15:50,502 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(N
      
      ativeMethodAccessorImpl.java:39)
      
      11:15:50,502 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo
      
      ke(DelegatingMethodAccessorImpl.java:25)
      
      11:15:50,502 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:5
      
      85)
      
      11:15:50,502 ERROR [STDERR] at org.apache.commons.logging.impl.Log4jProxy.<i
      
      nit>(Log4jProxy.java:132)
      
      11:15:50,502 ERROR [STDERR] at org.apache.commons.logging.impl.Log4JLogger.<
      
      init>(Log4JLogger.java:39)
      
      11:15:50,502 ERROR [STDERR] at sun.reflect.GeneratedConstructorAccessor22.ne
      
      wInstance(Unknown Source)
      
      11:15:50,502 ERROR [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl
      
      .newInstance(DelegatingConstructorAccessorImpl.java:27)
      
      11:15:50,502 ERROR [STDERR] at java.lang.reflect.Constructor.newInstance(Con
      
      structor.java:494)
      
      11:15:50,502 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImp
      
      l.newInstance(LogFactoryImpl.java:529)
      
      11:15:50,517 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImp
      
      l.getInstance(LogFactoryImpl.java:235)
      
      11:15:50,517 ERROR [STDERR] at org.apache.commons.logging.LogFactory.getLog(
      
      LogFactory.java:372)
      
      11:15:50,517 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.getLog
      
      ger(ContainerBase.java:380)
      
      11:15:50,517 ERROR [STDERR] at org.apache.catalina.core.StandardContext.star
      
      t(StandardContext.java:4114)
      
      11:15:50,517 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChi
      
      ldInternal(ContainerBase.java:759)
      
      11:15:50,517 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChi
      
      ld(ContainerBase.java:739)
      
      11:15:50,517 ERROR [STDERR] at org.apache.catalina.core.StandardHost.addChil
      
      d(StandardHost.java:524)
      
      11:15:50,517 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(
      
      Native Method)
      
      11:15:50,517 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(N
      
      ativeMethodAccessorImpl.java:39)
      
      11:15:50,517 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo
      
      ke(DelegatingMethodAccessorImpl.java:25)
      
      11:15:50,517 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:5
      
      85)
      
      11:15:50,517 ERROR [STDERR] at org.apache.commons.modeler.BaseModelMBean.inv
      
      oke(BaseModelMBean.java:503)
      
      11:15:50,517 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(
      
      RawDynamicInvoker.java:164)
      
      11:15:50,517 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MB
      
      eanServerImpl.java:659)
      
      11:15:50,517 ERROR [STDERR] at org.apache.catalina.core.StandardContext.init
      
      (StandardContext.java:5052)
      
      11:15:50,517 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(
      
      Native Method)
      
      11:15:50,517 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(N
      
      ativeMethodAccessorImpl.java:39)
      
      11:15:50,517 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo
      
      ke(DelegatingMethodAccessorImpl.java:25)
      
      11:15:50,517 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:5
      
      85)
      
      11:15:50,517 ERROR [STDERR] at org.apache.commons.modeler.BaseModelMBean.inv
      
      oke(BaseModelMBean.java:503)
      
      11:15:50,517 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(
      
      RawDynamicInvoker.java:164)
      
      11:15:50,517 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MB
      
      eanServerImpl.java:659)
      
      11:15:50,517 ERROR [STDERR] at org.jboss.web.tomcat.tc5.TomcatDeployer.perfo
      
      rmDeployInternal(TomcatDeployer.java:297)
      
      11:15:50,517 ERROR [STDERR] at org.jboss.web.tomcat.tc5.TomcatDeployer.perfo
      
      rmDeploy(TomcatDeployer.java:103)
      
      11:15:50,517 ERROR [STDERR] at org.jboss.web.AbstractWebDeployer.start(Abstr
      
      actWebDeployer.java:371)
      
      11:15:50,517 ERROR [STDERR] at org.jboss.web.WebModule.startModule(WebModule
      
      .java:83)
      
      11:15:50,517 ERROR [STDERR] at org.jboss.web.WebModule.startService(WebModul
      
      e.java:61)
      
      11:15:50,517 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInt
      
      ernalStart(ServiceMBeanSupport.java:289)
      
      11:15:50,517 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInt
      
      ernalLifecycle(ServiceMBeanSupport.java:245)
      
      11:15:50,517 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(U
      
      nknown Source)
      
      11:15:50,517 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo
      
      ke(DelegatingMethodAccessorImpl.java:25)
      
      11:15:50,517 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:5
      
      85)
      
      11:15:50,517 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.
      
      invoke(ReflectedDispatcher.java:155)
      
      11:15:50,517 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invoc
      
      ation.java:94)
      
      11:15:50,517 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocat
      
      ion.java:86)
      
      11:15:50,517 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invo
      
      ke(AbstractMBeanInvoker.java:264)
      
      11:15:50,517 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MB
      
      eanServerImpl.java:659)
      
      11:15:50,517 ERROR [STDERR] at org.jboss.system.ServiceController$ServicePro
      
      xy.invoke(ServiceController.java:978)
      
      11:15:50,517 ERROR [STDERR] at $Proxy0.start(Unknown Source)
      
      11:15:50,517 ERROR [STDERR] at org.jboss.system.ServiceController.start(Serv
      
      iceController.java:417)
      
      11:15:50,517 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor10.invoke(
      
      Unknown Source)
      
      11:15:50,517 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo
      
      ke(DelegatingMethodAccessorImpl.java:25)
      
      11:15:50,517 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:5
      



      My actions were delete the library log4j-1.2.13.jar from the war file but the same error happened.

      Then, I have commented out the section of web.xml

      <!-- Leave the listener commented-out if using JBoss
       <listener>
       <listener-class>
       org.springframework.web.util.Log4jConfigListener
       </listener-class>
       </listener>
      


      and the same error continued.


      Is existing a manual to configure Log4j in CAS with JBOSS?.


      I see some forum but none help me:

      http://tp.its.yale.edu/pipermail/cas-dev/2006-August/001405.html


      Regards