I presume that strictly speaking, what you want to do is instantiate an object as soon as your servlet is loaded by Tomcat. (It wouldn't really make any sense to modify Tomcat itself for an application-specific functionality).
In this case, your Servlet
class can override/implement the init(ServletConfig config)
method. This is called by the servlet container (Tomcat in this case) when the servlet is initialised, and is exactly the right place to perform static startup logic, such as the kind you are referring to here.
In fact, the servlet will not even be able to receive connections until its init method has returned, so you can guarantee that the ontology will be fully loaded before the sensor observations arrive.