Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No bean named 'sessionFactory' is defined #4

Closed
GoogleCodeExporter opened this issue Jun 12, 2015 · 6 comments
Closed

No bean named 'sessionFactory' is defined #4

GoogleCodeExporter opened this issue Jun 12, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.按照视频操作,以及把java-src改成src;
2.启动Tomcat6(视频中是Tomcat 5.5)
3.访问页面,提示:No bean named 'sessionFactory' is defined

What is the expected output? What do you see instead?
期望出现数据列表页面
出现:
System Runtime Error: 
No bean named 'sessionFactory' is defined 


What version of the product are you using? On what operating system?
rapid-framework-v2.0.1.40

Please provide any additional information below.

Original issue reported on code.google.com by fanyd1...@gmail.com on 30 Jun 2009 at 8:51

@GoogleCodeExporter
Copy link
Author

视频的是米米饭自己制作的一个版本,v2.0.1.40与之有些许不��
�,看明白怎么搭建,然后照着doc/guild.html搭建
即可

Original comment by bad...@gmail.com on 30 Jun 2009 at 9:02

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

doc/guild.html中“生成的文件在$outRoot(默认为:d/webapp-generator-outp
ut)目录,再根据所需手
工拷回至工作目录 ”可操作性不强。

我将web,java_src(更名为src)覆盖拷贝到工作目录,将other\java_hibe
rnate_xmld下的com目录拷贝
到工作目录中的src目录下(覆盖拷贝)。

最后结果还是提示:
System Runtime Error: 
No bean named 'sessionFactory' is defined 

上网查了,说是web.xml中定义contextConfigLocation的路径不对,于�
��我修改为:
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>classpath*:spring/*.xml,/WEB-
INF/classes/resources/spring/*.xml</param-value>
    </context-param>
重新启动Tomcat,还是同样的错误。

估计中间肯定还有“根据所需手工XXXX”的步骤,导致这个问�
��的发生。

附件是我生成的web目录,为控制附件大小,其中WEB-INF\lib目录
中的jar都被删除了。uranus.sql是
MySQL创建数据库的脚本。

有时间麻烦指点一下。谢谢

Original comment by fanyd1...@gmail.com on 1 Jul 2009 at 2:30

Attachments:

@GoogleCodeExporter
Copy link
Author

plus:使用插件是 struts2+hibernate

Original comment by fanyd1...@gmail.com on 1 Jul 2009 at 2:32

@GoogleCodeExporter
Copy link
Author

你要安装插件啊。安插完插件确认 
src/resources/spring/目录有applicationContext-
dao.xml,applicationContext-service.xml,applicationContext-resources.xml 

Original comment by bad...@gmail.com on 1 Jul 2009 at 2:42

@GoogleCodeExporter
Copy link
Author

已经执行了安装安装创建的ant build操作。

在e:/rapidframework/src/resource/spring/ 目录下的确有applicationContext-
dao.xml,applicationContext-service.xml,applicationContext-resources.xml  
三个文件。

发布后,在E:\rapidframework\web\WEB-INF\classes\resources\spring 
目录下也有此三个文件。

Original comment by fanyd1...@gmail.com on 1 Jul 2009 at 3:43

@GoogleCodeExporter
Copy link
Author

肯定不是classes\resources\spring啊,是classes\spring
你源目录配置错了,对比web.xml也可以看出来

Original comment by bad...@gmail.com on 2 Jul 2009 at 3:48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant