Results 1 to 4 of 4

Thread: org.springframework.jdbc.CannotGetJdbcConnectionEx ception

  1. #1
    Join Date
    Oct 2006
    Posts
    4

    Question org.springframework.jdbc.CannotGetJdbcConnectionEx ception

    hi all when i run my program i get the error message below

    org.springframework.jdbc.CannotGetJdbcConnectionEx ception: Could not get JDBC Connection; nested exception is SQL Exception: Database 'GIXDS' not found.
    SQL Exception: Database 'GIXDS' not found.

    this is bean file

    <bean id="dbDataSource" class="org.springframework.jdbc.datasource.DriverM anagerDataSource" singleton="true">
    <property name="driverClassName" value="${jdbc.driverClassName}"/>
    <property name="url" value="${jdbc.url}"/>
    <property name="username" value="${jdbc.username}"/>
    <property name="password" value="${jdbc.password}"/>
    </bean>

    i set the properties to another file

    jdbc.driverClassName=org.apache.derby.jdbc.Embedde dDriver
    jdbc.url=jdbc:derby:GIXDS
    jdbc.username=user
    jdbc.password=password

    i think is the connection problem pls show me
    the way how to configure it ...
    thank you for reply

  2. #2
    Join Date
    Oct 2004
    Location
    Fareham, England
    Posts
    313

    Default

    Hiya

    Forgive me for asking the obvious but have you actually created the GIXDS database?

    If you want to create it automatically, you could try this url:

    Code:
    jdbc.url=jdbc:derby:GIXDS;create=true
    Cheers
    Rick

  3. #3
    Join Date
    Oct 2006
    Posts
    4

    Question

    thank for reply

    yes i have create the database GIXDS ...
    and if i want to set the authentication can i set by this ?

    jdbc.authenticate=org.apache.derby.connection.requ ireAuthentication

  4. #4
    Join Date
    Oct 2006
    Posts
    4

    Question

    thank you for reply

    is my problem is the connection still cannot
    get i was using the eclipse IDE pls any one
    show me how to configure it....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •