[02:55:40] *** ldimaggi has joined #jbosstesting [04:34:47] *** stuartdouglas has quit IRC [04:35:51] *** stuartdouglas has joined #jbosstesting [04:46:14] *** ldimaggi has quit IRC [10:08:51] *** lfryc has joined #jbosstesting [10:54:26] *** aslak has joined #jbosstesting [10:54:41] *** aslak has quit IRC [12:07:03] *** rbattenfeld1 has joined #jbosstesting [12:07:17] *** rbattenfeld1 has left #jbosstesting [13:07:57] *** mhuniewicz has joined #jbosstesting [13:41:36] *** mhuniewicz has quit IRC [14:05:42] *** ge0ffrey has joined #jbosstesting [14:13:34] *** kpiwko has joined #jbosstesting [16:47:44] *** mhuniewicz has joined #jbosstesting [18:06:29] *** mhuniewicz has quit IRC [18:07:02] *** mhuniewicz has joined #jbosstesting [18:26:12] *** mhuniewicz has quit IRC [18:46:53] *** mhuniewicz has joined #jbosstesting [18:47:11] <mhuniewicz> kpiwko, do you know anything about testing with Arquillian and JBoss 7? [18:47:48] <kpiwko> mhuniewicz: not much but shoot your question, maybe I can help you [18:48:44] <mhuniewicz> kpiwko, I wrote my test case, I had to explicitly give it every class it uses in the @Deployment method. But now it fails to @Inject a simple class for one reason - it uses SLF4J. [18:48:54] <mhuniewicz> Which is not a part of my application, obviously, it's just a dependency. [18:49:19] <mhuniewicz> And it fails like that for every class that uses a 3rd party lib. [18:50:47] <kpiwko> mhuniewicz: I'd say you should bundle slf4j api/impl lib within your testing archive [18:51:04] <mhuniewicz> kpiwko, sure - but how? [18:51:39] <kpiwko> mhuniewicz: use ShrinkWrap Resolver [18:51:59] <kpiwko> mhuniewicz: give me a sec [18:52:05] <mhuniewicz> kpiwko, sure, thanks. [18:54:13] <kpiwko> mhuniewicz: something like http://pastebin.com/m0h0Qypr [18:54:18] <kpiwko> (sorry for the formatting) [18:58:57] <mhuniewicz> kpiwko, it might be working. Checking it now... But that's quite a hack, isn't it? [19:00:58] <kpiwko> mhuniewicz: why do you have that feeling? If you deploy an archive to server to test it, it can't have the same classpath as your project [19:01:25] <mhuniewicz> kpiwko, why is that? [19:02:06] <kpiwko> mhuniewicz: isolation [19:02:39] <kpiwko> mhuniewicz: you add that library to the war you deploy on server as well, right? [19:02:49] <mhuniewicz> kpiwko, yes. [19:03:01] <kpiwko> mhuniewicz: so to test properly, you have to do the same for testing archive [19:03:21] <mhuniewicz> kpiwko, still, I have to hard code versions. [19:03:30] <kpiwko> mhuniewicz: ahh, so that's to concert [19:03:41] <kpiwko> mhuniewicz: you can load the pom file to get the version from there [19:03:51] <kpiwko> check the API [19:04:14] <kpiwko> or you can load all test scoped deps, if you want [19:04:31] <mhuniewicz> I like that. How do I do that? [19:05:54] <kpiwko> mhuniewicz: .use(MavenDependencyResolver.class).includeDependenciesFromPom("pom.xml").resolveAsFiles(new ScopeFilter("test")) [19:06:12] <kpiwko> if you liked the latter [19:07:47] <mhuniewicz> kpiwko, yes, thanks, that's a lot better. [19:07:48] <mhuniewicz> :) [19:07:53] <kpiwko> :) [19:08:40] <mhuniewicz> Ah yes. [19:08:49] <mhuniewicz> kpiwko, now I'm getting this: Caused by: java.lang.Exception: {"Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"MacOsLibraryWithServiceIT.war#testPu\" missing [ jboss.data-source.java:/ ]"]} [19:09:24] <mhuniewicz> I do have a persistence.xml file. [19:10:03] <kpiwko> mhuniewicz: I'd say you have included some artifact that is provided by server already [19:10:09] <mhuniewicz> http://pastebin.com/wVb0wEfi [19:11:28] <kpiwko> mhuniewicz: try to check test archive content to have same libs as archive you're deploying to as [19:12:11] <mhuniewicz> kpwiko, where is that? [19:12:38] <kpiwko> mhuniewicz: you can do that by setting <engine> [19:12:38] <kpiwko> <property name="deploymentExportPath">target/</property> [19:12:38] <kpiwko> </engine> [19:12:53] <kpiwko> mhuniewicz: then you can check deployed archive in target subdirectory [19:15:24] <mhuniewicz> kpiwko, http://pastebin.com/mLtufLku [19:16:07] <kpiwko> mhuniewicz: hmm, you're deploying even the container stuff [19:16:13] <mhuniewicz> Yeah... [19:16:21] <mhuniewicz> It's test scoped. [19:17:08] <kpiwko> mhuniewicz: try rather to use .loadMetadatafrom(pom) and then specify only artifact you really need [19:17:23] <kpiwko> mhuniewicz: you can omit versions after this method is called [19:18:13] <mhuniewicz> kpiwko, do you mean loadDependenciesFromPom? [19:18:20] <kpiwko> mhuniewicz: yes [19:23:13] <mhuniewicz> kpiwko, my versions are in the parent pom and it doesn't seem to be able to resolve them from there. [19:24:15] <kpiwko> mhuniewicz: you should have parent pom either in local repo or set relativePath in the child [19:24:28] <kpiwko> mhuniewicz: then it should have to way to reach the parent [19:24:32] <mhuniewicz> kpiwko, it is there. [19:25:11] <mhuniewicz> Oh no, [19:25:13] <mhuniewicz> relative path isn't. [19:26:17] *** ge0ffrey has quit IRC [19:26:27] <mhuniewicz> I put <relativePath>../pom.xml</relativePath> there. [19:26:29] <mhuniewicz> Not helping. [19:26:37] <mhuniewicz> kpiwko, is it because it is in dependencyManagement? [19:26:56] <kpiwko> mhuniewicz: it might be so [19:27:49] <kpiwko> mhuniewicz: can you file a bug for resolver component here https://issues.jboss.org/browse/SHRINKWRAP ? [19:28:50] <mhuniewicz> kpiwko, yeah. [19:28:59] <kpiwko> mhuniewicz: thanks! [19:29:05] <mhuniewicz> kpiwko, still, I get a lot of deps in WEB-INF/lib. [19:29:25] <kpiwko> mhuniewicz: it is including transitive deps by default [19:29:58] <kpiwko> you can use StrictFilter() and CombinedFilter and make StrictFilter one of its part [19:30:28] <kpiwko> or artifacts("A:B", "C:D", "E:F").exclusion("*") should work as well [19:30:28] <mhuniewicz> kpiwko, can I clean up the WAR myself and deploy it [19:30:38] <mhuniewicz> and if it works I know what to get rid of [19:30:40] <mhuniewicz> ? [19:30:47] <kpiwko> sure thing [19:32:34] <mhuniewicz> kpiwko, where do I deploy with JBoss 7? :) [19:32:41] <kpiwko> mhuniewicz: :) [19:32:48] <mhuniewicz> Everything's changed! [19:32:53] <mhuniewicz> OK got it. [19:33:12] <kpiwko> mhuniewicz: standalone/deployemnts for standalone [19:33:51] <mhuniewicz> Removed everything that starts with jboss and hibernate, same thing. [19:34:02] <mhuniewicz> kpiwko, should Arquillian be removed too? [19:35:03] <kpiwko> mhuniewicz: if that's arquillian related, it would through a different exception [19:35:58] <kpiwko> mhuniewicz: rather try to match you war to be the same as you app [19:38:31] <mhuniewicz> kpiwko, I never built a WAR file for this app. It's not a webapp yet. It only has business logic. [19:38:59] <kpiwko> mhuniewicz: hmm, I'm not an AS7 expert [19:39:32] <kpiwko> mhuniewicz: maybe something in MANIFEST.MF is missing to get the correct module activate [19:39:41] <kpiwko> mhuniewicz: sorry, I can't help you much here [19:39:53] <mhuniewicz> kpiwko, you helped me a lot already, thanks for that. [19:48:52] <kpiwko> mhuniewicz: you're welcome [21:43:29] *** lfryc has quit IRC [21:43:36] *** kpiwko has quit IRC [22:51:13] *** adriancole has quit IRC [23:42:27] *** mhuniewicz has quit IRC [23:43:01] *** mhuniewicz has joined #jbosstesting [23:43:43] *** mhuniewicz has quit IRC [23:44:02] *** johnament has joined #jbosstesting