Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [glassfish-dev] GlassFish Fails with Arquillian
  • From: Reza Rahman <reza_rahman@xxxxxxxx>
  • Date: Mon, 24 Mar 2025 10:51:58 -0400
  • Delivered-to: glassfish-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/glassfish-dev/>
  • List-help: <mailto:glassfish-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/glassfish-dev>, <mailto:glassfish-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/glassfish-dev>, <mailto:glassfish-dev-request@eclipse.org?subject=unsubscribe>
  • Ui-outboundreport: notjunk:1;M01:P0:PGxpFlMe6+8=;d/RR0eOdhDV0W0UQqX8dpULtfDe D/nm329MOgGFBF5ylYQr30Aj8NtPGMu88plGCclXrRAJ9Cyd79Fi7pfO3z5tsYKyyAogKASY2 EBtsCxKNbYavjqbFiCEma30Ko2pnAM2HtgKvL/GQ7k2CiiOLHjrNRWFGKp88DuU7tdihpJRo1 A5imTz6pFU7WlvdTmGoSeGfNKzkn4LGsPOH+fspA3UdEPQ4mjYTf8WNyNsNxmJj3WjYq3szF4 WI16fZGZ9SE4KTMzRzOV0QXi9ES47Z/GqtQbB/z+/HDCH3jQSya5T5sgMhP0b0INrc0L3Iahd ffKDuqjF3qVV6Lu6LxixgZSq3Et02EEnp0EicRo1/onEFI1uWURUCbOBRotE2LKLk4C3KW8Fg DDWQhVlVzZdkn1/miVzcd3vmMcf+v0m2MRdkb/FGj4dwc356vPXPjsfQoBWdM5ObFbhNDUcAX oSM2qoyeRux0hYXZ5oh/3jGJtHTWoCryd1Ml218sSXgj2gUnruzrzOWyln9UGop+tw0mJ42vK RJw86+uxkTib5IvMh0VS26aQUgklbUdfVbPhsvq2OB5IRikaE8cddbHmU5nRdePVvE7FAuhj6 Ots7KZC5hxgNWukL+poDX82mHzn2xPzfnywZT2jA2n4CstzGEn3RQiJKrD90mKnpyPZHDuRz/ 0sUcBjbLHQDBdLoyytKQAon7LgzFHLJvnQQOunyfqJfYuzoTaAI8YCQYS94lK3oQ9TR7HtrJT iR8W0bExLQrIe5gEL8ou6fs9d/iGAR2mFZHBSI9uqEu0ZmQxjyTlK26KjM7tvP3cfSYXLFJs8 qdObatU6T49k+Be3jEPunS1KPjG51gegrScDaiNQers1y/XtnJgmd3axf0G8+PRLLI3XebDVV j39VvXXbBFAdPCTsxqREIR4oZp17aNJEpSwnrwJNVG9kVylMkgwBIvYDTAUc+/C6O6dSByMvj 0367GzSqMOhikyvQHSPwg6/ZSdmmhLDWWdjb+ys/tP27jyLZ/5OXrr51f6/73TTtrO9Pacnnm 4VCtm9GSMWPYdRUTFn+4MMln6v2Isr88tIUb7xq9dNpw1f0bUKt7lDq7P8RyU2mhz0AX5xXD9 +jFhlEXtfOT6LCw37QZOodUWRYgcwHz2Ek7XK4wRplUGlGd5iFBZ1AWvr9UI13jBJ+DvMr718 Nu6LOscFLOuXv8OgTFURLrb8c53MLDkTYD5eF/L1JBWKAWL8oFYTz4WNz5fGbeApfzcKR/ijK OzAn205ZGkxuN0P8fnFirRj9D/wDnXufVEpW//T0qX+0FehQ4y1puorYtB4EOPoqNHhdociBF OYMEqga/EaxvkJ9C5gXQeHMJHlWPQ36lhHSIz/nwmYCNH+XyCQ41l9Hxo6uLQpwTetp2KYjU0 8pW/iJ5H5uY4nej6E1np0jvPfLT7xTKLaM5wKW6Vc1sEAS35KehAkpG+fmzPEgXjzBFrzVmyG OrEMjPj4GqzTtNjw6EMOV2lvjfeizGLirxxFNkcneSglgAsCCFU22BcBitQ1SKpQxK8y5wg==
  • User-agent: Mozilla Thunderbird

This is what I did:

C:\GitHub\cargotracker> echo $Env:PATH

This is what I get:

C:\Program Files\PowerShell\7;C:\Python313\Scripts\;C:\Python313\;C:\Program Files\Eclipse Adoptium\jdk-17.0.8.101-hotspot\bin;C:\Python312\Scripts\;C:\Python312\;C:\Ruby33-x64\bin;C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program Files\dotnet\;C:\apache-maven-3.9.6\bin;C:\Program Files\nodejs\;C:\Program Files\PowerShell\7\;C:\Program Files\Docker\Docker\resources\bin;C:\Program Files\Git\cmd;C:\Users\rezar\AppData\Local\Microsoft\WindowsApps;C:\Users\rezar\AppData\Local\GitHubDesktop\bin;C:\Users\rezar\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\rezar\AppData\Roaming\npm

Also tried the following:

C:\GitHub\cargotracker> java -version

This is the output:

openjdk version "17.0.8.1" 2023-08-24
OpenJDK Runtime Environment Temurin-17.0.8.1+1 (build 17.0.8.1+1)
OpenJDK 64-Bit Server VM Temurin-17.0.8.1+1 (build 17.0.8.1+1, mixed mode, sharing)

This could still be the problem somehow. Paths and permissions are very different between Windows and Linux.

I also tried switching paths from SE 17 to SE 11. Did not help.

On 3/24/2025 7:23 AM, Ondro Mihályi via glassfish-dev wrote:
Reza, is the "java" executable in the PATH?

When I remove it from PATH, then I get a similar CIRCULAR_REFERENCE exception with the JBoss Aruiallian connector:

Caused by: [CIRCULAR REFERENCE: org.jboss.arquillian.container.spi.client.container.LifecycleException: Unable to execute [java, -jar, /home/ondro/workspaces/OmniFish/sample-apps/cargotracker/target/glassfish7/glassfish/modules/admin-cli.jar, start-domain, -t]]
Caused by: java.io.IOException: Cannot run program "java": error=2, No such file or directory
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
        at org.jboss.arquillian.container.glassfish.managed_6.GlassFishServerControl.executeAdminCommand(GlassFishServerControl.java:154)
        ... 46 more
Caused by: java.io.IOException: error=2, No such file or directory
        at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
        at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:295)
        at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:225)
        at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1126)


On Mon, Mar 24, 2025 at 11:17 AM Arjan Tijms <arjan.tijms@xxxxxxxxxxx> wrote:
Hi,

It looks like a rather basic thing:

"org.jboss.arquillian.container.spi.client.container.LifecycleException: Unable to execute [C:\Program Files\Eclipse Adoptium\jdk-17.0.8.101-hotspot\bin\java.exe, -jar, C:\GitHub\cargotracker\target\glassfish7\glassfish\modules\admin-cli.jar, start-domain, -t]"

Can you double check if the JDK is indeed at that location?

Kind regards,
Arjan Tijms




On Mon, 24 Mar 2025 at 09:22, Ondro Mihályi via glassfish-dev <glassfish-dev@xxxxxxxxxxx> wrote:
Can you try if it also happens on Linux/Mac? When I run the BookingServiceTest test with "maven test -Pglassfish" on master branch on Linux, it works.

I suspect that the problem is only on Windows, can you confirm it, Reza?

Ondro

On Mon, Mar 24, 2025 at 12:05 AM Reza Rahman via glassfish-dev <glassfish-dev@xxxxxxxxxxx> wrote:

When I try with the OmniFish plugin, I get a slightly different error with the same overall symptoms. The stack trace is attached.

On 3/23/2025 6:36 PM, Reza Rahman wrote:
Thanks very much for taking a look. I can try the OmniFish plugin as a test.

However, I cannot use it in the project in relation to GlassFish. I must use something in the GlassFish or Arquillian domain instead. I’ve already checked with the EMO on this. My hope would be that either the Arquillian plugin is properly maintained or a plugin is created within the GlassFish project. Alternatively, I would not mind adding support for an OmniFish branded runtime. That’s also something that the EMO has suggested.


From: Arjan Tijms <arjan.tijms@xxxxxxxxxxx>
Sent: Sunday, March 23, 2025 6:10 PM
To: glassfish developer discussions <glassfish-dev@xxxxxxxxxxx>
Cc: Reza Rahman <reza_rahman@xxxxxxxx>; cargotracker developer discussions <cargotracker-dev@xxxxxxxxxxx>
Subject: Re: [glassfish-dev] GlassFish Fails with Arquillian
 
Hi,

I haven't tried anything yet, but from a cursory glance at master the first thing that stands out is that for GlassFish an alpha version of the unmaintained JBoss Arquillian connector is used, that was only suited for GlassFish 6:

 <dependency>
          <groupId>org.jboss.arquillian.container</groupId>
          <artifactId>arquillian-glassfish-managed-6</artifactId>
          <version>1.0.0.Alpha1</version>
          <scope>test</scope>
</dependency>

Maybe that could explain some?

You could try with:

<dependency>
            <groupId>org.omnifaces.arquillian</groupId>
            <artifactId>arquillian-glassfish-server-managed</artifactId>
            <version>1.7</version>
            <scope>test</scope>
</dependency>

Kind regards,
Arjan Tijms



On Sun, 23 Mar 2025 at 20:47, Reza Rahman via glassfish-dev <glassfish-dev@xxxxxxxxxxx> wrote:
Hello,

The Cargo Tracker project (https://github.com/eclipse-ee4j/cargotracker)
has tried to support GlassFish but once again I am running into seeming
stability issues. While running tests with Arquillian, the attached
issue now suddenly crops up. I have absolutely no idea what is going on.
Honestly, this sort of thing never happens with Payara or Liberty, which
are the two other runtimes Cargo Tracker supports.

Is there someone here that can help? Otherwise I will remove GlassFish
support from Cargo Tracker for now.

Thanks,

Reza
_______________________________________________
glassfish-dev mailing list
glassfish-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/glassfish-dev
_______________________________________________
glassfish-dev mailing list
glassfish-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/glassfish-dev
_______________________________________________
glassfish-dev mailing list
glassfish-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/glassfish-dev

_______________________________________________
glassfish-dev mailing list
glassfish-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/glassfish-dev

Back to the top