01 org.hibernate.InvalidMappingException: Could not parse mapping document from resourcecn/edu/hbmy/model/Document.hbm.xml
02 at org.hibernate.cfg.Configuration.addResource(Configuration.java:569)
03 at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1584)
04 at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1552)
05 at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1531)
06 at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1505)
07 at org.hibernate.cfg.Configuration.configure(Configuration.java:1425)
08 at org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:91)
09 at org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory.java:69)
10 at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91)
11 at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:94)
12 at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:98)
13 at org.jbpm.JbpmContext.getSession(JbpmContext.java:506)
14 at cn.edu.hbmy.action.CreateProcessInstance.testCreateDocumet(CreateProcessInstance.java:26)
15 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
16 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
17 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
18 at java.lang.reflect.Method.invoke(Method.java:597)
19 at junit.framework.TestCase.runTest(TestCase.java:154)
20 at junit.framework.TestCase.runBare(TestCase.java:127)
21 at junit.framework.TestResult$1.protect(TestResult.java:106)
22 at junit.framework.TestResult.runProtected(TestResult.java:124)
23 at junit.framework.TestResult.run(TestResult.java:109)
24 at junit.framework.TestCase.run(TestCase.java:118)
25 at junit.framework.TestSuite.runTest(TestSuite.java:208)
26 at junit.framework.TestSuite.run(TestSuite.java:203)
27 at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
28 at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
29 at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
30 at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
31 at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
32 at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
33 Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from input stream
34 at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:508)
35 at org.hibernate.cfg.Configuration.addResource(Configuration.java:566)
36 ... 30 more
37 Caused by: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out:connect
38 at org.dom4j.io.SAXReader.read(SAXReader.java:484)
39 at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:499)
40 ... 31 more
错误原因:
把<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
修改为:
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
分享到:
相关推荐
Caused by: java.net.UnknownHostException: openapi.alipay.com
### 错误解析:Caused by: android.system.ErrnoException: write failed: ENOSPC (No space left 在Android开发过程中,可能会遇到“Caused by: android.system.ErrnoException: write failed: ENOSPC (No space ...
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory 需要jar log4j-1.2.16.jar slf4j-api-1.6.1.jar slf4j-log4j12-1.6.1.jar
Apache Commons DBCP(Database Connection Pool)是一个开源的数据库连接池组件,它提供了数据源对象,方便管理和复用数据库连接,从而提高应用性能。 要解决这个问题,你需要确保你的Java项目正确地包含了Apache ...
在这个特定的场景中,异常堆栈跟踪显示了 `Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections.Transformer`,这表明系统无法找到 `org.apache.commons.collections.Transformer` 类。...
4. **优化库的使用**: - 如果应用程序依赖了大量的库,考虑合并或者减少不必要的库。有些库可能会导致大量的类加载,从而占用 PermGen 空间。 5. **定期重启应用服务器**: - 如果无法避免 PermGen 内存溢出,一...
在这个特定的场景中,异常堆栈跟踪显示 `Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.Type`,这表明在运行时,系统无法找到`org.objectweb.asm.Type`这个类。`org.objectweb.asm` 是一个用于...
Apache Commons DBCP(Database Connection Pool)是一个开源的、基于Apache Commons项目的数据源池组件。它提供了一个实现JDBC(Java Database Connectivity)规范的连接池,可以显著提高数据库操作的性能,因为...
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory 缺少此依赖包
"java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver" 解决方案 [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. 解决了jsp连接 sql server 2000的问题
Android Caused by: java.lang.ClassNotFoundException解决办法 出现问题: 08-13 18:29:22.924: E/AndroidRuntime(1875): Caused by: Java.lang.ClassNotFoundException:XXXXX in loader dalvik.system....
1、写在开头 标题之前我想说一下Linux的mysql真的实在是太坑了。太坑了。总是会出现这样那样的你想不...4、今天要说的就是 没有打开only_full_group_by Cause:com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorExcepti
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/...
抛出无法找到主类:org.apache.axis.wsdl.WSDL2Java(Throws Could not find main class: org.apache.axis.wsdl.WSDL2Java)。 添加本文的jar包压缩包解压出来的所有jar包到当前使用的java.exe 命令的lib目录下的ext...
标题中的“Caused by: java.sql.SQLException: JZ0SJ: 没有在此数据库中发现元数据存取器信息。 请按 jConnect 文档中所述安装”是一个典型的错误信息,表明在尝试使用Java数据库连接(JDBC)驱动程序访问数据库时...
Caused by: java.sql.SQLException: java.lang.ClassNotFoundException: org.apache.hive.jdbc.HiveDriver at com.trs.gateway.commons.hive.HiveFeature.getConnection(HiveFeature.java:57) at ...
NoClassDefFoundError: org/slf4j/LoggerFactory解决方案,需要添加的三个jar包都在,slf4j-api-1.5.2,slf4j-log4j12-1.5.2,log4j-1.2.12
在Java Web开发中,我们经常会遇到“org.apache.jasper.JasperException: java.util.MissingResourceException”这样的错误。这个异常通常发生在尝试访问一个不存在的资源文件时,比如国际化(i18n)配置文件。本文...