Menu

What does it take to run the example simulation for the example application provided?

2013-07-03
2013-07-08
  • katwere james

    katwere james - 2013-07-03

    Hello,
    Am trying to use both the example application and the example simulation given for the Nessi 2.1.1 project but i don't get any success, even after copying the application jar in the UI (front end application folder) and the SE (back end application folder) folders, by the way sample application already lacks dependencies in its pom file(thus brings about issues when trying to resolve dependencies in maven so that you can install it in the respective application folders mentioned earlier).so am asking what it takes me to run this whole simulation successfully because its my only way to learn Nessi. Help will really be appreciated. thanks

     

    Last edit: katwere james 2013-07-03
    • Karsten Bsufka

      Karsten Bsufka - 2013-07-05

      It seems you either did not launch a NeSSi2 backend or you use UI and backend in different versions.

       
  • daell

    daell - 2013-07-03

    Hello James,

    I modified the example application so that you can use dependencies, see the attachment.
    in order to use your own maven-managed dependencies, you need to do several steps,
    1) enter them in the dependencies-section in the pom.xml
    2) run 'mvn install' or 'mvn dependency:copy-depenendecies'
    3) go into eclipse and open the MANIFEST.MF file with the manifest-editor
    4) in the runtime-tab (bottom) go to to the classpath-box an add every jar from target/dependency to it

    now you can use the dependency in your code.
    When you want to use the application in nessi you need to create a subfolder in the applications-directories and put all dependencies into that folder, they will then be loaded before the application itself.
    We discovered an issue, that if a dependency has dependencies by itself, it still can happen, that the application fails to load, to reduce that problem I recommend switching to version 2.1.2 which has been just released.

    I hope this helps you
    Best regards
    Jakob

     
    • katwere james

      katwere james - 2013-07-05

      Hello Jakob,
      thanks very much for the reply, well i did every thing you mentioned and thanks for the detailed reply, tough having written all dependencies in the pom file except ("import de.dailab.nessi.hibernate.mapping.rec.HbmRecordingInt;") which is no where to be seen at the repo. included all downloaded artifacts as the imports package statements required, included them in the MANIFEST.MF file and executed the mvn install command which installed them in the repository BUT the import package statements still couldnt resolve. as shown in the attachment screen shot

       
      • daell

        daell - 2013-07-08

        Hello James,

        I thought, that you meant dependencies, which are not provided by NeSSi itself.
        In your case this problem is easy to solve. I added a new version of the target-definition
        as an attachment. Place this target into your application-project and do the following:

        1) remove all dependencies from your pom.xml
        2) run 'mvn clean'
        3) open the target with the Target-Editor in eclipse
        4) in the upper menu-bar click on 'set as target definition'

        The steps I mentioned before are only necessary, if you need additional dependecies,
        which are not contained in the target (see contents-tab in the editor).

        Best regards
        Jakob

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.