8 Replies Latest reply on May 11, 2012 8:38 PM by Ramesh Reddy

    Teiid 8.0 Final with JBoss 7.1.1 Final -  AdminAPI - ClassNotFoundException

    skethire Newbie

      Hi.

      I am using Teiid AdminAPI in my application.  When I try to initialize the Admin class in my code, I get the following exception.

       

      11:34:50,406 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/dsdataserver].[OData]] (http--127.0.0.1-8080-2) Servlet.service() for servlet OData threw exception: java.lang.ClassNotFoundException: org.jboss.as.controller.client.ModelControllerClient$Factory from [Module "org.jboss.teiid.admin:main" from local module loader @4b0ab323 (roots: C:\jboss-as-7.1.1.Final\modules)]

      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

      at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

      at org.teiid.adminapi.AdminFactory.createAdmin(AdminFactory.java:95) [teiid-admin-8.0.0.Final.jar:8.0.0.Final]

      at com.lgc.dsl.services.producer.teiid.TeiidAdminManager.getAdmin(TeiidAdminManager.java:44) [com_lgc_dsdataserver.jar:]

       

      In order to get rid of this error, I had to add the following dependency to teiid admin module.

              <module name="org.jboss.as.controller-client"/> 

       

      I had to add a different dependency until Alpha1.  Now that is already part of the module.xml that you ship.  Is this a new dependency that should have been added to the module, or am I missing something?

       

      Thanks

      Srini