Discussion:
[jboss-user] [jBPM] - Changing AS7 port number
jnorris
2012-06-22 15:21:10 UTC
Permalink
jnorris [https://community.jboss.org/people/jnorris] created the discussion

"Changing AS7 port number"

To view the discussion, visit: https://community.jboss.org/message/743720#743720

--------------------------------------------------------------
Hi all,

Has anyone been able to change the AS7 port number to something other than 8080 and get the drools-guvnor and jbpm-console web-apps to work together?  There are many places in the jar/war files that have 8080 for URL's hard-coded including properties, xml, json, js files.  IMHO, this breaks the guvnor to console link and limits the usefulness of the community edition.

Cheers,
Jim
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/743720#743720]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
jnorris
2012-06-22 16:48:33 UTC
Permalink
jnorris [https://community.jboss.org/people/jnorris] created the discussion

"Re: Changing AS7 port number"

To view the discussion, visit: https://community.jboss.org/message/743745#743745

--------------------------------------------------------------
These Jira issues indicate that the port issue is resolved for jbpm-console: https://issues.jboss.org/browse/JBPM-2980 https://issues.jboss.org/browse/JBPM-2980,
https://issues.jboss.org/browse/JBPM-3396 https://issues.jboss.org/browse/JBPM-3396

The jbpm.console.properties in the 5.3.0 installer doesn’t update the file in the war.  There is no reference to it in build.xml.  Even updating it manually doens't work as URL's are hard-coded to http://127.0.0.1:8080 http://127.0.0.1:8080 in numerous files as mentioned above.

Jim
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/743745#743745]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Lisa DeSouza
2013-01-18 05:54:45 UTC
Permalink
Lisa DeSouza [https://community.jboss.org/people/lisadesouza89] created the discussion

"Re: Changing AS7 port number"

To view the discussion, visit: https://community.jboss.org/message/792721#792721

--------------------------------------------------------------
So what does this mean? Its not possible to change the port to anything other than 8080?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/792721#792721]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Sergey Kornilov
2013-01-18 06:54:25 UTC
Permalink
Sergey Kornilov [https://community.jboss.org/people/kornilovs] created the discussion

"Re: Changing AS7 port number"

To view the discussion, visit: https://community.jboss.org/message/792731#792731

--------------------------------------------------------------
You can set port-offset for jBoss server in  standalone.xml
| | <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">   |
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/792731#792731]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Lisa DeSouza
2013-01-18 09:27:32 UTC
Permalink
Lisa DeSouza [https://community.jboss.org/people/lisadesouza89] created the discussion

"Re: Changing AS7 port number"

To view the discussion, visit: https://community.jboss.org/message/792753#792753

--------------------------------------------------------------
But does this also change the port mappings for drools guvnor and jbpm console? When I changed it to 8088, JBOSS was setup properly, but not the others...
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/792753#792753]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Sergey Kornilov
2013-01-18 11:55:13 UTC
Permalink
Sergey Kornilov [https://community.jboss.org/people/kornilovs] created the discussion

"Re: Changing AS7 port number"

To view the discussion, visit: https://community.jboss.org/message/792782#792782

--------------------------------------------------------------
Port offset change setting of all deployed application on server.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/792782#792782]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
jaikiran pai
2013-01-18 13:36:57 UTC
Permalink
jaikiran pai [https://community.jboss.org/people/jaikiran] created the discussion

"Re: Changing AS7 port number"

To view the discussion, visit: https://community.jboss.org/message/792799#792799

--------------------------------------------------------------
Post by Sergey Kornilov
Port offset change setting of all deployed application on server.
I think what the other posters are talking about is the apparent hardcoding of certain ports within the jBPM application(s) which effectively means that they will no longer function if the server wide ports are changed.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/792799#792799]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Thomas Setiabudi
2013-01-21 13:05:44 UTC
Permalink
Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created the discussion

"Re: Changing AS7 port number"

To view the discussion, visit: https://community.jboss.org/message/793230#793230

--------------------------------------------------------------
Hi jnorris,

Yes the port setting is scattered in many configuration files in JBPM5.3 or JBPM5.4

But it is possible to change all the ports and jbpm still works correctly, at least it has proven to work for JBPM5.4.

Places where you need to make changes is:
A. Your jboss AS standalone.xml

B.  designer.war
      go to designer.war\profiles\jbpm.xml
      change the guvnor port in  <externalloadurl protocol="http" host=....

C. drools-guvnor.war
    go to drools-guvnor.war\WEB-INF\classes\preferences.properties
    change the port in
     designer.url=
     formbuilder.url=

D. jbpm-form-builder.war
    go to jbpm-form-builder.war\WEB-INF\springComponents.xml
    change the port number in
     <bean id="guvnorUrl" class="java.lang.String">
      <constructor-arg type="java.lang.String" value=

E. jbpm-gwt-console-server.war
     go to jbpm-gwt-console-server.war\WEB-INF\classes\default.jbpm.console.properties

     adjust the setting for
     jbpm.console.server.host=
     jbpm.console.server.port=
     jbpm.console.task.service.host=
     jbpm.console.task.service.port=
     guvnor.host=

     go to  jbpm-gwt-console-server.war\WEB-INF\classes\guvnor.preferences.properties
     adjust the setting for
     designer.url=
     formbuilder.url=

F. jbpm-human-task-war.war
     go to jbpm-human-task-war.war\WEB-INF\web.xml
     adjust the setting for
     <param-name>hornetq.host</param-name>
     and also
     <param-name>hornetq.port</param-name>

And lastly make sure that your new port is not used by other application / service.

it works for JBPM5.4


Regards,
Thomas Setiabudi
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/793230#793230]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
jnorris
2013-01-22 12:21:38 UTC
Permalink
jnorris [https://community.jboss.org/people/jnorris] created the discussion

"Re: Changing AS7 port number"

To view the discussion, visit: https://community.jboss.org/message/793495#793495

--------------------------------------------------------------
Hi Thomas,

We are no longer using any of the jbpm web apps so this doesn't apply to our application now but I will mark your post as the correct answer.

Regards,
Jim
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/793495#793495]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...