mohi
neo
Joined: 07/15/2010 23:55:03
Messages: 2
Offline
|
good day!
I have been using Terracotta DSO in one of my Web Application. The web application has 3 components that accessing DSO.
The whole system has been working fine, but yesterday we made a upgrade in one component ( did not change ant TC root object so no change in tc-config.xml).
When we try to start up tomcat-with-tc-client, it seems that tomcat is not being start up properly it gives a warning message...
2010-07-16 07:41:43,314 WARN - The root expression 'api.utility.CustomSessionManager.chatApiSessions' meant for the class 'api.utility.CustomSessionManager' has no effect, make sure that it is a valid expression and that it is spelled correctly.
regarding this WARNING message here is the snippet from the code and tc-config.xml
public class CustomSessionManager {
//private static HashMap<Integer, UserSession> customSessions = new HashMap();
private static ConcurrentHashMap<Integer, UserSession> gridApiSessions = new ConcurrentHashMap<Integer, UserSession>();
//msisdn vs. sessionid
private static ConcurrentHashMap<String, Integer> msisdnSessionMap = new ConcurrentHashMap<String, Integer>();
/**
* This method creates a user session and puts it in a global HashMap
* @param sPassword
* @param msisdn
* @return int(-1 on failure)
*/
public static UserSession createUserSession(String msisdn, String sPassword) { ..... ... ...
tc-config
----------
<root>
<field-name>api.utility.CustomSessionManager.chatApiSessions</field-name>
</root>
Well, the respective component i am talking about does not have the api.utility.CustomSessionManager.chatApiSessions object but the other componet (ChatProxy) have this object.
And as a result, we picked up an anomaly that in the application cannot open a web service port. very strange !
Please find the attached tc-config.xml and two java file
Any help / guide will be highly appreciated.
Thanks
Filename |
CustomSessionManager.java |
Download
|
Description |
|
Filesize |
2 Kbytes
|
Downloaded: |
198 time(s) |
Filename |
CustomSessionManager.java |
Download
|
Description |
|
Filesize |
2 Kbytes
|
Downloaded: |
227 time(s) |
|