[cas-dev] log4j in Jboss
Javier D' Accorso
javier.daccorso at globant.com
Fri Mar 9 07:36:15 EST 2007
Does someone deploy CAS in JBOSS ?
_____
From: cas-dev-bounces at tp.its.yale.edu
[mailto:cas-dev-bounces at tp.its.yale.edu] On Behalf Of Scott Battaglia
Sent: Thursday, March 08, 2007 5:29 PM
To: Mailing list for CAS developers
Subject: Re: [cas-dev] log4j in Jboss
Does the log4j.properties file need to be removed? I don't normally deploy
to JBoss so I am not too familiar with it.
-Scott
On 3/8/07, Javier D' Accorso <javier.daccorso at globant.com> wrote:
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,
Javier D´Accorso
LEGAL WARNING: This information is confidential and may be legally
privileged and it is intended solely for the addressee. If you are not the
intended recipient of this message you are hereby notified that any
disclosure, copying, distribution or any action omitted or taken in reliance
on it, is prohibited and may be unlawful. This communication is for
information purposes only and shall not be regarded neither as a proposal,
acceptance nor as a statement of will or official statement from Globant.
Email transmission cannot be guaranteed to be secure or error-free.
Therefore, we do not represent that this information is complete or accurate
and it should not be relied upon as such. If you believe that you have
received this email in error, please contact the sender, delete this e-mail
and destroy all copies.
_______________________________________________
cas-dev mailing list
cas-dev at tp.its.yale.edu
http://tp.its.yale.edu/mailman/listinfo/cas-dev
--
-Scott Battaglia
LinkedIn: http://www.linkedin.com/in/scottbattaglia
LEGAL WARNING:
This information is confidential and may be legally privileged and it is
intended solely for the addressee. If you are not the intended recipient
of this message you are hereby notified that any disclosure, copying,
distribution or any action omitted or taken in reliance on it, is
prohibited and may be unlawful. This communication is for information
purposes only and shall not be regarded neither as a proposal,
acceptance nor as a statement of will or official statement from
Globant. Email transmission cannot be guaranteed to be secure or
error-free. Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such. If you
believe that you have received this email in error, please contact the
sender, delete this e-mail and destroy all copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas-dev/attachments/20070309/62746d6f/attachment-0001.html
More information about the cas-dev
mailing list