Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5598

Service factory exception: /hibernate.cfg.xml not found on IBM JDK

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • jboss-fuse-6.3
    • jboss-fuse-6.3
    • SwitchYard
    • None
    • % %

      If I deploy switchyard application which usage jpa binding then it throws this exception:

      2016-05-30 16:36:47,821 | INFO  | pool-32-thread-1 | Version                          | 297 - org.jboss.logging.jboss-logging - 3.3.0.Final | HCANN000001: Hibernate Commons Annotations {4.0.4.Final}
      2016-05-30 16:36:47,825 | INFO  | pool-32-thread-1 | Version                          | 297 - org.jboss.logging.jboss-logging - 3.3.0.Final | HHH000412: Hibernate Core {4.2.22.Final-redhat-1}
      2016-05-30 16:36:47,827 | INFO  | pool-32-thread-1 | Environment                      | 297 - org.jboss.logging.jboss-logging - 3.3.0.Final | HHH000206: hibernate.properties not found
      2016-05-30 16:36:47,829 | INFO  | pool-32-thread-1 | Environment                      | 297 - org.jboss.logging.jboss-logging - 3.3.0.Final | HHH000021: Bytecode provider name : javassist
      2016-05-30 16:36:47,956 | INFO  | pool-32-thread-1 | Configuration                    | 297 - org.jboss.logging.jboss-logging - 3.3.0.Final | HHH000043: Configuring from resource: /hibernate.cfg.xml
      2016-05-30 16:36:47,957 | INFO  | pool-32-thread-1 | Configuration                    | 297 - org.jboss.logging.jboss-logging - 3.3.0.Final | HHH000040: Configuration resource: /hibernate.cfg.xml
      2016-05-30 16:36:47,958 | ERROR | lixDispatchQueue | osgi                             | 408 - org.hibernate.osgi - 4.2.22.Final-redhat-1 | FrameworkEvent ERROR - org.hibernate.osgi
      org.osgi.framework.ServiceException: Service factory exception: /hibernate.cfg.xml not found
      	at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:325)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:231)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:327)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.Felix.getService(Felix.java:3576)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:468)[org.apache.felix.framework-4.4.1.jar:]
      	at org.ops4j.pax.cdi.extension.impl.compat.Osgi5ServiceObjectsWrapper.getService(Osgi5ServiceObjectsWrapper.java:39)[294:org.ops4j.pax.cdi.extension:1.0.0.RC1]
      	at org.ops4j.pax.cdi.extension.impl.ServiceEventBridge.serviceChanged(ServiceEventBridge.java:64)[294:org.ops4j.pax.cdi.extension:1.0.0.RC1]
      	at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:943)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:794)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:544)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4445)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.Felix.registerService(Felix.java:3431)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:320)[org.apache.felix.framework-4.4.1.jar:]
      	at org.hibernate.osgi.HibernateBundleActivator.start(HibernateBundleActivator.java:85)[408:org.hibernate.osgi:4.2.22.Final-redhat-1]
      	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2154)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.Felix.startBundle(Felix.java:2072)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:976)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:963)[org.apache.felix.framework-4.4.1.jar:]
      	at org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeatures(FeaturesServiceImpl.java:546)[10:org.apache.karaf.features.core:2.4.0.redhat-630069]
      	at org.apache.karaf.features.internal.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:432)[10:org.apache.karaf.features.core:2.4.0.redhat-630069]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:267)[:1.8.0-internal]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1143)[:1.8.0-internal]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:618)[:1.8.0-internal]
      	at java.lang.Thread.run(Thread.java:785)[:1.8.0-internal]
      Caused by: org.hibernate.HibernateException: /hibernate.cfg.xml not found
      	at org.hibernate.internal.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:173)[410:org.hibernate.core:4.2.22.Final-redhat-1]
      	at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:2090)[410:org.hibernate.core:4.2.22.Final-redhat-1]
      	at org.hibernate.cfg.Configuration.configure(Configuration.java:2071)[410:org.hibernate.core:4.2.22.Final-redhat-1]
      	at org.hibernate.cfg.Configuration.configure(Configuration.java:2051)[410:org.hibernate.core:4.2.22.Final-redhat-1]
      	at org.hibernate.osgi.OsgiSessionFactoryService.getService(OsgiSessionFactoryService.java:90)[408:org.hibernate.osgi:4.2.22.Final-redhat-1]
      	at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:320)[org.apache.felix.framework-4.4.1.jar:]
      	... 25 more
      

            tcunning@redhat.com Thomas Cunningham
            tturek@redhat.com Tomas Turek
            Stefan Veres Stefan Veres
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: