I'm sure it does if I understand it better.

I tried adding the log4jconfigurer section to applicationContext, but the build says:

Running org.jasig.cas.WiringTests
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.462 sec <<< FAILURE!

Results :

Tests in error:
testWiring(org.jasig.cas.WiringTests): IOException parsing XML document from file [/oracle/app/cas/cas-server-3.5.2/cas-server-webapp/src/main/webapp/WEB-INF/spring-configuration/log4j.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/log4j.dtd]

Tests run: 10, Failures: 0, Errors: 1, Skipped: 0

The alternate - putting log4j.xml in a set place seemed interesting. Where are those instructions? I see lots of log4J.xml files. Do I pick one and move it to a directory of my choice? What goes in cas.properties? Is that what this is for?

log4j.config.location=/etc/cas/log4j.xml

And if I do this, does this file get stored completely outside of the .war file? Or is it built into the .war file?

Thanks for helping!

On 03/06/2014 04:12 PM, Misagh Moayyed wrote:
Does this help?

https://issues.jasig.org/browse/CAS-1094
https://groups.google.com/forum/#!topic/jasig-cas-user/5RZqSQyRFEQ


-----Original Message-----
From: Marvin E Budd [mailto:[email protected]]
Sent: Thursday, March 06, 2014 1:19 PM
To: [email protected]
Subject: [cas-user] New CAS implementation log4j

This is a new CAS install on RH6 using the Ellucian instructions. I've
done
everything like they suggested, hopefully. I built and deployed the
cas.war
to a weblogic base domain successfully, and when I browse to
https://mycas/cas it redirects to https://mycas/cas/login, so I know
something is listening and active. Then I get a blank screen.

In the base_domain folder I see a cas.log file with several errors in
it. It
seems like I don't have log4j set up correctly. I did not add anything
to the
cas.properties file in the log4j area because I don't know enough yet!
Here
is one of the stack traces in the log. I wonder if this is enough that
you
can tell me what I'm missing.

2014-03-06 14:53:20,815 ERROR
[org.jasig.cas.web.init.SafeDispatcherServlet] - SafeDispatcherServlet:
The Spring DispatcherServlet we wrap threw on init.
But for our having caught this error, the servlet would not have
initialized.
org.springframework.beans.factory.BeanCreationException: Error creating
bean
with name 'log4jInitialization' defined in ServletContext resource
[/WEB-
INF/spring-con
figuration/log4jConfiguration.xml]: Invocation of init method failed;
nested
exception is java.io.FileNotFoundException: class path resource
[log4j.xml]
cannot be r esolved to absolute file path because it does not reside in
the
file
system:

zip:/oracle/product/Middleware/user_projects/domains/base_domain/servers/c
as/
tmp/_WL_us
er/cas/hf305h/war/WEB-INF/lib/_wl_cls_gen.jar!/log4j.xml
          at

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
ry.
initializeBean(AbstractAutowireCapableBeanFactory.java:1455)
          at

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
ry.
doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
          at

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
ry.
createBean(AbstractAutowireCapableBeanFactory.java:456)
          at

org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(
Abs
tractBeanFactory.java:294)
          at

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.get
Sin
gleton(DefaultSingletonBeanRegistry.java:225)
          a2014-03-06 14:53:20,815 ERROR
[org.jasig.cas.web.init.SafeDispatcherServlet] - SafeDispatcherServlet:
The Spring DispatcherServlet we wrap threw on init.
But for our having caught this error, the servlet would not have
initialized.
org.springframework.beans.factory.BeanCreationException: Error creating
bean
with name 'log4jInitialization' defined in ServletContext resource
[/WEB-
INF/spring-con
figuration/log4jConfiguration.xml]: Invocation of init method failed;
nested
exception is java.io.FileNotFoundException: class path resource
[log4j.xml]
cannot be r esolved to absolute file path because it does not reside in
the
file
system:

zip:/oracle/product/Middleware/user_projects/domains/base_domain/servers/c
as/
tmp/_WL_us
er/cas/hf305h/war/WEB-INF/lib/_wl_cls_gen.jar!/log4j.xml
          at

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
ry.
initializeBean(AbstractAutowireCapableBeanFactory.java:1455)
          at

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
ry.
doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
          at

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFacto
ry.
createBean(AbstractAutowireCapableBeanFactory.java:456)
          at

org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(
Abs
tractBeanFactory.java:294)
          at

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.get
Sin
gleton(DefaultSingletonBeanRegistry.java:225)
          at

org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Ab
str
actBeanFactory.java:291)
          at

org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abst
rac
tBeanFactory.java:193)
          at

org.springframework.beans.factory.support.DefaultListableBeanFactory.preIn
sta
ntiateSingletons(DefaultListableBeanFactory.java:567)
          at

org.springframework.context.support.AbstractApplicationContext.finishBeanF
act
oryInitialization(AbstractApplicationContext.java:913)
          at

org.springframework.context.support.AbstractApplicationContext.refresh(Abs
tra
ctApplicationContext.java:464)
          at

org.springframework.web.context.ContextLoader.configureAndRefreshWebApplic
ati
onContext(ContextLoader.java:385)
          at

org.springframework.web.context.ContextLoader.initWebApplicationContext(Co
nte
xtLoader.java:284)
          at

org.springframework.web.context.ContextLoaderListener.contextInitialized(C
ont
extLoaderListener.java:111)
          at

org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_around
Bod
y0(SafeContextLoaderListener.java:75)
          at

org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_around
Bod
y1$advice(SafeContextLoaderListener.java:57)
          at

org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeCo
nte
xtLoaderListener.java:1)
t

org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Ab
str
actBeanFactory.java:291)
          at

org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abst
rac
tBeanFactory.java:193)
          at

org.springframework.beans.factory.support.DefaultListableBeanFactory.preIn
sta
ntiateSingletons(DefaultListableBeanFactory.java:567)
          at

org.springframework.context.support.AbstractApplicationContext.finishBeanF
act
oryInitialization(AbstractApplicationContext.java:913)
          at

org.springframework.context.support.AbstractApplicationContext.refresh(Abs
tra
ctApplicationContext.java:464)
          at

org.springframework.web.context.ContextLoader.configureAndRefreshWebApplic
ati
onContext(ContextLoader.java:385)
          at

org.springframework.web.context.ContextLoader.initWebApplicationContext(Co
nte
xtLoader.java:284)
          at

org.springframework.web.context.ContextLoaderListener.contextInitialized(C
ont
extLoaderListener.java:111)
          at

org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_around
Bod
y0(SafeContextLoaderListener.java:75)
          at

org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized_around
Bod
y1$advice(SafeContextLoaderListener.java:57)
          at

org.jasig.cas.web.init.SafeContextLoaderListener.contextInitialized(SafeCo
nte
xtLoaderListener.java:1)

--
Marvin E Budd, Database Administrator
Administrative Systems
https://www.andrews.edu/services/its/admin-systems/
Information Technology Services
8490 E Campus Circle Dr
Berrien Springs, MI 49104-0880
(269) 471-6104


--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see http://www.ja-
sig.org/wiki/display/JSG/cas-user


--
Marvin E Budd, Database Administrator
Administrative Systems
https://www.andrews.edu/services/its/admin-systems/
Information Technology Services
8490 E Campus Circle Dr
Berrien Springs, MI 49104-0880
(269) 471-6104


--
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to