[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-11-12 Thread bsmithjj
anonymous wrote : Well the error you posted is because your jndiPattern isn't getting set I think. That's what it looks like, but I've set the jndiPattern, even wrote code to query the JNDI tree and list all the bound objects - I'm using the right pattern and seam is not finding it (in my setu

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-11-05 Thread [EMAIL PROTECTED]
"bsmithjj" wrote : WEB-INF/components.xml? no - I'm trying to boot the embedded jboss ONLY from an ejb module that's part of a larger ear project. Well the error you posted is because your jndiPattern isn't getting set I think. Normally you set this in components.xml/components.properties anon

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-31 Thread bsmithjj
please start a new thread with this topic "I am having trouble simply getting the most basic test to work" Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100835#4100835 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=re

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-31 Thread neilac333
I have studied the forum, yet I am having trouble simply getting the most basic test to work--a single TestNG unit test extending SeamTest with a single method with Assert.assertTrue(true). That's it. No FacesContext simulation or anything remotely complex. I haven't seen anything in the docu

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-31 Thread bsmithjj
WEB-INF/components.xml? no - I'm trying to boot the embedded jboss ONLY from an ejb module that's part of a larger ear project. This all worked nicely in Seam 1.2.1. I say that because (as you probably know quite well by now ;-)) that I am immensely frustrated at things like disappearing. I

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-31 Thread [EMAIL PROTECTED]
You have WEB-INF/components.xml in your classpath? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100709#4100709 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100709 ___ jbos

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-31 Thread [EMAIL PROTECTED]
"bsmithjj" wrote : I don't believe wrong is the correct term to describe the situation, rather, from your (Seam team) perspective, you provide examples that are based on 'things' being in places in the Seam 2.0.0.CR(X) distribution. Thus, jars like "jboss-embedded-all.jar" are not truly all. I

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-30 Thread bsmithjj
hopefully this is the last question I have on the jboss embedded container. I'm currently having trouble on boot - it says here: | init(com.wachovia.evergreen.apps.infostrat.BootStrapTest) Time elapsed: 0 sec <<< FAILURE! | java.lang.RuntimeException: Could not create Component: commerci

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-30 Thread bsmithjj
It looks like when the local-jdbc connection pool manager is trying to connect to the DB, it's running into issues: | 13:43:18,374 DEBUG org.jboss.ejb3.entity.PersistenceUnitDeployment.(start:187) - Found persistence.xml file in EJB3 jar | 13:43:20,156 WARN org.jboss.resource.connectionm

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-30 Thread bsmithjj
I see that if hibernate-annotations 3.3.0 is in the classpath, I get the last error, now I am up to this: | *** CONTEXTS IN ERROR: Name -> Error | -> ** UNRESOLVED [EMAIL PROTECTED]:jar=classes,name=RatingsHelperBean,service=EJB3 depen | dsOn=null whenRequired=Described resolved=false d

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-30 Thread bsmithjj
I don't believe wrong is the correct term to describe the situation, rather, from your (Seam team) perspective, you provide examples that are based on 'things' being in places in the Seam 2.0.0.CR(X) distribution. Thus, jars like "jboss-embedded-all.jar" are not truly all. I say that because I

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-30 Thread bsmithjj
ok, now I have this to figure out: | On=null whenRequired=Described resolved=false demand=persistence.units:jar=classes.jar,unitName=InfoStratGui} ** | persistence.units:jar=classes.jar,unitName=InfoStratGui -> java.lang.NoSuchMethodError: org.hibernate.cfg.AnnotationConfiguration.getRefle

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-30 Thread [EMAIL PROTECTED]
What was wrong? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100359#4100359 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100359 ___ jboss-user mailing list jboss-user@list

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-30 Thread bsmithjj
Pete, I have this figured out now. No need to investigate any further. Thanks, Brad View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100350#4100350 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100350

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-30 Thread bsmithjj
| [DEBUG] Test Classpath : | [DEBUG] c:\work\BusinessIntelligence\InfoStratGui\app\target\classes | [DEBUG] c:\work\BusinessIntelligence\InfoStratGui\app\target\test-classes | [DEBUG] C:\Documents and Settings\a428302\.m2\repository\javax\faces\jsf-impl\1.2_04\jsf-impl-1.2_04.jar

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-30 Thread [EMAIL PROTECTED]
Can you post the complete classpath you are using for running tests? I've seen something like this before. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100294#4100294 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=410

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-30 Thread bsmithjj
Pete, Do you know what's up with vfsfile as a protocol in JBoss Embedded? | ERROR [org.jboss.embedded.DeploymentScanner] Failed to deploy | org.jboss.deployers.spi.DeploymentException: Unable to find deployDir from url: file:/c:/work/BusinessIntelligence/InfoStratGui/app/target/test-clas

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-30 Thread bsmithjj
"[EMAIL PROTECTED]" wrote : In Seam 1.2 and earlier we used Embedded EJB3, now we use Embedded JBoss, two different projects.anonymous wrote : | | | | Clearly! | | | | anonymous wrote : | | | These are the instructions that I wrote for using the Eclipse TestNG plugin w

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-30 Thread [EMAIL PROTECTED]
In Seam 1.2 and earlier we used Embedded EJB3, now we use Embedded JBoss, two different projects. These are the instructions that I wrote for using the Eclipse TestNG plugin which you may find useful: anonymous wrote : If you want to run tests using the Eclipse TestNG plugin, you'll need to ad

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-29 Thread bsmithjj
so it looks like all that I learned about using JBoss embedded in Seam 1.2.1 and earlier is null and void. I see that I need to now figure out a project configuration that will copy the bootstrap directory stuff into target/test-classes and figure out all the stuff like this: | init(com.jav

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-29 Thread bsmithjj
It looks like you actually need more than the libs in the ${JBOSS_SEAM_HOME}/lib/test/ directory. So far, I've had to add these dependencies as well: | | org.jboss.seam | jboss-embedded-api | 2.0.0.CR3 | test | | | | org.jboss.se

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-29 Thread [EMAIL PROTECTED]
Well, that, or you need to look at SeamTest and replicate the functionality of the @BeforeClass etc. annotations in JUnit View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100027#4100027 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&m

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-29 Thread [EMAIL PROTECTED]
"bsmithjj" wrote : oh yes, one rant - if a specific version of testng is required, then what happened to the days when frameworks listed out their depedencies including versions? Has listing depedencies gone the way of documentation? ;-) No, we now have a dependencies chapter which discusses c

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-29 Thread bsmithjj
this link is even better - pay close attention to the maven-surefire-plugin version http://www.martingilday.org/blog/2007/sep/12/testng-and-maven/ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=409#409 Reply to the post : http://www.jboss.com/index.h

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-29 Thread bsmithjj
The testng docs provide some assistance with getting Maven2 and Testng 5.X to work http://testng.org/doc/maven.html#maven2... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=402#402 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posti

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-29 Thread bsmithjj
it looks like the version of testng supplied with Seam 2.0.0.CR3 is 5.6-200706070953 (from MANIFEST.MF file). The maven2 surefire plugin docs are based on testng 4.7 (which I was using - see previous post in thread). So has anyone out there found a way to get maven2-surefire to work with testng

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-29 Thread bsmithjj
oh yes, one rant - if a specific version of testng is required, then what happened to the days when frameworks listed out their depedencies including versions? Has listing depedencies gone the way of documentation? ;-) from an old version of hibernate: | ant.jar (1.5.3) | - Ant core | -

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-29 Thread bsmithjj
is this dependency no longer sufficient? | | org.testng | testng | 4.7 | test | jdk15 | | here is the test I am working with at the moment: | public class BootStrapTest extends SeamTest { | | @Test | public void test_per

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-29 Thread IGx89
When run from Eclipse I was using JUnit4 and they weren't being called; is TestNG a requirement? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099939#4099939 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099939 _

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-29 Thread [EMAIL PROTECTED]
It most certainly does. Both init and begin are called by TestNG using @BeforeClass and @BeforeMethod - for some reason TestNG isn't calling these methods. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099936#4099936 Reply to the post : http://www.jboss.co

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-29 Thread bsmithjj
Strange how ComponentTest doesn't come with support for init()'ing the container environment. I see by adding init() (and begin()) that I can get farther, now Seam doesn't know how to create my component. Guess it's time to try FacesRequest again ... sigh Thanks View the original post :

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-29 Thread IGx89
When I was getting that exception, adding init() and begin() to the top of the method solved it. However I'm still having issues with runnings tests using Maven (work fine when run from Eclipse) -- I haven't heard of anyone successfully running Seam2 tests from Maven yet. View the original post

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-28 Thread bsmithjj
anonymous wrote : we need JBoss Tools to be able to work with a maven structure first. JBoss Tools? Try IDEA 7.0 - works seamlessly with Maven 2 poms ;-) - no need to wait. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099686#4099686 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-28 Thread [EMAIL PROTECTED]
No, no enumerated list :( But, if you are using maven, try, for your test environment only, depending on org.jboss.embedded jboss-embedded, org.jboss.seam jboss-seam and that *should* be enough to run just JPA + EJB3. But take a look at the jboss-seam pom to see what dependencies Seam itself ha

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-28 Thread bsmithjj
Pete, Yes - the whole test. I'm mainly trying to recover the ability to bootstrap the JBoss embeddable from maven 2 in the test phase. Figuring that out the first time was horrible (more than a year ago). Is there an enumerated list of dependencies for writing Seam tests that use JPA + EJB3?

[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?

2007-10-28 Thread [EMAIL PROTECTED]
Brad, I dropped your class above into Seam's integration test suite and it passed with no exceptions thrown (this is head, but nothing much has changed since CR3). So, is that the whole test? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099683#4099683 Rep