Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2007
    Rep Power

    Post Database connectivity in Jave struts with Hibernate


    I have a particular problem in accessing the application.

    Once I try to login as user, system doesnot allow me to enter into the system.
    I shows User Id or password is incorrect. However user id and password are correct as per the data inside the database.

    I have user Hibernate for this struts application. Could you let me know the possible reasons why the application is not connected to the database.


  2. #2
    pegitha is offline Member
    Join Date
    Apr 2007
    Rep Power


    You are going to need something like this someplace in an xml file. Do you have it?
    Java Code:
    <bean id="dataSourceDOES" name="dataSourceDOES" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close">
            <property name="driverClass" value="oracle.jdbc.driver.OracleDriver"/>
            <property name="jdbcUrl" value="jdbc:oracle:thin:@111.222.333.444:1521:test"/>
            <property name="user" value="dbuser"/>
            <property name="password" value="password"/>
            <property name="minPoolSize" value="1"/>
            <property name="acquireIncrement" value="1"/>
            <property name="maxPoolSize" value="3"/>
    		<property name="autoCommitOnClose" value="false" />
    This is for Oracle but it would be similar for MySql, only youwould use the mysql driver.

Similar Threads

  1. database connectivity
    By rilwanfit in forum Networking
    Replies: 1
    Last Post: 03-13-2009, 08:54 PM
  2. Hibernate with multiple database
    By Marty in forum JDBC
    Replies: 3
    Last Post: 12-23-2008, 01:57 PM
  3. Java Database Connectivity
    By Java Tutorial in forum Java Tutorial
    Replies: 0
    Last Post: 01-14-2008, 02:11 PM
  4. Replies: 0
    Last Post: 08-15-2007, 01:48 PM
  5. Replies: 4
    Last Post: 08-09-2007, 10:41 PM

Posting Permissions

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