facebook

[Closed] Automatic Spring integration with Web Projects-jars

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #245606 Reply

    eadon
    Member

    Hi,
    Just a quick note to say that even though I used “myEclipse” to “add” spring to the Web Project, deployment causes a spring resource error, because MyEclipse does not copy the spring jars to the WEB-INF/lib directory. So local unit tests of Spring code work fine, but running the code from JBoss fails. Manually copying the jar files to the WEB-INF/lib directory fixes the problem.
    Perhaps I have overlooked a trick.

    #245607 Reply

    eadon
    Member

    Whilst I am here, I notice that when deploying a MyEclipse EJB project using Hibernate, you need to copy the Apache commons collections jar file to
    jboss-4.0.2/server/default/deploy/jboss-hibernate.deployer directory
    This particular problem is not a MyEclipse bug, but you might want to mention it in your tutorials as a trouble-shooter. (Unless you already have and I missed it).

    #245608 Reply

    eadon
    Member

    The above hibernate project problem when deployed to JBoss gives this error:
    java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap

    #245649 Reply

    Brian Fernandes
    Moderator

    Eadon,

    When adding spring capabilities, you do have an option to copy the spring jars instead of just linking to them in, perhaps you could try adding capabilites to a dummy project and see if this would have done the trick for you.

    I’m afraid I need a little more context for your current problem – if you have one.
    Are you still seeing the NCDF error after copying the collections jar into your project?

    Could you additionally include the build ID of Eclipse and MyEclipse?

    Best,
    Brian.

    #245714 Reply

    eadon
    Member

    Hi,
    Thanks for your reply. Everything’s fine, I probably inadvertantly didn’t select the copy option 🙂

    #245716 Reply

    Brian Fernandes
    Moderator

    Glad it’s all good now.

    Brian.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: [Closed] Automatic Spring integration with Web Projects-jars

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