3 Replies Latest reply on Jul 23, 2012 8:29 AM by Manoj Agarwal

    JAXBContext initialization issue with JBoss AS 7 and Teiid 8

    Manoj Agarwal Newbie

      Hi,

       

      I get below exception while intializing JAXBContext as below. Any help/suggestion will help a lot. Thanks in advance.

       

      final JAXBContext jaxbContext = JAXBContext.newInstance(VDBMetaData.class);

       

      FYI: I am trying upgrade my application on JBoss AS7.1.1 and Teiid 8.0

       

      Error Trace:-

       

      Unexpected error during bootstrap initialization: class com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 6 counts of IllegalAnnotationExceptions

      org.teiid.adminapi.DataPolicy is an interface, and JAXB can't handle interfaces.

          this problem is related to the following location:

              at org.teiid.adminapi.DataPolicy

              at public java.util.List org.teiid.adminapi.impl.VDBMetaData.getDataPolicies()

              at org.teiid.adminapi.impl.VDBMetaData

      org.teiid.adminapi.DataPolicy does not have a no-arg default constructor.

          this problem is related to the following location:

              at org.teiid.adminapi.DataPolicy

              at public java.util.List org.teiid.adminapi.impl.VDBMetaData.getDataPolicies()

              at org.teiid.adminapi.impl.VDBMetaData

      org.teiid.adminapi.Model is an interface, and JAXB can't handle interfaces.

          this problem is related to the following location:

              at org.teiid.adminapi.Model

              at public java.util.List org.teiid.adminapi.impl.VDBMetaData.getModels()

              at org.teiid.adminapi.impl.VDBMetaData

      org.teiid.adminapi.Model does not have a no-arg default constructor.

          this problem is related to the following location:

              at org.teiid.adminapi.Model

              at public java.util.List org.teiid.adminapi.impl.VDBMetaData.getModels()

              at org.teiid.adminapi.impl.VDBMetaData

      org.teiid.adminapi.Translator is an interface, and JAXB can't handle interfaces.

          this problem is related to the following location:

              at org.teiid.adminapi.Translator

              at public java.util.List org.teiid.adminapi.impl.VDBMetaData.getOverrideTranslators()

              at org.teiid.adminapi.impl.VDBMetaData

      org.teiid.adminapi.Translator does not have a no-arg default constructor.

          this problem is related to the following location:

              at org.teiid.adminapi.Translator

              at public java.util.List org.teiid.adminapi.impl.VDBMetaData.getOverrideTranslators()

              at org.teiid.adminapi.impl.VDBMetaData

      : com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 6 counts of IllegalAnnotationExceptions

      org.teiid.adminapi.DataPolicy is an interface, and JAXB can't handle interfaces.

          this problem is related to the following location:

              at org.teiid.adminapi.DataPolicy

              at public java.util.List org.teiid.adminapi.impl.VDBMetaData.getDataPolicies()

              at org.teiid.adminapi.impl.VDBMetaData

      org.teiid.adminapi.DataPolicy does not have a no-arg default constructor.

          this problem is related to the following location:

              at org.teiid.adminapi.DataPolicy

              at public java.util.List org.teiid.adminapi.impl.VDBMetaData.getDataPolicies()

              at org.teiid.adminapi.impl.VDBMetaData

      org.teiid.adminapi.Model is an interface, and JAXB can't handle interfaces.

          this problem is related to the following location:

              at org.teiid.adminapi.Model

              at public java.util.List org.teiid.adminapi.impl.VDBMetaData.getModels()

              at org.teiid.adminapi.impl.VDBMetaData

      org.teiid.adminapi.Model does not have a no-arg default constructor.

          this problem is related to the following location:

              at org.teiid.adminapi.Model

              at public java.util.List org.teiid.adminapi.impl.VDBMetaData.getModels()

              at org.teiid.adminapi.impl.VDBMetaData

      org.teiid.adminapi.Translator is an interface, and JAXB can't handle interfaces.

          this problem is related to the following location:

              at org.teiid.adminapi.Translator

              at public java.util.List org.teiid.adminapi.impl.VDBMetaData.getOverrideTranslators()

              at org.teiid.adminapi.impl.VDBMetaData

      org.teiid.adminapi.Translator does not have a no-arg default constructor.

          this problem is related to the following location:

              at org.teiid.adminapi.Translator

              at public java.util.List org.teiid.adminapi.impl.VDBMetaData.getOverrideTranslators()

              at org.teiid.adminapi.impl.VDBMetaData

       

          at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:106) [jaxb-impl-2.2.4.jar:2.2.4]

          at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:466) [jaxb-impl-2.2.4.jar:2.2.4]

          at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:298) [jaxb-impl-2.2.4.jar:2.2.4]

          at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:141) [jaxb-impl-2.2.4.jar:2.2.4]

          at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1157) [jaxb-impl-2.2.4.jar:2.2.4]

          at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:145) [jaxb-impl-2.2.4.jar:2.2.4]

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_02]

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_02]

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_02]

          at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_02]

          at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:248) [rt.jar:1.7.0_02]

          at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:235) [rt.jar:1.7.0_02]

          at javax.xml.bind.ContextFinder.find(ContextFinder.java:432) [rt.jar:1.7.0_02]

          at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:637) [rt.jar:1.7.0_02]

          at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:584) [rt.jar:1.7.0_02]

          at com.cba.test.server.teiid.bootstrap.TeiidBootstrap.getVdbXmlString(TeiidBootstrap.java:388) [teiid-bootstrap-3.0.0-SNAPSHOT.jar:]

          at com.cba.test.server.teiid.bootstrap.TeiidBootstrap.run(TeiidBootstrap.java:261) [teiid-bootstrap-3.0.0-SNAPSHOT.jar:]

          at com.cba.test.extension.ServiceStarter.call(ServiceStarter.java:104) [common-extension-3.0.0-SNAPSHOT.jar:]

          at com.cba.test.server.startup.TestPrimordialJbossBean$1.call(TestPrimordialJbossBean.java:112) [test-server-startup-3.0.0-SNAPSHOT.jar:]

          at com.cba.test.server.startup.TestPrimordialJbossBean$1.call(TestPrimordialJbossBean.java:108) [test-server-startup-3.0.0-SNAPSHOT.jar:]

          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_02]

          at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_02]

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) [rt.jar:1.7.0_02]

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) [rt.jar:1.7.0_02]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_02]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_02]

          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_02]