Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 593649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:52:06+00:00 2026-05-13T15:52:06+00:00

I am working on a legacy Java Enterprise server project, and currently I am

  • 0

I am working on a legacy Java Enterprise server project, and currently I am trying to set up nightly builds. We are using Maven 2, JBoss 4.2 and Bamboo. The idea is that we have a Bamboo agent on one of our dev servers, and the Maven build is configured to hard deploy the resulting .ear file, then restart the server. (We can’t use soft deploy because our legacy application uses a library which causes an exception during undeploy… we will get rid of that damn library at some point, but not just yet.) This works nicely when I run a Maven build on my own machine: the server is stopped and restarted with the latest build.

However, on the dev server we have multiple JBoss server instances, bound to different IP addresses. And the Maven JBoss plugin I use can only start and stop a server bound to localhost (the default). I just downloaded the source code for it and it simply executes the run and shutdown scripts in the JBoss bin directory, like this:

launch( "run", "-c " + serverName );

and

launch( "shutdown", "-S" );

respectively.
So as you see, no host binding (-b) parameter is used for startup, neither can the shutdown kill any other server than the one listening at port localhost:1099 (the default JNDI port).

I figure that a workaround for startup would be to directly configure the desired host address in the JBoss config files. (The default behaviour is that those config files contain a system property like ${jboss.bind.address}, and at startup, JBoss dynamically replaces these with the actual host address specified as the -b parameter of the run script, or localhost by default). So if I put the exact IP directly in those config files instead, in theory the server would bind to that IP regardless of the missing -b command line parameter. Moreover, I guess that using 0.0.0.0 as host name would solve the stopping problem too… if we didn’t have those other servers on the same machine. However, that might work on another server reserved entirely for the nightly build. We just need to migrate the Bamboo agent etc… a couple hours of extra work. And we do not have an endless supply of unused servers of course, so we may get back to square 1 once we need another nightly build for our release branch…

An alternative would be to try and look into using the Cargo plugin instead… I have no idea as yet, whether it is capable of this trick.

Last but not least, I could actually extend the JBoss plugin to handle host binding – I assume that would take a few active hours of mine altogether, but solved the problem once and for all. So far this seems to me the most viable alternative.

Can anyone offer any concrete experiences / comments on these, or alternative solutions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T15:52:07+00:00Added an answer on May 13, 2026 at 3:52 pm

    Well, I extended the plugin to deal with nondefault hostname and naming port as well. At least this particular problem is now solved.

    I committed the patch to Codehaus.

    Update: it is going to be officially released in version 1.4.1.

    In the meantime, if anyone urgently needs the patched plugin version, please let me know.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 357k
  • Answers 357k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You probably want to call setlocale() first, "LC_ALL" should do… May 14, 2026 at 9:06 am
  • Editorial Team
    Editorial Team added an answer Linux Ubuntu Desktop Jaunty Firebug FireCookie Pixel Perfect Web developer… May 14, 2026 at 9:06 am
  • Editorial Team
    Editorial Team added an answer Your code should look like this: var par = [];… May 14, 2026 at 9:06 am

Related Questions

Background I am working on a legacy small-business automation system (inventory, sales, procurement, etc.)
I am working on a project currently where there are SQL strings in the
I'm currently working on a legacy eCommerce system front-end that has alot of duplicate
I've come into an interesting problem (as is often the case in interacting with
For anyone stumbling upon this question who doesn't know what Quercus is - it

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.