Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
netzwerge
Post subject: [Closed] Hibernate, Spring & JSF missing Package  PostPosted: Sep 27, 2005 - 10:01 AM
Veteran Member
Veteran Member


Joined: Sep 07, 2005
Posts: 4

Hello!
I'm trying to develop my first application with JSF, Spring & Hibernate integration. As Tutotial I'M using http://www.javaworld.com/javaworld/jw-07-2004/jw-0719-jsf.html. But I have a big problem and don't know how to solve this:
I added JSF, Spring and Hibernate Capabilities but I'm missing the package
org.springframework.orm.hibernate.support.HibernateDaoSupport.
I've added the Spring 1.2 DAO/ORM Libraries during adding Spring but the Hibernate Support is missung in that Library. Why? It is included in the original distribution of spring. How do I add that package? And thy is it missing in the Spring-Libs shipped with Myeclipse?

I'm using MyEclipse 4.0 GA and Eclipse 3.1 under Windows 2000
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Sep 27, 2005 - 03:50 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23855

netzwerge,
I just added Spring ORM to my project and under it I see quite a few files, some of which are hibernate, ibatis and jdo specific, so everything seems ok.

If you look at your package explorer view and find the "Spring 1.2 DAO/ORM libraries" container, and expand it, what do you see? Did you do a clean install of Eclipse 3.1 and MyEclipse 4.0 or was this an upgrade? If it was an upgrade it's possible our paths are stale, and navigating to Window > Prefs > MyEclipse> Project Capabilities > Spring and hitting Restore Defaults should fix them, you might need to remove-readd the library though. You can do that from your Java Build Path > Library tab, and clicking Add Library then clicking MyEclipse Libraries.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
netzwerge
Post subject:   PostPosted: Sep 28, 2005 - 11:16 AM
Veteran Member
Veteran Member


Joined: Sep 07, 2005
Posts: 4

Thank you for your reply. But it did not work. If I expand the "Spring 1.2 DAO/ORM" I can see the following libs:
spring-dao.jar
spring-jdbc.jar
spring-orm.jar
commons-dbcp.jar
commons-lang.jar
c3p0-0.9.0.jar
hibernate3.jar
hibernate-annotations.jar
libatis-sqlmap.jar
libatis-sqlmap-2.jar
libatis-common-2.jar
jdo2.jar
jotm.jar
xapool.jar
db.ojb-1.0.3.jar
toplink-api.jar
The package org.springframework.orm.hibernate.support I need should be (as the name says) in spring-orm.jar. But if I expand it I can only find the following packages:
org.spingframework.orm
org.spingframework.orm.libatis
org.spingframework.orm.libatis.support
org.spingframework.orm.jdo
org.spingframework.orm.jdo.support
org.spingframework.orm.ojb
org.spingframework.orm.ojb.support
org.spingframework.orm.toplink
org.spingframework.orm.toplink.support
But the hibernate and hibernate3 trees are missing. I took a look at the lib spring.jar in the dir MyEclipse\eclipse\plugins\com.genuitec.eclipse.springframework_4.0.0\data
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Sep 28, 2005 - 02:44 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23855

netzwerge,
The spring.jar file is a compilation of ALL the spring libraries, you can manually add this file to your build path and remove the other Spring files, in the mean time we used to have a Spring All library that I'm not sure where it went, I'll check up on that.

Also I would add that the Spring libraries shipped with MyEclipse are intact just as they come from the springframework site, there is nothing different about them, the hibernate package isn't in the ORM JAR from springframework either.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
netzwerge
Post subject:   PostPosted: Sep 28, 2005 - 03:57 PM
Veteran Member
Veteran Member


Joined: Sep 07, 2005
Posts: 4

OK. Thank you! I added the spring.jar to my project and now it works fine. I also downloaded the original Spring distribution and found that hibernat support is missing in that spring-orm.jar too, just as you wrote. Might be a mistake in the spring distribution.

Thank you for your Help!
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Sep 28, 2005 - 06:58 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23855

No problem glad it is working.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-michael
Post subject:   PostPosted: Sep 28, 2005 - 07:55 PM
Moderator
Moderator


Joined: May 05, 2003
Posts: 1037

Hello netzwerge,

There is a minor bug in the ME 4.0 Spring DAO/ORM library module in that the spring-hibernate.jar was omitted. This will be resolved in the upcoming ME 4.0.1 release.

Another work-around is that the spring-hibernate.jar is shipped with the ME Spring plugins and can be added to the DAO/ORM library module through the MyEclipse preferences (Windows>Preferences>MyEclipse>Project Capabilities>Spring). From the preferences page select the "Add Library" button and browse to the location of spring-hibernate.jar, [MyEclispeInstallLocation]/eclipse/plugins/com.genuitec.eclipse.springframework_3.9.211/data/1.2/lib/spring-hibernate.jar. The version number in the springframework plugin path may be higher based on you distro.

Regards,

_________________
Michael
MyEclipse Support

Posting Guidelines FYI
When posting a bug report, click the "Insert" button above the message window and fill out the empty fields to help us troubleshoot your problem.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits