[ 
https://issues.apache.org/jira/browse/SMX4-965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149495#comment-13149495
 ] 

Claus Ibsen commented on SMX4-965:
----------------------------------

Hmm seems like we can't specify and download those JARs

  test(org.apache.camel.itest.karaf.CamelHl7Test): 
org.ops4j.pax.runner.platform.PlatformException: 
[http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v21/1.0.1] 
could not be downloaded

And in the features.xml file we define:
{code}
    <bundle 
dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-osgi-base/${hapi-version}</bundle>
    <bundle 
dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v21/${hapi-version}</bundle>
    <bundle 
dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v22/${hapi-version}</bundle>
    <bundle 
dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v23/${hapi-version}</bundle>
    <bundle 
dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v231/${hapi-version}</bundle>
    <bundle 
dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v24/${hapi-version}</bundle>
    <bundle 
dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v25/${hapi-version}</bundle>
    <bundle 
dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v251/${hapi-version}</bundle>
    <bundle 
dependency="true">http://hl7api.sourceforge.net/m2/!mvn:ca.uhn.hapi/hapi-structures-v26/${hapi-version}</bundle>
{code}

                
> HAPI osgi bundle is flawed
> --------------------------
>
>                 Key: SMX4-965
>                 URL: https://issues.apache.org/jira/browse/SMX4-965
>             Project: ServiceMix 4
>          Issue Type: Task
>          Components: Bundles
>            Reporter: Claus Ibsen
>
> The HAPI bundle at
> http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.hapi/0.5.1_5/
> Is flawed. For example it imports many of the packages it exports, which it 
> should not do.
> Likewise I added an unit test to Camel OSGi tests that uses the API from HAPI 
> and it fails.
> http://svn.apache.org/viewvc?rev=1201623&view=rev
> You get exceptions like this
> {code}
> Caused by: java.lang.NoSuchMethodError: 
> ca.uhn.hl7v2.model.v24.datatype.HD.getHd1_NamespaceID()Lca/uhn/hl7v2/model/v24/datatype/IS;
>       at 
> org.apache.camel.itest.osgi.hl7.HL7MLLPCodec2Test.process(HL7MLLPCodec2Test.java:67)
>       at 
> org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to