-
1. Re: NameNotFoundException in simple seam proof of concept
jamesjoh Jun 21, 2007 12:50 PM (in response to jamesjoh)Sorry, forgot to mention, IPocAction is also defined correctly as a @Local interface w/ the add method on it.
-
2. Re: NameNotFoundException in simple seam proof of concept
pmuir Jun 21, 2007 12:50 PM (in response to jamesjoh)Seam 1.1.0 is very old now. You should use 1.2.1.GA or perhaps even start with the 1.3 series. If you are using 1.2.1.GA I would suggest you use JBoss 4.0.5.GA, and AS 4.2.0.GA with Seam 1.3.
-
3. Re: NameNotFoundException in simple seam proof of concept
jamesjoh Jun 21, 2007 12:53 PM (in response to jamesjoh)Well the whole point of the exercise is to get Seam working w/ JBoss 4.2.0 as the powers that be want to upgrade so we can get out of the whole EJB3 vs non EJB3 instances of JBoss we have running. So, 4.0.5 isn't an option right now. I am willing to try upgrading Seam if that's what the problem is but I wanted to see if there was something obvious (or not so obvious) I could be missing before I went down that route.
-
4. Re: NameNotFoundException in simple seam proof of concept
pmuir Jun 21, 2007 12:56 PM (in response to jamesjoh)Well, you might get some help with people getting Seam 1.2.1.GA to run on AS 4.2.0.GA - people have been doing that here (with variable success).
-
5. Re: NameNotFoundException in simple seam proof of concept
jamesjoh Jun 21, 2007 2:52 PM (in response to jamesjoh)I tried upgrading to both 1.2.1 and well as 1.3.0 ALPHA and the same problem is still occurring. I can't help but feel this is some sort of configuration issue I am screwing up but I can't for the life of me figure out what the configuration issue is.
My jndi-pattern is set to "#{ejbName}/local" in components.xml. An interesting note is if I change the jndi-pattern to something like "test/#{ejbName}/local" my bottom exception changes from "PocAction not bound" to "test not bound". I don't if this indicates something is wrong w/ my jndi lookup or if this is just a byproduct of whatever the real problem is and the jndi-pattern is irrelevant. -
6. Re: NameNotFoundException in simple seam proof of concept
jamesjoh Jun 21, 2007 5:25 PM (in response to jamesjoh)Hopefully to save someone a lot of pain someday in the future:
My components xml was incorrect for my jndi pattern after all. I didn't have the right prefix on it. I thought just "#{ejbName}/local" would work but I needed a very specific string in front of that pattern for the lookups to succeed. -
7. Re: NameNotFoundException in simple seam proof of concept
tony.herstell1 Jun 21, 2007 9:57 PM (in response to jamesjoh)Please can you be more explicit.
I have had a similar problem for weeks now (as have others as per the icefaces forums).
This might lead us to an answer. -
8. Re: NameNotFoundException in simple seam proof of concept
jamesjoh Jun 22, 2007 12:22 PM (in response to jamesjoh)Well for my particular app I needed a jndi-pattern of "SeamPocWebApp/#{ejbName}/local"
The SeamPocWebApp part was discovered from the JMX console, though I'm not sure where in the JMX console to find that info. Someone with more jboss experience than I lead me to the fix.
The SeamPocWebApp part is definitely app specific. The only thing I can find in my configuration that matches is is the <display-name> in my application.xml. So I can't tell you with 100% certainty if that's where the match comes from but that appears to be the case.
Hope this helps, please let me know. -
9. Re: NameNotFoundException in simple seam proof of concept
gavin.king Jun 22, 2007 12:37 PM (in response to jamesjoh)Its the name of the EAR that your application is packaged in. This is in the docs.
-
10. Re: NameNotFoundException in simple seam proof of concept
jamesjoh Jun 22, 2007 12:55 PM (in response to jamesjoh)http://docs.jboss.com/seam/1.2.1.GA/reference/en/html/configuration.html
About 1/4 of the way down under the heading:
21.1.4. Integrating Seam with your EJB container
Thanks Gavin. I don't know why I couldn't find that in the docs but most probably because I didn't know at the time that that's what I was looking for. That clears up the rest of my confusion. The Seam examples I was looking at were written for using the embeddable EJB container which is why I thought "#{ejbName}/local" would work for me.