facebook

Spring Issues with 4.0

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #236087 Reply

    Randy
    Member

    Looks 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 AM

    These 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.

    #236139 Reply

    Randy
    Member

    I 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

    #236154 Reply

    Riyad Kalla
    Member

    Randy,
    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.

    #236170 Reply

    Randy
    Member

    actually I did that. It was a fix for an M3 issue on spring.

    Tx for the help though.

    Randy

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Spring Issues with 4.0

You must be logged in to post in the forum log in