« Return to Thread: mysql+ cas 3.0.7+tomcat 5.5 -urgent help, please!!!

Re: mysql+ cas 3.0.7+tomcat 5.5 -urgent help, please!!!

by scott_battaglia :: Rate this Message:

Reply to Author | View in Thread

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

 « Return to Thread: mysql+ cas 3.0.7+tomcat 5.5 -urgent help, please!!!