2 Replies Latest reply on Nov 30, 2009 6:17 AM by jbarrez

    HELP ME with process Java Hello World

      Hi

      I'm using jBPM-4.2 with Tomcat and PostgreSQL. I have the following process, that the only thing it does is print a message Hello World. When I run an instance of the process I get the following error, and I want to know if some configuration or covered

      URL: 'http://localhost:8080/gwt-console-server/rs/process/definition/Java-1/new_instance'
      Action: 'org.jboss.bpm.console.client.process.StartNewInstanceAction'
      Exception: 'class com.google.gwt.http.client.RequestException'
      HTTP 500: Unknown error
      


      Proceso:
      <?xml version="1.0" encoding="UTF-8"?>
      <process name="HolaMundo" xmlns="http://jbpm.org/4.2/jpdl">
       <start name="start1" g="81,123,48,48">
       <transition name="to java1" to="java1" g="-45,-18"/>
       </start>
       <java name="java1"
       class="com.procesos.holamundo.Mensaje"
       method="hola"
       g="170,122,92,52">
       <field name="mensaje"><string value="HOLA MUNDO"/></field>
       <arg><string value="jBPM"/></arg>
       <transition name="to end1" to="end1" g="-42,-18"/>
       </java>
       <end name="end1" g="304,123,48,48"/>
      </process>
      


      Thanks you

        • 1. Re: HELP ME with process Java Hello World

          Help me........... I don't understand error........... is a bug??? or a error the configuration???

          Clase JAVA

          package com.procesos.holamundo;
          import java.io.Serializable;
          public class Mensaje implements Serializable {
           private static final long serialVersionUID = 1L;
           private String msg = "";
           public String hola(String parameter){
           System.out.println("=================");
           System.out.println(msg+", "+parameter);
           System.out.println("=================");
           return "";
           }
          }
          


          • 2. Re: HELP ME with process Java Hello World
            jbarrez

            I'm guessing that the class you're calling in your process isn't on the classpath of the console.