aspose file tools*
The moose likes JBoss/WildFly and the fly likes Seam 2.3.1 - Outjection not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Seam 2.3.1 - Outjection not working" Watch "Seam 2.3.1 - Outjection not working" New topic
Author

Seam 2.3.1 - Outjection not working

Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 598

Hi ,

I'm busy with an upgrade of seam 2.2 to seam 2.3.1. I am finding that I cannot outject a custom user object from the authenticate-method :



The authenticate method executes without a problem, but in subsequent injections in other components if I try to use :


...then I get the exception "@In attribute requires non-null value: SomeAction.userEntity"

Any ideas?


===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===
Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 598

No? Nothing?
Flo Petersen
Greenhorn

Joined: Mar 07, 2014
Posts: 2
Hi Duran,

did you find a solution to this? I'm also trying to deploy a Seam 2.3.1 application on WildFly 8.0.0 that worked on JBoss 7.1.1 and get several injection errors like
Caused by: org.jboss.seam.RequiredException: @In attribute requires non-null value: ppDocumentHome.renderer
I think it's the same issue that you've faced...

Thanks in advance,
best regards
Flo
Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 598

Hi Flo,

It turned out my problem was caused by referencing Seam 2.2 schema's in my xhtml files...

Although I am quite disturbed that you say you are encountering the same issue when switching from JBOSS 7.1 to WildFly as I will be doing the same thing in the weeks to come
Flo Petersen
Greenhorn

Joined: Mar 07, 2014
Posts: 2
Hi Duran,
thanks for the info... in the meantime i decided to give a complete migration to EE6 a try, so WildFly should be a better fit then. But i am aware of the possibility i will end up in a mess and give up the idea ;)

By the way, the only explicit Seam 2.2 scheme i refer to seems to be
http://jboss.com/products/seam/pages-2.2.xsd
but i think this is not what you mean? Maybe your issue was another one, although similar symptoms...
When you start to migrate to WildFly, just let me know if you run into this again, then we maybe could work it out together...

Best regards
Flo
Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 598

Hi Flo,

I just remembered something that could be of great use to you....do you have a file called jboss-deployment-structure.xml in your deployment? If not please read this article ...

https://community.jboss.org/blogs/marek-novotny/2011/07/29/seam-2-booking-example-on-jboss-as-7?_sscc=t

I don't know if you know this but JBOSS 7 handles ejb deployment according to the new portable JNDI syntax...basically you have to annotate every seam/ejb component with a @JndiName annotation on the component class. You will also need the jboss-deployment-structure.xml file. The article above describes both... if you get stuck somewhere ,pm me and I will give you my email address so we can collaborate.

I will keep you updated when I do the WildFly migration...I'm sure we will do the JEE6 migration too...although we have no timeline for that yet(and it's gonna be a whole lt of work!)
 
 
subject: Seam 2.3.1 - Outjection not working