[jboss-user] [JBoss Seam] - Re: Contexts.getApplicationContext() loses Components
Lundegaard
do-not-reply at jboss.com
Mon Apr 2 15:27:37 EDT 2007
I lied with
anonymous wrote : After increasing the initial capacity of org.jboss.seam.init.Initialization#properties the startup worked with all components in my components.xml.
since this didnt'solve the issue, rather i posted and tested with the wrong META-INF/components.xml
I'll try to figure out some solution.
Here's the non-working file (Last two components added)
| <?xml version="1.0" encoding="UTF-8"?>
| <components xmlns="http://jboss.com/products/seam/components" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="
| http://jboss.com/products/seam/components
| http://jboss.com/products/seam/components-1.2.xsd">
|
| <!-- Action -->
| <component name="authenticator" class="com.example.action.Authenticator" scope="conversation" auto-create="true" />
| <component name="mailAction" class="com.example.action.MailAction" scope="conversation" auto-create="true" />
| <component name="userAction" class="com.example.action.UserAction" scope="conversation" auto-create="true" />
| <component name="userBranchAction" class="com.example.action.UserBranchAction" scope="conversation" auto-create="true" />
| <component name="userQuestionnaireAction" class="com.example.questionnaire.action.UserQuestionnaireAction" scope="conversation" auto-create="true" />
| <component name="exportAction" class="com.example.action.ExportAction" scope="conversation" auto-create="true" />
|
| <!-- Util -->
| <component name="configuration" class="com.example.util.Configuration" scope="application" auto-create="true">
| <property name="path">${configuration.path}</property>
| <property name="url">${configuration.url}</property>
| </component>
|
| <!-- Entity -->
| <component name="user" class="com.example.entity.User" scope="conversation" auto-create="true" />
|
| <!-- DAO -->
| <component name="userDao" class="com.example.dao.UserDao" scope="stateless" auto-create="true" />
| <component name="userBranchDao" class="com.example.dao.UserBranchDao" scope="stateless" auto-create="true" />
| <component name="roleDao" class="com.example.dao.RoleDao" scope="stateless" auto-create="true" />
| <component name="questionnaireDao" class="com.example.questionnaire.dao.QuestionnaireDao" scope="stateless" auto-create="true" />
| <component name="questionDao" class="com.example.questionnaire.dao.QuestionDao" scope="stateless" auto-create="true" />
| <component name="answerDao" class="com.example.questionnaire.dao.AnswerDao" scope="stateless" auto-create="true" />
| <component name="userQuestionnaireDao" class="com.example.questionnaire.dao.UserQuestionnaireDao" scope="stateless" auto-create="true" />
| <component name="userQuestionDao" class="com.example.questionnaire.dao.UserQuestionDao" scope="stateless" auto-create="true" />
| <component name="userAnswerDao" class="com.example.questionnaire.dao.UserAnswerDao" scope="stateless" auto-create="true" />
|
| <!-- Framework -->
| <component name="questionnaireHome" class="com.example.questionnaire.home.QuestionnaireHome" scope="conversation">
| <property name="entityClass">com.example.questionnaire.entity.Questionnaire</property>
| </component>
| <component name="questionHome" class="com.example.questionnaire.home.QuestionHome" scope="conversation">
| <property name="entityClass">com.example.questionnaire.entity.Question</property>
| </component>
| <component name="answerHome" class="com.example.questionnaire.home.AnswerHome" scope="conversation">
| <property name="entityClass">com.example.questionnaire.entity.Answer</property>
| </component>
| <component name="recommendationHome" class="com.example.home.RecommendationHome" scope="conversation">
| <property name="entityClass">com.example.entity.Recommendation</property>
| </component>
| <component name="contactHome" class="com.example.home.ContactHome" scope="conversation">
| <property name="entityClass">com.example.entity.Contact</property>
| </component>
|
| </components>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033804#4033804
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033804
More information about the jboss-user
mailing list