Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: spring jbpm : how to use

  1. #1
    Join Date
    Sep 2005
    Location
    India
    Posts
    22

    Default spring jbpm : how to use

    Hi All,
    I'm newbie to spring and my question may be of primary kind to u all.
    I need to use JBPM ans so downloaded "spring-projects/spring-jbpm" from CVS.
    I tried to make "ant build" ; but as this build referes to "common-targets" in parent directory, I checked out whole folder viz."/spring-projects/"
    In the projects dir, I did "ant gen-release-bins".
    Then,
    cd spring-jbpm/
    ant

    I got the following trace:
    WARN: ::::::::::::::::::::::::::::::::::::::::::::::
    WARN: :: UNRESOLVED DEPENDENCIES ::
    WARN: ::::::::::::::::::::::::::::::::::::::::::::::
    WARN: :: springframework/spring-dao-1.2.4: not found
    WARN: :: springframework/spring-beans-1.2.4: not found
    WARN: :: springframework/spring-hibernate-1.2.4: not found
    WARN: :: springframework/spring-context-1.2.4: not found

    ...The list continues...

    BUILD FAILED
    impossible to resolve dependencies: resolve failed - see output for details.
    What is the thing I'm missing out in this?
    Or, what is the exact way to use "spring-jbpm"?

    Any help is appreciated.

    thanks,
    anagha

  2. #2
    Join Date
    Sep 2005
    Location
    Chicago
    Posts
    5

    Default spring-jBPM build

    Instead of doing 'ant gen-release-bins', go to the spring-jbpm directory and run 'ant build'. Since you've checked out spring-projects the build can now find all it's properties and files.

  3. #3
    Join Date
    Sep 2005
    Location
    India
    Posts
    22

    Default

    Yes...I did the same.
    As mentioned in the question I did "ant" in the "jbpm" directory.
    I got the errors related to dependencies.
    Any suggesions?

  4. #4
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    When did you checkout the sources - I have looked briefly at the logs and there was an upgrade to 1.2.5 so the 1.2.4 should not be needed anymore. Can you please check that your sources are up to date and see what is going on in the configuration file?
    Have you tried running ant first in the main directory ? (just guessing..)
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  5. #5
    Join Date
    Sep 2005
    Location
    India
    Posts
    22

    Default

    Project "spring-projects" checked out from Eclipse IDE :
    Following is the environment :
    Host : cvs-pserver.sourceforge.net. (As with cvs.sourceforge.net connection was not successful) This was as per in the CVS docs)
    http://sourceforge.net/docman/displa...894#connection

    Port : 443 (As with default port 2401, connection was not successful)
    Repository Path : /cvsroot/springframework
    User : anonymous
    Password :
    Conection Type : pserver

    After successful connection :
    I checked out from HEAD -> spring-projects.
    Date : 28th Sept, 2005
    Anything wrong in this environment?

    Can you please check that your sources are up to date and see what is going on in the configuration file?
    What settings need to be checked in the configuration file?
    thanks,
    Anagha

  6. #6
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    The project was checked out completely. Spring-projects is not yet released, it's still in an alpha form (from what I know) and that's why I think there might some hicups in the build process.
    I'm suggesting to look at the ant file and figure out what is not working in there. You can also try the spring/spring modules mailing list to get some help.

    I know that Rob will probably come back from the holiday next week and, as the commiter of the code can probably help you out.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  7. #7
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    I just updated the ivy.xml file so that it will bring down the 1.2.5 Spring dependencies now so the build should succeed just fine. You'll need to download Ivy 1.2a as well for this to succeed.

    Rob
    Rob Harrop
    Lead Engineer, dm Server
    SpringSource
    http://www.springsource.com

    Co-Author - Pro Spring

  8. #8
    Join Date
    Sep 2005
    Location
    India
    Posts
    22

    Default

    Checked out latest spring-projects from the CVS

    Perfomed the following steps :
    • cd common-build/
      ant clean
      ant gen-release-sources
      ant release
      ant gen-release-bins
      ant tests
      BUILD FAILED
      /home/anagha/eclipseProjects/spring-projects/build-spring/build.xml:118: The following error occurred while executing this line:
      Target `run-ltests' does not exist in this project.
      cd ../spring-jbpm/
      ant
      BUILD FAILED
      /home/anagha/eclipseProjects/spring-projects/common-build/common-targets.xml:516: Compile failed; see the compiler error output for details.


    What is the exact thing I'm missing out?

  9. #9
    Join Date
    Nov 2004
    Location
    Dallas, TX USA
    Posts
    24

    Default

    First you have to fix the syntax error in JbpmTemplate line 170 missing semicolon.


    Turns out you'll need at least Ant 1.6.2 to run the junit tests. I did the following using Ant 1.6.5 embedded in Eclipse 3.1. First, under window->prefs->ant add the junit.jar to the classpath, I know ant is supposed to come with that but without it eclipse complained it couldn't find the junit.framework.Test class. Second, from the spring-jbpm project run:

    ant clean
    ant tests-dist

    The tests pass and the spring-jbpm distro jar resulted.

    Rob mentioned you'll need to download Ivy 1.2a. For me that came down once I synchronized with the main springframework/spring-projects CVS module.
    -steve

  10. #10
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

    Gah! I can't believe I committed that I as using that bit of code to check out an API issue and accidentally left it in there.

    Fixed now.

    Rob
    Rob Harrop
    Lead Engineer, dm Server
    SpringSource
    http://www.springsource.com

    Co-Author - Pro Spring

Similar Threads

  1. Spring MVC Web Framework versus Struts
    By biguniverse in forum Web Flow
    Replies: 27
    Last Post: Aug 29th, 2012, 03:57 AM
  2. Replies: 5
    Last Post: Aug 9th, 2008, 05:30 AM
  3. jbpm setup through spring
    By gnic in forum Container
    Replies: 1
    Last Post: Sep 19th, 2005, 09:36 PM
  4. A Spring Class Loader?
    By azzoti in forum Architecture
    Replies: 8
    Last Post: May 7th, 2005, 04:02 AM
  5. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •