title: Sling Models, No Adaptable Class found, Ignoring
body: <p>I am trying to get the simplest Sling Model example registered on my system, AEM6.0 SP2. </p>
  
  <pre><code>package com.company.services.osgi.entities;
  
  import org.apache.sling.api.resource.Resource;
  import org.apache.sling.models.annotations.Model;
  import org.apache.sling.models.annotations.Optional;
  import javax.inject.Inject;
  
  @Model(adaptables = Resource.class) 
  public class Profile {
      @Inject 
      private String uniqueName;
  }   
  </code></pre>
  
  <p>With the header added to the Maven Bundle Plugin</p>
  
  <pre><code>&lt;groupId&gt;org.apache.felix&lt;/groupId&gt;
    &lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt;
      &lt;configuration&gt;
        &lt;instructions&gt;
          &lt;Sling-Model-Packages&gt;
            com.company.services.osgi.entities.Profile
          &lt;/Sling-Model-Packages&gt;
  </code></pre>
  
  <p>I see the warning ...</p>
  
  <blockquote>
    <p>22.08.2015 18:32:11.017 <em>WARN</em> [OsgiInstallerImpl] org.apache.sling.models.impl.ModelPackageBundleListener No adaptable classes found in package com.company.services.osgi.entities.Profile, ignoring</p>
  </blockquote>
  
  <p>I see the bundle is installed and started, so not sure what's wrong here. Does anyone have suggestions how to troubleshoot this problem?</p>