Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-14-2008, 12:28 PM
Member
 
Join Date: Nov 2007
Posts: 4
sanjay_sharma77 is on a distinguished road
Database connectivity in Jave struts with Hibernate
Hi,

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.

Thanks,
Sanjay.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-02-2008, 09:41 PM
Member
 
Join Date: Apr 2007
Location: Indiana
Posts: 84
pegitha is on a distinguished road
Send a message via Skype™ to pegitha
You are going to need something like this someplace in an xml file. Do you have it?
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" /> </bean>
This is for Oracle but it would be similar for MySql, only youwould use the mysql driver.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Database Connectivity Java Tutorial Java Tutorials 0 01-14-2008 02:11 PM
How can I store an image to the database using hibernate cryss_tyna Database 0 08-15-2007 02:48 PM
Hibernate 2.1.8 / Oracle 10 / Tomcat 5.0.28 : Data not retrieved from the database scastro Database 4 08-09-2007 11:41 PM
database connectivity rilwanfit Networking 0 08-08-2007 09:08 AM
Hibernate with multiple database Marty Database 2 05-07-2007 05:56 PM


All times are GMT +3. The time now is 10:31 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org