貼り付けなければ xmlns:tx="http://www.springframework.org/schema/tx"
問題ありません。ただし、テキストを挿入すると、cvc-complex-type.2.4.c: The matching wildcard is strict, but no Declaration can be found for element 'tx:annotation-driven' エラーが発生します。
<beans xmlns:tx="http://www.springframework.org/schema/tx" 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:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd">
<context:annotation-config />
<tx:annotation-driven />
<context:component-scan base-package="ne.projl.server" />
<bean name="security.securityInfo" class="org.geomajas.security.SecurityInfo">
<property name="loopAllServices" value="false" />
<property name="securityServices">
<list>
<bean class="org.geomajas.security.allowall.AllowAllSecurityService" />
</list>
</property>
</bean>
<bean name="puregwt-app" class="org.geomajas.configuration.client.ClientApplicationInfo">
<property name="maps">
<list>
<ref bean="mapOsm" />
<!-- <ref bean="mapWms" /> -->
<!-- <ref bean="mapLegend" /> -->
<!-- <ref bean="mapLayerVisibility" /> -->
<!-- <ref bean="mapCountries" /> -->
<!-- <ref bean="mapEmpty" /> -->
<!-- <ref bean="mapPrinting" /> -->
</list>
</property>
</bean>
<bean class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean" id="entityManagerFactory">
<property name="persistenceUnitName" value="MyPUnit" />
</bean>
<bean class="org.springframework.orm.jpa.JpaTransactionManager" id="transactionManager">
<property name="entityManagerFactory" ref="entityManagerFactory" />
</bean>
</beans>
私も<tx:annotation-driven />
次のように変更しようとしました:<tx:annotation-driven transaction-manager="transactionManager"/>