Hi, This is my first post to this forum. Appreciate any help. I have a program that processes inbound HL7 V2.4 data using Camel and the HL7 component from File to my Java bean for DB storing. I've added Mina and ActiveMQ JMS components also to process streaming data and return an ACK/NAK response in addition to File processing. It works fine in my Eclipse IDE for both file and streaming using a test sender program. But when I export it from Eclipse as JAR files using the Eclipse wizard it fails for both File and Stream somewhere in the HAPI parsing area of code.
When reviewing the log file from both the program in Eclipse and the exported JAR, I see the log from Camel to the HAPI parser is not the same for the JAR. I've attached a copy of both logs for comparison, code snippet from my routes, and details of the version of my components. It appears that the HL7 is not parsed correctly and my program fails when I try to access the data from the HAPI object. I've tried many different things from removing JMS, using different versions of components in my Maven POM.xml file, changing options for JMS. Even trying the latest 2.11-SNAPSHOT and HAPI 2.0. But it still fails from the JAR where it works fine in Eclipse. I searched for this issue but didn't see anything similar in this forum nor the web. I've updated to the latest version of Java JDK/JRE. Thanks. Stanley Windows 7 SP1 64-bit OS JDK/JRE 7u11-windows-x64 Eclipse Java EE IDE - Indigo Service Release 1 Build id: 20110916-0149 Maven dependencies and version: camel-core 2.10.3 - Also tried 2.95 and 2.9.2 camel-hl7 2.10.3 camel-mina 2.10.3 camel-jms 2.10.3 camel-spring 2.10.3 activemq-camel 5.7.0 Also tried 5.2.0 activemq-pool 5.7.0 xbean-spring 3.12 hapi-structures-v24 1.2 - Also tried 2.0 with Camel 2.11-SNAPSHOT org.apache.servicemix.bundles.hapi 0.5.1_1 slf4j-log4j12 1.6.6 Camel-HL7_routes.txt <http://camel.465427.n5.nabble.com/file/n5725936/Camel-HL7_routes.txt> erspochl7-Eclipse-GOOD2.log <http://camel.465427.n5.nabble.com/file/n5725936/erspochl7-Eclipse-GOOD2.log> erspochl7-JAR-BAD2.log <http://camel.465427.n5.nabble.com/file/n5725936/erspochl7-JAR-BAD2.log> -- View this message in context: http://camel.465427.n5.nabble.com/HL7-component-works-in-Eclipse-IDE-but-not-when-exported-to-JAR-tp5725936.html Sent from the Camel - Users mailing list archive at Nabble.com.