title: Jmeter sampler does not see resources file
body: <p>I am creating custom sampler for JMeter. I am able to import my jar into library, the sampler is visible within the GUI, but the fields are not displayed properly.</p>
  
  <p><a href="https://i.stack.imgur.com/mlzUZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mlzUZ.png" alt="Project structure"></a></p>
  
  <p>Here is my code.</p>
  
  <p>Custom.java</p>
  
  <pre><code>public class Custom extends AbstractSampler implements TestBean {
  
    private String email = "";
  
    public Custom() {
      super();
    }
  
    public SampleResult sample(Entry entry) {
      SampleResult res = new SampleResult();
      res.setSampleLabel(getName());
      res.setResponseData(("Hello " + getEmail()).getBytes());
      res.setSuccessful(Boolean.TRUE);
      return res;
    }
  
    public void setEmail(String email){ this.email = email; }
    public String getEmail(){ return email; }
  }
  </code></pre>
  
  <p>CustomBeanInfo.java</p>
  
  <pre><code>public class CustomBeanInfo extends BeanInfoSupport {
  
    protected CustomBeanInfo() {
      super(Custom.class);
  
      createPropertyGroup("contact", new String[]{
        "email"
      });
  
      PropertyDescriptor p = property("email");
      p.setValue(NOT_UNDEFINED, Boolean.TRUE);
      p.setValue(DEFAULT, "asd");
    }
  }
  </code></pre>
  
  <p>CustomResources.properties</p>
  
  <pre><code>displayName=Custom Sampler
  email.displayName=Email Address
  email.shortDescription=User Email Address
  contact.displayName=Contact
  </code></pre>
  
  <p>And this is how it looks in JMeter GUI. My guess is that the properties file is not correctly attached to sampler or the constructor is not executed.</p>
  
  <p><a href="https://i.stack.imgur.com/qcymD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qcymD.png" alt="JMeter Gui"></a></p>
  
  <p><strong>EDIT 1</strong>: Added pom.xml file content</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
    &lt;groupId&gt;org.apache.jmeter&lt;/groupId&gt;
    &lt;artifactId&gt;custom-sampler&lt;/artifactId&gt;
    &lt;version&gt;0.2.0-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;jar&lt;/packaging&gt;
    &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
    &lt;/properties&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.apache.jmeter&lt;/groupId&gt;
        &lt;artifactId&gt;ApacheJMeter_core&lt;/artifactId&gt;
        &lt;version&gt;2.10&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
    &lt;build&gt;
      &lt;resources&gt;
        &lt;resource&gt;
          &lt;directory&gt;src/main/resources&lt;/directory&gt;
          &lt;filtering&gt;true&lt;/filtering&gt;
        &lt;/resource&gt;
      &lt;/resources&gt;
    &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p><strong>EDIT 2</strong>: When using sampler (adding it to thread group) following error appears in log</p>
  
  <pre><code>2016/03/25 09:28:23 WARN  - jmeter.testbeans.gui.GenericTestBeanCustomizer: org.apache.jmeter.protocol.java.sampler.Custom#email(java.lang.String) does not appear to have been configured 
  </code></pre>