Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [data-dev] [External] : Re: TestEngine with ID 'junit-jupiter' failed to discover tests error
  • From: Gurunandan Rao <gurunandan.rao@xxxxxxxxxx>
  • Date: Wed, 26 Feb 2025 06:10:50 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OL3OmPlyBc0rpj84tdNhehW9YVUR3oRmKVbB3fFkbF8=; b=akymzzKZveWKWIt4SenrLcQ6NSK/fBztIhTcS72WfQPnz7vc272wL2cTtkH6EyrZuRCGrvPB3NGCaSJx+tF62R39Lg5Wbu7pjIcudn3jLhJVyr/808yE7VF7cq4ojU3TfjGE4J+kb1of2a8eE/J6G9D9MTEWGRcCosEdAsN9psyEcgzqYLc5qGwkk+DKmNdA0lYgmltcCSHDoqL/raCkw6s59/2Ka+Vxi/MrAa/Ifj5DaOMv7bh9ZbvgDwwpgLLbBRXcnlt5m0Gsk7WMRcZa1SQIVIm6hIbCI4estTH9gCB80xzEFACY5ZGxng0eeBn+gt+ZtDJe8NS6t0ZLDWnQSQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kUxdvBeCHoYuxCEkPtPsD6yoNBiaDZlkaz+Ei67r9Gl5WNlIXzA4kOlJOaqK/Mgb4U0vGdYqHWHcthOOptx7QH/zC9m5iG/t+MREReD5JvdiFYR3i8T5ECtvnOM3+escwVKZxFc8YeLFtpP7I7M/iw1S2kG9jA0vI7fJIo5sUHhKs2N/V+QsgszyJQvZJyyZuSQDp/2+RYZDuopQ3TKGv2gtpl8uBK7xP9px8FTk7hsczTPqyc97CfH7CuFeSuKPSvEwYGdDofoAtpmrJzLl9D+tI8HrLKHWJ0wYWyVEW20FhLH7OMSvky2KxYzeMmY3UhYjAim5EX2jDdcaQQMrOQ==
  • Delivered-to: data-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/data-dev/>
  • List-help: <mailto:data-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/data-dev>, <mailto:data-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/data-dev>, <mailto:data-dev-request@eclipse.org?subject=unsubscribe>
  • Msip_labels:
  • Thread-index: AQHbh6+GI0a0eSvfzU2h2T/vi1C3rbNZGjbR
  • Thread-topic: [data-dev] [External] : Re: TestEngine with ID 'junit-jupiter' failed to discover tests error

Hi,
The Apps are not deployed for Entity tests, the apps are deployed for signature test. I have already raised issue with Glassfish team for jakarta data api missing [https://www.eclipse.org/lists/glassfish-dev/msg01609.html] .

regards,
Guru

From: Kyle Aure <kylejaure@xxxxxxxxx>
Sent: 25 February 2025 23:32
To: data developer discussions <data-dev@xxxxxxxxxxx>
Cc: Gurunandan Rao <gurunandan.rao@xxxxxxxxxx>
Subject: Re: [data-dev] [External] : Re: TestEngine with ID 'junit-jupiter' failed to discover tests error
 
Gurunandan,

Based on `server.log`(glassfish logs), the tck apps are not deployed

What evidence do you have for that statement? I can see the applications being deployed and starting successfully:
[2025-02-25T22:04:20.040410+05:30] [GF 8.0.0-JDK17-M9] [INFO] [] [org.glassfish.web.loader.WebappClassLoader] [tid: _ThreadID=61 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  close(), this:
org.glassfish.web.loader.WebappClassLoader@529af334[name=70ab76d2-cdc0-4030-b261-ae11634c37cb], urls=[
file:/home/g/tck/data/platform-tck/glassfish-runner/data-tck/target/glassfish8/glassfish/domains/domain1/applications/70ab76d2-cdc0-4030-b261-ae11634c37cb/WEB-INF/classes/
file:/home/g/tck/data/platform-tck/glassfish-runner/data-tck/target/glassfish8/glassfish/domains/domain1/applications/70ab76d2-cdc0-4030-b261-ae11634c37cb/WEB-INF/lib/arquillian-testenricher-initialcontext.jar
file:/home/g/tck/data/platform-tck/glassfish-runner/data-tck/target/glassfish8/glassfish/domains/domain1/applications/70ab76d2-cdc0-4030-b261-ae11634c37cb/WEB-INF/lib/arquillian-jakarta-servlet-protocol.jar
file:/home/g/tck/data/platform-tck/glassfish-runner/data-tck/target/glassfish8/glassfish/domains/domain1/applications/70ab76d2-cdc0-4030-b261-ae11634c37cb/WEB-INF/lib/arquillian-testenricher-resource-jakarta.jar
file:/home/g/tck/data/platform-tck/glassfish-runner/data-tck/target/glassfish8/glassfish/domains/domain1/applications/70ab76d2-cdc0-4030-b261-ae11634c37cb/WEB-INF/lib/arquillian-testenricher-ejb-jakarta.jar
file:/home/g/tck/data/platform-tck/glassfish-runner/data-tck/target/glassfish8/glassfish/domains/domain1/applications/70ab76d2-cdc0-4030-b261-ae11634c37cb/WEB-INF/lib/arquillian-core.jar
file:/home/g/tck/data/platform-tck/glassfish-runner/data-tck/target/glassfish8/glassfish/domains/domain1/applications/70ab76d2-cdc0-4030-b261-ae11634c37cb/WEB-INF/lib/arquillian-testenricher-cdi-jakarta.jar
file:/home/g/tck/data/platform-tck/glassfish-runner/data-tck/target/glassfish8/glassfish/domains/domain1/applications/70ab76d2-cdc0-4030-b261-ae11634c37cb/WEB-INF/lib/arquillian-junit5.jar
file:/home/g/tck/data/platform-tck/glassfish-runner/data-tck/target/glassfish8/glassfish/domains/domain1/applications/70ab76d2-cdc0-4030-b261-ae11634c37cb/WEB-INF/lib/jakarta-data-framework.jar
file:/home/g/tck/data/platform-tck/glassfish-runner/data-tck/target/glassfish8/glassfish/domains/domain1/generated/ejb/70ab76d2-cdc0-4030-b261-ae11634c37cb/
][delegate=true, context=70ab76d2-cdc0-4030-b261-ae11634c37cb, status=RUNNING, antiJARLocking=false, repositories=RepositoryManager[WEB-INF/classes/], notFound.size=0, pathTimestamps.size=8, resourceEntryCache.size=0]]]

[2025-02-25T22:04:20.067281+05:30] [GF 8.0.0-JDK17-M9] [INFO] [AS-WEB-GLUE-00172] [jakarta.enterprise.web] [tid: _ThreadID=61 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  Loading application [70ab76d2-cdc0-4030-b261-ae11634c37cb] at [/70ab76d2-cdc0-4030-b261-ae11634c37cb]]]

[2025-02-25T22:04:20.083910+05:30] [GF 8.0.0-JDK17-M9] [INFO] [] [jakarta.enterprise.system.core] [tid: _ThreadID=61 _ThreadName=admin-listener(4)] [levelValue: 800] [[
  70ab76d2-cdc0-4030-b261-ae11634c37cb was successfully deployed in 497 milliseconds.]]

Based on the output from the signature test:
Warning: incorrect classpath parameter: /home/g/tck/data/platform-tck/glassfish-runner/data-tck/target/glassfish8/glassfish/modules/jakarta.data-api.jar (/home/g/tck/data/platform-tck/glassfish-runner/data-tck/target/glassfish8/glassfish/modules/jakarta.data-api.jar). This directory or jar file will be ignored!

Missing Classes
---------------

jakarta.data.Direction
jakarta.data.Limit
jakarta.data.Order
jakarta.data.Sort

I'm wondering if your server has the Jakarta Data API available at runtime.
It could be possible that Arquillian is attempting to load the test class, but is failing to because the Jakarta Data API is unavailable.
You could enable additional tracing on your server to help you debug an Arquillian issue.  Both Arquillian and the TCK use java.util.logging try enabling:
org.jboss.arquillian=all
ee.jakarta.tck.data="">

Hope that helps,
Kyle Jon Aure

On Tue, Feb 25, 2025 at 10:56 AM Gurunandan Rao via data-dev <data-dev@xxxxxxxxxxx> wrote:
Thanks for providing information on pom.xml, I have updated pom to have <testSourceDirectory>, also updated junit to 5.12.
I am getting same error as before.
Based on `server.log`(glassfish logs), the tck apps are not deployed and `run.log` don't have error related to deployment. Also attached `arquillian.xml` for reference.

regards,
Guru

From: data-dev <data-dev-bounces@xxxxxxxxxxx> on behalf of Piotr Żygieło via data-dev <data-dev@xxxxxxxxxxx>
Sent: 25 February 2025 21:12
To: data developer discussions <data-dev@xxxxxxxxxxx>
Cc: Piotr Żygieło <piotr.zygielo@xxxxxxxxx>
Subject: [External] : Re: [data-dev] TestEngine with ID 'junit-jupiter' failed to discover tests error
 
On Tue, 25 Feb 2025 at 16:23, Piotr Żygieło <piotr.zygielo@xxxxxxxxx> wrote:
>
> Perhaps for the same/similar reason as:
>   https://urldefense.com/v3/__https://github.com/junit-team/junit5/issues/4335__;!!ACWV5N9M2RV99hQ!OMmeMUBVEItdF-bD060WFYogYHc0JtwRQzxVI5DiIgczPG0jNU0yjsFQayC6m_vj69frO52PsDb8PLqcQj0wJQ$
>

On the other hand, the attached pom uses older JUnit (Kyle's linked
one 5.12.0), and both import JUnit BOM, so this error might be not
related to 4335.

--
Piotrek
_______________________________________________
data-dev mailing list
data-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://urldefense.com/v3/__https://accounts.eclipse.org__;!!ACWV5N9M2RV99hQ!OMmeMUBVEItdF-bD060WFYogYHc0JtwRQzxVI5DiIgczPG0jNU0yjsFQayC6m_vj69frO52PsDb8PLpdPSkQ9w$
_______________________________________________
data-dev mailing list
data-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://accounts.eclipse.org

Back to the top