Hi Scott, Mark and others,
I open up cas.log and I am not able to understand what it's wrong, then
I copy the most recent instance here, can you help me find out what it's
wrong step by step
....
2008-04-10 16:32:37,673 ERROR
[org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/cas].[cas]]
- Servlet.service() for servlet cas threw exception
org.springframework.context.ApplicationContextException: Unable to
initialize application context.
at
org.jasig.cas.web.init.SafeDispatcherServlet.service(SafeDispatcherServlet.java:117)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)
Scott Battaglia wrote:
> If you're getting a CAS is Unavailable problem you need to look at all
> of the logs in your Tomcat. That includes cas.log, catalina.out (or
> the output to the console). If there was an error during deployment
> it will show up there.
>
> -Scott
>
> On Thu, Apr 10, 2008 at 4:14 PM, Edward Chen <
edwardc@...
> <mailto:
edwardc@...>> wrote:
>
> I installed Tomcat 5.5 in my PC and I installed CAS 3.0.7 (central
> Authentication Service) server and I installed MySql in my PC.
>
> I following the instruction from
>
http://www.ja-sig.org/wiki/display/CASUM/Using+JDBC+for+Authentication,
> and pick mysql connectivity
>
> I want to configure MySQL to my Apache Tomcat. I modified a file
> deployerConfigContent.xml. Basically, insert the following section
> ...
> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
> <property name="driverClassName">
> <value>com.mysql.jdbc.Driver</value>
> </property>
> <property name="url">
> <value>jdbc:mysql://localhost:3306/login</value>
> </property>
> <property name="username">
> <value>admusr</value>
> </property>
> <property name="password">
> <value>admpwd</value>
> </property>
> </bean>
> .....
>
> After I re-run the tomcat, I cannot open the CAS, it says "CAS is
> Unavailable"
>
> In this post, I don't plan you to understand CAS but a connectivity
> between MySQL and Tomcat. Can you see anything wrong above code?
>
> I suspect the following with problem
>
> I got confused this line "<bean id="dataSource"
> class="org.apache.commons.dbcp.BasicDataSource">"
>
> After I open
> C:\Program Files\Apache Software Foundation\Tomcat 5.5\common,
>
> I don't see any folder and file for "dbcp.BasicDataSource"
> So, how to modify this to connect to MySQL.
>
> Also, I have root password for MySQL, should I modify
>
> <property name="username">
> <value>admusr</value>
> </property>
> <property name="password">
> <value>admpwd</value>
> </property>
>
> as
>
> <property name="username">
> <value>root</value>
> </property>
> <property name="password">
> <value>xxxxx</value>
> </property>
>
>
> ??
> _______________________________________________
> cas-dev mailing list
>
cas-dev@... <mailto:
cas-dev@...>
>
http://tp.its.yale.edu/mailman/listinfo/cas-dev>
>
>
>
> --
> -Scott Battaglia
> PGP Public Key Id: 0x383733AA
> LinkedIn:
http://www.linkedin.com/in/scottbattaglia> ------------------------------------------------------------------------
>
> _______________________________________________
> cas-dev mailing list
>
cas-dev@...
>
http://tp.its.yale.edu/mailman/listinfo/cas-dev>
_______________________________________________
cas-dev mailing list
cas-dev@...
http://tp.its.yale.edu/mailman/listinfo/cas-dev