Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When configuring a bean StoreFileSource which is placed inside other jar as a dependency - property 'storeDirectory' is not set. When completely the same class is placed in current project it works fine - as it should (property is set etc.). Bean is initialized fine in both cases (new instance with every request etc.).

      I have a following configuration in beans.xml

      ...
      xmlns:fs="urn:java:my.company.package"
      ...
      <fs:StoreFileSource>
      <s:replaces />
      <s:RequestScoped />
      <fs:LocalStore />
      <s:Named/>
      <fs:storeDirectory>/tmp/local-store/</fs:storeDirectory>
      </fs:StoreFileSource>

      And a bean which implements an interface:

      package my.company.package;

      import java.io.File;
      import java.io.FileInputStream;
      import java.io.FileOutputStream;
      import java.io.IOException;

      public class StoreFileSource implements FileSource {

      private String storeDirectory;

      // Other business logic

      public void setStoreDirectory(String storeDirectory)

      { this.storeDirectory = storeDirectory; }

      public String getStoreDirectory()

      { return storeDirectory; }

      }
      package my.company.other.package;

      import java.io.File;
      import java.io.FileInputStream;
      import java.io.FileOutputStream;
      import java.io.IOException;

      public interface FileSource {
      // Business methods...
      }
      Exactly the same example works in jetty 8.0.1.v20110908 and JBoss 7.0.2 -just like it should.

        Activity

        umajeric created issue -

          People

          • Assignee:
            shreedhar_ganapathy
            Reporter:
            umajeric
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: