teiid / teiid-spring-boot

Teiid Spring Boot is fast way to get to your Data Virtualizations projects using Teiid and Spring Boot
https://teiid.io
Apache License 2.0
46 stars 63 forks source link

Not able to run Teiidboot from Command Line #314

Closed cgokulnath closed 3 years ago

cgokulnath commented 3 years ago

I am trying to use simple Teiid Boot from both STS Studio and Command-Line.

In STS studio, this works fine. While running from the command line, it throws an error saying

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.teiid.spring.odata.WebConfig': Unsatisfied dependency expressed through field 'vdb'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'teiidVDB' defined in class path resource [org/teiid/spring/autoconfigure/TeiidAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.teiid.adminapi.impl.VDBMetaData]: Factory method 'teiidVDB' threw exception; nested exception is java.lang.IllegalStateException: Failed to parse the VDB defined

From command line, I am running, java -jar demowithcustomconnectors-1.0-SNAPSHOT.jar from command line.

I am not using any third-party jar.

Teiidboot-error

cgokulnath commented 3 years ago

I found that Teiid 1.7.1 version is not running with the command line where as 1.6.0 runs. After building with 1.6.0, it works.

rareddy commented 3 years ago

I see an error introduced in 1.7 with VDB with multiple DDL files and fetching of them. It works on the IDE because when in IDE it is looking at target directory for the DDL file, whereas when executing from the command line it was not able to lookup these files in JAR. I will commit a fix to it. 1.7 has few better ways of configuring the custom translators.

rareddy commented 3 years ago

actually this commit already fixes this issue https://github.com/teiid/teiid-spring-boot/commit/d80711fcaea9c2f6e5012a8e9a519a5d9748d44b

you can locally build, but I will try to do another release like 1.7.2

cgokulnath commented 3 years ago

Thanks Ramesh for all your support. let us know when 1.7.2 will be available. we like to use.

cgokulnath commented 3 years ago

Dear Ramesh, kindly let us know when you plan for 1.7.2 Release. this helps us to move into production from our side. thanks, -Gokul

rareddy commented 3 years ago

I had some issues with the commit I referred to above as that was not tested completely and some other tests are failing. I need to correct those first. If you want to help providing a fix to those I can expedite the release.

rareddy commented 3 years ago

1.7.2 is released now.

cgokulnath commented 3 years ago

Thanks Ramesh for making this release. this helps us a lot!