`
iffiffj
  • 浏览: 157098 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

部署EJB/EAR到JBoss服务器的注意事项

    博客分类:
  • EJB
 
阅读更多
===============部署EJB/EAR到JBOSS时的注意事项===============
1、删除JBOSS实例下lib目录的包,包括:
【ejb3-persistence.jar】
【hibernate3.jar】
【hibernate-annotations.jar】
【hibernate-commons-annotations.jar】
【hibernate-entitymanager.jar】
【hibernate-validator.jar】

注意:一定要把这些包从该文件夹中删除,而不是重命名,因为重命名后还会被JBOSS加载
2、确保EAR包中的jbossall-client包已经被删除
3、常见的错误:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [META-INF/spring/persistence-context.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: java.util.Set, for columns: [org.hibernate.mapping.Column(bizSystemBindings)]
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics