MyEclipse: [Closed] Hibernate, Spring & JSF missing Package

netzwerge - Sep 27, 2005 - 10:01 AM
Post subject: [Closed] Hibernate, Spring & JSF missing Package
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
support-rkalla - Sep 27, 2005 - 03:50 PM
Post subject:
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.
netzwerge - Sep 28, 2005 - 11:16 AM
Post subject:
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\1.2\lib. In that jar the full subtree of the org.spingframework.orm tree is present. But why is it missing in the spring-orm.jar wich is integrated by MyEclipse?
support-rkalla - Sep 28, 2005 - 02:44 PM
Post subject:
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.
netzwerge - Sep 28, 2005 - 03:57 PM
Post subject:
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!
support-rkalla - Sep 28, 2005 - 06:58 PM
Post subject:
No problem glad it is working.
support-michael - Sep 28, 2005 - 07:55 PM
Post subject:
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,
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits