
You are here: MyURC.org > Tools & Prototypes > UCHj > tutorial > UCHj Configuration
UCHj-Configuration
Page Contents:
File Location
The web.xml file is located at:
[TOMCAT_HOME]/webapps/UCH/WEB-INF/web.xml
Context Parameters
Set the properties of Context Parameters as appropriate. You have to change only those settings which affect your application.
<context-param>
<param-name>resserver.appPath</param-name>
<param-value>res.dotui.com/</param-value>
<context-param>
<context-param>
<param-name>resserver.username</param-name>
<param-value></param-value>
<context-param>
<context-param>
<param-name>resserver.password</param-name>
<param-value></param-value>
<context-param>
<context-param>
<param-name>ipAddress</param-name>
<param-value></param-value>
<context-param>
<context-param>
<param-name>portNo</param-name>
<param-value></param-value>
<context-param>
<context-param>
<param-name>debugLevel</param-name>
<param-value>1</param-value>
<context-param>
<context-param>
<param-name>http://purl.org/dc/elements/1.1/title</param-name>
<param-value>Universal Control Hub</param-value>
</context-param>
<context-param>
<param-name>http://myurc.org/ns/res#type</param-name>
<param-value>http://myurc.org/TR/uch/</param-value>
</context-param>
<context-param>
<param-name>http://purl.org/dc/terms/conformsTo</param-name>
<param-value>http://myurc.org/TR/uch1.0-20091103/</param-value>
</context-param>
- resserver.appPath specifies resource server path. Currently a global Resource Server is available at res.dotui.com. If blank or incorrect, then no connection will be made to the Resource Server. UCH will still read offline resource as specified in the UCH resource management tutorial.
- resserver.username specifies login userName to Resource Server. If blank or incorrect, then UCH can still communicate with Resource Server using Guest access.
- resserver.password specifies login password for access to the Resource Server.
- ipAddress specifies IP Address of machine on which UCH is running. If blank then UCH gets it automatically. It is recommended to keep it blank.
- portNo specifies the port number on which Tomcat server is running. If it is port 80 then no need to specify it. Else specify the value of port number on which Tomcat server is running.
- debugLevel specifies logger level for the log that will
be printed in server log file (catalina.out).
- 0 meaning OFF - No logging.
- 1 meaning SEVERE - Only log Severe events.
- 2 meaning WARNING - Only log Warning level events + Severe events.
- 3 meaning INFO - Heavy logging needed for debugging Informative Logging + Warning events + Severe events.
- http://purl.org/dc/elements/1.1/title specifies the title property of this UCH. Keep it as "Universal Control Hub"
- http://myurc.org/ns/res#type specifies the type property of this UCH. Keep it as "http://myurc.org/TR/uch/"
- http://purl.org/dc/terms/conformsTo specifies the UCH specification standard version that current UCH conformsTo. The version 2.0 release of UCH conforms to "http://myurc.org/TR/uch1.0-20091103/"
Last update: Parikshit Thakur & Team, 2010-04-30