5 Replies Latest reply on Oct 1, 2009 1:10 PM by sebastian.s

    Problem with the VacationRequest example

    killian

      Hello,

      I'm novice to jbpm.
      I have installed JBPM 4.1 on my computer on Tomcat 6.0.14 and i deployed the VacationRequest example (the taskform example).

      My problem is when i change Tomcat's port to 8081 for example, http://localhost:8081/gwt-console-server/rs/process/definitions give me "http://localhost:8080/gwt-console-server/rs/form/process/VacationRequest-1/render" in the formUrl attribute of VacationRequest-1 process.

      If i do the same thing from another computer in the network, it's return the same value of formUrl attribute.

      From jbpm-console, i can't start an instance of the VacationRequest-1 process because jbpm-console tries to reach localhost:8080 to get the form instead of the ip and the port of the tomcat server.

      I think i forgot something to configure but i can't find what.

      Thanks in advance.

        • 1. Re: Problem with the VacationRequest example
          killian

          I have found the origin of my problem.

          When tomcat is used org.jbpm.integration.spi.mgmt.ServerConfigFactory return an org.jbpm.integration.spi.mgmt.DefaultServerConfig object.

          And in org.jbpm.integration.spi.mgmt.DefaultServerConfig the host and the port are hard-coded:

           public class DefaultServerConfig implements ServerConfig {
          
           private static final String DEFAULT_HOST = "localhost";
          
           private static final int DEFAULT_PORT = 8080;
          
           public String getWebServiceHost() {
           return DEFAULT_HOST;
           }
          
           public int getWebServicePort() {
           return DEFAULT_PORT;
           }
          ...
          }
          


          In ServerConfigFactory.java there is a fixme comment :
          // FIXME: workaround for Tomcat: if no JBoss classes were found, fall back to defaults
          


          I would like to know when it will be fixed.

          Thanks in advance

          • 2. Re: Problem with the VacationRequest example
            kukeltje

            look in the jira for an issue. That will tell you when it will be fixed. If there is no issue reported please do

            • 3. Re: Problem with the VacationRequest example
              kukeltje

              Is there a jira issue for this? If so, you can see the target for it being fixed (might also be empty though). If there is no jira issue, it is not on the list for being fixed in the near future. Please file an issue in that case.

              • 4. Re: Problem with the VacationRequest example
                kukeltje

                DUHHHHHHHHHH why do post get visible delayed... I though one of my posts disappeared.... Sigh....

                • 5. Re: Problem with the VacationRequest example
                  sebastian.s

                  I am plagued by the same problem, Ronald. It's kind of annoying.