Le 27/04/2021 à 02:36, Victor Mendonca a écrit :
> Hi all,
>
> Replying back to this... this intermittent issue doesn't seem to want to go away. It happens sporadically and a second attempt to start
> WildFly is usually successful.
>
> I've done more research and I've found a couple of posts advising to refer to the datasource by name and not by the JNDI name. Would that
> cause intermittent issues with the startup?
>
> Our vendor currently provides us the following configuration:
>
> *jgroups-ds.xml*
>
> <?xml version="1.0" encoding="UTF-8"?>
> <datasources xmlns="http://www.jboss.org/ironjacamar/schema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.jboss.org/ironjacamar/schema http://docs.jboss.org/ironjacamar/schema/datasources_1_0.xsd">
> <datasource jndi-name="java:jboss/datasources/JGroups" pool-name="jgroups-connection-pool">
> <connection-url>jdbc:sqlserver://[DB URL];DatabaseName=[DB Name]</connection-url>
>
>
> *vendor-ha.xml*
>
> //
> org.wildfly.clustering.jgroups.channel.ee <http://org.wildfly.clustering.jgroups.channel.ee>: org.jboss.msc.service.StartException in
> service
> org.wildfly.clustering.jgroups.channel.ee <http://org.wildfly.clustering.jgroups.channel.ee>: java.lang.IllegalStateException:
> java.lang.IllegalArgumentException: Could not lookup datasource java:jboss/datasources/JGroups
> at org.wildfly.clustering.service.FunctionalService.start(FunctionalService.java:70)
> at org.wildfly.clustering.service.AsyncServiceConfigurator$AsyncService.lambda$start$0(AsyncServiceConfigurator.java:117)
> at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
> at java.lang.Thread.run(Thread.java:748)
> at org.jboss.threads.JBossThread.run(JBossThread.java:485)
> Caused by: java.lang.IllegalStateException: java.lang.IllegalArgumentException: Could not lookup datasource java:jboss/datasources/JGroups
>
>
> Thanks,
> Victor.
>
> --
> 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
> <mailto:wildfly+u...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/wildfly/f317194e-7bf6-40ed-95ca-4bac444fa117n%40googlegroups.com
> <https://groups.google.com/d/msgid/wildfly/f317194e-7bf6-40ed-95ca-4bac444fa117n%40googlegroups.com?utm_medium=email&utm_source=footer>.