<?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>Service integration test using Arquillian fails on LR 7.1</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114068075" />
  <subtitle>Service integration test using Arquillian fails on LR 7.1</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114068075</id>
  <updated>2026-04-04T08:58:27Z</updated>
  <dc:date>2026-04-04T08:58:27Z</dc:date>
  <entry>
    <title>RE: Service integration test using Arquillian fails on LR 7.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114245120" />
    <author>
      <name>Daniele Baggio</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114245120</id>
    <updated>2019-07-10T20:07:44Z</updated>
    <published>2019-07-10T20:07:44Z</published>
    <summary type="html">No Olaf,  I seems different.&lt;br /&gt;In my case the test classes are executed but the init method raise the exception due to some arquillian bridge dependecies missed..</summary>
    <dc:creator>Daniele Baggio</dc:creator>
    <dc:date>2019-07-10T20:07:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: Service integration test using Arquillian fails on LR 7.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114244338" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114244338</id>
    <updated>2019-07-10T17:04:12Z</updated>
    <published>2019-07-10T17:04:12Z</published>
    <summary type="html">Could it be &lt;a href="https://issues.liferay.com/browse/LPS-97550"&gt;LPS-97550&lt;/a&gt;?</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-07-10T17:04:12Z</dc:date>
  </entry>
  <entry>
    <title>RE: Service integration test using Arquillian fails on LR 7.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114074385" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114074385</id>
    <updated>2019-06-20T13:23:29Z</updated>
    <published>2019-06-20T13:23:29Z</published>
    <summary type="html">Looks like you&amp;#39;re missing a dependency on the servlet api jar.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2019-06-20T13:23:29Z</dc:date>
  </entry>
  <entry>
    <title>Service integration test using Arquillian fails on LR 7.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114068074" />
    <author>
      <name>Daniele Baggio</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114068074</id>
    <updated>2019-06-19T19:07:15Z</updated>
    <published>2019-06-19T19:07:15Z</published>
    <summary type="html">Hi,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;gradle buildService can generate integration test code using this directive:&lt;br /&gt;&lt;br /&gt;buildService {&lt;br /&gt;    apiDir = &amp;#34;../service-api/src/main/java&amp;#34;&lt;br /&gt;    testDir = &amp;#34;../service-test/src/testIntegration/java&amp;#34;&lt;br /&gt;}&lt;br /&gt;build.gradle for integration test module:&lt;br /&gt;&lt;br /&gt;dependencies {&lt;br /&gt;    testIntegrationCompile group: &amp;#34;com.liferay&amp;#34;, name: &amp;#34;com.liferay.arquillian.extension.junit.bridge&amp;#34;, version: &amp;#34;1.0.17&amp;#34;&lt;br /&gt;    testIntegrationCompile group: &amp;#34;com.liferay.portal&amp;#34;, name: &amp;#34;release.portal.api&amp;#34;, version: &amp;#34;7.1.1&amp;#34;    testIntegrationCompile project(&amp;#34;:modules:xxxxxx.box-api&amp;#34;)&lt;br /&gt;    testIntegrationCompile project(&amp;#34;:modules:xxxxxx.box-service&amp;#34;)&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The module compiles, the portal setup for testing is ok.&lt;br /&gt;&lt;br /&gt;WHAT FAILS:&lt;br /&gt;&lt;br /&gt;LiferayIntegrationTestRule can&amp;#39;t instantiate due to this error:&lt;br /&gt;&lt;br /&gt;java.lang.NoClassDefFoundError: javax/servlet/ServletException&lt;br /&gt;    at com.liferay.portal.test.rule.LiferayIntegrationTestRule.&amp;lt;clinit&amp;gt;(LiferayIntegrationTestRule.java:94)&lt;br /&gt;    at it.baxtheman.mgb.box.service.persistence.test.cbAllegatoPersistenceTest.&amp;lt;clinit&amp;gt;(cbAllegatoPersistenceTest.java:67)&lt;br /&gt;    at java.lang.Class.forName0(Native Method)&lt;br /&gt;    at java.lang.Class.forName(Class.java:348)&lt;br /&gt;    at com.liferay.arquillian.extension.junit.bridge.junit.Arquillian.run(Arquillian.java:111)&lt;br /&gt;    at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:106)&lt;br /&gt;    at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)&lt;br /&gt;    at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:38)&lt;br /&gt;    at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:66)&lt;br /&gt;&lt;br /&gt;Any help?</summary>
    <dc:creator>Daniele Baggio</dc:creator>
    <dc:date>2019-06-19T19:07:15Z</dc:date>
  </entry>
</feed>
