Announcement Announcement Module
Collapse
No announcement yet.
org.springframework.jdbc.CannotGetJdbcConnectionEx ception Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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

    Comment


    • #3
      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

      Comment


      • #4
        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....

        Comment

        Working...
        X