[JBoss JIRA] (TEIIDSB-203) A .vdb file nested inside the Spring Repackage jar can not be read
by Ramesh Reddy (Jira)
[ https://issues.redhat.com/browse/TEIIDSB-203?page=com.atlassian.jira.plug... ]
Work on TEIIDSB-203 started by Ramesh Reddy.
--------------------------------------------
> A .vdb file nested inside the Spring Repackage jar can not be read
> ------------------------------------------------------------------
>
> Key: TEIIDSB-203
> URL: https://issues.redhat.com/browse/TEIIDSB-203
> Project: Teiid Spring Boot
> Issue Type: Bug
> Components: core
> Affects Versions: 1.4.0
> Reporter: Ramesh Reddy
> Assignee: Ramesh Reddy
> Priority: Major
> Fix For: 1.5.0
>
>
> When user is using a .VDB file as VDB and builds a spring repackage based application, at runtime the loading of the VDB is failed as it is being read as classpath resource. The exception you see is
> {code}
> Caused by: java.lang.IllegalArgumentException: URI: jar:file:/home/rareddy/development/teiid-spring-boot/samples/vdb/target/spring-vdb-example-1.5.0-SNAPSHOT.jar does not contain path info ex. jar:file:/c:/foo.zip!/BAR
> at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getPath(ZipFileSystemProvider.java:155) ~[jdk.zipfs:na]
> at java.base/java.nio.file.Path.of(Path.java:208) ~[na:na]
> at java.base/java.nio.file.Paths.get(Paths.java:98) ~[na:na]
> at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.uriToPath(ZipFileSystemProvider.java:77) ~[jdk.zipfs:na]
> at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getFileSystem(ZipFileSystemProvider.java:167) ~[jdk.zipfs:na]
> at java.base/java.nio.file.FileSystems.getFileSystem(FileSystems.java:231) ~[na:na]
> at org.teiid.query.metadata.NioZipFileSystem.mount(NioZipFileSystem.java:67) ~[teiid-engine-14.0.0-SNAPSHOT.jar!/:14.0.0-SNAPSHOT]
> at org.teiid.query.metadata.NioZipFileSystem.mount(NioZipFileSystem.java:51) ~[teiid-engine-14.0.0-SNAPSHOT.jar!/:14.0.0-SNAPSHOT]
> at org.teiid.spring.autoconfigure.TeiidAutoConfiguration.loadVDB(TeiidAutoConfiguration.java:214) ~[teiid-spring-boot-starter-1.5.0-SNAPSHOT.jar!/:1.5.0-SNAPSHOT]
> {code}
> basically one cannot read a nested jar files. The issue also explained here https://stackoverflow.com/questions/37634452/urlclassloader-cant-handle-j...
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 10 months
[JBoss JIRA] (TEIIDSB-203) A .vdb file nested inside the Spring Repackage jar can not be read
by Ramesh Reddy (Jira)
Ramesh Reddy created TEIIDSB-203:
------------------------------------
Summary: A .vdb file nested inside the Spring Repackage jar can not be read
Key: TEIIDSB-203
URL: https://issues.redhat.com/browse/TEIIDSB-203
Project: Teiid Spring Boot
Issue Type: Bug
Components: core
Affects Versions: 1.4.0
Reporter: Ramesh Reddy
Assignee: Ramesh Reddy
Fix For: 1.5.0
When user is using a .VDB file as VDB and builds a spring repackage based application, at runtime the loading of the VDB is failed as it is being read as classpath resource. The exception you see is
{code}
Caused by: java.lang.IllegalArgumentException: URI: jar:file:/home/rareddy/development/teiid-spring-boot/samples/vdb/target/spring-vdb-example-1.5.0-SNAPSHOT.jar does not contain path info ex. jar:file:/c:/foo.zip!/BAR
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getPath(ZipFileSystemProvider.java:155) ~[jdk.zipfs:na]
at java.base/java.nio.file.Path.of(Path.java:208) ~[na:na]
at java.base/java.nio.file.Paths.get(Paths.java:98) ~[na:na]
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.uriToPath(ZipFileSystemProvider.java:77) ~[jdk.zipfs:na]
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getFileSystem(ZipFileSystemProvider.java:167) ~[jdk.zipfs:na]
at java.base/java.nio.file.FileSystems.getFileSystem(FileSystems.java:231) ~[na:na]
at org.teiid.query.metadata.NioZipFileSystem.mount(NioZipFileSystem.java:67) ~[teiid-engine-14.0.0-SNAPSHOT.jar!/:14.0.0-SNAPSHOT]
at org.teiid.query.metadata.NioZipFileSystem.mount(NioZipFileSystem.java:51) ~[teiid-engine-14.0.0-SNAPSHOT.jar!/:14.0.0-SNAPSHOT]
at org.teiid.spring.autoconfigure.TeiidAutoConfiguration.loadVDB(TeiidAutoConfiguration.java:214) ~[teiid-spring-boot-starter-1.5.0-SNAPSHOT.jar!/:1.5.0-SNAPSHOT]
{code}
basically one cannot read a nested jar files. The issue also explained here https://stackoverflow.com/questions/37634452/urlclassloader-cant-handle-j...
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 10 months
[JBoss JIRA] (TEIIDSB-52) Organize docs as much as possible into topics
by Ramesh Reddy (Jira)
[ https://issues.redhat.com/browse/TEIIDSB-52?page=com.atlassian.jira.plugi... ]
Ramesh Reddy commented on TEIIDSB-52:
-------------------------------------
I guess since we moved most of the teiid documents that way, I will just close this here, then if this comes up again we can add another one.
> Organize docs as much as possible into topics
> ---------------------------------------------
>
> Key: TEIIDSB-52
> URL: https://issues.redhat.com/browse/TEIIDSB-52
> Project: Teiid Spring Boot
> Issue Type: Sub-task
> Components: documentation
> Reporter: Steven Hawkins
> Priority: Major
>
> To align with product documentation the docs need to be as topic (a particular dev/admin action) based as possible - rather than general subject areas. We also need to update anything listing steps to use a numbered list with as granular as possible steps.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 10 months
[JBoss JIRA] (TEIIDSB-52) Organize docs as much as possible into topics
by Steven Hawkins (Jira)
[ https://issues.redhat.com/browse/TEIIDSB-52?page=com.atlassian.jira.plugi... ]
Steven Hawkins commented on TEIIDSB-52:
---------------------------------------
This came from the docs team. We can certainly say that it's unworkable for us without additional direction from them.
> Organize docs as much as possible into topics
> ---------------------------------------------
>
> Key: TEIIDSB-52
> URL: https://issues.redhat.com/browse/TEIIDSB-52
> Project: Teiid Spring Boot
> Issue Type: Sub-task
> Components: documentation
> Reporter: Steven Hawkins
> Priority: Major
>
> To align with product documentation the docs need to be as topic (a particular dev/admin action) based as possible - rather than general subject areas. We also need to update anything listing steps to use a numbered list with as granular as possible steps.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 10 months