ugrás a tartalomhoz

Jboss Seam - Could not instantiate Seam component

Protezis · 2009. Feb. 11. (Sze), 00.04
A fenti hibaüzenetet kapom. Nem értem, miért nem találja a komponensem.
A komponens:

@Stateful
@Name( "profileAction" )
@Scope(ScopeType.SESSION)
public class ProfileAction implements ProfileLocal {

	@In
	private EntityManager entityManager;
	
	@RequestParameter
	private String name;
	
	@In(required = false) @Out(required = false, scope = CONVERSATION)
	private lnUser selectedUser;
	
	@Out
	private lnUser authenticatedUser;
	
	@Factory( "selectedUser" )
	public void display() {
		if ( name == null && authenticatedUser != null )
		{
			selectedUser = (lnUser) entityManager.find( lnUser.class, 
	    	authenticatedUser.getUserId() );
		}
		else if (name != null) {
			try
			{
				selectedUser = (lnUser) entityManager.createQuery(
				"from lnUser where userName = :userName")
				.setParameter("userName", name)
				.getSingleResult(); 
			}
			catch ( NoResultException ex ) { }
		}
	}
}
Az xhtml fájlból egy részlet:

<h:outputText value="Vezetéknév" />
											<rich:inplaceInput defaultLabel="#{selectedUser.lastName}" value="#{selectedUser.lastName}" />
A components.xml tartalma:

<?xml version="1.0" encoding="UTF-8"?>
<components xmlns="http://jboss.com/products/seam/components"
            xmlns:core="http://jboss.com/products/seam/core"
            xmlns:persistence="http://jboss.com/products/seam/persistence"
            xmlns:drools="http://jboss.com/products/seam/drools"
            xmlns:bpm="http://jboss.com/products/seam/bpm"
            xmlns:security="http://jboss.com/products/seam/security"
            xmlns:mail="http://jboss.com/products/seam/mail"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation=
                "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd 
                 http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd 
                 http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.1.xsd
                 http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.1.xsd
                 http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd
                 http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.1.xsd
                 http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd">

   <core:init debug="true" jndi-pattern="@jndiPattern@"/>
   <!-- <core:init debug="true" jndi-pattern="#{ejbName}/local"/> -->
     
   <core:manager concurrent-request-timeout="500" 
                 conversation-timeout="120000" 
                 conversation-id-parameter="cid"
                 parent-conversation-id-parameter="pid"/>
    
   <persistence:managed-persistence-context name="entityManager"
                                     auto-create="true"
                          entity-manager-factory="#{labNet2EntityManagerFactory}"/>

   <persistence:entity-manager-factory name="labNet2EntityManagerFactory" 
                      persistence-unit-name="labNet2"/>

<!--   
   <drools:rule-base name="securityRules">
      <drools:rule-files><value>/security.drl</value></drools:rule-files>
   </drools:rule-base>

   <security:rule-based-permission-resolver security-rules="#{securityRules}"/> 

   <security:identity authenticate-method="#{authenticator.authenticate}" remember-me="true"/>
-->
     
   <security:jpa-permission-store
   	user-permission-class="org.domain.labNet2.entity.lnAccountPermission" />
   	
   <security:jpa-identity-store
 user-class="org.domain.labNet2.entity.lnUser"
 role-class="org.domain.labNet2.entity.lnRole"/>
                              
   <event type="org.jboss.seam.security.notLoggedIn">
      <action execute="#{redirect.captureCurrentView}"/>
   </event>
   <event type="org.jboss.seam.security.loginSuccessful">
      <action execute="#{redirect.returnToCapturedView}"/>
   </event>
   
   <mail:mail-session host="localhost" port="2525" username="test" password="test" />
        
   <!-- For use with jBPM pageflow or process management -->
   <!--  
   <bpm:jbpm>
      <bpm:process-definitions></bpm:process-definitions>
      <bpm:pageflow-definitions></bpm:pageflow-definitions>
   </bpm:jbpm>
   -->
      
</components>