1 Reply Latest reply on Jul 14, 2009 11:39 AM by davestanley

    sun.security.provider

    pchandler

      I am getting the follow error:

       

      org.osgi.framework.BundleException: Unresolved constraint in bundle 337: package; (package=sun.security.provider)

       

      My java.security file has:

      security.provider.1=sun.security.provider.Sun

       

      rt.jar has:

      sun.security.provider.Sun

      in it.

       

      So why in I getting Unresolved constraint?

       

      What I tried:

       

      Here is my config.properties:

      org.osgi.framework.bootdelegation=sun.,com.sun.management,sun.security.provider.* 

      org.apache.servicemix.security.providers=sun.security.provider

       

      Error at ServiceMix Start-up.

      Unable to register security provider: java.lang.ClassNotFoundException: sun.security.provider

       

      Peter.

       

      Edited by: pchandler on Jul 9, 2009 10:46 PM

        • 1. Re: sun.security.provider
          davestanley

          Hi Peter,

          Can you enable verbose classloading by editing your ./bin/servicemix file and attach the log. Maybe it might give us some additional information on what could be happening.

           

          exec $JAVA $JAVA_OPTS -verbose:class -Dservicemix.home="$SERVICEMIX_HOME" ...
          

           

          /Dave