FAQ: Activiti5.9
1, 如果报什么datasource getter setter 什么错误的,注意下各种jar是否正确,删除重复的jar包 20120411
2, Q 报下面的错:
Exception in thread "main" org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/aop]
Offending resource: class path resource [activiticonf/applicationContext-common.xml]
A:加入spring-framework-2.5.6.SEC01\dist\spring.jar
3, Q:
Cause: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:
You have an error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near
'\\BG?éà??D_?[§jl’\\<‰\'?$? è°rY??}?_Pel’b<‰\'?$? è5U:?<?????!í???2dv^??' at line 2
A: 修改url:<property name="url" value="jdbc:mysql://localhost/flwj" />
为
<property name="url"
value="jdbc:mysql://localhost:3306/flwj?autoReconnect=true&characterEncoding=UTF-8&characterSetResults=UTF-8" />
<bean id="myDataSource" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url"
value="jdbc:mysql://localhost:3306/flwj?autoReconnect=true&characterEncoding=UTF-8&characterSetResults=UTF-8" />
<property name="username" value="root" />
<property name="password" value="nohi" />
</bean>
1, 如果报什么datasource getter setter 什么错误的,注意下各种jar是否正确,删除重复的jar包 20120411
2, Q 报下面的错:
Exception in thread "main" org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/aop]
Offending resource: class path resource [activiticonf/applicationContext-common.xml]
A:加入spring-framework-2.5.6.SEC01\dist\spring.jar
3, Q:
Cause: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException:
You have an error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near
'\\BG?éà??D_?[§jl’\\<‰\'?$? è°rY??}?_Pel’b<‰\'?$? è5U:?<?????!í???2dv^??' at line 2
A: 修改url:<property name="url" value="jdbc:mysql://localhost/flwj" />
为
<property name="url"
value="jdbc:mysql://localhost:3306/flwj?autoReconnect=true&characterEncoding=UTF-8&characterSetResults=UTF-8" />
<bean id="myDataSource" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url"
value="jdbc:mysql://localhost:3306/flwj?autoReconnect=true&characterEncoding=UTF-8&characterSetResults=UTF-8" />
<property name="username" value="root" />
<property name="password" value="nohi" />
</bean>