[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-11-19 Thread youngm
Is "user" a spring bean? If you aren't using Spring then the ioc.jar won't help you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106127#4106127 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106127

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-11-19 Thread youngm
the jboss-seam-ioc.jar is included with the seam distribution and it should be placed in the classpath of your project. To make sure it works when running tests you need to be sure it is included in the runtime classpath of your test running tool. View the original post : http://www.jboss.com

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-11-19 Thread dheerajsega
I have been facing with the similar kind of error in testing as shown below. | javax.el.PropertyNotFoundException: ELResolver cannot handle a null base Object with identifier 'user' | at com.sun.el.lang.ELSupport.throwUnhandled(ELSupport.java:52) | at com.sun.el.parser.AstIdentifie

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-11-19 Thread dheerajsega
Can anyone tell me from where I should download the jboss-seam-ioc.jar file and place it View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106113#4106113 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106113

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-11-19 Thread dheerajsega
I am also facing the same error.Can anyone help to resolve the error obtained during testing. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106111#4106111 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106111 __

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-22 Thread youngm
updated the docs to include a note about the jboss-seam-ioc dependency. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097605#4097605 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097605 ___

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-22 Thread b.reeve
This issue is resolved. I didn't have jboss-seam-ioc.jar file in my classpath (not mentioned in the document). Here is the resolution. Seam-Spring integration :- Spring framework integration module of Seam requires the jboss-seam-ioc.jar file to be in the classpath. The Spring bean injection wo

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-18 Thread b.reeve
Sure, I will send over my project environment to you. Thanks... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096756#4096756 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096756 ___

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-18 Thread youngm
anonymous wrote : Yes it is. | I am getting all my components installed on running the test case. And the test case works for components testing also. Its just the Spring bean is not resolved. ELResolver throws the exception. Just asking because I get the exact same error as you if my WEB-INF

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-18 Thread b.reeve
Yes it is. I am getting all my components installed on running the test case. And the test case works for components testing also. Its just the Spring bean is not resolved. ELResolver throws the exception. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=40966

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-17 Thread youngm
Well, your testcase works for me.are you sure your /WEB-INF folder which holds your component.xml file is in your classpath when you run the test? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096290#4096290 Reply to the post : http://www.jboss.com/inde

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-17 Thread b.reeve
ok, so maybe that ELResolver is not resolving the Spring bean names. I was trying to test a user interaction scenario, trying to set the bean values and add it to the DB. But the injection is not working as the ELResolver cannot resolve the Spring bean identifiers. Totally stuck at this point. :

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-17 Thread youngm
the DelegatingVariableResolver isn't used in integration tests. The Spring integration is supposed to be loading automatically an ELResolver for use when not in a JSF request. Which is the situation for integration tests. View the original post : http://www.jboss.com/index.html?module=bb&op=

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-17 Thread b.reeve
Could it be possible that the DelegatingVariableResolver is not getting loaded? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096264#4096264 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096264 ___

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-17 Thread youngm
I have no ideas why it is not working because it should be working. As soon as I get some time I'll get your example running and see if I can duplicate the problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096237#4096237 Reply to the post : http://ww

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-17 Thread b.reeve
Could anyone please reply with some ideas as to why this exception is happening. The Spring beans are not resolved in integration testing when invoked through EL. I have the DelegatingVariableResolver in place. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-16 Thread b.reeve
I tried to see if the Spring Bean is resolved. | | package test.testNG; | | import org.jboss.seam.mock.SeamTest; | import org.testng.annotations.Test; | | public class InjectionTestNG extends SeamTest{ | | @Test | public void testInjection() throws Exception {

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-16 Thread b.reeve
Here it is | http://jboss.com/products/seam/components"; | xmlns:core="http://jboss.com/products/seam/core"; | xmlns:web="http://jboss.com/products/seam/web"; | xmlns:spring="http://jboss.com/products/seam/spring"; | xmlns:xsi="http://www.w

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-16 Thread youngm
Can you add your component.xml too? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095831#4095831 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095831 ___ jboss-user mailing

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-16 Thread b.reeve
These are the classes that I have Employee.java | package test.injection; | | import org.jboss.seam.ScopeType; | import org.jboss.seam.annotations.In; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.annotations.Scope; | | @Name("employeeBean") | @Scope(Scope

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-16 Thread youngm
Can you put together the simplest testcase you can where an expression is not being evaluated in an integration test so I can give it a try? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095823#4095823 Reply to the post : http://www.jboss.com/index.html?mod

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-16 Thread b.reeve
Frankly speaking I tried to upgrade to 2.0 CR1 and had to struggle with lots of issues. I couldn't even get a lrc working. So i reverted back to 1.2.1. And I have been facing issues with EL in 1.2.1 | 1. Not getting the #{conversationList} component. | 2. Not getting the #{localeSelector} com

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-16 Thread youngm
Can you try with 2.0 CR2? Or is upgrading out of the question at this point? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095819#4095819 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095819 _

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-16 Thread b.reeve
Seam 1.2.1 with Tomcat 6.0.10. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095818#4095818 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095818 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-16 Thread youngm
What version of seam are you using? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095803#4095803 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095803 ___ jboss-user mailing

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-16 Thread b.reeve
1. Yes my application works fine in a web container. 2. Yes, I removed the ContextLoaderListener from web.xml. 3. Yes, I have the @In (value="#searchService") specified in the searchBean. But no required=false. Is there any other configuration required? One more thing i found is this is not just

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-16 Thread youngm
A couple of things. anonymous wrote : When i try to do an integration testing, I get this exception So your app works just fine when running in a web container? anonymous wrote : I have added the SpringContextLoader in the components.xml file and my application context is getting loaded. Whe

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-10-16 Thread b.reeve
My Seam application has Spring beans injected into some of the components. When i try to do an integration testing, I get this exception | Error writing 'searchTerm' on type com.test.seam.ui.backing.SearchBean_$$_javassist_0 | at javax.el.BeanELResolver.setValue(BeanELResolver.java:112)

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-08-13 Thread EagleEye
"[EMAIL PROTECTED]" wrote : As I said that JNDI pattern is *wrong* for embedded ejb3. It should be | Super this is working right now! Sorry that i didn't get what u have meant, i changed the jndipattern in the ant build. Thx for your support! View the original post : http://www.jboss.com/i

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-08-13 Thread [EMAIL PROTECTED]
As I said that JNDI pattern is *wrong* for embedded ejb3. It should be Object test = JndiUtil.lookup("KomunikatyManagerBean/local", KomunikatyManagerBean.class); | | KomunikatyManager komunikatyManager = (KomunikatyManager) | getInstance(KomunikatyManagerBean.class); View the original po

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-08-13 Thread EagleEye
ok i see. But my Problem is that nothing is workin, even grabbin the component out of the JNDI. (nothing else the seam.core.Component is doing) What can be the problem? That I can't get anything of the seems to be loaded Components? | Object test = JndiUtil.lookup("mediportal/KomunikatyManag

[jboss-user] [JBoss Seam] - Re: Integration Testing with TestNG and embeddedEjb

2007-08-13 Thread [EMAIL PROTECTED]
Embedded JBoss exposes stuff at #{ejbName}/local not ear-name/#{ejbName}/local View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073533#4073533 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073533