GitHub user rgus57674 edited a discussion: Need help running embedded Hop 
pipelines with Springboot

We have a large number of Pentaho transformations that are currently deployed 
using Springboot executable jar files. We plan to convert the existing Pentaho 
transformations  to Hop pipelines and have similar Springboot deployments.

When I try to embed Hop pipelines in a Springboot application and run a 
pipeline using the Springboot executable jar file uisng the 
spring-boot-maven-plugin, I get the following error message (also attached the 
logs).



**_org.apache.hop.core.exception.HopException: 
Unable to find plugin with ID 'Hop'

at org.apache.hop.core.encryption.Encr.init(Encr.java:47)
at org.apache.hop.core.HopClientEnvironment.init(HopClientEnvironment.java:120)
at org.apache.hop.core.HopClientEnvironment.init(HopClientEnvironment.java:76)
at org.apache.hop.core.HopEnvironment.init(HopEnvironment.java:114)_**


If I create the jar file using maven-shade-plugin, I get the following error.

_**Hop configuration file not found, not serializing: 
/Users/User/Desktop/SampleHopApp/config/hop-
config.json
org.apache.hop.core.exception.HopException:
Error loading the pipeline run configuration 'local'
Error loading metadata object 'local' from file 
'/Users/User/Desktop/hop-apache/hop-
2.9.0/config/projects/default/metadata/pipeline-run-configuration/local.json'**_


 I, however, am able to run the same code in an IDE or using mvn 
spring-boot:run. It looks like a class loading issue that I am not able to 
figure out and I am sure someone might be able to provide some guidance. I am 
attaching the example I used (JDK 17, Hop 2.9.0).

I really appreciate your help.

Regrads
RG

Here is the sample code used - https://github.com/rgus57674/samplehopspringboot

Logs:
[Sprintbootjar_error.txt](https://github.com/user-attachments/files/18745185/Sprintbootjar_error.txt)
[mvn-spring-boot-run-success.txt](https://github.com/user-attachments/files/18745196/mvn-spring-boot-run-success.txt)
[maven-shade-plugin-error.txt](https://github.com/user-attachments/files/18745252/maven-shade-plugin-error.txt)




GitHub link: https://github.com/apache/hop/discussions/4887

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to