I'm putting together my first B2 in quite a while and everything is good (at least I've been able to build a B2 that does nothing and it 'works' when uploaded to the developer vm), except I can't figure out how to get the ferschluggner deployb2 gradle task to work
- connect to https://localhost:9877/ and can log in fine ,
- manually upload b2s ,
- get a help page from https://localhost:9877/webapps/bb-starting-block-BBLEARN/execute/help
But when I trigger deployB2 from intellij or use ./gradlew deployB2 in a terminal window I'm getting this error:
[ant:b2deploy] Installing: ~/Dev/tu-coursetools-b2/build/libs/tu-coursetools-b2-1.0-SNAPSHOT.war to localhost:9877
FAILURE: Build failed with an exception.
Build file '~/Dev/tu-coursetools-b2/build.gradle' line: 57
* What went wrong:
Execution failed for task ':deployB2'.
> java.net.SocketException: Unexpected end of file from server
Full stacktrace HERE
Here's the ext section of my build.gradle file (I edited the learnVersion and deployServer):
learnVersion = "9.1.201404.160205"
deployServer = "localhost:9877"
deployInstance = "BBLEARN"
and from my Vagrantfile here are my ports (9877 is 443 - I tried setting deployServer to 9878 (2222) but that didn't work either):
config.vm.network :forwarded_port, guest: 8080, host: 9876
config.vm.network :forwarded_port, guest: 8443, host: 9877
config.vm.network :forwarded_port, guest: 2222, host: 9878
config.vm.network :forwarded_port, guest: 5432, host: 9879
One thing I wondered - is it possible this is an SSL mixup problem, i.e. like the ant task wants to connect over http but the developer vm is forcing https?