<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} p
        {margin-top:0;
        margin-bottom:0}--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Ivan,<br>
Yes, I have only one midPoint clean install. When I do NOT add the Context line into the server.xml then the startup succeeds. But when I add this line then it seems that midPoint starts up 2 times - at last I see the midPoint bootscreen 2 times in idm.log
 and some error messages complaining:<br>
cannot initialize TaskManager due to the following exception: Cannot initialize the Quartz scheduler.<br>
<br>
Aivo<br>
<br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>Saatja:</b> midPoint <midpoint-bounces@lists.evolveum.com> nimelIvan Noris <Ivan.Noris@evolveum.com><br>
<b>Saadetud:</b> 12. aprill 2017 14:22<br>
<b>Adressaat:</b> midPoint General Discussion<br>
<b>Teema:</b> Re: [midPoint] Running midPoint at the tomcat root</font>
<div> </div>
</div>
<div>
<div style="font-family:times new roman,new york,times,serif; font-size:12pt; color:#000000">
<div>Hi Aivo,<br>
</div>
<div>I have never seen this although I have also never used midpoint as tomcat root app. (I used apache httpd rewrite module for this.)<br>
</div>
<div>But - don't you have TWO midpoints deployed? Two nodes or two WAR files in the same Tomcat...?<br>
</div>
<div><br>
</div>
<div>Ivan<br>
</div>
<div><br>
</div>
<div><br>
</div>
<hr id="zwchr">
<blockquote style="border-left:2px solid #1010FF; margin-left:5px; padding-left:5px; color:#000; font-weight:normal; font-style:normal; text-decoration:none; font-family:Helvetica,Arial,sans-serif; font-size:12pt">
<b>From: </b>"Aivo Kuhlberg" <aivo.kuhlberg@rmit.ee><br>
<b>To: </b>"midpoint" <midpoint@lists.evolveum.com><br>
<b>Sent: </b>Wednesday, April 12, 2017 1:03:18 PM<br>
<b>Subject: </b>[midPoint] Running midPoint at the tomcat root<br>
<div><br>
</div>
<style style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<p>Hi,<br>
I am trying to run single midPoint instance at the tomcat root level so that my midPoint address should look like
<a href="http://my.server.name:port" target="_blank">http://my.server.name:port</a> instead of
<a href="http://my.server.name:port/midpoint" target="_blank">http://my.server.name:port/midpoint</a>.<br>
I found that by adding following line to conf/server.xml should solve the problem:</p>
<p><br>
        <Context path="" docBase="midpoint" debug="0" reloadable="false" useHttpOnly="true"></Context><br>
</p>
<p><br>
</p>
<p>This line should be added just before </Host> line. And in pronciple it works. Unfortunately after that I see every 10 seconds following errors:<br>
<br>
2017-04-12 13:45:55,730 [] [ClusterManagerThread] ERROR (com.evolveum.midpoint.task.quartzimpl.cluster.NodeRegistrar): The record of this node cannot be read (OID d06c11c8-ba05-4abe-a721-0fa992c7b554 not found), but another node record with the name 'DefaultNode'
 exists. It seems that in this cluster there are two or more nodes with the same name 'DefaultNode'. Stopping the scheduler to minimize the damage., reason: Object of type 'NodeType' with oid 'd06c11c8-ba05-4abe-a721-0fa992c7b554' was not found. (class com.evolveum.midpoint.util.exception.ObjectNotFoundException)<br>
2017-04-12 13:45:55,731 [] [ClusterManagerThread] INFO (com.evolveum.midpoint.task.quartzimpl.execution.LocalNodeManager): Shutting down Quartz scheduler<br>
2017-04-12 13:45:55,731 [] [ClusterManagerThread] INFO (com.evolveum.midpoint.task.quartzimpl.execution.LocalNodeManager): Quartz scheduler was shut down<br>
2017-04-12 13:45:55,731 [] [ClusterManagerThread] WARN (com.evolveum.midpoint.task.quartzimpl.cluster.NodeRegistrar): Scheduler stopped, please check your cluster configuration as soon as possible; kind of error = DUPLICATE_NODE_ID_OR_NAME<br>
2017-04-12 13:45:55,735 [] [ClusterManagerThread] ERROR (com.evolveum.midpoint.task.quartzimpl.cluster.NodeRegistrar): Cannot update registration of this node (name DefaultNode, oid d06c11c8-ba05-4abe-a721-0fa992c7b554), because it does not exist in repository.
 It is probably caused by cluster misconfiguration (other node rewriting the Node object?) Stopping the scheduler., reason: Object of type 'NodeType' with oid 'd06c11c8-ba05-4abe-a721-0fa992c7b554' was not found. (class com.evolveum.midpoint.util.exception.ObjectNotFoundException)<br>
<br>
Does anybody have any ideas what should I do to fix these errors or change my setup.<br>
My environment: midpoint 3.5.1, tomcat 8.0.43, JAVA 1.8.0_121<br>
 <br>
Thanks,<br>
Aivo Kuhlberg<br>
</p>
<br>
<hr>
<span size="2" color="Gray" style="color:gray; font-family:Arial; font-size:small">Käesolev e-kiri võib sisaldada asutusesiseseks kasutamiseks tunnistatud teavet.<br>
This e-mail may contain information which is classified for official use.</span> <br>
_______________________________________________<br>
midPoint mailing list<br>
midPoint@lists.evolveum.com<br>
http://lists.evolveum.com/mailman/listinfo/midpoint<br>
</blockquote>
<div><br>
<br>
</div>
<div><br>
</div>
<div>-- <br>
</div>
<div><span name="x"></span>Ivan Noris<br>
Senior Identity Engineer<br>
evolveum.com<span name="x"></span><br>
</div>
</div>
</div>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="2">Käesolev e-kiri võib sisaldada asutusesiseseks kasutamiseks tunnistatud teavet.<br>
This e-mail may contain information which is classified for official use.</font>
</body>
</html>