java.lang.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException: Seo is not mapped [select seo from Seo seo where seo.type = :type]
at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1376)
at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1317)
at org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:336)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
原因 因为tomcat使用的是apache-tomcat-6.0.20
但是tomcat 改为apache-tomcat-7.0.16 就正常了.
本文讨论了在使用Hibernate进行ORM时遇到的一个特定错误,即`java.lang.IllegalArgumentException:org.hibernate.hql.ast.QuerySyntaxException`。通过将Tomcat版本从6.0.20升级到7.0.16,成功解决了该问题。分析了错误背后的原因,并提供了解决此类问题的方法。
1680

被折叠的 条评论
为什么被折叠?



