日期:2014-05-17  浏览次数:20801 次

Not binding factory to JNDI, no JNDI name configured
我用Struts2,Hibernate,Spring写的项目,数据库使用Microsoft SQL Server,多个Action的class都是UserAction,在运行时出现
impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured,请帮我看看是哪里出的问题
action的配置如下所示:
<action name="login" method="login" class="com.chinasei.struts2.user.web.UserAction">
         <result name="input">/login.jsp</result>
</action>
<action name="user" method="list" class="com.chinasei.struts2.user.web.UserAction">
            <result name="userlist">/pages/users.jsp</result>
</action>
<action name="regist" method="regist" class="com.chinasei.struts2.user.web.UserAction">
            <interceptor-ref name="tokenStack"></interceptor-ref>
            <result name="invalid.token">/pages/regist.jsp</result>
            <result name="input">/pages/regist.jsp</result>
</action> 
2013-12-10 15:13:55,000 WARN  [169625] [http-8080-3] components.ServletUrlRenderer - No configuration found for the specified action: 'login' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
2013-12-10 15:13:55,812 WARN  [170437] [http-8080-3] components.ServletUrlRenderer - No configuration found for the specified action: 'login' in namespace: ''. Form action defaulting to 'action' attribute's literal value.
2013-12-10 15:14:07,218 INFO  [181843] [http-8080-3] cfg.Environment - Hibernate 3.3.2.GA
2013-12-10 15:14:07,218 INFO  [181843] [http-8080-3] cfg.Environment - hibernate.properties not found
2013-12-10 15:14:07,234 INFO  [181859] [http-8080-3] cfg.Environment - Bytecode provider name : javassist
2013-12-10 15:14:07,250 INFO  [181875] [http-8080-3] cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
2013-12-10 15:14:07,671 INFO  [182296] [http-8080-3] cfg.Configuration - Reading mappings from file: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\Chapter32-1\WEB-INF\classes\config\hibernate-hbm\Users.hbm.xml
2013-12-10 15:14:08,328 INFO  [182953] [http-8080-3] cfg.HbmBinder - Mapping class: com.chinasei.lwframework.user.model.Users -> USERS
2013-12-10 15:14:08,437 INFO  [183062] [http-8080-3] hibernate3.LocalSessionFactoryBean - Building new Hibernate SessionFactory
2013-12-10 15:14:08,875 INFO  [183500] [http-8080-3] connection.ConnectionProviderFactory - Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
2013-12-10 15:14:10,625 INFO  [185250] [http-8080-3] cfg.SettingsFactory - RDBMS: Microsoft SQL Server, version: 9.00.1399
2013-12-10 15:14:10