com.atomikos.icatch.hide_init_file_path
システムプロパティを任意の値に設定する必要があります。これは、Javaコマンドラインで実行します。Mavenでは、次のようにコマンドライン引数をsurefireに渡すことでこれを行います。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>-Dcom.atomikos.icatch.hide_init_file_path=true</argLine>
</configuration>
</plugin>
更新:Spring構成ファイル内から、次のようにプロパティを設定できます。
<bean id="atomikosSystemProps" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetObject">
<!-- System.getProperties() -->
<bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetClass" value="java.lang.System" />
<property name="targetMethod" value="getProperties" />
</bean>
</property>
<property name="targetMethod" value="putAll" />
<property name="arguments">
<!-- The new Properties -->
<util:properties>
<prop key="com.atomikos.icatch.hide_init_file_path">true</prop>
</util:properties>
</property>
</bean>
インスタンス化の順序が正しくなるように、AtomikosBeanをこのBeanに「依存」させることを忘れないでください。