<< Back to previous view

[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
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Tags:
Participants: shreedhar_ganapathy and umajeric

 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 Wed Apr 23 22:52:00 UTC 2014 using JIRA 4.0.2#472.