I've a seam3 project packaged as an EAR (mu build tool is ant for now).
Under WEB-INF/ i've beans.xml and it looks like this:
<?xml version="1.0" encoding="UTF-8"?>
under META-INF of ear file i've seam-beans.xml (like idm-console example from seam 3 distribution examples) in wich i configured jpaidentitystore and jpapermissionstore.
My application server is JBOSS-6-FINAL.
I've create a test controller:
public class TestController implements Serializable
@Inject PersistenceManager persistenceManager;
public void testCreateUser()
But when i call via facelet that method like so:
I got a PropertyNotFoundException like so:
"target unreachable identifier 'testController' resolved to null";
Anyone? i've put beans.xml under WEB-IN of war file like states CDI documentation.
Is the problem related to structure of project? (EAR instead of a WAR)?
But i need an EAR...
Hard to say from what you are writing... There are open issues around classloading in EAR, but what you describe looks rather like a somehow misconfigured setup to me. But it's certainly true that EAR deployments have been tested way less then WAR deployments.
Besides that, you should definitely try the same code from inside a WAR, just to be sure.