Monday, 2015-11-02

*** bgeorge__ <bgeorge__!~bgeorges@116.109.206.112> has quit IRC (Quit: Leaving...)00:20
*** clerum <clerum!~clerum@208.75.143.110> has quit IRC (Ping timeout: 244 seconds)01:04
*** jcrossley3-away <jcrossley3-away!~user@71-90-202-1.dhcp.stls.mo.charter.com> has quit IRC (Remote host closed the connection)02:53
*** jcrossley3-away <jcrossley3-away!~user@71-90-202-1.dhcp.stls.mo.charter.com> has joined #wildfly-swarm02:53
*** jerr <jerr!~jerr@modemcable227.115-83-70.mc.videotron.ca> has quit IRC (Ping timeout: 240 seconds)02:56
*** htmldrum <htmldrum!~htmldrum@202.148.225.114> has quit IRC (Ping timeout: 256 seconds)03:47
*** htmldrum <htmldrum!~htmldrum@202.148.225.114> has joined #wildfly-swarm04:38
*** htmldrum <htmldrum!~htmldrum@202.148.225.114> has quit IRC (Ping timeout: 246 seconds)07:12
*** htmldrum <htmldrum!~htmldrum@202.148.225.114> has joined #wildfly-swarm07:13
*** htmldrum <htmldrum!~htmldrum@202.148.225.114> has quit IRC (Ping timeout: 252 seconds)07:21
*** jcrossle_ <jcrossle_!~user@71-90-202-1.dhcp.stls.mo.charter.com> has joined #wildfly-swarm07:35
*** jcrossley3-away <jcrossley3-away!~user@71-90-202-1.dhcp.stls.mo.charter.com> has quit IRC (Ping timeout: 250 seconds)07:39
*** htmldrum <htmldrum!~htmldrum@27-32-55-119.static.tpgi.com.au> has joined #wildfly-swarm08:28
*** jcrossle_ is now known as jcrossley3-away09:36
*** htmldrum <htmldrum!~htmldrum@27-32-55-119.static.tpgi.com.au> has quit IRC (Ping timeout: 265 seconds)09:42
*** htmldrum <htmldrum!~htmldrum@27-32-55-119.static.tpgi.com.au> has joined #wildfly-swarm10:37
*** htmldrum <htmldrum!~htmldrum@27-32-55-119.static.tpgi.com.au> has quit IRC (Ping timeout: 240 seconds)10:43
*** htmldrum <htmldrum!~htmldrum@27-32-55-119.static.tpgi.com.au> has joined #wildfly-swarm11:14
*** bbrowning <bbrowning!~bbrowning@redhat/jboss/bbrowning> has joined #wildfly-swarm12:53
*** htmldrum <htmldrum!~htmldrum@27-32-55-119.static.tpgi.com.au> has quit IRC (Ping timeout: 250 seconds)13:35
*** tcrawley-away is now known as tcrawley13:45
*** projectodd-ci <projectodd-ci!~PircBotx@ec2-54-160-46-106.compute-1.amazonaws.com> has joined #wildfly-swarm13:55
*** tcrawley is now known as tcrawley-away14:01
*** tcrawley-away is now known as tcrawley14:03
*** jcrossley3-away is now known as jcrossley314:04
*** projectodd-ci <projectodd-ci!~PircBotx@ec2-54-160-46-106.compute-1.amazonaws.com> has quit IRC (Remote host closed the connection)14:08
*** projectodd-ci <projectodd-ci!~PircBotx@ec2-54-160-46-106.compute-1.amazonaws.com> has joined #wildfly-swarm14:10
*** bobmcw <bobmcw!~bobmcw@redhat/jboss/bobmcw> has joined #wildfly-swarm14:14
*** ChanServ sets mode: +o bobmcw14:14
lanceballbobmcw: have a sec?14:42
bobmcwsure14:42
lanceballso, in my preso, I'm showing how easy it is to convert this to swarm https://github.com/javaee-samples/javaee7-simple-sample14:43
lanceballbut it's not happening :)14:43
bbrowninglanceball: not happening as in just too complicated? or not working?14:43
lanceballhttps://gist.github.com/lance/2b145ab0e235356fcfd014:43
lanceballno -swarm.war is produced14:43
bobmcwyou're lacking the execution14:44
bobmcwhttps://github.com/javaee-samples/javaee7-simple-sample/blob/master/pom.xml#L95-L10414:44
bobmcwneed a <goal>package</goal> in there14:44
bobmcwk14:45
bobmcwlanceball:14:45
lanceballbobmcw: https://gist.github.com/lance/2b145ab0e235356fcfd014:45
bbrowninglanceball: I think the issue may be you added your swarm plugin in the <pluginManagement> section14:46
lanceballahh14:46
lanceballsec14:46
bbrowninginstead of directly as a plugin as you'll see a bit further down14:46
bobmcwI have trouble with source + diff14:46
bobmcwjust commit/push!14:46
lanceballbobmcw: was just showing that I had that in there already14:47
lanceballbbrowning: you are the winner!14:47
lanceballty!14:47
bbrowningyay!14:47
bobmcwgood job bbrowning!14:49
bbrowningI'm a bit depressed at how much I've learned about maven these days14:49
*** enebo <enebo!~enebo@c-75-73-8-169.hsd1.mn.comcast.net> has joined #wildfly-swarm14:51
lanceballheh14:51
bobmcwugh, forge roaster isnt jdk8-happy14:51
bobmcwcan't generate default methods on interfaces14:52
lanceballpoo14:56
bobmcwasking gastaldi in #forge15:06
*** clerum <clerum!~clerum@208.75.143.110> has joined #wildfly-swarm15:11
*** jclingan <jclingan!~jclingan@cpe-198-72-153-11.socal.res.rr.com> has joined #wildfly-swarm15:11
*** jclingan <jclingan!~jclingan@cpe-198-72-153-11.socal.res.rr.com> has quit IRC (Read error: Connection reset by peer)15:14
*** enebo <enebo!~enebo@c-75-73-8-169.hsd1.mn.comcast.net> has quit IRC (Quit: enebo)15:14
*** jclingan <jclingan!~jclingan@cpe-198-72-153-11.socal.res.rr.com> has joined #wildfly-swarm15:24
lanceballbobmcw: what's preventing us from allowing a main() in a war app16:10
bobmcwwe just need to adjust our classloadering to find the main() within the .war within the -swarm16:16
bobmcwno big deal, but just haven't done it16:17
*** jclingan <jclingan!~jclingan@cpe-198-72-153-11.socal.res.rr.com> has quit IRC (Read error: Connection reset by peer)16:22
*** jclingan <jclingan!~jclingan@cpe-198-72-153-11.socal.res.rr.com> has joined #wildfly-swarm16:23
lanceballbobmcw: ok, so if I'm using main() and I want to create a ShrinkWrap WARArchive and deploy it, but first I want to add an asset to it, what classloader do I use?16:25
lanceballE.g.  war.addAsResource(new ClassLoaderAsset("index.html", Main.class.getClass().getClassLoader()), "index.html");16:25
lanceballMain.class.getClass().getClassLoader() is null16:25
bobmcwthat's what I'd do, and cl==null means you're getting the system classloader16:26
bobmcwwhen you java -jar, it'll be non-null16:26
bobmcwClassLoaderAsset should be smart enough to handle null16:26
bobmcwI think16:26
lanceballhmm16:26
lanceballone sec16:26
lanceballbig stack16:27
bobmcwhttps://github.com/wildfly-swarm/wildfly-swarm-examples/blob/master/jpa-jaxrs-cdi-shrinkwrap/src/main/java/org/wildfly/swarm/examples/jpa/Main.java#L4116:28
bobmcwif it doesn't work, then we have some failing examples16:28
bobmcwlanceball: so, we stick child resources on this.resources attribtue in config-api16:31
bobmcwbut singletones right on the root16:31
bobmcwany reason we don't also put them on this.resources?16:31
lanceballnot really16:31
bobmcwwell, this.subresources16:31
bobmcw'k16:31
jbossbotgit [wildfly-swarm] push master a98f9a2.. Lance Ball Tweak ribbon-webapp so that it runs under a /ribbon context....17:31
jbossbotgit [wildfly-swarm] push master URL: http://github.com/wildfly-swarm/wildfly-swarm/commit/a98f9a26017:31
projectodd-ciStarting build #280 for job wildfly-swarm (previous build: SUCCESS)17:31
lanceballbobmcw: https://github.com/wildfly-swarm/booker/commit/44d46aacf82196183307d645f7ffe7f7dfb31bfe18:35
jbossbotgit [booker] 44d46aa.. Lance Ball Convert webapp component of the application to use ribbon-webapp.18:35
lanceballribbon-webapp usage18:35
lanceballin booker18:35
bobmcwworks?18:35
lanceballyep18:35
bobmcwyay lanceball!18:35
lanceballdepends on Alpha6-SNAPSHOT though18:35
lanceballbobmcw: I need to do a little documentation18:36
lanceballnow booker/web-client has to be started with java -jar18:36
lanceballand the ribbon-webapp runs under a '/ribbon' context18:36
lanceballwhich we should probably make configurable18:36
lanceballbobmcw: this, btw, took me a while to find, but simplified a LOT  https://github.com/wildfly-swarm/booker/blob/master/web-client/src/main/java/org/wildfly/swarm/booker/Main.java#L1518:38
lanceballthat, plus addAllDependencies below it makes everything "just work"18:38
bobmcwso, staticContent() shouldn't actually be required, fwiw18:39
bobmcwbut we've had continual issues with static content18:39
bobmcwso whatever works, works.18:39
lanceballhuh18:39
bobmcwit should serve anything from the root of a .war as static content anyhoo, if I recall18:40
bobmcwso I've tried moving some things to .subresources, but somehow even though I addField(), the non-singleton ones stopped adding their fields to it18:42
bobmcwsubresourceClass.getFields() shows them18:42
bobmcwbut in the generated output, nothing18:42
bobmcwI sorta hate roaster18:43
lanceballboo18:46
lanceballbobmcw: if I remove war.staticContent() I get FORBIDDEN18:47
bobmcwhrm.18:47
lanceballfwiw18:47
bobmcwoh well18:47
bobmcwmaybe in the root of WEB-INF18:47
bobmcwtry adding it there18:47
bobmcwI forget the details/rules18:47
lanceballthere ain't now WEB-INF18:48
lanceballanyhoo - it works18:52
bbrowningany of you jokers know when 'mvn test -Dtest=Clustering*' would complain about no tests to run?18:58
bbrowningI can't seem to get -Dtest=<anything> to work for swarm18:58
bbrowningwhy*19:00
bobmcwbbrowning: I can only get it to work in the particular mode that has the relevant test19:41
bobmcwafter building all -DskipTests19:41
bbrowningI do have everything built and was trying to run a single test from the clustering or ribbin modules19:41
bobmcwI imagine there's some maven-surefire-plugin config to notFaillIfTestsAreMissing=false19:41
bbrowningribbon*19:41
bobmcwI've had success with -Dtest=*Arq*19:42
bbrowninghmm I'll try that19:42
bbrowningoh doh! I need to be in the test module19:42
bbrowningffs19:42
bobmcwlanceball: for future reference, once you addNestedClass(subresourcesClass), you can't do any more modifications to that subresourcesClass19:42
bbrowningclustering/test or ribbon/test19:42
bobmcwand expect them to show up19:43
* bobmcw hates roaster19:43
bobmcwlanceball: also, I figured this.propertys19:43
bobmcwhooray rhauch's Inflector19:43
bobmcwhttps://gist.github.com/bobmcwhirter/07612c1dd5c62ee83d4719:43
bobmcwthat's what I've got now19:44
bobmcwfoo( "key", (f)->{ f.configureMe(); } )19:44
bobmcwfoo( ()->{ return new Foo(); } )19:44
bobmcwfoo( new Foo() )19:44
bobmcwfor singletons we can just foo() (see fileStore())19:44
bobmcwor fileStore( (fs)->{ ... } )19:45
bobmcwor filestore( ()->{ return new FileStore(); } )19:45
bobmcwlots of options19:45
bobmcwgenerics and lambdas don't work well with overriding a parameter of Consumer<T extends Foo>19:45
bobmcwI'd tried to remove our FooConsumer and FooSupplier, but failed to convicne the compiler that I knew what I was doing19:45
bobmcwso we need them so we can do an EnhancedServerConsumer for our EnhancedServer in JMS19:46
lanceballbobmcw: when you said the other day that fractions can "alter deployments", what did you mean exactly?19:52
lanceballjust the use of main() and config-api?19:52
lanceballand shrinkwrap, mayhap19:52
bobmcwe.g. https://github.com/wildfly-swarm/wildfly-swarm/blob/master/keycloak/runtime/src/main/java/org/wildfly/swarm/keycloak/runtime/KeycloakConfiguration.java#L45-L4819:55
bobmcwevery fraction gets a chance to touch every deployed Archive19:55
lanceballah, ok19:57
bbrowningso...WFLYUT0020: Clustering not supported, falling back to non-clustered session manager20:16
bbrowningI'm trying to modify the clustering tests to actually test we can bring things up in clustered mode20:17
bbrowningso trying to deploy a WARArchive w/ a web.xml marking it as distributable throws this error - should we be able to cluster webapps in swarm?20:17
bbrowningnot ribbon clustering but standard undertow clustered session type stuff20:19
bbrownings/undertow/wildfly/20:19
tcrawleybbrowning: are you using the clustering fraction?20:26
bbrowningyessir20:26
bbrowningI thought about it some more and it probably needs several other things20:26
bbrowninginfinispan, for instance20:26
bbrowningthe web cache container20:28
bbrowningperhaps that's it20:29
tcrawleymaybe so20:29
bobmcwhey, tcrawley is here20:30
bobmcwbbrowning: never tried20:31
tcrawleyyou seem surprised20:31
bobmcwhadn't noticed you all day20:31
bobmcwdid you get a different haircut?20:31
bobmcwI thought you were in DC this week20:31
tcrawleyyes, but that's because I moved to DC20:32
bobmcwDC requires a special haircut?20:32
bobmcwlike Trumps?20:32
tcrawleyI definitely had to shave20:32
bbrowningbobmcw: things from META-INF/services inside wildfly jars should be able to be loaded via ServiceLoader?20:37
bobmcwum... if you have services="import" in the module.xml maybe?20:37
bbrowningServiceLoader.load(DistributableSessionManagerFactoryBuilder.class, DistributableSessionManagerFactoryBuilder.class.getClassLoader())) is failing from the wildfly code it appears20:38
bbrowningand causing undertow to think clustering isn't enabled20:38
bobmcwhrm.20:38
bobmcwI have no idea about that20:38
bobmcwDSMFB.class comes from what classloader/module?20:38
bbrowninghmm it's in clustering/web in the wildfly source tree20:39
bbrowningclustering/web/undertow20:39
bbrowninghow do I map that to a module easily?20:39
bobmcwprintln( KMFDM.class.getClassLoader()) typically shows it20:39
bobmcwwhatever.foo.bar:main20:39
bobmcwif I recall20:39
bbrowningit's in org.wildfly.clustering.web.undertow module20:40
bbrowningso I just need to make sure undertow can see that, I guess?20:41
bbrowningor the undertow wildfly extension code, that is20:41
bobmcwso, you're not getting a CNFE on DSMFB.class itself, right?20:43
bobmcwso you can see the class?20:43
bobmcwwhat impls exist for it, and where do they live?20:43
bobmcwyou're service-loading from DSMFB's own ClassLoader, so I think it'll only search its own module and any that it has services="import" on its dependencies within the module.xml20:44
bbrowningwell I'm not the one trying to load it - wildfly extension code is20:44
bbrowningI guess I need to set a breakpoint and actually debug it in an IDE to see what it has20:44
bobmcwit could be we're missing some modules20:44
bobmcwif it has anything optional=true, we'd probably missing it20:44
bobmcwand would need to be explicitly brought in by mentioning it in a module w/o optional=true20:45
bobmcwmy first guess would be it's trying to service-loader an optional thing and we opted not to include it20:45
bbrowningyeah I'll have to dig more to answer that, but you're probably right20:46
bobmcwfwiw, IntelliJ 15 is much better with lambda issues21:05
*** enebo <enebo!~enebo@c-75-73-8-169.hsd1.mn.comcast.net> has joined #wildfly-swarm21:05
jbossbotgit [wildfly-swarm] push master 6bfb0b6.. Bob McWhirter Adjust to slightly better config-api.21:15
jbossbotgit [wildfly-swarm] push master URL: http://github.com/wildfly-swarm/wildfly-swarm/commit/6bfb0b63521:15
bobmcwman, what a day21:15
bobmcwand that's been bugging me since friday afternoon21:15
projectodd-ciStarting build #281 for job wildfly-swarm (previous build: SUCCESS)21:15
lanceballbobmcw: do you think the topology reflux bits belong in ribbon-webapp?21:17
bobmcwnot really, since that is very react.fs/reflux specific21:17
lanceballright - so I think the ribbon.js api needs to change just a little21:18
bobmcwokie dokie21:18
bobmcwreally, just the SSE bits, and some callbacks for changes or whatnot21:18
bobmcwsomeone else can wire to (re)flux or whatever they're using21:18
lanceballyah21:18
lanceballatm, Ribbon.js has a single remaining dependency on Booker that I just noticed21:18
lanceballhttps://github.com/wildfly-swarm/wildfly-swarm/blob/master/ribbon-webapp/runtime/src/main/resources/ribbon.js#L521:18
lanceballs/R/r/21:18
bobmcwalso, fwiw, in Booker's usage, it always take serverList[0], where Better(tm) would be to actually round-robin21:19
bobmcwand we also shouldn't assume keycloak21:19
bobmcwlanceball: so, probably still some awesomeness to apply21:20
lanceballdefinitely21:20
bobmcwI think supporting an optional SPI to get/renew a token (with a keycloak impl or some flag)21:21
lanceballI probably won't get around to it until after NYC21:21
bobmcwor a no-op if someone isn't using anything authy21:21
bobmcwsure, no worries21:21
*** jclingan <jclingan!~jclingan@cpe-198-72-153-11.socal.res.rr.com> has quit IRC (Read error: Connection reset by peer)21:46
*** jclingan <jclingan!~jclingan@cpe-198-72-153-11.socal.res.rr.com> has joined #wildfly-swarm21:46
*** jclingan <jclingan!~jclingan@cpe-198-72-153-11.socal.res.rr.com> has quit IRC (Read error: Connection reset by peer)21:49
*** jclingan <jclingan!~jclingan@cpe-198-72-153-11.socal.res.rr.com> has joined #wildfly-swarm21:50
*** bobmcw <bobmcw!~bobmcw@redhat/jboss/bobmcw> has quit IRC (Remote host closed the connection)22:07
*** jclingan <jclingan!~jclingan@cpe-198-72-153-11.socal.res.rr.com> has quit IRC (Ping timeout: 240 seconds)22:16
*** jclingan <jclingan!~jclingan@cpe-198-72-153-11.socal.res.rr.com> has joined #wildfly-swarm22:20
*** bbrowning is now known as bbrowning_away22:23
*** tcrawley is now known as tcrawley-away22:31
*** lanceball is now known as lance|afk22:58
*** enebo <enebo!~enebo@c-75-73-8-169.hsd1.mn.comcast.net> has quit IRC (Quit: enebo)22:59
*** htmldrum <htmldrum!~htmldrum@202.148.225.114> has joined #wildfly-swarm23:04
*** bobmcw <bobmcw!~bobmcw@redhat/jboss/bobmcw> has joined #wildfly-swarm23:08
*** ChanServ sets mode: +o bobmcw23:08
*** bobmcw <bobmcw!~bobmcw@redhat/jboss/bobmcw> has quit IRC (Ping timeout: 260 seconds)23:13
*** jcrossle_ <jcrossle_!~user@71-90-202-1.dhcp.stls.mo.charter.com> has joined #wildfly-swarm23:25
*** jcrossley3 <jcrossley3!~user@71-90-202-1.dhcp.stls.mo.charter.com> has quit IRC (Ping timeout: 240 seconds)23:27
*** jerr <jerr!~jerr@modemcable227.115-83-70.mc.videotron.ca> has joined #wildfly-swarm23:48

Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!