<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>[LF7.1GA4] JAX RS API register error</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121488971" />
  <subtitle>[LF7.1GA4] JAX RS API register error</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121488971</id>
  <updated>2026-04-05T15:50:49Z</updated>
  <dc:date>2026-04-05T15:50:49Z</dc:date>
  <entry>
    <title>[LF7.1GA4] JAX RS API register error</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121488970" />
    <author>
      <name>Tinfo Tinfo</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121488970</id>
    <updated>2022-08-04T15:42:20Z</updated>
    <published>2022-08-04T15:42:20Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;we are trying to develop some API that&lt;/p&gt;
&lt;pre&gt;
&lt;code class="language-java"&gt;@Consumes(MediaType.MULTIPART_FORM_DATA)&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;using&lt;/p&gt;
&lt;pre&gt;
&lt;code class="language-java"&gt;@FormDataParam&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;but if we add these dependencies to gradle:&lt;/p&gt;
&lt;pre&gt;
&lt;code class="language-java"&gt;compileInclude group: 'org.glassfish.jersey.media', name: 'jersey-media-multipart', version: '2.27'
compileInclude group: 'org.glassfish.jersey.core', name: 'jersey-server', version: '2.27'&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;we have the following error:&lt;/p&gt;
&lt;pre&gt;
&lt;code class="language-java"&gt;2022-08-03 16:12:01.941 INFO  [pipe-start 1019][BundleStartStopLogger:39] STARTED it.tinfo.test.api_1.0.0 [1019]
2022-08-03 16:12:01.982 INFO  [pipe-start 1019][TestAPI:64] Test API Rest service activated
2022-08-03 16:12:01.994 WARN  [pipe-start 1019][AriesJaxrsServiceRuntime:227] Application CachingServiceReference {__cachedProperties={component.name=it.tinfo.test.api.api.TestAPI, service.id=9635, objectClass=[javax.ws.rs.core.Application], oauth2.scopechecker.type=none, osgi.jaxrs.name=testAPI, osgi.jaxrs.extension.select=null (cached), osgi.http.whiteboard.context.select=null (cached), osgi.jaxrs.whiteboard.target=null (cached), service.pid=it.tinfo.test.api.api.TestAPI, osgi.jaxrs.application.select=null (cached), osgi.jaxrs.application.base=/testAPI, component.id=4057, auth.verifier.guest.allowed=true, service.scope=bundle, service.bundleid=1019}__serviceReference={javax.ws.rs.core.Application}={osgi.jaxrs.application.base=/testAPI, service.id=9635, service.bundleid=1019, service.scope=bundle, auth.verifier.guest.allowed=true, oauth2.scopechecker.type=none, osgi.jaxrs.name=testAPI, service.pid=it.tinfo.test.api.api.TestAPI, component.name=it.tinfo.test.api.api.TestAPI, component.id=4057}__} is registered with error [Sanitized]&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;without these dependencies using @FormParam for text data there
  aren't registration problems.&lt;/p&gt;
&lt;p&gt;Which could be the problem?&lt;/p&gt;
&lt;p&gt;There are other working solution in Liferay to create API that
  receive file data correctly?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</summary>
    <dc:creator>Tinfo Tinfo</dc:creator>
    <dc:date>2022-08-04T15:42:20Z</dc:date>
  </entry>
</feed>
