Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
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 08-04-2008, 02:17 PM
Member
 
Join Date: Aug 2008
Posts: 1
Ramesh is on a distinguished road
Added JAR File is not visible in programs (Eclipse Europa/JBoss4.2.2 GA/EJB3.0)
Hi,
After wasting so much time on googling, I found it would be better posting my problem in forums. Please any body concentrate on problem I am getting, even though it look simple one.
I have been using Eclipse Europa with JBoss 4.2.2 GA, to do my Java Enterprise Application Projects.
I have created (Eclipse Europa automatically generated) 2 modules (EJB, WEB modules) in one of my Enterprise Application project. In my EJB module(EJB Project) I need to perform some database operations, for that I added mysql-connector-java-5.1.6-bin.jar by following way below.

1) Rightclick on project->New->Folder-><lib>
2) Rightclick on lib folder->Import->General/FileSystem-> Browse-> <mysql-connector-java-5.1.6-bin.jar >
3) Rightclick on project->Properties->JavaBuildpath-> Libraries->Add Jars ->
<Slected mysql-connector-java-5.1.6-bin.jar> -> Ok -> Ok.

In This way I added mysql-connector-java-5.1.6-bin.jar to my EJB Project in Eclipse Europa. But When I run Project It is throwing Exception

"Initial SessionFactory creation failed.org.hibernate.HibernateException: JDBC Driver class not found: com.mysql.jdbc.Driver."

***Note: when i do copy and paste mysql-connector-java-5.1.6-bin.jar file in "<JBOSS_HOME>\server\default\lib." My project working fine. The Only problem is Adding JAR File from Ecipse Europa

Please Anyone help me immediately pls. Every one saying that above mentioned 1st way is correct and always works. What would be problem in my ecipse or its settings

Thanks & Regards
Ramesh.B
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
Nodes and edges..making visible and invisible based on distance sfaiz Java Applets 1 09-18-2008 02:59 AM
Help-would like JFRAME added to program tigerfan2 New To Java 1 05-13-2008 05:03 AM
No datas in added to arraylist Preethi New To Java 0 02-15-2008 01:07 PM
JBOSS4 Error b7518 Suggestions & Feedback 1 01-09-2008 10:53 AM
Passing Environment Variable in Eclipse Europa ajaymenon.k Eclipse 0 11-19-2007 12:08 PM


All times are GMT +3. The time now is 01:47 PM.


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