You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.
| Online: | 25 Members of 4546 |
| Forum: Seam Users |
20. Aug 2008, 10:18 CET | Link |
Hi everyone, I am trying to create a basic maven project of seam. I took as an example the project produced by seam-gen. Nevertheless, I still have a problem.
My project structure is the following:
I have one main project main
three sub projects:
- ear
- war
- ejb
I put all the classes in the ejb project
my ejb-jar.xml is like this:
<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
version="3.0">
<interceptors>
<interceptor>
<interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
</interceptor>
</interceptors>
<assembly-descriptor>
<interceptor-binding>
<ejb-name>*</ejb-name>
<interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
</interceptor-binding>
</assembly-descriptor>
</ejb-jar>
in my ear project, I have application.xml that looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC
"-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
"http://java.sun.com/dtd/application_1_3.dtd">
<application>
<display-name>tt000-webapp-ear</display-name>
<description>Default Seam Web Application</description>
<module>
<web>
<web-uri>tt000-webapp-war.war</web-uri>
<context-root>/newOrdering</context-root>
</web>
</module>
<module>
<ejb>tt000-webapp-entities-1.0.0.jar</ejb>
</module>
<module>
<ejb>jboss-seam-2.0.3.CR1.jar</ejb>
</module>
</application>
I put an empty seam.properties in the root of the ejb jar file.
finally, my components.xml looks like this:
<?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:transaction="http://jboss.com/products/seam/transaction"
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.0.xsd
http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd
http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.0.xsd
http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.0.xsd
http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd
http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.0.xsd
http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd">
<core:init debug="true" jndi-pattern="tt000-webapp-ear/#{ejbName}/local"/>
<component class="com.sicpa.tt000.webapp.common.Authenticator" name="authenticator" auto-create="true" />
<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"
persistence-unit-jndi-name="java:/webappEntityManagerFactory"/>
<!-- drools:rule-base name="securityRules">
<drools:rule-files>
<value>/security.drl</value>
</drools:rule-files>
</drools:rule-base -->
<!-- security:identity security-rules="#{securityRules}" authenticate-method="#{authenticator.authenticate}" remember-me="true"/ -->
<security:identity authenticate-method="#{authenticator.authenticate}" remember-me="true"/>
<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>
Now the entityManager works fine but not the component. I have a class and an interface. CreateOrder and CreateOrderBean. I annoted CreateOrderBean with @Name("CreateOrder") and it implements CreateOrder that is Annotated with @Local.
But When I try to call #{CreateOrder.testAction} I get an error:
Exception during request processing: Caused by javax.el.PropertyNotFoundException with message: "Target Unreachable, identifier 'CreateOrder' resolved to null"
Thank you very much for any help you can get me
Sounds like your EJB module does not have seam.properties in root directory. Can you see in your deployment log info about CreateOrder Component instalation ?
No there is no mention of this component. But when I check my jar file I have seam.properties in the root.
Has Seam been initialized during deployment ?
"10:56:47,040 INFO [EARDeployer] Init J2EE application: file:/C:/Program Files/jboss-4.2.2.GA/server/default/deploy/tt000-webapp-ear.ear
10:56:49,869 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
10:56:49,869 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=tt000-webapp-ear.ear,jar=jboss-seam-2.0.3.CR1.jar,name=TimerServiceDispatcher,service=EJB3 with dependencies:
10:56:49,884 INFO [EJBContainer] STARTED EJB: org.jboss.seam.async.TimerServiceDispatcher ejbName: TimerServiceDispatcher
10:56:49,900 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateful.StatefulContainer
10:56:49,900 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=tt000-webapp-ear.ear,jar=jboss-seam-2.0.3.CR1.jar,name=EjbSynchronizations,service=EJB3 with dependencies:
10:56:49,900 INFO [EJBContainer] STARTED EJB: org.jboss.seam.transaction.EjbSynchronizations ejbName: EjbSynchronizations
10:56:49,978 INFO [EJB3Deployer] Deployed: file:/C:/Program Files/jboss-4.2.2.GA/server/default/tmp/deploy/tmp37950tt000-webapp-ear.ear-contents/jboss-seam-2.0.3.CR1.jar
10:56:49,978 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
10:56:49,978 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ear=tt000-webapp-ear.ear,unitName=webappDB with dependencies:
10:56:49,978 INFO [JmxKernelAbstraction] jboss.jca:name=seamDB,service=DataSourceBinding
10:56:49,978 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:ear=tt000-webapp-ear.ear,unitName=webappDB
10:56:49,978 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.admin.model.User
10:56:49,978 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.admin.model.UserRole
10:56:49,978 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.Address
10:56:49,978 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.OrderPosition
10:56:49,978 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.OrderStatus
10:56:49,978 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.PackagingUnitType
10:56:49,978 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.Province
10:56:49,994 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.RejectionReason
10:56:49,994 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.Site
10:56:49,994 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.SiteType
10:56:49,994 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.StampOrder
10:56:49,994 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.StampOrderLog
10:56:49,994 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.StampType
10:56:49,994 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.SubSystem
10:56:49,994 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.SubSystemType
10:56:50,009 INFO [Configuration] Reading mappings from resource : META-INF/orm.xml
10:56:50,009 INFO [Ejb3Configuration] [PersistenceUnit: webappDB] no META-INF/orm.xml found
10:56:50,009 INFO [AnnotationBinder] Binding entity from annotated class: com.sicpa.tt000.admin.model.User
10:56:50,009 INFO [EntityBinder] Bind entity com.sicpa.tt000.admin.model.User on table USERS
10:56:50,009 INFO [AnnotationBinder] Binding entity from annotated class: com.sicpa.tt000.admin.model.UserRole
10:56:50,009 INFO [EntityBinder] Bind entity com.sicpa.tt000.admin.model.UserRole on table UserRole
10:56:50,009 INFO [AnnotationBinder] Binding entity from annotated class: com.sicpa.tt000.ordering.model.Address
10:56:50,009 INFO [EntityBinder] Bind entity com.sicpa.tt000.ordering.model.Address on table Address
10:56:50,009 INFO [AnnotationBinder] Binding entity from annotated class: com.sicpa.tt000.ordering.model.OrderPosition
10:56:50,009 INFO [EntityBinder] Bind entity com.sicpa.tt000.ordering.model.OrderPosition on table OrderPosition
10:56:50,009 INFO [AnnotationBinder] Binding entity from annotated class: com.sicpa.tt000.ordering.model.OrderStatus
10:56:50,009 INFO [EntityBinder] Bind entity com.sicpa.tt000.ordering.model.OrderStatus on table OrderStatus
10:56:50,009 INFO [AnnotationBinder] Binding entity from annotated class: com.sicpa.tt000.ordering.model.PackagingUnitType
10:56:50,009 INFO [EntityBinder] Bind entity com.sicpa.tt000.ordering.model.PackagingUnitType on table PackagingUnitType
10:56:50,009 INFO [AnnotationBinder] Binding entity from annotated class: com.sicpa.tt000.ordering.model.Province
10:56:50,009 INFO [EntityBinder] Bind entity com.sicpa.tt000.ordering.model.Province on table Province
10:56:50,025 INFO [AnnotationBinder] Binding entity from annotated class: com.sicpa.tt000.ordering.model.RejectionReason
10:56:50,025 INFO [EntityBinder] Bind entity com.sicpa.tt000.ordering.model.RejectionReason on table RejectionReason
10:56:50,025 INFO [AnnotationBinder] Binding entity from annotated class: com.sicpa.tt000.ordering.model.Site
10:56:50,025 INFO [EntityBinder] Bind entity com.sicpa.tt000.ordering.model.Site on table Site
10:56:50,025 INFO [AnnotationBinder] Binding entity from annotated class: com.sicpa.tt000.ordering.model.SiteType
10:56:50,025 INFO [EntityBinder] Bind entity com.sicpa.tt000.ordering.model.SiteType on table SiteType
10:56:50,025 INFO [AnnotationBinder] Binding entity from annotated class: com.sicpa.tt000.ordering.model.StampOrder
10:56:50,025 INFO [EntityBinder] Bind entity com.sicpa.tt000.ordering.model.StampOrder on table StampOrder
10:56:50,025 INFO [AnnotationBinder] Binding entity from annotated class: com.sicpa.tt000.ordering.model.StampOrderLog
10:56:50,025 INFO [EntityBinder] Bind entity com.sicpa.tt000.ordering.model.StampOrderLog on table StampOrderLog
10:56:50,025 INFO [AnnotationBinder] Binding entity from annotated class: com.sicpa.tt000.ordering.model.StampType
10:56:50,025 INFO [EntityBinder] Bind entity com.sicpa.tt000.ordering.model.StampType on table StampType
10:56:50,025 INFO [AnnotationBinder] Binding entity from annotated class: com.sicpa.tt000.ordering.model.SubSystem
10:56:50,025 INFO [EntityBinder] Bind entity com.sicpa.tt000.ordering.model.SubSystem on table SubSystem
10:56:50,025 INFO [AnnotationBinder] Binding entity from annotated class: com.sicpa.tt000.ordering.model.SubSystemType
10:56:50,025 INFO [EntityBinder] Bind entity com.sicpa.tt000.ordering.model.SubSystemType on table SubSystemType
10:56:50,025 INFO [CollectionBinder] Mapping collection: com.sicpa.tt000.ordering.model.StampOrder.orderPositions -> OrderPosition
10:56:50,025 INFO [CollectionBinder] Mapping collection: com.sicpa.tt000.ordering.model.Site.children -> Site
10:56:50,072 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
10:56:50,088 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
10:56:50,134 INFO [SettingsFactory] RDBMS: PostgreSQL, version: 8.3.3
10:56:50,134 INFO [SettingsFactory] JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.2 JDBC2 Enterprise with NO SSL (build 505)
10:56:50,134 INFO [Dialect] Using dialect: org.hibernate.dialect.PostgreSQLDialect
10:56:50,134 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
10:56:50,134 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
10:56:50,134 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
10:56:50,134 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
10:56:50,134 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
10:56:50,134 INFO [SettingsFactory] JDBC batch size: 15
10:56:50,134 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
10:56:50,134 INFO [SettingsFactory] Scrollable result sets: enabled
10:56:50,134 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
10:56:50,134 INFO [SettingsFactory] Connection release mode: auto
10:56:50,134 INFO [SettingsFactory] Default batch fetch size: 1
10:56:50,134 INFO [SettingsFactory] Generate SQL with comments: disabled
10:56:50,134 INFO [SettingsFactory] Order SQL updates by primary key: disabled
10:56:50,150 INFO [SettingsFactory] Order SQL inserts for batching: disabled
10:56:50,150 INFO [SettingsFactory] Query translator: org.hibernate.hql.classic.ClassicQueryTranslatorFactory
10:56:50,150 INFO [SettingsFactory] Query language substitutions: {}
10:56:50,150 INFO [SettingsFactory] JPA-QL strict compliance: enabled
10:56:50,150 INFO [SettingsFactory] Second-level cache: enabled
10:56:50,150 INFO [SettingsFactory] Query cache: disabled
10:56:50,150 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
10:56:50,150 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
10:56:50,150 INFO [SettingsFactory] Cache region prefix: tt000-webapp-ear_ear,webappDB
10:56:50,150 INFO [SettingsFactory] Structured second-level cache entries: disabled
10:56:50,150 INFO [SettingsFactory] Echoing all SQL to stdout
10:56:50,150 INFO [SettingsFactory] Statistics: disabled
10:56:50,150 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
10:56:50,150 INFO [SettingsFactory] Default entity-mode: pojo
10:56:50,150 INFO [SettingsFactory] Named query checking : enabled
10:56:50,166 INFO [SessionFactoryImpl] building session factory
10:56:50,228 INFO [SessionFactoryObjectFactory] Factory name: persistence.units:ear=tt000-webapp-ear.ear,unitName=webappDB
10:56:50,228 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
10:56:50,259 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.units:ear=tt000-webapp-ear.ear,unitName=webappDB
10:56:50,259 WARN [SessionFactoryObjectFactory] InitialContext did not implement EventContext
Schema Update
10:56:50,978 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
10:56:50,978 INFO [EJB3Deployer] Deployed: file:/C:/Program Files/jboss-4.2.2.GA/server/default/tmp/deploy/tmp37950tt000-webapp-ear.ear-contents/tt000-webapp-entities-1.0.0.jar
10:56:51,041 INFO [TomcatDeployer] deploy, ctxPath=/newOrdering, warUrl=.../tmp/deploy/tmp37950tt000-webapp-ear.ear-contents/tt000-webapp-war-exp.war/
10:56:54,292 INFO [ServletContextListener] Welcome to Seam 2.0.3.CR1
10:57:00,372 INFO [Initialization] Namespace: http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, prefix: org.jboss.seam.core.framework
10:57:00,372 INFO [Initialization] Namespace: http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix: org.jboss.seam.theme
10:57:00,372 INFO [Initialization] Namespace: http://jboss.com/products/seam/bpm, package: org.jboss.seam.bpm, prefix: org.jboss.seam.bpm
10:57:00,372 INFO [Initialization] Namespace: http://jboss.com/products/seam/mail, package: org.jboss.seam.mail, prefix: org.jboss.seam.mail
10:57:00,372 INFO [Initialization] Namespace: http://jboss.com/products/seam/security, package: org.jboss.seam.security, prefix: org.jboss.seam.security
10:57:00,372 INFO [Initialization] Namespace: http://jboss.com/products/seam/web, package: org.jboss.seam.web, prefix: org.jboss.seam.web
10:57:00,372 INFO [Initialization] Namespace: http://jboss.com/products/seam/captcha, package: org.jboss.seam.captcha, prefix: org.jboss.seam.captcha
10:57:00,372 INFO [Initialization] Namespace: http://jboss.com/products/seam/navigation, package: org.jboss.seam.navigation, prefix: org.jboss.seam.navigation
10:57:00,372 INFO [Initialization] Namespace: http://jboss.com/products/seam/core, package: org.jboss.seam.core, prefix: org.jboss.seam.core
10:57:00,372 INFO [Initialization] Namespace: http://jboss.com/products/seam/international, package: org.jboss.seam.international, prefix: org.jboss.seam.international
10:57:00,372 INFO [Initialization] Namespace: http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix: org.jboss.seam.jms
10:57:00,372 INFO [Initialization] Namespace: http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix: org.jboss.seam.drools
10:57:00,372 INFO [Initialization] Namespace: http://jboss.com/products/seam/spring, package: org.jboss.seam.ioc.spring, prefix: org.jboss.seam.ioc.spring
10:57:00,372 INFO [Initialization] Namespace: http://jboss.com/products/seam/persistence, package: org.jboss.seam.persistence, prefix: org.jboss.seam.persistence
10:57:00,387 INFO [Initialization] reading /WEB-INF/components.xml
10:57:00,763 INFO [Initialization] reading jar:file:/C:/Program Files/jboss-4.2.2.GA/server/default/tmp/deploy/tmp37950tt000-webapp-ear.ear-contents/jboss-seam-2.0.3.CR1.jar!/META-INF/components.xml
10:57:00,763 INFO [Initialization] reading jar:file:/C:/Program%20Files/jboss-4.2.2.GA/server/default/tmp/deploy/tmp37950tt000-webapp-ear.ear-contents/tt000-webapp-war-exp.war/WEB-INF/lib/jboss-seam-2.0.3.CR1.jar!/META-INF/components.xml
10:57:00,778 INFO [Initialization] reading jar:file:/C:/Program%20Files/jboss-4.2.2.GA/server/default/tmp/deploy/tmp37950tt000-webapp-ear.ear-contents/tt000-webapp-war-exp.war/WEB-INF/lib/jboss-seam-ioc-2.0.3.CR1.jar!/META-INF/components.xml
10:57:00,778 INFO [Initialization] reading jar:file:/C:/Program%20Files/jboss-4.2.2.GA/server/default/tmp/deploy/tmp37950tt000-webapp-ear.ear-contents/tt000-webapp-war-exp.war/WEB-INF/lib/jboss-seam-ui-2.0.3.CR1.jar!/META-INF/components.xml
10:57:00,778 INFO [Initialization] reading properties from: /seam.properties
10:57:00,778 INFO [Initialization] reading properties from: /jndi.properties
10:57:00,794 INFO [Initialization] initializing Seam
10:57:00,919 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.bpm.businessProcess
10:57:00,934 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.web.isUserInRole
10:57:00,934 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.manager
10:57:00,950 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.transaction.synchronizations
10:57:00,950 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.locale
10:57:00,950 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.persistence.persistenceProvider
10:57:00,950 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.web.parameters
10:57:00,950 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.expressions
10:57:00,950 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.locale
10:57:00,950 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.resourceLoader
10:57:00,950 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.security.identity
10:57:00,950 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.web.userPrincipal
10:57:00,950 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.security.entityPermissionChecker
10:57:01,106 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
10:57:01,263 INFO [Initialization] Installing components...
10:57:01,356 INFO [Component] Component: authenticator, scope: EVENT, type: JAVA_BEAN, class: com.sicpa.tt000.webapp.common.Authenticator
10:57:01,513 INFO [Component] Component: entityManager, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.persistence.ManagedPersistenceContext
10:57:01,544 INFO [Component] Component: org.jboss.seam.async.dispatcher, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.async.ThreadPoolDispatcher
10:57:01,560 INFO [Component] Component: org.jboss.seam.captcha.captcha, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.captcha.Captcha
10:57:01,560 INFO [Component] Component: org.jboss.seam.captcha.captchaImage, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.captcha.CaptchaImage
10:57:01,560 INFO [Component] Component: org.jboss.seam.core.ConversationIdGenerator, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationIdGenerator
10:57:01,575 INFO [Component] Component: org.jboss.seam.core.contexts, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Contexts
10:57:01,575 INFO [Component] Component: org.jboss.seam.core.conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
10:57:01,575 INFO [Component] Component: org.jboss.seam.core.conversationEntries, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationEntries
10:57:01,591 INFO [Component] Component: org.jboss.seam.core.conversationListFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
10:57:01,591 INFO [Component] Component: org.jboss.seam.core.conversationPropagation, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationPropagation
10:57:01,591 INFO [Component] Component: org.jboss.seam.core.conversationStackFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
10:57:01,591 INFO [Component] Component: org.jboss.seam.core.events, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Events
10:57:01,591 INFO [Component] Component: org.jboss.seam.core.expressions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesExpressions
10:57:01,591 INFO [Component] Component: org.jboss.seam.core.interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
10:57:01,607 INFO [Component] Component: org.jboss.seam.core.locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.international.Locale
10:57:01,607 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesManager
10:57:01,607 INFO [Component] Component: org.jboss.seam.core.resourceBundle, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
10:57:01,607 INFO [Component] Component: org.jboss.seam.core.resourceLoader, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.faces.ResourceLoader
10:57:01,653 INFO [Component] Component: org.jboss.seam.core.validators, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Validators
10:57:01,669 INFO [Component] Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts
10:57:01,685 INFO [Component] Component: org.jboss.seam.debug.hotDeployFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.hot.HotDeployFilter
10:57:01,685 INFO [Component] Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector
10:57:01,825 INFO [Component] Component: org.jboss.seam.exception.exceptions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.exception.Exceptions
10:57:02,091 INFO [Component] Component: org.jboss.seam.faces.dataModels, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.faces.DataModels
10:57:02,091 INFO [Component] Component: org.jboss.seam.faces.facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesContext
10:57:02,185 INFO [Component] Component: org.jboss.seam.faces.facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesMessages
10:57:02,185 INFO [Component] Component: org.jboss.seam.faces.facesPage, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesPage
10:57:02,185 INFO [Component] Component: org.jboss.seam.faces.httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.HttpError
10:57:02,185 INFO [Component] Component: org.jboss.seam.faces.redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.faces.Redirect
10:57:02,341 INFO [Component] Component: org.jboss.seam.faces.renderer, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.facelet.FaceletsRenderer
10:57:02,560 INFO [Component] Component: org.jboss.seam.faces.switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.faces.Switcher
10:57:02,560 INFO [Component] Component: org.jboss.seam.faces.uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.faces.UiComponent
10:57:02,560 INFO [Component] Component: org.jboss.seam.faces.validation, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.faces.Validation
10:57:02,560 INFO [Component] Component: org.jboss.seam.framework.currentDate, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDate
10:57:02,560 INFO [Component] Component: org.jboss.seam.framework.currentDatetime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDatetime
10:57:02,560 INFO [Component] Component: org.jboss.seam.framework.currentTime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentTime
10:57:02,576 INFO [Component] Component: org.jboss.seam.graphicImage.image, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.Image
10:57:02,607 INFO [Component] Component: org.jboss.seam.international.localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.international.LocaleSelector
10:57:02,607 INFO [Component] Component: org.jboss.seam.international.messagesFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.international.Messages
10:57:02,607 INFO [Component] Component: org.jboss.seam.international.timeZone, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.international.TimeZone
10:57:02,607 INFO [Component] Component: org.jboss.seam.international.timeZoneSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.international.TimeZoneSelector
10:57:02,638 INFO [Component] Component: org.jboss.seam.mail.mailSession, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.mail.MailSession
10:57:02,716 INFO [Component] Component: org.jboss.seam.navigation.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.navigation.Pages
10:57:02,763 INFO [Component] Component: org.jboss.seam.navigation.safeActions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.navigation.SafeActions
10:57:02,763 INFO [Component] Component: org.jboss.seam.persistence.persistenceContexts, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.persistence.PersistenceContexts
10:57:02,841 INFO [Component] Component: org.jboss.seam.persistence.persistenceProvider, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.persistence.HibernatePersistenceProvider
10:57:02,857 INFO [Component] Component: org.jboss.seam.security.configurationFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.security.Configuration
10:57:02,888 INFO [Component] Component: org.jboss.seam.security.entityPermissionChecker, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.security.HibernateEntityPermissionChecker
10:57:02,888 INFO [Component] Component: org.jboss.seam.security.facesSecurityEvents, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.security.FacesSecurityEvents
10:57:02,919 INFO [Component] Component: org.jboss.seam.security.identity, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.security.Identity
10:57:02,951 INFO [Component] Component: org.jboss.seam.theme.themeFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.theme.Theme
10:57:02,951 INFO [Component] Component: org.jboss.seam.theme.themeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.ThemeSelector
10:57:02,951 INFO [Component] Component: org.jboss.seam.transaction.synchronizations, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.transaction.SeSynchronizations
10:57:02,966 INFO [Component] Component: org.jboss.seam.transaction.transaction, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.transaction.Transaction
10:57:02,998 INFO [Component] Component: org.jboss.seam.ui.EntityConverter, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.ui.converter.EntityConverter
10:57:03,013 INFO [Component] Component: org.jboss.seam.ui.entityIdentifierStore, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.ui.converter.entityConverter.EntityIdentifierStore
10:57:03,044 INFO [Component] Component: org.jboss.seam.ui.entityLoader, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.converter.entityConverter.EntityLoader
10:57:03,060 INFO [Component] Component: org.jboss.seam.ui.facelet.faceletCompiler, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.facelet.FaceletCompiler
10:57:03,060 INFO [Component] Component: org.jboss.seam.ui.graphicImage.graphicImageResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.GraphicImageResource
10:57:03,076 INFO [Component] Component: org.jboss.seam.ui.graphicImage.graphicImageStore, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.GraphicImageStore
10:57:03,076 INFO [Component] Component: org.jboss.seam.ui.hibernateEntityLoader, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.converter.entityConverter.HibernateEntityLoader
10:57:03,076 INFO [Component] Component: org.jboss.seam.ui.resource.safeStyleResources, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.resource.SafeStyleResources
10:57:03,076 INFO [Component] Component: org.jboss.seam.ui.resource.styleResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.resource.StyleResource
10:57:03,091 INFO [Component] Component: org.jboss.seam.ui.resource.webResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.resource.WebResource
10:57:03,091 INFO [Component] Component: org.jboss.seam.web.ajax4jsfFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.Ajax4jsfFilter
10:57:03,107 INFO [Component] Component: org.jboss.seam.web.ajax4jsfFilterInstantiator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.filter.Ajax4jsfFilterInstantiator
10:57:03,123 INFO [Component] Component: org.jboss.seam.web.exceptionFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.ExceptionFilter
10:57:03,123 INFO [Component] Component: org.jboss.seam.web.isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.IsUserInRole
10:57:03,123 INFO [Component] Component: org.jboss.seam.web.loggingFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.LoggingFilter
10:57:03,123 INFO [Component] Component: org.jboss.seam.web.multipartFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.MultipartFilter
10:57:03,123 INFO [Component] Component: org.jboss.seam.web.parameters, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.faces.Parameters
10:57:03,123 INFO [Component] Component: org.jboss.seam.web.redirectFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.RedirectFilter
10:57:03,123 INFO [Component] Component: org.jboss.seam.web.servletContexts, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.web.ServletContexts
10:57:03,138 INFO [Component] Component: org.jboss.seam.web.session, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.web.Session
10:57:03,138 INFO [Component] Component: org.jboss.seam.web.userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.UserPrincipal
10:57:03,169 INFO [Contexts] starting up: org.jboss.seam.security.facesSecurityEvents
10:57:03,169 INFO [Contexts] starting up: org.jboss.seam.navigation.pages
10:57:03,201 INFO [Initialization] done initializing Seam
10:57:03,232 INFO [SeamFilter] Initializing filter: org.jboss.seam.debug.hotDeployFilter
10:57:03,232 INFO [SeamFilter] Initializing filter: org.jboss.seam.web.loggingFilter
10:57:03,232 INFO [SeamFilter] Initializing filter: org.jboss.seam.web.ajax4jsfFilter
10:57:03,404 INFO [CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
10:57:03,420 INFO [LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {facelets.DEVELOPMENT=true, org.richfaces.SKIN=blueSky, com.sun.faces.injectionProvider=org.jboss.web.jsf.integration.injection.JBossInjectionProvider, javax.faces.DEFAULT_SUFFIX=.xhtml}
10:57:03,420 INFO [LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
10:57:03,529 INFO [CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
10:57:03,529 INFO [LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {facelets.DEVELOPMENT=true, org.richfaces.SKIN=blueSky, com.sun.faces.injectionProvider=org.jboss.web.jsf.integration.injection.JBossInjectionProvider, javax.faces.DEFAULT_SUFFIX=.xhtml}
10:57:03,529 INFO [LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
10:57:03,529 INFO [SeamFilter] Initializing filter: org.jboss.seam.web.redirectFilter
10:57:03,529 INFO [SeamFilter] Initializing filter: org.jboss.seam.web.exceptionFilter
10:57:03,529 INFO [SeamFilter] Initializing filter: org.jboss.seam.web.multipartFilter
10:57:03,576 INFO [EARDeployer] Started J2EE application: file:/C:/Program Files/jboss-4.2.2.GA/server/default/deploy/tt000-webapp-ear.ear
"
CreateOrder bean is not started at all ! Have you annotated it with @Stateless or @Stateful ?
Thank you soooooo much!!
This was it. I forgot to put @Stateless (to be honest, I wasn't aware I had to put it)
Thank you very much.
Last question, instead of taking the name I put in @Name, it takes the name of the class as the component name. Do you know why?
No way ! Show your bean source and that use of class name as component name in EL.
CreateOrderBean.java :
package com.sicpa.tt000.ordering.beans; import java.util.List; import javax.ejb.Stateless; import javax.persistence.EntityManager; import org.jboss.seam.ScopeType; import org.jboss.seam.annotations.Factory; import org.jboss.seam.annotations.In; import org.jboss.seam.annotations.Logger; import org.jboss.seam.annotations.Name; import org.jboss.seam.annotations.Scope; import org.jboss.seam.annotations.datamodel.DataModel; import org.jboss.seam.log.Log; import com.sicpa.tt000.ordering.model.Province; import com.sicpa.tt000.ordering.model.Site; @Stateless @Scope(ScopeType.PAGE) @Name("CreateOrder") public class CreateOrderBean implements CreateOrder{ @Logger Log log; @In EntityManager entityManager; @DataModel List<Site> createOrderSites; @DataModel List<Province> createOrderProvinces; private Site site; private Province province; @SuppressWarnings("unchecked") @Factory("createOrderSites") public void loadSites(){ log.info("loading sites..."); createOrderSites = entityManager.createQuery("from Site").getResultList(); } @SuppressWarnings("unchecked") @Factory("createOrderProvinces") public void loadProvinces(){ log.info("loading provinces..."); createOrderProvinces=entityManager.createQuery("from Province").getResultList(); } public Site getSite() { return site; } public Province getProvince() { return province; } public void setSite(Site site) { this.site = site; } public void setProvince(Province province) { this.province = province; } public String testAction(){ return "test"; } }CreateOrder.java
package com.sicpa.tt000.ordering.beans; import javax.ejb.Local; import com.sicpa.tt000.ordering.model.Province; import com.sicpa.tt000.ordering.model.Site; @Local public interface CreateOrder { public Site getSite(); public Province getProvince(); public void setSite(Site site); public void setProvince(Province province); public String testAction(); }Here is the line in the console:
So you say you do this
#{CreateOrderBean.site}?Because
has nothing to do with Seam and Name annotation and you will not be able (in my opinion) to use#{CreateOrderBean.site}Your are right it doesn't work. I thought it worked but it doesn't look that way.
I see that my EJB is deployed now (as I show you before) but I don't see the CreateOrder component in the console when Seam is initialized.
Should I see it? Do you have any idea why?
Nevertheless thank you very much for your help
If you are using JBoss you should have in your logs :
It looks like the problem comes from that. I don't have this line. Do you have any idea why I don't have it?
Show your new deployment log once again.
14:02:43,049 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=tt000-webapp-ear.ear,jar=jboss-seam-2.0.3.CR1.jar,name=TimerServiceDispatcher,service=EJB3 with dependencies:
14:02:43,064 INFO [EJBContainer] STARTED EJB: org.jboss.seam.async.TimerServiceDispatcher ejbName: TimerServiceDispatcher
14:02:43,080 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateful.StatefulContainer
14:02:43,080 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=tt000-webapp-ear.ear,jar=jboss-seam-2.0.3.CR1.jar,name=EjbSynchronizations,service=EJB3 with dependencies:
14:02:43,080 INFO [EJBContainer] STARTED EJB: org.jboss.seam.transaction.EjbSynchronizations ejbName: EjbSynchronizations
14:02:43,096 INFO [EJB3Deployer] Deployed: file:/C:/Program Files/jboss-4.2.2.GA/server/default/tmp/deploy/tmp50080tt000-webapp-ear.ear-contents/jboss-seam-2.0.3.CR1.jar
14:02:43,096 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
14:02:43,096 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ear=tt000-webapp-ear.ear,jar=tt000-webapp-ejb-1.0.0.jar,unitName=webappDB with dependencies:
14:02:43,096 INFO [JmxKernelAbstraction] jboss.jca:name=seamDB,service=DataSourceBinding
14:02:43,096 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:ear=tt000-webapp-ear.ear,jar=tt000-webapp-ejb-1.0.0.jar,unitName=webappDB
14:02:43,096 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.admin.model.User
14:02:43,096 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.admin.model.UserRole
14:02:43,096 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.Address
14:02:43,096 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.OrderPosition
14:02:43,096 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.OrderStatus
14:02:43,111 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.PackagingUnitType
14:02:43,111 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.Province
14:02:43,111 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.RejectionReason
14:02:43,111 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.Site
14:02:43,111 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.SiteType
14:02:43,111 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.StampOrder
14:02:43,111 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.StampOrderLog
14:02:43,111 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.StampType
14:02:43,111 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.SubSystem
14:02:43,111 INFO [Ejb3Configuration] found EJB3 Entity bean: com.sicpa.tt000.ordering.model.SubSystemType
14:02:43,127 INFO [Configuration] Reading mappings from resource : META-INF/orm.xml
14:02:43,127 INFO [Ejb3Configuration] [PersistenceUnit: webappDB] no META-INF/orm.xml found
14:02:43,127 INFO [AnnotationBinder] Binding entity from annotated class: com.sicpa.tt000.admin.model.User
14:02:43,127 INFO [EntityBinder] Bind entity com.sicpa.tt000.admin.model.User on table USERS
14:02:43,127 INFO [AnnotationBinder] Binding entity from annotated class: com.sicpa.tt000.admin.model.UserRole
14:02:43,127 INFO [EntityBinder] Bind entity com.sicpa.tt000.admin.model.UserRole on table UserRole
14:02:43,127 INFO [AnnotationBinder] Binding entity from annotated class: com.sicpa.tt000.ordering.model.Address
...
14:02:44,127 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
14:02:44,127 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=tt000-webapp-ear.ear,jar=tt000-webapp-ejb-1.0.0.jar,name=CreateOrderBean,service=EJB3 with dependencies:
14:02:44,143 INFO [EJBContainer] STARTED EJB: com.sicpa.tt000.ordering.beans.CreateOrderBean ejbName: CreateOrderBean
14:02:44,143 INFO [EJB3Deployer] Deployed: file:/C:/Program Files/jboss-4.2.2.GA/server/default/tmp/deploy/tmp50080tt000-webapp-ear.ear-contents/tt000-webapp-ejb-1.0.0.jar
14:02:44,143 INFO [TomcatDeployer] deploy, ctxPath=/newOrdering, warUrl=.../tmp/deploy/tmp50080tt000-webapp-ear.ear-contents/tt000-webapp-war-exp.war/
14:02:48,097 INFO [ServletContextListener] Welcome to Seam 2.0.3.CR1
14:02:52,145 INFO [Initialization] Namespace: http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, prefix: org.jboss.seam.core.framework
14:02:52,145 INFO [Initialization] Namespace: http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix: org.jboss.seam.theme
14:02:52,145 INFO [Initialization] Namespace: http://jboss.com/products/seam/bpm, package: org.jboss.seam.bpm, prefix: org.jboss.seam.bpm
14:02:52,145 INFO [Initialization] Namespace: http://jboss.com/products/seam/mail, package: org.jboss.seam.mail, prefix: org.jboss.seam.mail
14:02:52,145 INFO [Initialization] Namespace: http://jboss.com/products/seam/security, package: org.jboss.seam.security, prefix: org.jboss.seam.security
14:02:52,145 INFO [Initialization] Namespace: http://jboss.com/products/seam/web, package: org.jboss.seam.web, prefix: org.jboss.seam.web
14:02:52,145 INFO [Initialization] Namespace: http://jboss.com/products/seam/captcha, package: org.jboss.seam.captcha, prefix: org.jboss.seam.captcha
14:02:52,145 INFO [Initialization] Namespace: http://jboss.com/products/seam/navigation, package: org.jboss.seam.navigation, prefix: org.jboss.seam.navigation
14:02:52,145 INFO [Initialization] Namespace: http://jboss.com/products/seam/core, package: org.jboss.seam.core, prefix: org.jboss.seam.core
14:02:52,145 INFO [Initialization] Namespace: http://jboss.com/products/seam/international, package: org.jboss.seam.international, prefix: org.jboss.seam.international
14:02:52,145 INFO [Initialization] Namespace: http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix: org.jboss.seam.jms
14:02:52,145 INFO [Initialization] Namespace: http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix: org.jboss.seam.drools
14:02:52,145 INFO [Initialization] Namespace: http://jboss.com/products/seam/spring, package: org.jboss.seam.ioc.spring, prefix: org.jboss.seam.ioc.spring
14:02:52,145 INFO [Initialization] Namespace: http://jboss.com/products/seam/persistence, package: org.jboss.seam.persistence, prefix: org.jboss.seam.persistence
14:02:52,145 INFO [Initialization] reading /WEB-INF/components.xml
14:02:52,395 INFO [Initialization] reading jar:file:/C:/Program Files/jboss-4.2.2.GA/server/default/tmp/deploy/tmp50080tt000-webapp-ear.ear-contents/jboss-seam-2.0.3.CR1.jar!/META-INF/components.xml
14:02:52,395 INFO [Initialization] reading jar:file:/C:/Program%20Files/jboss-4.2.2.GA/server/default/tmp/deploy/tmp50080tt000-webapp-ear.ear-contents/tt000-webapp-war-exp.war/WEB-INF/lib/jboss-seam-2.0.3.CR1.jar!/META-INF/components.xml
14:02:52,395 INFO [Initialization] reading jar:file:/C:/Program%20Files/jboss-4.2.2.GA/server/default/tmp/deploy/tmp50080tt000-webapp-ear.ear-contents/tt000-webapp-war-exp.war/WEB-INF/lib/jboss-seam-ioc-2.0.3.CR1.jar!/META-INF/components.xml
14:02:52,411 INFO [Initialization] reading jar:file:/C:/Program%20Files/jboss-4.2.2.GA/server/default/tmp/deploy/tmp50080tt000-webapp-ear.ear-contents/tt000-webapp-war-exp.war/WEB-INF/lib/jboss-seam-ui-2.0.3.CR1.jar!/META-INF/components.xml
14:02:52,411 INFO [Initialization] reading properties from: /seam.properties
14:02:52,411 INFO [Initialization] reading properties from: /jndi.properties
14:02:52,426 INFO [Initialization] initializing Seam
14:02:52,473 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.web.userPrincipal
14:02:52,505 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.web.isUserInRole
14:02:52,505 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.web.parameters
14:02:52,505 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.security.identity
14:02:52,505 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.persistence.persistenceProvider
14:02:52,505 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.expressions
14:02:52,505 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.locale
14:02:52,505 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.transaction.synchronizations
14:02:52,505 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.resourceLoader
14:02:52,505 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.bpm.businessProcess
14:02:52,505 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.security.entityPermissionChecker
14:02:52,520 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.locale
14:02:52,520 INFO [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.manager
14:02:52,614 INFO [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
14:02:52,723 INFO [Initialization] Installing components...
14:02:52,786 INFO [Component] Component: authenticator, scope: EVENT, type: JAVA_BEAN, class: com.sicpa.tt000.webapp.common.Authenticator
14:02:52,880 INFO [Component] Component: entityManager, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.persistence.ManagedPersistenceContext
14:02:52,895 INFO [Component] Component: org.jboss.seam.async.dispatcher, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.async.ThreadPoolDispatcher
14:02:52,911 INFO [Component] Component: org.jboss.seam.captcha.captcha, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.captcha.Captcha
14:02:52,927 INFO [Component] Component: org.jboss.seam.captcha.captchaImage, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.captcha.CaptchaImage
14:02:52,927 INFO [Component] Component: org.jboss.seam.core.ConversationIdGenerator, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationIdGenerator
14:02:52,927 INFO [Component] Component: org.jboss.seam.core.contexts, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Contexts
14:02:52,927 INFO [Component] Component: org.jboss.seam.core.conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
14:02:52,927 INFO [Component] Component: org.jboss.seam.core.conversationEntries, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationEntries
14:02:52,927 INFO [Component] Component: org.jboss.seam.core.conversationListFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
14:02:52,927 INFO [Component] Component: org.jboss.seam.core.conversationPropagation, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationPropagation
14:02:52,927 INFO [Component] Component: org.jboss.seam.core.conversationStackFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
14:02:52,927 INFO [Component] Component: org.jboss.seam.core.events, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Events
14:02:52,942 INFO [Component] Component: org.jboss.seam.core.expressions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesExpressions
14:02:52,942 INFO [Component] Component: org.jboss.seam.core.interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
14:02:52,942 INFO [Component] Component: org.jboss.seam.core.locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.international.Locale
14:02:52,942 INFO [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesManager
14:02:52,958 INFO [Component] Component: org.jboss.seam.core.resourceBundle, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
14:02:52,958 INFO [Component] Component: org.jboss.seam.core.resourceLoader, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.faces.ResourceLoader
14:02:52,958 INFO [Component] Component: org.jboss.seam.core.validators, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Validators
14:02:52,973 INFO [Component] Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts
14:02:52,973 INFO [Component] Component: org.jboss.seam.debug.hotDeployFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.hot.HotDeployFilter
14:02:53,052 INFO [Component] Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector
14:02:53,083 INFO [Component] Component: org.jboss.seam.exception.exceptions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.exception.Exceptions
14:02:53,098 INFO [Component] Component: org.jboss.seam.faces.dataModels, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.faces.DataModels
14:02:53,098 INFO [Component] Component: org.jboss.seam.faces.facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesContext
14:02:53,114 INFO [Component] Component: org.jboss.seam.faces.facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesMessages
14:02:53,114 INFO [Component] Component: org.jboss.seam.faces.facesPage, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesPage
14:02:53,114 INFO [Component] Component: org.jboss.seam.faces.httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.HttpError
14:02:53,114 INFO [Component] Component: org.jboss.seam.faces.redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.faces.Redirect
14:02:53,130 INFO [Component] Component: org.jboss.seam.faces.renderer, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.facelet.FaceletsRenderer
14:02:53,130 INFO [Component] Component: org.jboss.seam.faces.switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.faces.Switcher
14:02:53,130 INFO [Component] Component: org.jboss.seam.faces.uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.faces.UiComponent
14:02:53,130 INFO [Component] Component: org.jboss.seam.faces.validation, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.faces.Validation
14:02:53,130 INFO [Component] Component: org.jboss.seam.framework.currentDate, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDate
14:02:53,130 INFO [Component] Component: org.jboss.seam.framework.currentDatetime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDatetime
14:02:53,130 INFO [Component] Component: org.jboss.seam.framework.currentTime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentTime
14:02:53,145 INFO [Component] Component: org.jboss.seam.graphicImage.image, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.Image
14:02:53,145 INFO [Component] Component: org.jboss.seam.international.localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.international.LocaleSelector
14:02:53,145 INFO [Component] Component: org.jboss.seam.international.messagesFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.international.Messages
14:02:53,145 INFO [Component] Component: org.jboss.seam.international.timeZone, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.international.TimeZone
14:02:53,145 INFO [Component] Component: org.jboss.seam.international.timeZoneSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.international.TimeZoneSelector
14:02:53,161 INFO [Component] Component: org.jboss.seam.mail.mailSession, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.mail.MailSession
14:02:53,192 INFO [Component] Component: org.jboss.seam.navigation.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.navigation.Pages
14:02:53,208 INFO [Component] Component: org.jboss.seam.navigation.safeActions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.navigation.SafeActions
14:02:53,208 INFO [Component] Component: org.jboss.seam.persistence.persistenceContexts, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.persistence.PersistenceContexts
14:02:53,224 INFO [Component] Component: org.jboss.seam.persistence.persistenceProvider, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.persistence.HibernatePersistenceProvider
14:02:53,239 INFO [Component] Component: org.jboss.seam.security.configurationFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.security.Configuration
14:02:53,239 INFO [Component] Component: org.jboss.seam.security.entityPermissionChecker, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.security.HibernateEntityPermissionChecker
14:02:53,239 INFO [Component] Component: org.jboss.seam.security.facesSecurityEvents, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.security.FacesSecurityEvents
14:02:53,255 INFO [Component] Component: org.jboss.seam.security.identity, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.security.Identity
14:02:53,255 INFO [Component] Component: org.jboss.seam.theme.themeFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.theme.Theme
14:02:53,270 INFO [Component] Component: org.jboss.seam.theme.themeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.ThemeSelector
14:02:53,270 INFO [Component] Component: org.jboss.seam.transaction.synchronizations, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.transaction.SeSynchronizations
14:02:53,270 INFO [Component] Component: org.jboss.seam.transaction.transaction, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.transaction.Transaction
14:02:53,286 INFO [Component] Component: org.jboss.seam.ui.EntityConverter, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.ui.converter.EntityConverter
14:02:53,286 INFO [Component] Component: org.jboss.seam.ui.entityIdentifierStore, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.ui.converter.entityConverter.EntityIdentifierStore
14:02:53,302 INFO [Component] Component: org.jboss.seam.ui.entityLoader, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.converter.entityConverter.EntityLoader
14:02:53,302 INFO [Component] Component: org.jboss.seam.ui.facelet.faceletCompiler, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.facelet.FaceletCompiler
14:02:53,302 INFO [Component] Component: org.jboss.seam.ui.graphicImage.graphicImageResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.GraphicImageResource
14:02:53,317 INFO [Component] Component: org.jboss.seam.ui.graphicImage.graphicImageStore, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.GraphicImageStore
14:02:53,317 INFO [Component] Component: org.jboss.seam.ui.hibernateEntityLoader, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.converter.entityConverter.HibernateEntityLoader
14:02:53,317 INFO [Component] Component: org.jboss.seam.ui.resource.safeStyleResources, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.resource.SafeStyleResources
14:02:53,333 INFO [Component] Component: org.jboss.seam.ui.resource.styleResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.resource.StyleResource
14:02:53,333 INFO [Component] Component: org.jboss.seam.ui.resource.webResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.resource.WebResource
14:02:53,333 INFO [Component] Component: org.jboss.seam.web.ajax4jsfFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.Ajax4jsfFilter
14:02:53,333 INFO [Component] Component: org.jboss.seam.web.ajax4jsfFilterInstantiator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.filter.Ajax4jsfFilterInstantiator
14:02:53,349 INFO [Component] Component: org.jboss.seam.web.exceptionFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.ExceptionFilter
14:02:53,349 INFO [Component] Component: org.jboss.seam.web.isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.IsUserInRole
14:02:53,349 INFO [Component] Component: org.jboss.seam.web.loggingFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.LoggingFilter
14:02:53,349 INFO [Component] Component: org.jboss.seam.web.multipartFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.MultipartFilter
14:02:53,349 INFO [Component] Component: org.jboss.seam.web.parameters, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.faces.Parameters
14:02:53,349 INFO [Component] Component: org.jboss.seam.web.redirectFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.RedirectFilter
14:02:53,349 INFO [Component] Component: org.jboss.seam.web.servletContexts, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.web.ServletContexts
14:02:53,349 INFO [Component] Component: org.jboss.seam.web.session, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.web.Session
14:02:53,349 INFO [Component] Component: org.jboss.seam.web.userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.UserPrincipal
14:02:53,364 INFO [Contexts] starting up: org.jboss.seam.security.facesSecurityEvents
14:02:53,364 INFO [Contexts] starting up: org.jboss.seam.navigation.pages
14:02:53,380 INFO [Initialization] done initializing Seam
14:02:53,395 INFO [SeamFilter] Initializing filter: org.jboss.seam.debug.hotDeployFilter
14:02:53,395 INFO [SeamFilter] Initializing filter: org.jboss.seam.web.loggingFilter
14:02:53,395 INFO [SeamFilter] Initializing filter: org.jboss.seam.web.ajax4jsfFilter
14:02:53,474 INFO [CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
14:02:53,474 INFO [LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {facelets.DEVELOPMENT=true, org.richfaces.SKIN=blueSky, com.sun.faces.injectionProvider=org.jboss.web.jsf.integration.injection.JBossInjectionProvider, javax.faces.DEFAULT_SUFFIX=.xhtml}
14:02:53,474 INFO [LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
14:02:53,567 INFO [CacheManager] Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
14:02:53,567 INFO [LRUMapCacheFactory] Creating LRUMap cache instance using parameters: {facelets.DEVELOPMENT=true, org.richfaces.SKIN=blueSky, com.sun.faces.injectionProvider=org.jboss.web.jsf.integration.injection.JBossInjectionProvider, javax.faces.DEFAULT_SUFFIX=.xhtml}
14:02:53,567 INFO [LRUMapCacheFactory] Creating LRUMap cache instance of default capacity
14:02:53,567 INFO [SeamFilter] Initializing filter: org.jboss.seam.web.redirectFilter
14:02:53,567 INFO [SeamFilter] Initializing filter: org.jboss.seam.web.exceptionFilter
14:02:53,567 INFO [SeamFilter] Initializing filter: org.jboss.seam.web.multipartFilter
14:02:53,599 INFO [EARDeployer] Started J2EE application: file:/C:/Program Files/jboss-4.2.2.GA/server/default/deploy/tt000-webapp-ear.ear
Send me your complete project with build file and I will try to debug. s4237 at pjwstk dot edu dot pl
Did you receive it?
Good news, problem resolved ! I could not use classes from your ejb jar cause there was some problem with compilator version. I compiled your sources and put only those classes in ear you sent me. All works fine. Component gets detected. It is important to have jsf-facelets.jar and richfaces-ui.jar in the same place cause elewhere they get loaded by different classloaders and you get ClassCastException or such.