[00:06:03] *** wolfc has quit IRC [00:14:36] <mojavelinux> meeting done, office hours open [00:15:42] <jdlee> w00t! [00:16:01] *** jharting has quit IRC [00:17:06] <jdlee> mojavelinux: did you see the git repo i sent ALR last night? [00:17:14] <mojavelinux> nope [00:17:19] <jdlee> ok [00:17:44] <jdlee> git://github.com/jasondlee/FrenchPress.git [00:17:56] <jdlee> research effort :) [00:18:59] <mojavelinux> cloning [00:20:40] <jdlee> it should all build now. :) alr and I had some issue last night. :P [00:24:30] <mojavelinux> k, getting it setup [00:24:40] <aslak> jdlee, don't use the Alpha4.SP1 v, Alpha4 is the latests [00:24:59] * jdlee looks :P [00:25:26] <jdlee> ok... i probably guess that SP1 meant some sort of patch [00:25:30] <aslak> jdlee, the SPx releases are 'internal' to the OSGi team, it lost the OSGi posfix in the releases [00:25:40] <jdlee> gotcha [00:26:23] <aslak> should have been, 1.0.0.Alpha4-OSGi.SP1 [00:27:14] <mojavelinux> yeah, I was wondering why it was downloading the internet again [00:27:21] <jdlee> hehe [00:27:24] *** jeand has quit IRC [00:30:15] <jdlee> mojavelinux: i did the best I could to follow the example in the interceptor/injector bug project you emailed me some time ago [00:31:00] <mojavelinux> okay, internet downloaded..checking tests [00:31:05] <jdlee> hehe [00:31:58] <mojavelinux> you don't need the jboss repo and the java.net repo [00:32:02] <mojavelinux> jboss repo is a superset [00:32:06] <mojavelinux> :) [00:32:07] <jdlee> shoot. stupid windows. i need to hop on VPN for one second [00:32:10] <mojavelinux> also includes glassfish repo [00:32:13] <jdlee> ok...noted [00:32:18] <jdlee> back in two shakes [00:32:23] <mojavelinux> though, now that I mention that, should be documented [00:34:55] *** jdlee has quit IRC [00:35:19] *** jdlee has joined #jbosstesting [00:35:19] *** jdlee has quit IRC [00:35:19] *** jdlee has joined #jbosstesting [00:35:34] <jdlee> that was fun :) [00:35:41] <mojavelinux> does anyone know where the list of repositories that make up the public list is defined?? [00:35:51] <mojavelinux> it would be pretty nice if we actually explained this somewhere [00:35:53] <mojavelinux> just saying [00:36:08] <mojavelinux> aha! [00:36:15] <mojavelinux> found it, just not linked in an obvious way [00:36:20] <mojavelinux> http://community.jboss.org/wiki/MavenRepository [00:36:29] <mojavelinux> Maven Central ( /central ) - http://repo1.maven.org/maven2/ [00:36:29] <mojavelinux> Google ( /google ) - http://google-maven-repository.googlecode.com/svn/repository/ [00:36:29] <mojavelinux> Glassfish ( /glassfish ) - http://download.java.net/maven/glassfish/ [00:36:29] <mojavelinux> java.net - Maven 2 ( /java.net-m2 ) - http://download.java.net/maven/2/ [00:36:29] <mojavelinux> java.net - Maven 1 ( /java.net-m1 ) - http://download.java.net/maven/1/ [00:36:29] <mojavelinux> Apache Incubator ( /apache-incubator ) - http://people.apache.org/repo/m2-incubating-repository/ [00:37:18] <jdlee> it's a pity we need something like that, though :| [00:37:36] <lightguard_jp> And the JBoss repo and the JBoss deprecated repo, right? [00:37:39] <lightguard_jp> mojavelinux: ^^ [00:38:16] <mojavelinux> boom, tweeted [00:38:41] <mojavelinux> so in fact, "our" repositories are actually community resources [00:38:43] <mojavelinux> ftw! [00:38:55] <mojavelinux> feel the love [00:40:34] <mojavelinux> jdlee: now that I have you on the line, I have a request that perhaps you could pass along [00:40:48] <jdlee> we've seen how well that's worked in the past ;) [00:40:50] <mojavelinux> is there anyway to get the embedded glassfish project to have a little bit better public information [00:40:56] <mojavelinux> it's about the most difficult thing to find info about [00:41:18] <mojavelinux> and that includes the maven run plugin [00:41:30] <mojavelinux> shoot, i'd be happy with just some more arun blogs [00:41:34] <jdlee> mojavelinux: i agree whole-heartedly. the former lead of embedded is on loan to the console team. i'll pass along your request to him. he should know to whom to send it [00:41:38] <jdlee> ~arun++ [00:41:51] <mojavelinux> because the one blog entry out there on the maven plugin [00:41:54] <mojavelinux> is completely wrong [00:42:10] <mojavelinux> but we really have found glassfish embedded a crucial part of arquillian advocacy [00:42:26] <mojavelinux> just struggling sometimes to find the information we need [00:42:35] * jdlee nods [00:42:46] <jdlee> that's one of the reasons i don't use it much [00:44:33] <mojavelinux> hahaha [00:52:21] <mojavelinux> jdlee: still diving in...on a new computer, so I'm still moving windows around :) [00:53:29] <mojavelinux> ah, of course [00:53:36] <mojavelinux> you have to name the war test.war [00:53:46] <mojavelinux> in 1.0.0.AlphaX [00:53:52] <mojavelinux> change is coming [00:53:57] <mojavelinux> but it hasn't arrived yet [00:54:04] <mojavelinux> we didnt' order express shipping [00:54:51] <mojavelinux> yeah, green bar! [00:54:52] <mojavelinux> hehehe [00:55:02] <mojavelinux> btw, you don't have to put your facelets files on the classpath [00:55:08] <mojavelinux> from the test you can use new File() [00:55:12] <mojavelinux> to reference project resources [00:55:20] <mojavelinux> like new File("src/main/webapp/...") [00:55:28] <mojavelinux> apparentely doesn't work in some embedded envs like idea [00:55:33] <mojavelinux> still tracking that down, but there are ways [00:56:21] <jdlee> ok... changed the name to test.war. fixed the arq version [00:56:41] <jdlee> how did I put my facelets files on the CP? [00:57:06] <mojavelinux> src/main/resources [00:57:10] <mojavelinux> oh, I see, those are templates [00:57:18] <mojavelinux> yeah, that was just a coincidence then [00:57:21] <jdlee> ok [00:58:03] <jdlee> WHOA [00:58:06] <jdlee> it ran! [00:58:28] <jdlee> the only problem will be, though, is that I had to do this: .addWebResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml")); [00:58:35] <jdlee> i have an actual beans.xml I need to use [00:58:47] <jdlee> .addWebResource("beans.xml") gets me.... [00:59:31] <jdlee> IllegalStateException: No org.jboss.shrinkwrap.api.Archive found in context [00:59:31] <mojavelinux> so first, you don't need ArchivePaths.create() because there is now support for doing that automatically [00:59:47] <mojavelinux> right, so this is another fix that's coming in the next arq version [00:59:52] <mojavelinux> but when you do addWebResource() [01:00:01] <mojavelinux> that's actually a multi-dimensional meaning [01:00:15] <mojavelinux> it means, take from the classpath at a resource called "beans.xml" and add it to WEB-INF [01:00:19] <mojavelinux> in the next version, it will be [01:00:30] <mojavelinux> addAsWebInfResource() [01:00:38] <mojavelinux> so, thinking like that, it would be [01:00:53] <mojavelinux> .addWebResource("META-INF/beans.xml", "beans.xml") [01:00:54] <mojavelinux> which says [01:01:08] <mojavelinux> add META-INF/beans.xml as a web resource named beans.xml [01:01:22] <mojavelinux> and in alpha4 , web resource is ill-named to mean WEB-INF [01:01:29] <mojavelinux> when in fact we know web resource to be the root of the war [01:01:37] <mojavelinux> so just do the translation in your mind for now :) [01:01:46] <jdlee> hrm...so how do I add my beans.xml to the Archive? [01:01:48] *** lightguard_jp has quit IRC [01:02:16] <mojavelinux> hehehe, sorry, that was probably too much detail [01:02:16] <jdlee> that code, iirc, is copied pretty much straight from your example :) [01:02:19] <mojavelinux> okay, where is your beans.xml? [01:02:28] <mojavelinux> that you want to use [01:02:48] <jdlee> src/main/webapp/WEB-INF/beans.xml [01:03:03] <mojavelinux> ah, right [01:03:07] <mojavelinux> okay, so you need to do [01:03:24] <mojavelinux> .addWebResource(new File("src/main/webapp/WEB-INF/beans.xml"), "beans.xml"); [01:03:40] <mojavelinux> unfortunately, in Eclipse, src/main/webapp is all but invisible [01:03:48] <jdlee> is a cleaner approach to that planned? :) [01:03:54] <jdlee> good thing I don't use eclpse. hehe [01:04:12] <mojavelinux> actually, same is true for any ide [01:04:17] <mojavelinux> it's a problem with project layout really [01:04:24] <mojavelinux> maven has the same problem [01:04:29] <mojavelinux> it just "hacks" around it using a plugin [01:04:33] <mojavelinux> I think what we need in arq [01:04:46] <mojavelinux> is a way to be able to reference the root of the launching project [01:05:06] <mojavelinux> there has to be some concept of where files are located inside a project [01:05:08] <mojavelinux> eclispe does this too [01:05:16] <mojavelinux> as does maven [01:05:22] <mojavelinux> that's why you can refer to paths in maven [01:05:29] <mojavelinux> like src/main/webapp/WEB-INF/web.xml [01:05:43] <mojavelinux> I think we need something like ProjectPath.create() [01:05:44] <mojavelinux> or something [01:05:48] <mojavelinux> instead of new File() [01:06:06] <mojavelinux> when you give shrinkwrap a string [01:06:10] <mojavelinux> it assumes it's a classpath resource [01:06:20] <mojavelinux> ProjectPaths.create() (for aslak's reference) [01:06:41] <mojavelinux> the other solution, btw [01:06:45] <mojavelinux> is to use a different beans.xml [01:06:56] <mojavelinux> or to define beans.xml inline in the test [01:07:04] <mojavelinux> as a string [01:07:15] <mojavelinux> it really depends on what your goals and requirements are [01:07:16] *** rruss has quit IRC [01:07:33] * jdlee nods [01:07:49] <jdlee> well, it looks like that got me going. woo. hoo. :) [01:08:32] <mojavelinux> excellent! now, we just need to get the arquillian glassfish REST remote container :) [01:08:46] <mojavelinux> hahaha, truthfully though, it will make the glassfish testing so much more powerful [01:08:55] * jdlee nods [01:09:01] <mojavelinux> because as you can tell, atm, the remote glassfish is limited to jsr-88 [01:09:06] <mojavelinux> and it has major limtations [01:09:15] <mojavelinux> so basically, you are stuck with embedded [01:09:23] <aslak> mojavelinux, ProjectPath being ? src/main/java ? src/test/java ? src? [01:09:24] <mojavelinux> the very best container type is the managed container type [01:09:29] <mojavelinux> yep [01:09:56] <mojavelinux> well, ProjectPaths being first and foremost the root [01:10:01] <mojavelinux> in an abstracted way [01:10:02] <jdlee> we're rolling an RC next week, so things will probably slow down. hopefully I can get an answer then, and hopefully the answer will be 'yes' :) [01:10:03] <aslak> so . ? [01:10:06] <mojavelinux> since new File() is not abstracted enough [01:10:22] <mojavelinux> because it breaks under certain invocation environments, so we can somehow get some abtraction there [01:10:28] <mojavelinux> then, it would be nice if we had some aliases for Maven [01:10:38] <mojavelinux> so you could say like webappResource or something [01:10:46] <mojavelinux> to pull a file out of src/main/webapp [01:10:56] <mojavelinux> I'm not thinking anything to fancy here, just to avoid having to type that [01:11:32] <jdlee> the less code the better :) [01:11:34] <aslak> hmm [01:12:32] <jdlee> alrighty, so it looks like a basic Arq+GF Embedded setup is working. now to write real tests with database access, etc. that's when I start in with the hard questions. maybe :) [01:13:25] <mojavelinux> to be honest, you have a lot of that going already [01:13:33] <mojavelinux> because you ahve the database setup correctly and persistence is loading [01:13:37] <mojavelinux> so this should be sailing at this point [01:14:05] <mojavelinux> if you are doing REST testing, you might be interested in my jaxrs showcase example [01:14:09] <jdlee> that's what I'm hoping for [01:14:17] <mojavelinux> uses resteasy, but same goes for jersey [01:14:21] <jdlee> no REST yet, but that'll be coming [01:16:57] <jdlee> updateing the GF embedded dep to 3.1-b37 gets NoClassDefFoundError: org/glassfish/api/embedded/Server$Builder [01:17:04] <jdlee> any thoughts off hand as to why? [01:18:26] <mojavelinux> yeah, we need some docs [01:18:27] <mojavelinux> :) [01:18:47] <aslak> jdlee, gf 3.1 is not supported yet, coming in next v [01:18:59] <jdlee> ah! that's a good explanation :P [01:19:07] <aslak> the whole embedded api is completely rewritten for 3.1 [01:19:12] <mojavelinux> yeah, the api likely changed, so we'll need an arquillian-glassfish-embedded-3_1 [01:19:18] <mojavelinux> not to mention it got rewritten [01:19:36] <mojavelinux> but we built in support for api changes [01:19:38] <aslak> i've got a working v. locally [01:19:40] <mojavelinux> with our server numbering [01:19:49] <mojavelinux> despite having to change the package names 3 times [01:19:52] <mojavelinux> we got there finally [01:19:59] <aslak> hehe [01:24:00] <mojavelinux> aslak how do you get ubuntu to stop changing /etc/hosts? [01:25:04] <aslak> good question.. [01:25:23] <aslak> i don't remember, i don't have the 127.0.1.1 at all in my hosts now [01:25:24] <jdlee> ok...have to go eat, then off to Cub Scouts [01:25:28] <jdlee> thanks for all the help [01:25:52] <jdlee> mojavelinux: btw, WRT GF embedded docs: Siraj_> If he can send an email asking what he is looking for, I can get that redirected, depending on what he wants. Otherwise, you may contact BhavaniShankar [01:26:06] <jdlee> you can email me and I'll forward if you want [01:26:11] * jdlee dashes off [01:26:37] <mojavelinux> k [01:26:56] <mojavelinux> http://ubuntuforums.org/showthread.php?t=1596603 [01:27:05] <mojavelinux> "Why is Ubuntu constantly rewriting my /etc/hosts file?" [01:27:06] <mojavelinux> hahaha [01:27:52] <mojavelinux> "You might try killing the avahi-daemon process. Or uninstalling it completely - I have never found anything useful it does, but have found that it sometimes does things I don't want. It makes every incoming connection take several seconds to complete, rendering the PC useless as a web server, for instance. Very microsoft-like." [01:31:11] <mojavelinux> the story behind the story "gee guys, networking on linux has worked amazing for decades, let's do something that breaks it so that we can make people appreciate what the /etc/hosts file does on a linux box" [01:33:51] <aslak> hehe [01:36:51] <mojavelinux> it doesn't get enough attention [02:04:08] *** michaelschuetz has quit IRC [02:19:00] <aslak> night [02:19:02] *** aslak has quit IRC [02:46:54] *** jganoff has joined #jbosstesting [03:02:20] *** johnament has joined #jbosstesting [03:10:07] *** johnament has quit IRC [03:11:25] *** johnament has joined #jbosstesting [03:32:43] *** dblevins has joined #jbosstesting [04:04:40] *** jganoff has quit IRC [04:13:00] *** johnament has quit IRC [05:25:54] *** ldimaggi_ has quit IRC [05:36:08] *** jc3 has quit IRC [05:41:43] *** jc3 has joined #jbosstesting [05:57:43] *** jc3 has quit IRC [05:58:46] *** bleathem_ has joined #jbosstesting [06:12:07] *** maeste has quit IRC [06:23:16] *** bleathem_ has quit IRC [06:27:25] *** maeste has joined #jbosstesting [07:13:41] *** rruss has joined #jbosstesting [07:22:49] *** kpiwko has joined #jbosstesting [07:32:41] *** ge0ffrey has joined #jbosstesting [08:20:04] *** lightguard_jp has joined #jbosstesting [08:32:54] *** theute has quit IRC [08:49:26] *** rruss has quit IRC [09:41:47] *** lightguard_jp has quit IRC [09:44:26] *** amitev has quit IRC [09:50:17] *** wolfc has joined #jbosstesting [09:51:31] *** jeand has joined #jbosstesting [10:00:43] *** lfryc has joined #jbosstesting [10:04:52] *** theute has joined #jbosstesting [10:15:01] *** jharting has joined #jbosstesting [10:39:52] *** maeste has quit IRC [10:50:14] *** michaelschuetz has joined #jbosstesting [10:52:31] *** kpiwko has quit IRC [10:52:58] *** maeste has joined #jbosstesting [11:13:38] *** aslak has joined #jbosstesting [11:29:17] *** aslak_ has joined #jbosstesting [11:29:25] *** aslak has quit IRC [11:31:49] *** aslak_ has quit IRC [11:32:27] *** aslak_ has joined #jbosstesting [11:41:15] *** mgoldmann has joined #jbosstesting [11:44:44] *** GTobi has joined #jbosstesting [12:38:51] *** al80 has joined #jbosstesting [12:40:25] <al80> @EJB doesn't work in arquillian testng. Is it possible? [12:47:26] <aslak_> al80, it depends on your EJB naming [12:47:32] *** aslak_ is now known as aslak [12:48:19] <aslak> al80, and about openejb in Alpha4, the containers were renamed, so it has a new artifact name; https://repository.jboss.org/nexus/content/groups/public/org/jboss/arquillian/container/arquillian-openejb-embedded-3.1/ [12:48:28] <al80> I just delcared @Stateless a class and tried to inject using #EJB [12:49:03] <al80> aslak: thanks, I am retrying with GF container now [12:51:40] <al80> Is the field name relevant? [12:54:20] <aslak> al80, no [12:55:56] <al80> aslak: which arquillian class is responsable for EJB injection? I could try to debug that class.... [12:58:45] <aslak> al80, EJBInjectionEnricher [12:58:49] <al80> aslak: found, the test enricher requires that ear and ejb jar are named as "test.ear" and "test.jar" [12:59:27] <aslak> aa yes [12:59:50] <al80> it could be a problem because I can't test multiple ejb jar in this way [13:03:37] <al80> nop, the strange thing is that arquillian doens't execute the tests if I annotate a field as @EJB. There should be some bug... [13:03:51] <al80> (alpha4) [13:16:21] <aslak> al80, you see no exceptions? [13:35:21] *** pmuir has joined #jbosstesting [13:35:21] *** pmuir has quit IRC [13:35:21] *** pmuir has joined #jbosstesting [14:12:15] *** ALR has joined #jbosstesting [14:29:46] *** jc3 has joined #jbosstesting [14:32:43] *** bgeorges has joined #jbosstesting [14:35:49] <al80> aslak: no any exception. Anyway the jndi name is still wrong: Glassfish deploy under "test/testejb/MyService" name, instead of "test/test/MyService". [14:36:28] <aslak> al80, your deploying in a ear? [14:36:35] <al80> Would be nice if Arquillian allow to customize jndi names pattern [14:36:46] <al80> aslak: yes [14:37:07] <aslak> al80, yea, we're suppose to get the names from the container itself. working on this [14:37:46] <aslak> al80, glassfish renames the ejb jar context to testejb because there is a war named test(arquillian servlet protocol) as well when you deploy [14:37:49] <al80> aslak: ok, anyway it's not a stopping error because I can get instance using JNDI [14:37:57] <aslak> yea [14:38:39] <aslak> the workaround is to either use jndi, or add a beans.xml to your deployment. then the CDI enricher takes over, and calls the BeanManager which has direct access to the server metadata [14:40:29] *** oskutka has quit IRC [14:41:45] <al80> aslak: in case of beans.xml, should I use @EJB or @Inject in my test class? [14:42:34] <aslak> same same [14:42:45] <aslak> both should work [14:50:00] <al80> it says "BeanManager cannot be located at java:comp/BeanManager. Either you are using an archive with no beans.xml, or the BeanManager has not been bound to that location in JNDI." [14:51:00] <al80> but this is the archive I packed: http://pastebin.com/xLxHvfua [15:01:22] *** theute has quit IRC [15:02:19] <aslak> al80, can you see Weld starting in the console output? [15:04:42] *** ldimaggi_ has joined #jbosstesting [15:05:22] *** ldimaggi_ is now known as ldimaggi_not_wfh [15:05:25] *** theute has joined #jbosstesting [15:08:46] <al80> aslak: I can see this: 14-gen-2011 14.44.20 org.jboss.weld.bootstrap.WeldBootstrap <clinit> INFO: WELD-000900 SNAPSHOT [15:13:18] *** rruss has joined #jbosstesting [16:04:45] <aslak> al80, hmm, you might get into the hierarchy beanmanagers, war can't see ejb's beanmanager since the war is not a bean archive. [16:05:10] *** timte has quit IRC [16:05:23] *** pmuir has quit IRC [16:05:46] *** timte has joined #jbosstesting [16:06:30] <aslak> al80, your stuck with manual lookup then [16:17:31] *** theute has quit IRC [16:33:37] *** pmuir has joined #jbosstesting [16:33:37] *** pmuir has quit IRC [16:33:37] *** pmuir has joined #jbosstesting [17:36:32] *** lightguard_jp has joined #jbosstesting [17:56:42] *** pmuir has quit IRC [18:08:55] *** ldimaggi_not_wfh is now known as ldimaggi_ [18:18:11] *** ge0ffrey has quit IRC [18:21:47] *** michaelschuetz has quit IRC [18:22:17] *** aslak has quit IRC [18:22:58] *** aslak has joined #jbosstesting [18:26:34] *** aslak has quit IRC [18:36:59] *** al80 has quit IRC [18:47:10] *** jharting has quit IRC [18:48:18] *** lfryc has quit IRC [18:49:53] *** GTobi has quit IRC [18:53:01] *** jdewinne has joined #jbosstesting [19:14:22] *** lightguard_jp has quit IRC [19:17:54] *** lightguard_jp has joined #jbosstesting [19:40:38] *** jdewinne has quit IRC [19:52:11] *** oskutka has joined #jbosstesting [19:52:26] *** aslak has joined #jbosstesting [19:52:27] *** aslak has quit IRC [19:52:27] *** aslak has joined #jbosstesting [19:53:40] *** oskutka has quit IRC [20:41:33] *** lightguard_jp has quit IRC [20:49:31] *** jpederse has joined #jbosstesting [20:49:44] *** jpederse has left #jbosstesting [20:59:55] *** lightguard_jp has joined #jbosstesting [21:20:41] <jdlee> here's a silly question that's only slightly related to the channel, but...meh :P what's the most common way of loading test data into a DB? I have arq setup to test my JPA-related service classes, but I'm not sure I'm prepping the Derby test DB correctly [21:26:14] <jdlee> hrm...perhaps I'm loading it correctly, but the EM isn't getting injected correctly. odd [21:26:24] * jdlee crawls back under his rock to poke around :| [21:31:26] <jdlee> wow. that's a LOT of deps for gf-remote. need to get rid of the jsr-88 nonsense :) [21:59:20] *** lightguard_jp has quit IRC [22:04:11] *** ldimaggi_ has quit IRC [22:06:40] *** aslak has quit IRC [22:07:15] *** aslak has joined #jbosstesting [22:08:18] <aslak> jdlee, rest support is underway isn't it ? :) [22:23:20] <jdlee> haha [22:23:27] <jdlee> umm... yes! :P [23:02:36] *** michaelschuetz has joined #jbosstesting [23:06:19] *** jharting has joined #jbosstesting [23:06:19] *** jharting has quit IRC [23:15:58] *** jeand has quit IRC [23:25:03] *** lightguard_jp has joined #jbosstesting [23:46:57] *** maeste has quit IRC [23:48:19] *** wolfc has quit IRC