org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml

JBoss Issue Tracker | Aleksandar Kostadinov | 9 years ago
  1. 0

    Currently one can't configure SOA-P to use oracle 9i (10g not yet tested) using the SOA-P included schema tool. The dbinstall tool written by Jiri Pechanek does *not* have these issues present. With help from Jiri Pechanec 2 issues identified: 1. build.xml contains a check for database name and allows only mysql, postgresql, oracle9i and oracle10g. It should allow mysql, postgresql and oracle. As well there should be another option commented in build.properties source.dir which selects database directory overriding the database name property. So configuration for oracle 9i should be: org.jboss.esb.server.database=oracle source.dir=oracle9i 2. After modifying build.xml to skip this check and configure database with the above properties I get the following exception on server startup: 02:14:44,071 ERROR [MainDeployer] Could not create deployment: file:/qa/home/akostadinov/quickstart_tests/jbosssoa/jboss-as/server/all/deploy/oracle-ds.xml org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.jca:service=LocalTxCM,name=DefaultDS at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103) at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449) at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171) at org.jboss.system.ServiceController.install(ServiceController.java:226) at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) at $Proxy4.install(Unknown Source) at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) at $Proxy52.create(Unknown Source) at org.jboss.deployment.XSLSubDeployer.create(XSLSubDeployer.java:192) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) at $Proxy9.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263) at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:417) at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) at $Proxy4.start(Unknown Source) at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) at $Proxy5.deploy(Unknown Source) at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482) at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362) at org.jboss.Main.boot(Main.java:200) at org.jboss.Main$1.run(Main.java:508) at java.lang.Thread.run(Thread.java:595) <snip/> --- Incompletely deployed packages --- org.jboss.deployment.DeploymentInfo@4b717870 { url=file:/qa/home/akostadinov/quickstart_tests/jbosssoa/jboss-as/server/all/deploy/oracle-ds.xml } deployer: org.jboss.deployment.XSLSubDeployer@7691c0 status: Deployment FAILED reason: Trying to install an already registered mbean: jboss.jca:service=LocalTxCM,name=DefaultDS state: FAILED watch: file:/qa/home/akostadinov/quickstart_tests/jbosssoa/jboss-as/server/all/deploy/oracle-ds.xml altDD: null lastDeployed: 1202973284064 lastModified: 1202973284000 mbeans:

    JBoss Issue Tracker | 9 years ago | Aleksandar Kostadinov
    org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml
  2. 0

    [SOA-427] DB schema tool generates hibernate.cfg.xml with syntax error - JBoss Issue Tracker

    jboss.org | 1 year ago
    org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml
  3. 0

    [jboss-user] [JBoss jBPM] - Strange class cast exception when changing node assignment

    jboss.org | 3 months ago
    org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Projeto não localiza o hibernate.cfg.xml [RESOLVIDO!]

    com.br | 1 year ago
    org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml
  6. 0

    Could not parse configuration: /hibernate.cfg.xml hibernate.sourceforge.net

    Stack Overflow | 3 years ago | Rohit G
    org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml

    41 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.dom4j.DocumentException

      Error on line 56 of document : The string "--" is not permitted within comments. Nested exception: The string "--" is not permitted within comments.

      at org.dom4j.io.SAXReader.read()
    2. dom4j
      SAXReader.read
      1. org.dom4j.io.SAXReader.read(SAXReader.java:482)
      1 frame
    3. Hibernate
      Configuration.configure
      1. org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1484)
      2. org.hibernate.cfg.Configuration.configure(Configuration.java:1428)
      2 frames
    4. org.jbpm.db
      HibernateHelper.createConfiguration
      1. org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:91)
      1 frame
    5. org.jbpm.persistence
      DbPersistenceServiceFactory.getSessionFactory
      1. org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory.java:69)
      2. org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91)
      2 frames
    6. jBPM :: JPA Persistence
      JtaDbPersistenceServiceFactory.openService
      1. org.jbpm.persistence.jta.JtaDbPersistenceService.isCurrentJtaTransactionAvailable(JtaDbPersistenceService.java:46)
      2. org.jbpm.persistence.jta.JtaDbPersistenceService.<init>(JtaDbPersistenceService.java:27)
      3. org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory.openService(JtaDbPersistenceServiceFactory.java:17)
      3 frames
    7. org.jbpm.svc
      Services.getPersistenceService
      1. org.jbpm.svc.Services.getService(Services.java:144)
      2. org.jbpm.svc.Services.getPersistenceService(Services.java:183)
      2 frames
    8. org.jbpm
      JbpmContext.getJobSession
      1. org.jbpm.JbpmContext.getPersistenceService(JbpmContext.java:628)
      2. org.jbpm.JbpmContext.getJobSession(JbpmContext.java:561)
      2 frames
    9. org.jbpm.job
      JobExecutorThread.run
      1. org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread.java:112)
      2. org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:58)
      2 frames