2 Replies Latest reply on Jul 9, 2009 1:24 PM by pchandler

    javax.*

    pchandler

      Background, I am porting various java applications into ServiceMix.

       

      These Application use common javax.* (javax.naming, javax.net, javax.xml.*, ?) that are in sdk (1.5, 1.6).

       

      When I deploy the application into ServiceMix I get java.lang.NoClassDefFoundError or  org.osgi.framework.BundleException: Unresolved constraint in bundle for the javax.*

       

      Why aren?t these packages available in servicemix by default?

       

      Is there a "javax" implementation bundle (that exports all the javax.*) that I can deploy?

       

      Don't see this issue with Equinox.

       

      Peter

        • 1. Re: javax.*
          ubhole

          I don't know if there are bundles for these classes already available or not but the workaround that you can use is add the packages into bootclasspath of Servicemix container by adding them to

          org.osgi.framework.bootdelegation=sun.,com.sun.management,

           

          in etc/config.properties file.

           

          Ulhas

           

          • 2. Re: javax.*
            pchandler

            Thanks.