首页上一页 1 下一页尾页 5 条记录 1/1页
JAVA项目开发实例自学手册第四章医药进销存管理系统 打包发布出现连接数据库问题???
发表在Java图书答疑
2010-03-11
是否精华
是
否
版块置顶:
是
否
我把项目打包发布到局域网的另一台机上连接主机服务器数据库(同一局哉网),出现如下异常:
Error creating bean with name 'DAOProxy' defined in class path resource [appcontext.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [appcontext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [appcontext.xml]: Initialization of bean failed; nested exception is org.hibernate.HibernateException: database product name cannot be null
主机上运行这个项目正常,我已把连接的url地址localhost改成192.168.1.135(我的局域网主机IP),这种现象怎么解决?
Error creating bean with name 'DAOProxy' defined in class path resource [appcontext.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [appcontext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [appcontext.xml]: Initialization of bean failed; nested exception is org.hibernate.HibernateException: database product name cannot be null
主机上运行这个项目正常,我已把连接的url地址localhost改成192.168.1.135(我的局域网主机IP),这种现象怎么解决?