[JBossWS] - Re: Call a web service
by rodosa
Hello!!
I've get to call the web service from a Java application in Eclipse. I've solucionated the before error adding the library saaj-impl.jar.
Now I have a problem. I have jbpm-jpdl.3.2.2 installed in a remote machine.I would like to call this web service from here. But jbpm uses Jboss 4.0.4. I've added some libraries to the lib directory and I've copy the files that I've generated in the other machine (Jboss 4.2.2). I've modified the files replacing localhost with the IP where the webService exist. But it seems that it doesn't find the wsdl. I can do pings to my remote machine but if I put http://x.x.x.x:8080/proyecto/JbpmService?wsdl in the browser the system doesn't find anything.
| Exception in thread "main" javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://x.x.x.x:8080/proyecto/JbpmService?wsdl. It failed with:
| Connection refused: connect.
| at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(RuntimeWSDLParser.java:136)
| at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:122)
| at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:226)
| at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:189)
| at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:159)
| at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:81)
| at javax.xml.ws.Service.<init>(Service.java:56)
| at jbpmservice.ws.JbpmService_Service.<init>(JbpmService_Service.java:40)
| at client.JbpmWSClient.main(JbpmWSClient.java:15)
| Caused by: java.net.ConnectException: Connection refused: connect
| at java.net.PlainSocketImpl.socketConnect(Native Method)
| at java.net.PlainSocketImpl.doConnect(Unknown Source)
| at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
| at java.net.PlainSocketImpl.connect(Unknown Source)
| at java.net.Socket.connect(Unknown Source)
| at java.net.Socket.connect(Unknown Source)
| at sun.net.NetworkClient.doConnect(Unknown Source)
| at sun.net.www.http.HttpClient.openServer(Unknown Source)
| at sun.net.www.http.HttpClient.openServer(Unknown Source)
| at sun.net.www.http.HttpClient.<init>(Unknown Source)
| at sun.net.www.http.HttpClient.New(Unknown Source)
| at sun.net.www.http.HttpClient.New(Unknown Source)
| at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
| at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
| at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
| at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
| at java.net.URL.openStream(Unknown Source)
| at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.createReader(RuntimeWSDLParser.java:785)
| at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(RuntimeWSDLParser.java:236)
| at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:107)
| ... 7 more
|
|
Any ideas?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137396#4137396
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137396
18 years, 1 month
[EJB 3.0] - Delete entities with LOB
by heinrich
Hi,
in what way is it possible to let the EntityManager remove an entity with a LOB property?
We are using EJB3, JBoss 4.0.5 and Postgres 8.2.
The underlying table is creates like this
| CREATE TABLE patient.incident_entry_binary(
| id SERIAL PRIMARY KEY,
| binary_content OID
| );
|
The database stores the binary data in files and writers only an objectid in the table.
When i try to remove the entity i always get an
anonymous wrote :
| 13:26:36,323 ERROR [STDERR] javax.persistence.EntityNotFoundException: deleted entity passed to persist: [lu.tudor.santec.gecamed.patient.ejb.entity.beans.IncidentEntryBinary#]
exception.
The part of the entity looks like this:
| @Column(name="binary_content")
| @Lob
| public byte[] getBinaryContent() {
| return binaryContent;
| }
|
any idea?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137387#4137387
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137387
18 years, 1 month
[JBoss jBPM] - org.jbpm.JbpmException: this token is locked by token[0]
by sergiosoria
Hello, when I trying to end a signally task (By default all task are signally), the system crash and trhouws the exception
"
org.jbpm.JbpmException: this token is locked by token[0]
"
Can Anybody help me?
I add too muy source code, the processdefinition.xml and the ActionHandler:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="" name="logicaPedidos">
|
|
| <swimlane name="comprador">
| <assignment actor-id="comprador"></assignment>
| </swimlane>
|
| <swimlane name="shipper">
| <assignment actor-id="shipper"></assignment>
| </swimlane>
|
|
| <start-state name="Quincena de Pedidos">
| <transition to="Recepción del fichero PEDAM3"></transition>
| </start-state>
|
|
| <task-node name="Recepción del fichero PEDAM3">
| <task name="Introducir datos" swimlane="comprador">
| <description>
| Recibir e introducir los datos en el flujo para que el resto de aplicaciones procedan a procesarlos y tratarlos
| </description>
| <event type="task-start">
| <action name="IntroducirDatosStart" class="dom.Pedidos.jbpm.tareas.action.TareaIntroducirDatosActionHandler"></action>
| </event>
| </task>
| <event type="task-assign">
| <action name="tareaRecepcionAsignada" class="dom.Pedidos.jbpm.action.RecepcionPedam3ActionHandler"></action>
| </event>
| <transition to="Depuración automática para aceptar o Rechazar" name="a depuracion"></transition>
| </task-node>
|
| <task-node name="Depuración automática para aceptar o Rechazar">
| <event type="node-enter">
|
| <action name="Despues" class="dom.Pedidos.jbpm.action.DepuracionAutomaticaActionHandler"></action>
| </event>
| <transition to="Proceso Manual para aceptar o rechazar"></transition>
| </task-node>
|
| <task-node name="Proceso Manual para aceptar o rechazar">
| <transition to="Cierre de la quincena"></transition>
| </task-node>
|
| <task-node name="Cierre de la quincena">
| <task name="enviar a Madrid" swimlane="shipper">
| <description>
| Enviar los pedidos que no hayan pasado las reglas a Madrid
| </description>
| <event type="task-assign">
| <action name="EnviarMadrid" class="dom.Pedidos.jbpm.action.EnviarMadridActionHandler"></action>
| </event>
| </task>
| <task name="Aceptar pedidos" swimlane="shipper">
| <description>
| Aceptar los pedidos que hayan cumplido todas las reglas
| </description>
| <event type="task-assign">
| <action name="Creando la tarea" class="dom.Pedidos.jbpm.action.AceptarPedidosActionHandler"></action>
| </event>
| </task>
| <event type="node-enter">
| <action name="EntraCierreQuincena" class="dom.Pedidos.jbpm.action.CierreQuincenaActionHandler"></action>
| </event>
| <transition to="Pedidos"></transition>
| </task-node>
|
|
| <end-state name="Pedidos"></end-state>
|
|
| </process-definition>
|
ActionHandler:
package dom.Pedidos.jbpm.action;
|
| import java.util.Collection;
| import java.util.Iterator;
|
| import org.apache.log4j.Logger;
| import org.jbpm.graph.def.ActionHandler;
| import org.jbpm.graph.exe.ExecutionContext;
| import org.jbpm.taskmgmt.exe.TaskInstance;
| import org.jbpm.taskmgmt.exe.TaskMgmtInstance;
|
| public class EnviarMadridActionHandler implements ActionHandler
| {
| Logger log = Logger.getLogger(EnviarMadridActionHandler.class);
|
| @Override
| public void execute(ExecutionContext executionContext) throws Exception
| {
|
| System.out.println();
| System.out.println();
| System.out.println("*********************************");
| System.out.println(" Entro en EnviarMadridActionHandler");
| System.out.println("*********************************");
| System.out.println();
| System.out.println();
|
| log.debug("Finalizo la tarea EnviarMadrid");
| executionContext.getTaskInstance().end();
|
| }
| }
Please help me. Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137377#4137377
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137377
18 years, 1 month