Smooks EDIFACT parsing error in JBoss Fuse 6.0
Issue
-
I used the Smooks
EDIFACTJava Compiler plugin [1] to generate the java objects for myEDIFACTformat. The result of this is a jar file which I then install into Fuse using the wrap: feature. -
Following instructions on this site [2], in Fuse I ran the following commands to install the Smooks 1.5.1 bundle:
feature:addurl mvn:org.milyn/milyn-smooks-all/1.5.1/xml/features
feature:install smooks
- After doing that, I install and start the bundle which tries to initialize the
EDIFACTparser, but I get the following error:
Caused by: org.milyn.cdr.SmooksConfigurationException: Unable to locate Smooks digest configuration '/META-INF/xsd/smooks/edi-1.2.xsd-smooks.xml' for extended resource configuration namespace 'http://www.milyn.org/xsd/smooks/edi-1.2.xsd'. This resource must be available on the classpath.
at org.milyn.cdr.XMLConfigDigester.assertExtendedConfigOK(XMLConfigDigester.java:616)
at org.milyn.cdr.XMLConfigDigester.getExtenededConfigDigester(XMLConfigDigester.java:581)
at org.milyn.cdr.XMLConfigDigester.digestExtendedResourceConfig(XMLConfigDigester.java:539)
at org.milyn.cdr.XMLConfigDigester.digestV11XSDValidatedConfig(XMLConfigDigester.java:340)
at org.milyn.cdr.XMLConfigDigester.digestConfigRecursively(XMLConfigDigester.java:226)
at org.milyn.cdr.XMLConfigDigester.digestConfig(XMLConfigDigester.java:184)
at org.milyn.cdr.SmooksResourceConfigurationStore.registerResources(SmooksResourceConfigurationStore.java:229)
at org.milyn.Smooks.addConfigurations(Smooks.java:340)
at org.milyn.Smooks.addConfigurations(Smooks.java:358)
at org.milyn.Smooks.<init>(Smooks.java:172)
at <packagename>.edifact.model.PnrmigFactory.<init>(PnrmigFactory.java:59)
at <packagename>.edifact.model.PnrmigFactory.getInstance(PnrmigFactory.java:28)
at <packagename>.fuse.EdifactWorker.<init>(EdifactWorker.java:16)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
-
The XML file appears to be in the
"milyn-smooks-edi-1.5.1.jar", but even if I install that jar directly using the"wrap:"feature, I still get the same error. -
Is there a way to get JBoss Fuse + Smooks + EDIFACT to work?
[1] http://www.smooks.org/mediawiki/index.php?title=V1.5:Smooks_v1.5_User_Guide#EJC_-_Edifact_Java_Compiler
[2] http://www.smooks.org/mediawiki/index.php?title=SmooksOsgi
Environment
- Red Hat JBoss Fuse
- 6.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.