2 Replies Latest reply on Nov 12, 2012 9:59 AM by davsclaus

    jpa-camel and PropertyPlaceholder workaround (ESB-1606)

    jasonnh

      Hi,

       

      I am getting:

       

      java.lang.ClassCastException: org.apache.aries.jpa.blueprint.aries.impl.NSHandler$1 cannot be cast to org.apache.aries.blueprint.mut able.MutableBeanProperty

       

      From my blueprint bundle that is trying to use both a property placeholder and jpa:unit i.e. jpa in a camel route.

       

      This appears to be the same as:

      http://fusesource.com/issues/browse/ESB-1606

       

      Which references:

      https://issues.apache.org/jira/browse/ARIES-796  (fixed only in 0.4)

       

      Unfortunately, I do not understand the workaround provided in ESB-1606 and do not have a login to the fuse JIRA to ask questions there (and can not get a login as far as I can tell).

       

      Please can someone explain the workaround in http://fusesource.com/issues/browse/ESB-1606?

       

      camel-jpa works OK when not using the property placeholder (but I need the placeholder to get hold of OSGi config admin properties).

       

      Thanks.