Skip to content
Advertisement

Script for IBM Rhapsody made with Java and Spring autowiring not working

I developed a script for IBM Rhapsody using it’s API for java.
The script is working fine when is run from my IDE. When I run the script from Rhapsody using the JAR and HEP file I get NullPointerException when I use autowired beans.

Does anyone know if the Spring is nor supported for Rhapsody API or haw I can fix my script?

Advertisement

Answer

The solution is to export as an executable JAR. This way the JAR is exported with the necessary library included.
My problem was that when Rhapsody run my JAR file it did not find spring in the classpath.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement