What happened to ChannelService?
drathnow Jan 26, 2016 5:12 PMI have been using EAP 6.2 for a couple of years now and want to move over to Wildfly 10. After going through some initial configuration, I tried to deploy my app and hit a snag.
When I first wrote my app, I needed to get access to LockService so I could create my own cluster wide locks. Paul Ferraro was kind enough to help me out in this post Re: Using jgroups CounterService with jboss's cluster channel, and everything was good under EAP. However, when I try to deploy under Wildfly 10, I'm getting the following exception:
Caused by: java.util.ServiceConfigurationError: org.jboss.msc.service.ServiceActivator: Provider zedi.pacbridge.app.msc.MyLockServiceActivator could not be instantiated
at java.util.ServiceLoader.fail(ServiceLoader.java:232)
at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
at org.jboss.as.server.deployment.service.ServiceActivatorProcessor.deploy(ServiceActivatorProcessor.java:72)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
... 5 more
Caused by: java.lang.NoClassDefFoundError: org/jboss/as/clustering/jgroups/subsystem/ChannelService
at zedi.pacbridge.app.msc.MyLockServiceActivator.<clinit>(MyLockServiceActivator.java:27)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at java.lang.Class.newInstance(Class.java:442)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)
... 9 more
Caused by: java.lang.ClassNotFoundException: org.jboss.as.clustering.jgroups.subsystem.ChannelService from [Module "deployment.pacbridge-ear-6.1.0.RC-1.ear.pacbridge-app-6.1.0.jar:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
... 16 more
I hunted through the Wildfly 10 jarfiles and discovered that ChannelService isn't there anymore. Has the name changed? Is there another way to get access to the LockService in Wildfly 10?
Thanks.