Uploaded image for project: 'apiman (API Management)'
  1. apiman (API Management)
  2. APIMAN-1203

Class not found for Oracle12Dialect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.2.x
    • 1.2.7.Final
    • None
    • None

      We are trying to migrate to oracle and we are receiving this stacktrace during the server startup

      15:32:28,100 ERROR [stderr] (Thread-90) Exception in thread "Thread-90" java.lang.RuntimeException: javax.enterprise.inject.CreationException
      15:32:28,101 ERROR [stderr] (Thread-90) 	at io.apiman.manager.api.war.WarApiManagerBootstrapperServlet.doImport(WarApiManagerBootstrapperServlet.java:105)
      15:32:28,101 ERROR [stderr] (Thread-90) 	at io.apiman.manager.api.war.WarApiManagerBootstrapperServlet.access$200(WarApiManagerBootstrapperServlet.java:43)
      15:32:28,101 ERROR [stderr] (Thread-90) 	at io.apiman.manager.api.war.WarApiManagerBootstrapperServlet$1.run(WarApiManagerBootstrapperServlet.java:71)
      15:32:28,101 ERROR [stderr] (Thread-90) 	at java.lang.Thread.run(Thread.java:745)
      15:32:28,101 ERROR [stderr] (Thread-90) Caused by: javax.enterprise.inject.CreationException
      15:32:28,102 ERROR [stderr] (Thread-90) 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      15:32:28,102 ERROR [stderr] (Thread-90) 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      15:32:28,102 ERROR [stderr] (Thread-90) 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      15:32:28,102 ERROR [stderr] (Thread-90) 	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      15:32:28,102 ERROR [stderr] (Thread-90) 	at java.lang.Class.newInstance(Class.java:442)
      15:32:28,102 ERROR [stderr] (Thread-90) 	at org.jboss.weld.security.NewInstanceAction.run(NewInstanceAction.java:33)
      15:32:28,102 ERROR [stderr] (Thread-90) 	at java.security.AccessController.doPrivileged(Native Method)
      15:32:28,102 ERROR [stderr] (Thread-90) 	at org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:40)
      15:32:28,102 ERROR [stderr] (Thread-90) 	at org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:78)
      15:32:28,103 ERROR [stderr] (Thread-90) 	at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:96)
      15:32:28,103 ERROR [stderr] (Thread-90) 	at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:78)
      15:32:28,103 ERROR [stderr] (Thread-90) 	at org.jboss.weld.injection.producer.ProducerMethodProducer.produce(ProducerMethodProducer.java:95)
      15:32:28,103 ERROR [stderr] (Thread-90) 	at org.jboss.weld.injection.producer.AbstractMemberProducer.produce(AbstractMemberProducer.java:167)
      15:32:28,103 ERROR [stderr] (Thread-90) 	at org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:183)
      15:32:28,103 ERROR [stderr] (Thread-90) 	at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:96)
      15:32:28,103 ERROR [stderr] (Thread-90) 	at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:101)
      15:32:28,103 ERROR [stderr] (Thread-90) 	at org.jboss.weld.bean.ContextualInstanceStrategy$ApplicationScopedContextualInstanceStrategy.get(ContextualInstanceStrategy.java:141)
      15:32:28,103 ERROR [stderr] (Thread-90) 	at org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50)
      15:32:28,103 ERROR [stderr] (Thread-90) 	at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99)
      15:32:28,104 ERROR [stderr] (Thread-90) 	at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:99)
      15:32:28,104 ERROR [stderr] (Thread-90) 	at org.jboss.weld.proxies.IStorage$816713466$Proxy$_$$_WeldClientProxy.beginTx(Unknown Source)
      15:32:28,104 ERROR [stderr] (Thread-90) 	at io.apiman.manager.api.exportimport.manager.StorageImportDispatcher.start(StorageImportDispatcher.java:129)
      15:32:28,104 ERROR [stderr] (Thread-90) 	at io.apiman.manager.api.war.WarApiManagerBootstrapperServlet.doImport(WarApiManagerBootstrapperServlet.java:101)
      15:32:28,104 ERROR [stderr] (Thread-90) 	... 3 more
      15:32:28,104 ERROR [stderr] (Thread-90) Caused by: java.lang.NoClassDefFoundError: org/hibernate/dialect/Oracle12cDialect
      15:32:28,104 ERROR [stderr] (Thread-90) 	at io.apiman.manager.api.jpa.JpaStorageInitializer.<clinit>(JpaStorageInitializer.java:67)
      15:32:28,104 ERROR [stderr] (Thread-90) 	at io.apiman.manager.api.war.WarCdiFactory.initJpaStorage(WarCdiFactory.java:305)
      15:32:28,104 ERROR [stderr] (Thread-90) 	at io.apiman.manager.api.war.WarCdiFactory.provideStorage(WarCdiFactory.java:127)
      15:32:28,104 ERROR [stderr] (Thread-90) 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      15:32:28,105 ERROR [stderr] (Thread-90) 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      15:32:28,105 ERROR [stderr] (Thread-90) 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      15:32:28,105 ERROR [stderr] (Thread-90) 	at java.lang.reflect.Method.invoke(Method.java:498)
      15:32:28,105 ERROR [stderr] (Thread-90) 	at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88)
      15:32:28,105 ERROR [stderr] (Thread-90) 	... 16 more
      15:32:28,105 ERROR [stderr] (Thread-90) Caused by: java.lang.ClassNotFoundException: org.hibernate.dialect.Oracle12cDialect from [Module "deployment.apiman.war:main" from Service Module Loader]
      15:32:28,105 ERROR [stderr] (Thread-90) 	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)
      15:32:28,105 ERROR [stderr] (Thread-90) 	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455)
      15:32:28,105 ERROR [stderr] (Thread-90) 	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404)
      15:32:28,106 ERROR [stderr] (Thread-90) 	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385)
      15:32:28,106 ERROR [stderr] (Thread-90) 	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130)
      15:32:28,106 ERROR [stderr] (Thread-90) 	... 24 more
      

              ewittman@redhat.com Eric Wittmann
              diasms Marcelo Dias (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: