2 Replies Latest reply: Aug 7, 2012 1:53 PM by Steven Hawkins RSS

    Issue with  materialized views

    Manoj Agarwal Newbie

      Hi,

       

      I am using Teiid 8.1.0Beta2.

      I am creating dynamic VDB and in one of the models,I am using materialized views.I am setting model type as "VIRTUAL" on ModelMetaData object.

       

      modelMetaData.setModelType(Type.VIRTUAL);

       

      In my custome translator for materilaized view i set this

       

      table.setMaterialized(true);

      table.setVirtual(true);

       

      while deploying VDB i get this error...

       

       

      org.teiid.deployers.VirtualDatabaseException: TEIID40094 No metadata repository of type null defined for model xyz_metadata for VDB xyz.1"}}}}

      ........................

      ........................

      ........................

       

      Caused by: org.teiid.adminapi.AdminProcessingException: TEIID70006 {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.teiid.vdb.xyz.1" => "org.jboss.msc.service.StartException in service jboss.teiid.vdb.xyz.1: org.teiid.deployers.VirtualDatabaseException: TEIID40094 No metadata repository of type null defined for model xyz_metadata for VDB xyz.1"}}}}

                      at org.teiid.adminapi.AdminFactory$AdminImpl.execute(AdminFactory.java:435)

                      at org.teiid.adminapi.AdminFactory$AdminImpl.deploy(AdminFactory.java:563)

       

      Can someone please provide some input to fix it ?

       

      Thanks !
      Manoj