<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Alexander,<br>
<br>
you've probably used
<a class="moz-txt-link-freetext" href="https://wiki.evolveum.com/display/midPoint/Repository+Configuration#RepositoryConfiguration-PostgreSQL">https://wiki.evolveum.com/display/midPoint/Repository+Configuration#RepositoryConfiguration-PostgreSQL</a><br>
to configure midpoint to use postgresql. I've just checked it and
that page contains outdated data.<br>
You should update your config.xml located in "midpoint.home" folder
like this.<br>
<br>
<code class="html plain"> <</code><code class="html
keyword">repository</code><code class="html plain">></code>
<div class="line number4 index3 alt1"><code class="html spaces"> </code><code
class="html plain"><</code><code class="html keyword">repositoryServiceFactoryClass</code><code
class="html plain">>com.evolveum.midpoint.repo.sql.SqlRepositoryFactory</</code><code
class="html keyword">repositoryServiceFactoryClass</code><code
class="html plain">></code></div>
<div class="line number5 index4 alt2"><code class="html spaces"> </code><code
class="html plain"><</code><code class="html keyword">embedded</code><code
class="html plain">>false</</code><code class="html
keyword">embedded</code><code class="html plain">></code></div>
<div class="line number6 index5 alt1"><code class="html spaces"> </code><code
class="html plain"><</code><code class="html keyword">driverClassName</code><code
class="html plain">>org.postgresql.Driver</</code><code
class="html keyword">driverClassName</code><code class="html
plain">></code></div>
<div class="line number7 index6 alt2"><code class="html spaces"> </code><code
class="html plain"><</code><code class="html keyword">jdbcUsername</code><code
class="html plain">>midpoint</</code><code class="html
keyword">jdbcUsername</code><code class="html plain">></code></div>
<div class="line number8 index7 alt1"><code class="html spaces"> </code><code
class="html plain"><</code><code class="html keyword">jdbcPassword</code><code
class="html plain">>password</</code><code class="html
keyword">jdbcPassword</code><code class="html plain">></code></div>
<div class="line number9 index8 alt2"><code class="html spaces"> </code><code
class="html plain"><</code><code class="html keyword">jdbcUrl</code><code
class="html plain">>jdbc:postgresql://localhost/midpoint</</code><code
class="html keyword">jdbcUrl</code><code class="html plain">></code></div>
<div class="line number10 index9 alt1"><b><code class="html spaces"> </code></b><b><code
class="html plain"><</code></b><b><code class="html
keyword">hibernateDialect</code></b><b><code class="html
plain">></code></b><b><code class="html plain">com.evolveum.midpoint.repo.sql.util.MidPointPostgreSQLDialect</</code></b><b><code
class="html keyword">hibernateDialect</code></b><b><code
class="html plain">></code></b></div>
<div class="line number11 index10 alt2"><code class="html spaces"> </code><code
class="html plain"><</code><code class="html keyword">hibernateHbm2ddl</code><code
class="html plain">>validate</</code><code class="html
keyword">hibernateHbm2ddl</code><code class="html plain">></code></div>
<div class="line number12 index11 alt1"><code class="html spaces"> </code><code
class="html plain"></</code><code class="html keyword">repository</code><code
class="html plain">></code></div>
<br>
I already updated wiki. Please let me know if there are any other
problems.<br>
<br>
Cheers,<br>
Vilo<br>
<br>
<div class="moz-cite-prefix">On 05/09/2014 10:33 AM, Alexander
Grzesik wrote:<br>
</div>
<blockquote
cite="mid:28bf3fa2-4bd4-4d25-a318-1463e10fd288@medisite.de"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Vorformatiert Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.HTMLVorformatiertZchn
{mso-style-name:"HTML Vorformatiert Zchn";
mso-style-priority:99;
mso-style-link:"HTML Vorformatiert";
font-family:Consolas;
color:black;}
span.E-MailFormatvorlage20
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.E-MailFormatvorlage21
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.E-MailFormatvorlage22
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.E-MailFormatvorlage23
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.E-MailFormatvorlage24
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.E-MailFormatvorlage25
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.E-MailFormatvorlage26
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.E-MailFormatvorlage27
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
lang="EN-US">I tried to change the current snapshot version
to use a postgres DB instead of the embedded one. I created
the Schema with the current sql files, but when I start
midpoint it throws an error that it cannot create the
sessionfactory.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
lang="EN-US">The reason seems a problem in its hibernate
schema definition: <o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
lang="EN-US">Caused by: org.hibernate.HibernateException:
Wrong column type in public.m_object for column fullObject.
Found: bytea, expected: oid<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
lang="EN-US"> at
org.hibernate.mapping.Table.validateColumns(Table.java:374)
~[hibernate-core-4.1.12.Final.jar:4.1.12.Final]<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
lang="EN-US">Any tip what I can change to use the postgrs
db?<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
lang="EN-US">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"
lang="EN-US">Alexander<o:p></o:p></span></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Ing. Viliam Repáň
Evolveum, s.r.o.
tel: +421 910 797978
mail: <a class="moz-txt-link-abbreviated" href="mailto:vilo.repan@evolveum.com">vilo.repan@evolveum.com</a>
</pre>
</body>
</html>