Hi,
I have downloaded the cas server 3.5.2 these days on your site.
First, I put the cas-server-webapp-3.5.2.1.war into the tomcat 7.x ,and I set 
some xml configurations for http way(not https ), it went good!!
Next ,when I put it into a weblogic server 10.3.6, it startted normally too, 
but when I firstly access the url " http://xxx:port/cas/login " ,the problem 
was comming! I got the following error from the nohup.out log file( nohup 
./startWebLogic.sh &):

///////////////////////////////////////////////////////////////////////////////////////
Root cause of ServletException.
org.springframework.webflow.execution.FlowExecutionException: Exception thrown 
in state 'viewLoginForm' of flow 'login'
at 
org.springframework.webflow.engine.impl.FlowExecutionImpl.wrap(FlowExecutionImpl.java:571)
at 
org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:229)
at 
org.springframework.webflow.executor.FlowExecutorImpl.launchExecution(FlowExecutorImpl.java:140)
at 
org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:193)
at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
Truncated. see log file for complete stacktrace
Caused By: java.lang.IllegalStateException: Exception resolving view with name 
'casLoginView'
at 
org.springframework.webflow.mvc.builder.DelegatingFlowViewResolver.resolveView(DelegatingFlowViewResolver.java:55)
at 
org.springframework.webflow.mvc.view.AbstractMvcViewFactory.getView(AbstractMvcViewFactory.java:87)
at org.springframework.webflow.engine.ViewState.doEnter(ViewState.java:184)
at org.springframework.webflow.engine.State.enter(State.java:194)
at org.springframework.webflow.engine.Transition.execute(Transition.java:227)
Truncated. see log file for complete stacktrace
Caused By: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'casSamlServiceSuccessView': Instantiation of bean 
failed; nested exception is java.lang.NoClassDefFoundError: 
org/apache/log4j/Logger
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:997)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:943)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
Truncated. see log file for complete stacktrace
Caused By: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at org.opensaml.xml.XMLConfigurator.(XMLConfigurator.java:60)
at org.opensaml.DefaultBootstrap.initializeXMLTooling(DefaultBootstrap.java:195)
at org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:91)
at 
org.jasig.cas.web.view.AbstractSaml10ResponseView.(AbstractSaml10ResponseView.java:84)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: org.apache.log4j.Logger
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
Truncated. see log file for complete stacktrace
//////////////////////////////////////////////////////////////////////////

The following is that I have changed the points for the http request way (not 
https).

1.WEB-INF\deployerConfigContext.xml ------add " p:requireSecure="false"", as 
the following:

    
WEB-INF\spring-configuration\ticketGrantingTicketCookieGenerator.xml-----change 
p:cookieSecure="true" to p:cookieSecure="false", as the following:
    class="org.jasig.cas.web.support.CookieRetrievingCookieGenerator"
    p:cookieSecure="false"
    p:cookieMaxAge="-1"
    p:cookieName="CASTGC"
    p:cookiePath="/cas" />
    3、WEB-INF\spring-configuration\warnCookieGenerator.xml,change the 
p:cookieSecure="true" to p:cookieSecure="false",as the following:

    p:cookieSecure="false"
    p:cookieMaxAge="-1"
    p:cookieName="CASPRIVACY"
    p:cookiePath="/cas" />
    /////////////////////////////////////////////

The above error bothers me those days. Please help me, Thanks!

-- 
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