[GLASSFISH-17950] Glassfish 3.1.1 + seam config Created: 09/Dec/11  Updated: 09/Dec/11

Status: Open
Project: glassfish
Component/s: None
Affects Version/s: 3.1.1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: umajeric Assignee: shreedhar_ganapathy
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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.


Generated at Sun Aug 02 18:26:23 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.