How to get access to Web Console in example-batch (http://localhost:8182 gives 503)

7 views
Skip to first unread message

ET92

unread,
May 4, 2017, 8:23:36 AM5/4/17
to trooper-users
Platform: Windows
Short summary: I cloned the Trooper git repository (v2.0.1), built the example-batch project (mvn clean install), updated the workingDirectory properties in shellTaskletsJob/spring-batch-config.xml (there is no /etc on Windows), run the BootStrapLauncher in Eclipse in debug mode and see lots of running threads (e.g. greetingJobTaskExecutor-<N>).So far so good.
When I connect Firefox to http://localhost:8182 I get this error:
HTTP ERROR 503

Problem accessing /. Reason:
     Service Unavailable
Powered by Jetty://

Shouldn't the web console be shown now? The runtimeNature is "server" already in bootstrap.xml.
I also tried http://localhost:8182/jobs with nearly similar result ("HTTP ERROR 503 ... Problem accessing /jobs. Reason ...).
What am I missing in order to see the Web Console?

Regunath Balasubramanian

unread,
May 4, 2017, 9:03:07 AM5/4/17
to ET92, trooper-users
The issue is quite likely because of a bug in the code used for loading the Jetty web app. This manifests in non-nix OS's, especially Windows, where the path separator is \ instead of /. 
I have pushed a fix that should work. Please pull/try the release 2.0.2 and let me know how it goes.

Regu
Message has been deleted

Regunath Balasubramanian

unread,
May 5, 2017, 7:18:44 AM5/5/17
to ET92, trooper-users
Hi,

Did you try the fix? Does it work for you?

Regu

Regunath Balasubramanian

unread,
May 5, 2017, 7:27:02 AM5/5/17
to Erik Toubro Nielsen, trooper-users
+ trooper-users, for maintaining the issue trail.

Hello Erik,

Good to hear this and sorry about the trouble initially. We build and deploy on non-Windows OSs and hence this got missed out.

Regu


On Fri, May 5, 2017 at 4:52 PM, Erik Toubro Nielsen <er...@toubro-nielsen.dk> wrote:
Hi Regu
Yes it is working fine now.
Thanks for your quick fix.

Erik
Reply all
Reply to author
Forward
0 new messages