We have been using Smooks 1.5.2 on JBoss and want to upgrade to latest - 2.2.1. All necessary changes have been done following the migration guide for smooks - https://www.smooks.org/documentation/#migrating_from_smooks_1_7_to_v2
However, getting this error at runtime while initializing smooks.
Caused by: org.smooks.api.SmooksException: Error processing resource file '/system-interceptors.xml'. at org.smooks.engine.resource.config.SystemResourceConfigSeqFactory.create(SystemResourceConfigSeqFactory.java:90) at org.smooks.engine.DefaultApplicationContextBuilder.registerSystemResources(DefaultApplicationContextBuilder.java:215) at org.smooks.engine.DefaultApplicationContextBuilder.initRegistry(DefaultApplicationContextBuilder.java:199) at org.smooks.engine.DefaultApplicationContextBuilder.build(DefaultApplicationContextBuilder.java:168) at ... ... 74 more Caused by: java.util.NoSuchElementException at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:365) at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404) at java.util.ServiceLoader$1.next(ServiceLoader.java:480) at org.smooks.engine.resource.config.loader.xml.XmlResourceConfigLoader.getExtendedResourceConfigLoader(XmlResourceConfigLoader.java:448) at org.smooks.engine.resource.config.loader.xml.XmlResourceConfigLoader.loadExtendedResourceConfig(XmlResourceConfigLoader.java:403) at org.smooks.engine.resource.config.loader.xml.XmlResourceConfigLoader.loadV20XSDValidatedConfig(XmlResourceConfigLoader.java:214) at org.smooks.engine.resource.config.loader.xml.XmlResourceConfigLoader.loadConfigRecursively(XmlResourceConfigLoader.java:171) at org.smooks.engine.resource.config.loader.xml.XmlResourceConfigLoader.load(XmlResourceConfigLoader.java:142) at org.smooks.engine.resource.config.SystemResourceConfigSeqFactory.create(SystemResourceConfigSeqFactory.java:82) ... 78 more
smooks = new Smooks(new DefaultApplicationContextBuilder()
.withClassLoader(classLoader).build());
final ContentHandlerFactory<?> contentHandlerFactory = registry.lookup(new ContentHandlerFactoryLookup("class"));
if (contentHandlerFactory == null) {
throw new SmooksConfigException(String.format("%s not found for content of type [class]. Hint: ensure the Smooks application context has the correct class loader set", ContentHandlerFactory.class.getName()));
}
so it appears the registry is not being set for "class" when running in camel