Hello.
I have a Java project in which I have to solve an optimization
problem using ortools. I have included mvn dependency as instructed and
created an ear file which is subsequently deployed within Wildfly 29 in
turn using jdk 17.
https://developers.google.com/optimization/install/java/pkg_linux
The ear file deploys with no problem on a Win11 dev machine and calls
to ortools are executed with no problem. We will then fully copy
Wildfly 29 distro including the ear file to other Win11 and Ubuntu20.04
test machines. All installed software components and dependencies are
identical on all machines except that the test machines do not include
the project source. When we deploy the ear file on test machines (both Win11
& Ubuntu20.04, we consistently get the error messages below. It is curious that standlaone ortools installations for Java work fine on test machines.
17:18:17,177 ERROR [stderr] (MSC service thread 1-8) java.nio.file.ProviderNotFoundException: Provider "vfs" not found
17:18:17,177 ERROR [stderr] (MSC service thread 1-8) at
java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:359)
17:18:17,178 ERROR [stderr] (MSC service thread 1-8) at
java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:288)
17:18:17,178 ERROR [stderr] (MSC service thread 1-8) at
deployment.example.ear.ejb.jar//com.example.service.Scheduler.<clinit>(Scheduler.java:63)
17:18:17,178 ERROR [stderr] (MSC service thread 1-8) at java.base/java.lang.Class.forName0(Native Method)
17:18:17,178 ERROR [stderr] (MSC service thread 1-8) at java.base/java.lang.Class.forName(Class.java:467)
17:18:17,178 ERROR [stderr] (MSC service thread 1-8) at
org.jboss....@2.0.0.Final//org.jboss.invocation.proxy.AbstractProxyFactory.afterClassLoad(AbstractProxyFactory.java:107)
17:18:17,178 ERROR [stderr] (MSC service thread 1-8) at
org.jboss....@2.0.0.Final//org.jboss.invocation.proxy.AbstractClassFactory.defineClass(AbstractClassFactory.java:204)
17:18:17,179 ERROR [stderr] (MSC service thread 1-8) at
org.jboss....@2.0.0.Final//org.jboss.invocation.proxy.AbstractProxyFactory.getCachedMethods(AbstractProxyFactory.java:162)
17:18:17,179 ERROR [stderr] (MSC service thread 1-8) at
org.jbos...@29.0.1.Final//org.jboss.as.ejb3.component.singleton.SingletonComponentDescription$6.configure(SingletonComponentDescription.java:219)
17:18:17,179 ERROR [stderr] (MSC service thread 1-8) at
org.jbo...@29.0.1.Final//org.jboss.as.ee.component.DefaultComponentViewConfigurator.configure(DefaultComponentViewConfigurator.java:109)
17:18:17,179 ERROR [stderr] (MSC service thread 1-8) at
org.jbo...@29.0.1.Final//org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:82)
17:18:17,179 ERROR [stderr] (MSC service thread 1-8) at
org.jboss...@21.1.1.Final//org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:182)
17:18:17,179 ERROR [stderr] (MSC service thread 1-8) at
org.jb...@1.5.1.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1617)
17:18:17,179 ERROR [stderr] (MSC service thread 1-8) at
org.jb...@1.5.1.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1580)
17:18:17,179 ERROR [stderr] (MSC service thread 1-8) at
org.jb...@1.5.1.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1438)
17:18:17,179 ERROR [stderr] (MSC service thread 1-8) at
org.jbos...@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
17:18:17,179 ERROR [stderr] (MSC service thread 1-8) at
org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
17:18:17,179 ERROR [stderr] (MSC service thread 1-8) at
org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
17:18:17,179 ERROR [stderr] (MSC service thread 1-8) at
org.jbos...@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
17:18:17,179 ERROR [stderr] (MSC service thread 1-8) at java.base/java.lang.Thread.run(Thread.java:840)
The error happens at the line below.
And we have added code snippet below which works fine on dev machine but is no help for test machines.
We have also added modules under Wildfly module folder to account for all jars but nothing is resolving the problem.
Can a kind soul shed some light as to what might be triggering this problem and how we can resolve it?
--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wildfly/edb9a8cd-29d4-438c-be8e-e996a36494ccn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wildfly/347154a8-168c-40a4-8b9d-4cfc707308b0n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wildfly/8870ef44-d209-49fe-a45c-a99c59097a37n%40googlegroups.com.