5 Replies Latest reply on Oct 6, 2016 12:50 PM by shawkins

    VDB is not active when war deploys

    jorgecmb

      Hi everyone,

       

      I've been searching an answer for this question for the last week and could find a definitive solution, so I apologize if someone has already answered that.

       

      The problem I am facing is that while the VDB is asynchronously starting up, my application fails deploying - as it tries to connect to the VDB - and only after that the VDB becomes active. Here is what I get on the log:

       

      12:29:47,906 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/]] (ServerService Thread Pool -- 238) JBWEB000289: Servlet dispatcher threw load() exception: org.teiid.core.TeiidProcessingException: TEIID31099 VDB MyVDB.1[my_app{oracle=oracle, oracle, java:/Database}] is not active.  Resubmit your query after loading has completed or after the errors have been corrected.

       

      [A bunch of stacktraces...]

       

      12:30:39,057 INFO  [org.teiid.RUNTIME] (teiid-async-threads - 4) TEIID50030 VDB MyVDB.1 model "my_vdb" metadata loaded. End Time: 10/6/16 12:30 PM

      12:30:39,062 INFO  [org.teiid.RUNTIME] (teiid-async-threads - 4) TEIID40003 VDB MyVDB.1 is set to ACTIVE

       

      So my question is: is there a way to make the VDB start up synchronously, so it can finish its deployment and only then the application starts? Or is there any other solution to this issue?

       

      Thanks in advance,

       

      Jorge