title: Seam Weld injection in constructor : Unable to resolve any beans for Types
body: <p>I'm using Weld 1.0. Here's my situation: I have a class instantiating a Weld container which tries to instantiate a class <code>StartupShutdown</code>:</p>
  
  <pre><code>public static void main(String[] args) {
      WeldContainer weld;
      weld = new Weld().initialize();
  
      StartupShutdown startupShutdown = weld.instance().select(StartupShutdown.class).get();
  }
  </code></pre>
  
  <p>Here's my class <code>StartupShutdown</code>:</p>
  
  <pre><code>public class StartupShutdown {
  
      @Inject
      public StartupShutdown(LoggingFileHandler loggingFileHandler) {
      }
  }
  </code></pre>
  
  <p>I got this exception:</p>
  
  <pre><code>Exception in thread "main" org.jboss.weld.exceptions.UnsatisfiedResolutionException: WELD-001308 Unable to resolve any beans for Types: [class fr.easycompany.easywrite.processes.StartupShutdown]; Bindings: [QualifierInstance{annotationClass=interface javax.enterprise.inject.Default, values={}, hashCode=2062316647}]
      at org.jboss.weld.manager.BeanManagerImpl.getBean(BeanManagerImpl.java:728)
      at org.jboss.weld.bean.builtin.InstanceImpl.get(InstanceImpl.java:102)
      at fr.easycompany.easywrite.EasyWrite.main(EasyWrite.java:18)
  </code></pre>
  
  <p>When I remove the parameter in the <code>StartupShutdown</code> constructor, it works.</p>
  
  <p>Just for info, here's my <code>LoggingFileHandler</code>:</p>
  
  <pre><code>public class LoggingFileHandler extends FileHandler {
  
      @Inject
      public LoggingFileHandler(LoggingFormatter formatter) throws IOException, SecurityException {
          super("");
          this.setFormatter(formatter);
      }
  }
  </code></pre>
  
  <p>What's wrong with this parameter in my constructor?</p>