<?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 Custom Api doesn&amp;apos;t listen in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/custom-api-doesn-apos-t-listen/m-p/326872#M13873</link>
    <description>&lt;P&gt;Hello Dears&lt;/P&gt;
&lt;P&gt;i was starting to build  custom api as  &lt;A href="https://doc.nuxeo.com/nxdoc/webengine-jax-rs/"&gt;https://doc.nuxeo.com/nxdoc/webengine-jax-rs/&lt;/A&gt;
my code is&lt;/P&gt;
&lt;P&gt;Main Class :
public class MyWebAppRoot extends Application {
@Override
public Set&amp;lt;Class&amp;gt; getClasses() {
HashSet&lt;CLASS&gt;&amp;gt; result = new HashSet&amp;lt;Class&amp;lt;?&amp;gt;&amp;gt;();
result.add(TestController.class);
return result;
}
}&lt;/CLASS&gt;&lt;/P&gt;
&lt;P&gt;testClass&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;@Produces(MediaType.APPLICATION_JSON)
@WebObject(type = "Hello")
public class TestController  extends ModuleRoot {
	   
	
	 @GET
	  public String doGet() {
	    return "Sample1: Hello World!";
	  }

 	
	
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;MainfestFile :
Manifest-Version: 1.0
Nuxeo-WebModule: com.nuxeo.dataserve.MyWebAppRoot&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;after coding i build my App  by :  mvn install
then i copied jar into nxserver\bundles
and start server
after i hit   &lt;A href="http://localhost:8080/nuxeo/site/Hello"&gt;http://localhost:8080/nuxeo/site/Hello&lt;/A&gt;
response is
{"entity-type":"exception","status":404,"message":"com.sun.jersey.api.NotFoundException: null for uri: &lt;A href="http://localhost:8080/nuxeo/site/Hello&amp;quot;}" target="test_blank"&gt;http://localhost:8080/nuxeo/site/Hello"}&lt;/A&gt;
i know this is mean that my code doesn't work success
can any one tell me what the wrong in my Code ?&lt;/P&gt;</description>
    <pubDate>Tue, 19 Nov 2019 13:10:59 GMT</pubDate>
    <dc:creator>Abdelrahman_Sa1</dc:creator>
    <dc:date>2019-11-19T13:10:59Z</dc:date>
    <item>
      <title>Custom Api doesn&amp;apos;t listen</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/custom-api-doesn-apos-t-listen/m-p/326872#M13873</link>
      <description>&lt;P&gt;Hello Dears&lt;/P&gt;
&lt;P&gt;i was starting to build  custom api as  &lt;A href="https://doc.nuxeo.com/nxdoc/webengine-jax-rs/"&gt;https://doc.nuxeo.com/nxdoc/webengine-jax-rs/&lt;/A&gt;
my code is&lt;/P&gt;
&lt;P&gt;Main Class :
public class MyWebAppRoot extends Application {
@Override
public Set&amp;lt;Class&amp;gt; getClasses() {
HashSet&lt;CLASS&gt;&amp;gt; result = new HashSet&amp;lt;Class&amp;lt;?&amp;gt;&amp;gt;();
result.add(TestController.class);
return result;
}
}&lt;/CLASS&gt;&lt;/P&gt;
&lt;P&gt;testClass&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;@Produces(MediaType.APPLICATION_JSON)
@WebObject(type = "Hello")
public class TestController  extends ModuleRoot {
	   
	
	 @GET
	  public String doGet() {
	    return "Sample1: Hello World!";
	  }

 	
	
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;MainfestFile :
Manifest-Version: 1.0
Nuxeo-WebModule: com.nuxeo.dataserve.MyWebAppRoot&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;after coding i build my App  by :  mvn install
then i copied jar into nxserver\bundles
and start server
after i hit   &lt;A href="http://localhost:8080/nuxeo/site/Hello"&gt;http://localhost:8080/nuxeo/site/Hello&lt;/A&gt;
response is
{"entity-type":"exception","status":404,"message":"com.sun.jersey.api.NotFoundException: null for uri: &lt;A href="http://localhost:8080/nuxeo/site/Hello&amp;quot;}" target="test_blank"&gt;http://localhost:8080/nuxeo/site/Hello"}&lt;/A&gt;
i know this is mean that my code doesn't work success
can any one tell me what the wrong in my Code ?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 13:10:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/custom-api-doesn-apos-t-listen/m-p/326872#M13873</guid>
      <dc:creator>Abdelrahman_Sa1</dc:creator>
      <dc:date>2019-11-19T13:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Api doesn&amp;apos;t listen</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/custom-api-doesn-apos-t-listen/m-p/326873#M13874</link>
      <description>&lt;P&gt;Debugging remotely with no access to source code is a bit nightmarish. Do you have anything in the server.log at boot time/deploy time that could orientate the investigation? As a reminder, a MANIFEST.MF ends with an empty line. https&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2019 16:24:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/custom-api-doesn-apos-t-listen/m-p/326873#M13874</guid>
      <dc:creator>Patrick_Abgrall</dc:creator>
      <dc:date>2019-11-30T16:24:32Z</dc:date>
    </item>
  </channel>
</rss>

