Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

plz rectify my problem

  Asked By: Anpu    Date: Jan 21    Category: Java    Views: 679
  

i am using database as mysql . here i am trying to connect database using datasource but it show error
java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource

IDE : Eclipse Europa

</data-sources>
<data-source>
<set-property property="driverClass" value="com.mysql.jdbc.Driver"/>
<set-property property="url" value="Jdbc:Mysql://localhost/employees"/>
<set-property property="maxCount" value="5"/>
<set-property property="minCount" value="1"/>
<set-property property="user" value="root"/>
<set-property property="password" value="vijay"/>

</data-source>
</data-sources>

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Yvette Griffin     Answered On: Jan 21

Make sure the jar is in the classpath

 
Didn't find what you were looking for? Find more on plz rectify my problem Or get search suggestion and latest updates.




Tagged: