s2sh异常
jdk1.6, tomcat7.0 ,struts2.3.4,spring3.2,hibernate4.
警告: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server: did not find a matching property.
2012-11-12 22:28:46 org.apache.catalina.core.ApplicationContext log
信息:
No Spring WebApplicationInitializer types detected on classpath
2012-11-12 22:28:46 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
2012-11-12 22:28:51 org.apache.coyote.AbstractProtocol start
用这个方法没用: http://blog.csdn.net/c_4818/article/details/6818481
求大家指导
------最佳解决方案--------------------应该是spring 配置问题
------其他解决方案--------------------把你的配置文件代码贴出来,你在配置某个bean是设置source属性出错,该bean没有这个属性。
------其他解决方案--------------------classpath:jdbc.properties
文件位置放对了吗
------其他解决方案--------------------你的错误信息没copy全吧,这样没办法处理,一般来说属于jar包问题,再就是hibernate4里不支持hibernate模板了,不要一成不变的去做事
------其他解决方案--------------------<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">
<context:annotation-config />
<context:component-scan base-package="com.assistant" />
<bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<value>classpath:jdbc.properties</value>
</property>
</bean>
<bean id="dataSource" destroy-method="close"
class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName"
value="${jdbc.driverClassName}" />
<property name="url" value="${jdbc.url}" />
<property name="username" value="${jdbc.username}" />
<property name="password" value="${jdbc.password}" />
</bean>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="packagesToScan">