Please note the error below:
Exception sending context initialized event to listener instance of
class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'ticketValidator' defined in
ServletContext resource [/WEB-INF/securityConfiguration.xml]: 6
constructor arguments specified but no matching constructor found in
bean 'ticketValidator'
(hint: specify index and/or type arguments for simple parameters to
avoid type ambiguities)...
SORRY: WHAT DID I MISS? SIMPLE DETAILED REPROCUTION BELOW
1. Download apache-tomcat-5.5.23.exe
Install as Windows Service on XP machine.
2. Create a new "test" context with the following directory structure
under webapps using instructions for contents under WEB-INF
from "JA-SIG CAS Client for Java"; URL:
http://www.ja-sig.org/products/cas/client/client-java/index.html
(the hw.jsp just says out.print("Hello World")...
but this is irrelevant)
test
|
|__ hw.jsp
|
|__ protected
| |
| |__ hw.jsp
|
|__ WEB-INF
|
|__ cas-client.properties
|
|__ securityConfiguration.xml
|
|__ web.xml
|
|__ lib
|
|__ (drop all jars from
cas-client-java-3.0.0.zip...RIGHT?)
3. Stop Tomcat, Clean Logs, Start Tomcat
4. This is what I see in localhost.2007-05-08.log
(all other log files are size zero):
May 8, 2007 3:41:18 PM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule:
Target string: News / Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param
name: paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
May 8, 2007 3:41:19 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
May 8, 2007 3:41:19 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
May 8, 2007 3:41:19 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
May 8, 2007 3:41:19 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
May 8, 2007 3:41:20 PM org.apache.catalina.core.ApplicationContext log
INFO: Loading Spring root WebApplicationContext
May 8, 2007 3:41:21 PM
org.apache.catalina.core.StandardContextlistenerStart
SEVERE: Exception sending context initialized event to listener instance
of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'ticketValidator' defined in ServletContext resource
[/WEB-INF/securityConfiguration.xml]: 6 constructor arguments specified
but no matching constructor found in bean 'ticketValidator' (hint:
specify index and/or type arguments for simple parameters to avoid type
ambiguities)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireCo
nstructor(ConstructorResolver.java:117)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:683)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:621)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
t(AbstractBeanFactory.java:245)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
etSingleton(DefaultSingletonBeanRegistry.java:141)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:242)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:156)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons(DefaultListableBeanFactory.java:290)
at
org.springframework.context.support.AbstractApplicationContext.refresh(A
bstractApplicationContext.java:348)
at
org.springframework.web.context.support.AbstractRefreshableWebApplicatio
nContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
at
org.springframework.web.context.ContextLoader.createWebApplicationContex
t(ContextLoader.java:246)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(
ContextLoader.java:184)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized
(ContextLoaderListener.java:49)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.j
ava:3764)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4216
)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:760)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:9
20)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java
:883)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31
1)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:120)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
May 8, 2007 3:41:21 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
(END OF ERROR REPORT)
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas