<?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 Re: Embedding Nuxeo in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/embedding-nuxeo/m-p/320688#M7689</link>
    <description>&lt;P&gt;The framework reports no errors during initialization. However, my problem seems to be that I did not provide all the bundles required to run my code, because after adding all .jars from the bundles directory of the distribution, my code works. Of course, this is not optimal so I wonder how I can figure out which bundles are required. Currently, I only want to get a reference to the SchemaManager (Framework.getLocalService(SchemaManager.class)) and thus I thought that adding nuxeo-core-schema-5.4.2.jar would be sufficient, but I was wrong. What else do I need to add?&lt;/P&gt;</description>
    <pubDate>Tue, 01 Nov 2011 08:40:11 GMT</pubDate>
    <dc:creator>mainzelM_</dc:creator>
    <dc:date>2011-11-01T08:40:11Z</dc:date>
    <item>
      <title>Embedding Nuxeo</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/embedding-nuxeo/m-p/320684#M7685</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm would like to embed the Nuxeo DM core into my application so that I can make Java API calls to it to store and retrieve documents. However, I don't see what is the right starting point for this. I tried to work with the FrameworkerLoader from &lt;A href="http://doc.nuxeo.com/display/KB/How+to+use+an+embedded+Nuxeo+from+a+Java+application" target="test_blank"&gt;http://doc.nuxeo.com/display/KB/How+to+use+an+embedded+Nuxeo+from+a+Java+application&lt;/A&gt; but I get a NullPointerException when I call Framework.getLocalService(SchemaManager.class). Can somebody provide me with a more complete example on how to embed Nuxeo?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2011 11:29:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/embedding-nuxeo/m-p/320684#M7685</guid>
      <dc:creator>mainzelM_</dc:creator>
      <dc:date>2011-10-31T11:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding Nuxeo</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/embedding-nuxeo/m-p/320685#M7686</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2011 15:18:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/embedding-nuxeo/m-p/320685#M7686</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2011-10-31T15:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding Nuxeo</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/embedding-nuxeo/m-p/320686#M7687</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2011 16:57:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/embedding-nuxeo/m-p/320686#M7687</guid>
      <dc:creator>mainzelM_</dc:creator>
      <dc:date>2011-10-31T16:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding Nuxeo</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/embedding-nuxeo/m-p/320687#M7688</link>
      <description>&lt;P&gt;Since runtime is null, you have an issue with the framework initialization.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2011 17:36:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/embedding-nuxeo/m-p/320687#M7688</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2011-10-31T17:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding Nuxeo</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/embedding-nuxeo/m-p/320688#M7689</link>
      <description>&lt;P&gt;The framework reports no errors during initialization. However, my problem seems to be that I did not provide all the bundles required to run my code, because after adding all .jars from the bundles directory of the distribution, my code works. Of course, this is not optimal so I wonder how I can figure out which bundles are required. Currently, I only want to get a reference to the SchemaManager (Framework.getLocalService(SchemaManager.class)) and thus I thought that adding nuxeo-core-schema-5.4.2.jar would be sufficient, but I was wrong. What else do I need to add?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2011 08:40:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/embedding-nuxeo/m-p/320688#M7689</guid>
      <dc:creator>mainzelM_</dc:creator>
      <dc:date>2011-11-01T08:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Embedding Nuxeo</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/embedding-nuxeo/m-p/320689#M7690</link>
      <description>&lt;P&gt;There must be logs about missing code (such as ClassNotFoundException). If you do get some logs (confirming you properly configured the logging) but no error, please fill a Jira issue about raising errors at framework initialization: &lt;A href="https://jira.nuxeo.com/browse/NXP" target="test_blank"&gt;https://jira.nuxeo.com/browse/NXP&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;About nuxeo-core-schema, if you look at its Maven POM, you will see it has dependencies on other Nuxeo modules: nuxeo-common, nuxeo-runtime
and on third-party libraries: xsom and relaxngDatatype&lt;BR /&gt;
See &lt;A href="https://maven.nuxeo.org/nexus/index.html#nexus-search;gav%7E%7Enuxeo-core-schema%7E5.4.2%7E%7E"&gt;https://maven.nuxeo.org/nexus/&lt;/A&gt; =&amp;gt; &lt;A href="https://maven.nuxeo.org/nexus/service/local/repositories/public-releases/content/org/nuxeo/ecm/core/nuxeo-core-schema/5.4.2/nuxeo-core-schema-5.4.2.pom"&gt;nuxeo-core-schema-5.4.2.pom&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Note those modules will also have their own dependencies. Manually resolving them will be a pain.
You should use Maven for compiling and resolving dependencies. See &lt;A href="http://doc.nuxeo.com/x/BIAO"&gt;http://doc.nuxeo.com/x/BIAO&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;FYI, here's a simplified dependency tree of nuxeo-core-schema:&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;$ mvn dependency:tree -o
org.nuxeo.ecm.core:nuxeo-core-schema:jar:5.4.2
+- org.nuxeo.common:nuxeo-common:jar:5.4.2:compile
|  +- xerces:xercesImpl:jar:2.9.1:provided
|  +- org.osgi:osgi-core:jar:4.1:provided
|  +- commons-io:commons-io:jar:1.4:provided
|  +- commons-lang:commons-lang:jar:2.3:provided
|  \- commons-logging:commons-logging:jar:1.1:provided
|     +- log4j:log4j:jar:1.2.16:provided (version managed from 1.2.12)
|     +- logkit:logkit:jar:1.0.1:provided
|     +- avalon-framework:avalon-framework:jar:4.1.3:provided
|     \- javax.servlet:servlet-api:jar:2.4:provided (version managed from 2.3)
+- org.nuxeo.runtime:nuxeo-runtime:jar:5.4.2:compile
|  +- org.nuxeo.common:nuxeo-common:jar:5.4.2:compile
|  +- javax.transaction:jta:jar:1.1:provided
|  \- commons-jexl:commons-jexl:jar:1.1:provided
+- com.sun.xml:xsom:jar:20060306:compile
\- com.sun.xml:relaxngDatatype:jar:1.0:compile
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Nov 2011 12:07:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/embedding-nuxeo/m-p/320689#M7690</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2011-11-02T12:07:20Z</dc:date>
    </item>
  </channel>
</rss>

