[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Warning message in tomcat startup  XML
Forum Index -> General
Author Message
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 [Disk] Download
 Description
 Filesize 2 Kbytes
 Downloaded:  198 time(s)

 Filename CustomSessionManager.java [Disk] Download
 Description
 Filesize 2 Kbytes
 Downloaded:  227 time(s)

zeeiyer

consul

Joined: 05/24/2006 14:28:28
Messages: 493
Offline

If customSessionManager has no field named chatApiSessions - then that could be the source of the issue. The root is the fully qualified name of the reference that you wish to get replicated.

Your snippets are rather confusing - in that the snippet for CustomSessionManager that is inline has no field named chatApiSessions, but the examples you have attached do have the field?


Sreeni Iyer, Terracotta.
Not a member yet - Click here to join the Terracotta Community
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.7 © JForum Team