-
1. Re: Could not instantiate Seam component :/
dhinojosa Sep 25, 2007 4:10 PM (in response to yacho)I bet there is more info after:
21:46:24,625 WARN [lifecycle] Could not instantiate Seam component: userManager org.jboss.seam.InstantiationException: Could not instantiate Seam component: userManager at org.jboss.seam.Component.newInstance(Component.java:1853)
Can you post it? -
2. Re: Could not instantiate Seam component :/
yacho Sep 25, 2007 4:13 PM (in response to yacho)there sure is but im trying to keep stuff clear - heres the full stack trace :
http://phpfi.com/265097 -
3. Re: Could not instantiate Seam component :/
dhinojosa Sep 25, 2007 4:17 PM (in response to yacho)OK, please paste your components.xml contents and tell me the name of your ear file....
-
4. Re: Could not instantiate Seam component :/
yacho Sep 25, 2007 4:21 PM (in response to yacho)components.xml : http://phpfi.com/265102
My project ear is named foo1.ear
I had to paste variables from components.properities cause somehow eclipse threated @something@ as error (in debug and JNDI path - so probably thats the problem but i dont know how to correct it... -
5. Re: Could not instantiate Seam component :/
dhinojosa Sep 25, 2007 4:35 PM (in response to yacho)Well, change:
<core:init debug="true" jndi-pattern="\#{ejbName}/local"/>
to:<core:init debug="true" jndi-pattern="foo1/#{ejbName}/local"/>
where foo1 is the name of your ear file. Be sure to change that when your ear file changes. The @.......@ you saw before was a filter token used by seam-gen. What is does is automatically plugs in the name of the ear automatically using ant. You can manually manage it or revert it back. Your call. -
6. Re: Could not instantiate Seam component :/
yacho Sep 25, 2007 4:44 PM (in response to yacho)Sweet Man !
Works like a charm.
Since I pasted in My Bean i have question :
newUser Entity is Event scoped and is bound to a form that has register(User newUser) apached to it.
The thing is newUser is always null - my question is why ? Dosent the JSF values get Bound to entity before invoking a register Action so that injected parameter is meaningful ? or is it about the Scupe of newUser entity ? -
7. Re: Could not instantiate Seam component :/
dhinojosa Sep 25, 2007 5:05 PM (in response to yacho)Well if the user has attempted to be invoked yet....Try
@In(create=true)