Gangmax Blog

The 3 problems of TIS I found today when being deployed on DEV-INT and the solutions

  1. Using “propertyPlaceholderConfigurer” in Spring,the system properties values didn’t override the values in the properties files. We used the wrong configuration. The final solution is here and referred the article here:
1
2
3
4
5
6
7
8
9
10
11
12
<!-- 2 here means SYSTEM_PROPERTIES_MODE_OVERRIDE, default is 1, which will not override. -->
<!-- With the configuration above, Spring will look for the value from system properties first, if there is, use them; if there isn't use the values in the given properties files. -->
<bean id="propertyPlaceholderConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="systemPropertiesMode" value="2" />
<property name="ignoreResourceNotFound" value="true"/>
<property name="locations">
<list>
<value>classpath:/tis.properties</value>
<value>classpath:/kaiser.properties</value>
</list>
</property>
</bean>
  1. After exchanging the server/client certificates, the client side reports “can’t find trusted certificate” error. After a check, the problem is that the server’s certificate wasn’t imported into the client’s trust store file properly. Redo and OK;

  2. After item2 is resolved, the client side still reports “Connection reset” error and it seems the server side refused the connection initialized by the client side. Then suddenly I realized that, after the client certificate was imported into the server side trust store file, the server side Glassfish doesn’t restart, which should be a mandatory step. After restart the Glassfish server, everything is OK.

Comments