<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Nuxeo DM with SQL Server Express 2008 - trouble setting up. in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-dm-with-sql-server-express-2008-trouble-setting-up/m-p/315665#M2666</link>
    <description>&lt;P&gt;Hi, I'm trying to use sql express 2008 with Nuxeo DM.
Here's a part of the config file:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;# nuxeo.templates=default
nuxeo.templates=mssql
# nuxeo.db.user=nuxeo
nuxeo.db.user=nuxeo\_db\_user
# nuxeo.db.password=password
nuxeo.db.password=123
# nuxeo.db.host=localhost
nuxeo.db.host=localhost\\sqlexpress
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but the database isn't created and in the server logs I have:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;2011-09-22 18:05:01,265 ERROR [org.nuxeo.ecm.platform.ui.web.auth.plugins.AnonymousAuthenticator] java.lang.RuntimeException: Unkown user directory userDirectory
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;...which it seems that at the end of the stack trace comes from&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;org.nuxeo.ecm.core.api.WrappedException: Exception: java.net.UnknownHostException. message: localhost\sqlexpress
  at java.net.PlainSocketImpl.connect(Unknown Source)
  at java.net.SocksSocketImpl.connect(Unknown Source)
  at java.net.Socket.connect(Unknown Source)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSocket.java:305)
  at net.sourceforge.jtds.jdbc.SharedSocket.&amp;lt;init&amp;gt;(SharedSocket.java:255)
  at net.sourceforge.jtds.jdbc.ConnectionJDBC2.&amp;lt;init&amp;gt;(ConnectionJDBC2.java:323)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 22 Sep 2011 17:14:04 GMT</pubDate>
    <dc:creator>elteo_</dc:creator>
    <dc:date>2011-09-22T17:14:04Z</dc:date>
    <item>
      <title>Nuxeo DM with SQL Server Express 2008 - trouble setting up.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-dm-with-sql-server-express-2008-trouble-setting-up/m-p/315665#M2666</link>
      <description>&lt;P&gt;Hi, I'm trying to use sql express 2008 with Nuxeo DM.
Here's a part of the config file:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;# nuxeo.templates=default
nuxeo.templates=mssql
# nuxeo.db.user=nuxeo
nuxeo.db.user=nuxeo\_db\_user
# nuxeo.db.password=password
nuxeo.db.password=123
# nuxeo.db.host=localhost
nuxeo.db.host=localhost\\sqlexpress
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but the database isn't created and in the server logs I have:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;2011-09-22 18:05:01,265 ERROR [org.nuxeo.ecm.platform.ui.web.auth.plugins.AnonymousAuthenticator] java.lang.RuntimeException: Unkown user directory userDirectory
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;...which it seems that at the end of the stack trace comes from&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;org.nuxeo.ecm.core.api.WrappedException: Exception: java.net.UnknownHostException. message: localhost\sqlexpress
  at java.net.PlainSocketImpl.connect(Unknown Source)
  at java.net.SocksSocketImpl.connect(Unknown Source)
  at java.net.Socket.connect(Unknown Source)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSocket.java:305)
  at net.sourceforge.jtds.jdbc.SharedSocket.&amp;lt;init&amp;gt;(SharedSocket.java:255)
  at net.sourceforge.jtds.jdbc.ConnectionJDBC2.&amp;lt;init&amp;gt;(ConnectionJDBC2.java:323)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Sep 2011 17:14:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-dm-with-sql-server-express-2008-trouble-setting-up/m-p/315665#M2666</guid>
      <dc:creator>elteo_</dc:creator>
      <dc:date>2011-09-22T17:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo DM with SQL Server Express 2008 - trouble setting up.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-dm-with-sql-server-express-2008-trouble-setting-up/m-p/315666#M2667</link>
      <description>&lt;P&gt;nuxeo.db.host must be a hostname or IP address, in your case it would be localhost if your MS SQL Express instance is running on the same machine as nuxeo.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2011 11:10:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-dm-with-sql-server-express-2008-trouble-setting-up/m-p/315666#M2667</guid>
      <dc:creator />
      <dc:date>2011-09-23T11:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo DM with SQL Server Express 2008 - trouble setting up.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-dm-with-sql-server-express-2008-trouble-setting-up/m-p/315667#M2668</link>
      <description>&lt;P&gt;Yes but as you can see the server is set up as a named instance (SQLEXPRESS), so localhost isn't sufficient. Does NUXEO support connecting to named instances of SQL Server? Thank you for your time.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2011 16:12:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-dm-with-sql-server-express-2008-trouble-setting-up/m-p/315667#M2668</guid>
      <dc:creator>elteo_</dc:creator>
      <dc:date>2011-09-23T16:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo DM with SQL Server Express 2008 - trouble setting up.</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-dm-with-sql-server-express-2008-trouble-setting-up/m-p/315668#M2669</link>
      <description>&lt;P&gt;Nuxeo uses jtds for the underlying connection and builds the jdbc url this way:
jdbc:jtds:sqlserver://${nuxeo.db.host}:${nuxeo.db.port}/${nuxeo.db.name};useCursors=true&lt;/P&gt;
&lt;P&gt;According to what I can see about jtds and named instances you have two options:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;append ";instance=sqlexpress" to your nuxeo.db.name&lt;/LI&gt;
&lt;LI&gt;use the named instance specific port instead of the generic database port&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Fri, 23 Sep 2011 16:20:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-dm-with-sql-server-express-2008-trouble-setting-up/m-p/315668#M2669</guid>
      <dc:creator />
      <dc:date>2011-09-23T16:20:45Z</dc:date>
    </item>
  </channel>
</rss>

