]
Barry LaFond updated TEIIDDES-3162:
-----------------------------------
Fix Version/s: 11.1.2
(was: 11.1.1)
ModuleNotFoundException occurs with dynamic vdb including UDF Jars
------------------------------------------------------------------
Key: TEIIDDES-3162
URL:
https://issues.jboss.org/browse/TEIIDDES-3162
Project: Teiid Designer
Issue Type: Bug
Components: Dynamic VDBs
Affects Versions: 11.1.1
Environment: DevstudioIS 11.1.0 CR1 (Teiid Desinger 11.1.1)
Reporter: Hiroki Daicho
Assignee: Barry LaFond
Fix For: 11.1.2
Attachments: reproducer_project.zip, v2_vdb.xml
Teiid desinger 11.1.1 generate UDF jars with comma separated to dynamic vdb as follows.
{code}
<property name="lib" value="deployement.test.jar,
deployement.test2.jar"/>
{code}
But ModuleNotFoundException occurs in teiid server when the dynamic vdb deployed.
{code}
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed to start
service jboss.deployment.unit."testvdb-vdb.xml".DEPENDENCIES:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."testvdb-vdb.xml".DEPENDENCIES: JBAS018733: Failed to
process phase DEPENDENCIES of deployment "testvdb-vdb.xml"
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166)
[jboss-as-server-7.5.9.Final-redhat-2.jar:7.5.9.Final-redhat-2]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980)
[jboss-msc-1.1.6.Final-redhat-1.jar:1.1.6.Final-redhat-1]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913)
[jboss-msc-1.1.6.Final-redhat-1.jar:1.1.6.Final-redhat-1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[rt.jar:1.8.0_131]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[rt.jar:1.8.0_131]
at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_131]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: TEIID50088
Failed to load module deployment.test.jar, for UDF in VDB
testvdb.1:org.jboss.modules.ModuleNotFoundException: deployment.test.jar,:main
at org.teiid.jboss.VDBDependencyDeployer.deploy(VDBDependencyDeployer.java:85)
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159)
[jboss-as-server-7.5.9.Final-redhat-2.jar:7.5.9.Final-redhat-2]
... 5 more
{code}
Teiid expects space delimited list for the module names.
"The lib property value may contain a space delimited list of module names if more
than one dependency is needed."
https://access.redhat.com/documentation/en-us/red_hat_jboss_data_virtuali...
If changing vdb to use space delimited as follows, deployment was succeeded.
{code}
<property name="lib" value="deployement.test.jar
deployement.test2.jar"/>
{code}