-
1. Re: Does JSFUnit 2.x support EARs?
ssilvert Mar 1, 2011 1:46 PM (in response to denis_k)Hi Denis,
I think it was I who did something wrong. I'll have to fix the JSFUnitApplicationArchiveProcessor so that it works with EARs as well.
In the mean time, you can hack the jsfunit-arquillian.jar and remove the META-INF/services/org.jboss.arquillian.spi.ApplicationiArchiveProcessor file. Then add the org.jboss.jsfunit.cdi classes to your WEB-INF/classes manually.
Thanks for reporting this.
Stan
-
2. Re: Does JSFUnit 2.x support EARs?
ssilvert Mar 1, 2011 3:58 PM (in response to ssilvert)BTW, I tried to fix this but it's a little harder than I first suspected. The workaround I suggested probably won't work becaue the JSFUnitArchiveAppender is going to add jars to the root of the EAR instead of WEB-INF/lib in the WAR. It might be quite awhile before I have the time to provide a fix.
Stan
-
3. Re: Does JSFUnit 2.x support EARs?
denis_k Mar 2, 2011 5:30 AM (in response to ssilvert)Thank you for your investigation, Stan.
Is it possible to construct WAR that would be as functional, as EAR in ShrinkWrap? Will it be possible to use EJBs and PersistentContext and stuff like that? Theoretically, nothing prevents one from doing this.
-
4. Re: Does JSFUnit 2.x support EARs?
ssilvert Mar 2, 2011 7:47 AM (in response to denis_k)Yes, you can do that in JEE6. You can put EJBs in your WAR. So if you are running on a JEE6 container you are good to go. I'm not sure if it works in JBoss AS6 but I think it does. I know it's not working yet in AS7.
Stan
-
5. Does JSFUnit 2.x support EARs?
denis_k Mar 2, 2011 8:14 AM (in response to ssilvert)Ok, I will try this and post my results in a separate discussion here. I think it will be useful for people to know if there are any pitfalls in turning EAR into WAR.
BTW, I have tried to hack jsfunit-arquillian jar, and I succeeded. The problem is, as you have mentioned, that it's impossible to add required org.jboss.jsfunit.cdi to the WAR file that settles inside EAR. What I did was copying files from org.jboss.jsfunit.cdi directly to the project, and it did the trick. Of course, this is not an option even for development environment. I have to study ShrinkWrap's sources more closely to detect the way of dealing with WAR file inside EAR file.
Thank you for your elaboration.
Denis
-
6. Does JSFUnit 2.x support EARs?
ssilvert Mar 2, 2011 8:17 AM (in response to denis_k)Great. Let me know if you come up with a patch.
Stan