Menu

MySQL database could not be found

Help
2009-08-27
2013-04-09
  • Jonathan Ziliox

    Jonathan Ziliox - 2009-08-27

    Hi.

    I've just installed tudu list and now i'm trying to use my local MySQL DB with it but i'm experiencing some troubles.
    I'm using MySQL 5.0.67 and Tomcat 5.5.28 to do my tests.
    I've configured the resource like this :

    content of tudu-dwr.xml in conf/catalina/localhost directory :

    [code]
    <Context docBase="${catalina.home}/server/webapps/tudu-dwr.war"  reloadable="true">
        <Resource     name="jdbc/tudu"
                    url="jdbc:mysql://localhost:3306/tudu"
                    username="tudu"
                    password="tudu"
                    description="Tudu database"
                    driverClassName="com.mysql.jdbc.Driver"
                    maxActive="100"
                    maxIdle="30"
                    maxWait="10000"
                    type="javax.sql.DataSource"
                    auth="Container"
        />
    </Context>
    [/code]

    I've restarted Tomcat, but i still get the same error :

    0    [Thread-1] WARN  tudu.domain.configuration.DataSourceFactory  - Initializing database connection pool.
    0    [Thread-1] WARN  tudu.domain.configuration.DataSourceFactory  - No database configured in JNDI at "java:/comp/envjdbc/tudu"
    281  [Thread-1] WARN  tudu.domain.configuration.DataSourceFactory  - MySQL database could not be found
    641  [Thread-1] WARN  tudu.domain.configuration.DataSourceFactory  - HSQLDB database started.

    I have no idea...

     
    • Jonathan Ziliox

      Jonathan Ziliox - 2009-08-27

      Ok, problem solved...
      Note for myself : have a look at common/lib first (Mysql jdbc driver was missing...)

       

Log in to post a comment.