Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/57.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用jsp、hibernate、mysql和EclipseMars在web应用程序中进行注释_Java_Mysql_Eclipse_Hibernate_Jsp - Fatal编程技术网

Java 使用jsp、hibernate、mysql和EclipseMars在web应用程序中进行注释

Java 使用jsp、hibernate、mysql和EclipseMars在web应用程序中进行注释,java,mysql,eclipse,hibernate,jsp,Java,Mysql,Eclipse,Hibernate,Jsp,我正在使用EclipseMars创建一个带有Hibernate和Jsp的动态web应用程序。我犯了一个错误 An AnnotationConfiguration instance is required to use <mapping class="com.hibernate.bean.User"/> error 现在我得到了这些类型的异常我错过了为hibernate添加jar文件。现在我清除了所有的例外。我从中得到了答案 谷歌是你的朋友:这里可能重复我没有使用@ID或任何注释,

我正在使用EclipseMars创建一个带有Hibernate和Jsp的动态web应用程序。我犯了一个错误

 An AnnotationConfiguration instance is required to use <mapping class="com.hibernate.bean.User"/>
error

现在我得到了这些类型的异常

我错过了为hibernate添加jar文件。现在我清除了所有的例外。我从中得到了答案

谷歌是你的朋友:这里可能重复我没有使用@ID或任何注释,在上面的链接中他们使用了注释。你需要发布你的代码,否则,我们怎么知道你没有使用注释?你的例外是关于注释的,所以这是一个公平的假设。
java.lang.NoSuchMethodError: org.objectweb.asm.ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;I)
(…)
Caused by: java.lang.IllegalStateException:
ContainerBase.addChild:
start: LifecycleException:
java.lang.NoSuchMethodError: org.objectweb.asm.ClassReader.accept(Lorg/objectweb/asm/ClassVisitor;I)