<?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>Servlet with Osgi bundle issue</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121961097" />
  <subtitle>Servlet with Osgi bundle issue</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121961097</id>
  <updated>2026-04-03T21:48:22Z</updated>
  <dc:date>2026-04-03T21:48:22Z</dc:date>
  <entry>
    <title>RE: Servlet with Osgi bundle issue</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121964499" />
    <author>
      <name>Scarletake Bwi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121964499</id>
    <updated>2023-08-07T02:22:21Z</updated>
    <published>2023-08-07T02:22:20Z</published>
    <summary type="html">&lt;p&gt;update&lt;/p&gt;
&lt;p&gt;it's weird, i delete /osgi/state and copy an original /osgi/state,
  restart server, it works again.&lt;/p&gt;</summary>
    <dc:creator>Scarletake Bwi</dc:creator>
    <dc:date>2023-08-07T02:22:20Z</dc:date>
  </entry>
  <entry>
    <title>RE: Servlet with Osgi bundle issue</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121963633" />
    <author>
      <name>Scarletake Bwi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121963633</id>
    <updated>2023-08-06T01:10:18Z</updated>
    <published>2023-08-06T01:10:17Z</published>
    <summary type="html">&lt;p&gt;for record&lt;/p&gt;
&lt;p&gt;it's weare, i deleted folder &amp;quot;osgi/state&amp;quot;, and copied a new
  (orangnal) osgi/state, and restart server.&lt;/p&gt;
&lt;p&gt;the servlet is back.&lt;/p&gt;</summary>
    <dc:creator>Scarletake Bwi</dc:creator>
    <dc:date>2023-08-06T01:10:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: Servlet with Osgi bundle issue</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121962815" />
    <author>
      <name>Scarletake Bwi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121962815</id>
    <updated>2023-08-05T06:54:29Z</updated>
    <published>2023-08-05T06:54:28Z</published>
    <summary type="html">&lt;p&gt;hi Olaf&lt;/p&gt;
&lt;p&gt;i updated the question,  sorry for missed the /o/,&lt;/p&gt;
&lt;p&gt;I use http://localhost:8080/o/cwh/trigger/ &lt;/p&gt;
&lt;p&gt;got that error message. &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;and, it was works fine for a while,  for some reason I do not know,
  it doesn't work, and I got the error message. &lt;/p&gt;</summary>
    <dc:creator>Scarletake Bwi</dc:creator>
    <dc:date>2023-08-05T06:54:28Z</dc:date>
  </entry>
  <entry>
    <title>RE: Servlet with Osgi bundle issue</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121961631" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121961631</id>
    <updated>2023-08-04T15:28:04Z</updated>
    <published>2023-08-04T15:28:03Z</published>
    <summary type="html">&lt;p&gt;You seem to be missing the /o/ in the URL (pointing to where the OSGi
  framework listens).&lt;/p&gt;
&lt;p&gt;Try http://localhost:8080/&lt;strong&gt;o/&lt;/strong&gt;cwh/trigger/&lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2023-08-04T15:28:03Z</dc:date>
  </entry>
  <entry>
    <title>Servlet with Osgi bundle issue</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121961096" />
    <author>
      <name>Scarletake Bwi</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121961096</id>
    <updated>2023-08-05T06:47:51Z</updated>
    <published>2023-08-04T10:25:09Z</published>
    <summary type="html">&lt;p&gt;hi &lt;/p&gt;
&lt;p&gt;i am follow &lt;a
  href="https://help.liferay.com/hc/en-us/articles/360022829011-Servlets-in-a-Module"&gt;Servlets-in-a-Module&lt;/a&gt;,
  create an api module.&lt;/p&gt;
&lt;p&gt;but when i try access the servlet
  (http://localhost:8080/o/cwh/trigger/), i got &lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;2023-08-04 10:16:02.280 WARN
     [https-jsse-nio-443-exec-40][code_jsp:159] {code=&amp;quot;404&amp;quot;,
    msg=&amp;quot;ProxyServlet: /cwh/trigger/&amp;quot;,
    uri=/o/cwh/trigger/}&lt;br&gt; 2023-08-04 10:16:10.326 WARN
     [https-jsse-nio-443-exec-23][code_jsp:159] {code=&amp;quot;404&amp;quot;,
    msg=&amp;quot;ProxyServlet: /cwh/trigger&amp;quot;, uri=/o/cwh/trigger}&lt;br&gt;  &lt;/p&gt;
&lt;/blockquote&gt;
&lt;pre&gt;
&lt;code class="language-java"&gt;@Component(immediate = true, property = { 
		&amp;quot;osgi.http.whiteboard.context.path=/&amp;quot;
		,&amp;quot;osgi.http.whiteboard.servlet.name=com.dpc.ci.cwh.servlet.ChatWebhook&amp;quot;
		, &amp;quot;osgi.http.whiteboard.servlet.pattern=/cwh/trigger/*&amp;quot;
}
		, service = Servlet.class)
public class ChatWebhook extends HttpServlet {&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;can anyone help please, thanks in advance.&lt;/p&gt;</summary>
    <dc:creator>Scarletake Bwi</dc:creator>
    <dc:date>2023-08-04T10:25:09Z</dc:date>
  </entry>
</feed>
