- This topic has 3 replies, 2 voices, and was last updated 19 years, 3 months ago by Randy.
-
AuthorPosts
-
RandyMemberLooks like some jars are missing, ie the spring-hibernate.jar (from the SpringDAO/ORM lib) and the spring-mock from the Spring Testing lib.
Having said that, I created a new user lib for these, added them (pointed to ME_HOME/com…springframework/data/1.2/lib). This made most of my errors go away. the one that remains is in the spring applicationContext.xml file. It claims it still can’t find:
Severity Description Resource In Folder Location Creation Time
2 Class ‘org.springframework.orm.hibernate3.HibernateTransactionManager’ not found applicationContext.xml AssetmgmtPersistence/src/conf line 75 August 30, 2005 10:26:02 AM
2 Class ‘org.springframework.orm.hibernate3.LocalSessionFactoryBean’ not found applicationContext.xml AssetmgmtPersistence/src/conf line 49 August 30, 2005 10:26:02 AMThese two classes are part of the spring-hibernate.jar (which is visible on my classpath. from a java source file I can navigate the classes in this package via the import statement).
Here is the one of the sections in my applicationContext.xml:
<bean id=”transactionManager”
class=”org.springframework.orm.hibernate3.HibernateTransactionManager”>
<property name=”sessionFactory”>
<ref local=”sessionFactory” />
</property>
</bean>As part of my upgrade, I removed the M3 version of ME, then installed fresh on ME4.
If I figure anything out, I’ll post again.
Randy
EDIT: Added applicationContext.xml fragment.
RandyMemberI went to to the project properties, selected MyEclipse-Spring, and removedf my app context file from the project. Saved the change, closed the dialog. Reopened it, added my appContext.xml in the spring project properties and it worked.
Not sure why but it made the errors go away. I did find another missing jar file (I think it was the jakarata commons common-pool.jar, but I’m now at home so I can’t see my error messages) which I added to my user project lib. after adding it, my junit tests ran fine.
Hope this helps!
Randy
Riyad KallaMemberRandy,
Can you navigate to your Window > Prefs > MyEclipse > Project Caps > Spring preferences and hit Restore Defaults? I noticed on my setup this morning that the libraries were barfed until I hit that.
RandyMemberactually I did that. It was a fix for an M3 issue on spring.
Tx for the help though.
Randy
-
AuthorPosts