[JBoss jBPM] - Problem: BPEL Designer
by agusgr
Hello,
I' working with Eclipse 3.2.1 and the Eclipse BPEL Designer Runtimes 0.2.0.
The server is jBoss 4.04 GA with jbpm-bpel-1.1.Beta2.
I'm developing a very simple bpel process with an invocation to a external web service (the account service of the atm example).
I have the following files:
account.wsdl and client.wsdl: with the operations and messages of the web services
processBankArtifacts.wsdl: a file with the partner links definitions.
processBank.bpel:a file whit my procces definition.
I also have a processBank.bpelex file.
processBankArtifacts.wsdl and processBank.bpelex are generated automatically.
I import all the files in the bpel-definition.xml, but when I execute the deploy-definition task I foud this error:
anonymous wrote : 2007-02-23 10:37:11,968 ERROR [org.jbpm.bpel.xml.ProblemHandler] processBank.bpel bpel process is invalid
| org.jbpm.bpel.xml.BpelException: first role's port type not found [/bpws:process/bpws:partnerLinks/bpws:partnerLink[1]]
|
The files are:
client.wsdl
| <?xml version="1.0"?>
| <definitions name="client"
| targetNamespace="urn:samples:cli"
| xmlns:tns="urn:samples:cli"
| xmlns="http://schemas.xmlsoap.org/wsdl/"
| xmlns:xsd="http://www.w3.org/2001/XMLSchema">
| <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MESSAGE TYPE DEFINITION - Definition of the message types used as
| part of the port type defintions
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
| <message name="clientRequestMessage">
| <part name="name" type="xsd:string"/>
| </message>
| <message name="clientResponseMessage">
| <part name="balance" type="xsd:double"/>
| </message>
| <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| PORT TYPE DEFINITION - A port type groups a set of operations into
| a logical service unit.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
| <!-- portType implemented by the procesoBalance BPEL process -->
| <portType name="ClientPort">
| <operation name="getBalance">
| <input message="tns:clientRequestMessage" />
| <output message="tns:clientResponseMessage"/>
| </operation>
| </portType>
| </definitions>
|
account.wsdl
| <?xml version="1.0" encoding="UTF-8"?>
| <definitions targetNamespace="urn:samples:account" xmlns="http://schemas.xmlsoap.org/wsdl/"
| xmlns:tns="urn:samples:account" xmlns:typ="urn:samples:account"
| xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://schemas.xmlsoap.org/wsdl/
| http://schemas.xmlsoap.org/wsdl/">
|
| <types>
|
| <schema targetNamespace="urn:samples:account" xmlns="http://www.w3.org/2001/XMLSchema">
|
| <complexType name="AccountOperation">
| <sequence>
| <element name="customerName" type="xsd:string" />
| <element name="amount" type="xsd:double" />
| </sequence>
| </complexType>
|
| </schema>
|
| </types>
|
| <message name="customerMessage">
| <part name="customerName" type="xsd:string" />
| </message>
|
| <message name="accessMessage">
| <part name="granted" type="xsd:boolean" />
| </message>
|
| <message name="balanceMessage">
| <part name="balance" type="xsd:double" />
| </message>
|
| <message name="accountOperation">
| <part name="body" type="typ:AccountOperation" />
| </message>
|
| <portType name="AccountSystem">
|
| <operation name="checkAccess">
| <input message="tns:customerMessage" />
| <output message="tns:accessMessage" />
| </operation>
|
| <operation name="queryBalance">
| <input message="tns:customerMessage" />
| <output message="tns:balanceMessage" />
| </operation>
|
| <operation name="updateBalance">
| <input message="tns:accountOperation" />
| <output message="tns:balanceMessage" />
| </operation>
|
| </portType>
| </definitions>
|
processBankArtifacts.wsdl
| <?xml version="1.0" encoding="UTF-8"?>
| <definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
| xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
| xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/"
| xmlns:tns="urn:samples:processArtifacts"
| xmlns:wsdl="urn:samples:account" xmlns:wsdl1="urn:samples:cli"
| name="processBankArtifacts"
| targetNamespace="urn:samples:processArtifacts">
| <plnk:partnerLinkType name="Process-Account">
| <plnk:role name="Account" portType="wsdl:AccountSystem"/>
| </plnk:partnerLinkType>
| <plnk:partnerLinkType name="Client-Process">
| <plnk:role name="Client" portType="wsdl1:ClientPort"/>
| </plnk:partnerLinkType>
| <import location="account.wsdl" namespace="urn:samples:account"/>
| <import location="client.wsdl" namespace="urn:samples:cli"/>
| </definitions>
|
|
processBank.bpel
| <?xml version="1.0" encoding="UTF-8"?>
| <bpws:process xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
| xmlns:ns="urn:samples:processArtifacts" xmlns:ns0="urn:samples:cli"
| xmlns:ns1="urn:samples:account" xmlns:tns="urn:samples:process"
| exitOnStandardFault="yes" name="processBank"
| suppressJoinFailure="yes" targetNamespace="urn:samples:process">
| <bpws:import importType="http://schemas.xmlsoap.org/wsdl/" location="client.wsdl" namespace="urn:samples:cli"/>
| <bpws:import importType="http://schemas.xmlsoap.org/wsdl/" location="account.wsdl" namespace="urn:samples:account"/>
| <bpws:import importType="http://schemas.xmlsoap.org/wsdl/" location="processBankArtifacts.wsdl" namespace="urn:samples:processArtifacts"/>
| <bpws:partnerLinks>
| <bpws:partnerLink myRole="Client" name="Client" partnerLinkType="ns:Client-Process"/>
| <bpws:partnerLink name="Bank" partnerLinkType="ns:Process-Account" partnerRole="Account"/>
| </bpws:partnerLinks>
| <bpws:variables>
| <bpws:variable messageType="ns0:clientRequestMessage" name="ClientRequest"/>
| <bpws:variable messageType="ns0:clientResponseMessage" name="ClientResponse"/>
| <bpws:variable messageType="ns1:balanceMessage" name="BankResponse"/>
| <bpws:variable messageType="ns1:customerMessage" name="BankRequest"/>
| </bpws:variables>
| <bpws:sequence>
| <bpws:receive createInstance="yes" name="Receive" operation="getBalance" partnerLink="Client" portType="ns0:ClientPort" variable="ClientRequest"/>
| <bpws:assign name="Assign" validate="no">
| <bpws:copy>
| <bpws:from part="name" variable="ClientRequest"/>
| <bpws:to part="customerName" variable="BankRequest"/>
| </bpws:copy>
| </bpws:assign>
| <bpws:invoke inputVariable="BankRequest" name="Invoke" operation="queryBalance" outputVariable="BankResponse" partnerLink="Bank" portType="ns1:AccountSystem"/>
| <bpws:assign name="Assign1" validate="no">
| <bpws:copy>
| <bpws:from part="balance" variable="BankResponse"/>
| <bpws:to part="balance" variable="ClientResponse"/>
| </bpws:copy>
| </bpws:assign>
| <bpws:reply name="Reply" operation="getBalance" partnerLink="Client" portType="ns0:ClientPort" variable="ClientResponse"/>
| </bpws:sequence>
| </bpws:process>
|
Where is the problem?
Please, can someone help me?
Sorry for the long post and thanks in advance
Agus
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021036#4021036
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021036
19Â years, 2Â months
[JBoss Seam] - Re: could not execute seam commands.
by grdzeli_kaci
"gavin.king(a)jboss.com" wrote : You have to build seam first.
|
| Just type "ant" in the main dir.
hi gavin.
i did it but i got another error :
| paatal@paatal:~/jboss-seam> /home/paatal/InstalledPrograms/apache-ant-1.7.0/bin/ant
| Buildfile: build.xml
|
| init:
| [echo] Build JBoss Seam 1.1
| [mkdir] Created dir: /home/paatal/jboss-seam/build/classes
| [copy] Copying 16 files to /home/paatal/jboss-seam/build/classes
|
| select-compiler:
|
| antlr:
| [mkdir] Created dir: /home/paatal/jboss-seam/src/main/org/jboss/seam/text
| [antlrtask] ANTLR Parser Generator Version 2.7.6 (2005-12-22) 1989-2005
|
| compilecore:
| [javac] Compiling 425 source files to /home/paatal/jboss-seam/build/classes
| [javac] Note: Some input files use or override a deprecated API.
| [javac] Note: Recompile with -Xlint:deprecation for details.
| [javac] Note: Some input files use unchecked or unsafe operations.
| [javac] Note: Recompile with -Xlint:unchecked for details.
|
| jarcore:
| [mkdir] Created dir: /home/paatal/jboss-seam-1.1.6.GA
| [jar] Building jar: /home/paatal/jboss-seam/jboss-seam.jar
| [copy] Copying 1 file to /home/paatal/jboss-seam-1.1.6.GA
|
| initui:
| [echo] Build JBoss Seam UI 1.1
| [mkdir] Created dir: /home/paatal/jboss-seam/build/uiclasses
| [copy] Copying 5 files to /home/paatal/jboss-seam/build/uiclasses
|
| compileui:
| [javac] Compiling 59 source files to /home/paatal/jboss-seam/build/uiclasses
| [javac] /home/paatal/jboss-seam/src/ui/org/jboss/seam/ui/SelectDate.java:12: package org.jboss.seam.ui.resource does not exist
| [javac] import org.jboss.seam.ui.resource.WebResource;
| [javac] ^
| [javac] /home/paatal/jboss-seam/src/ui/org/jboss/seam/ui/SelectDate.java:103: cannot find symbol
| [javac] symbol : variable WebResource
| [javac] location: class org.jboss.seam.ui.SelectDate
| [javac] WebResource.WEB_RESOURCE_PATH + "/date/calendar.js", null);
| [javac] ^
| [javac] Note: Some input files use unchecked or unsafe operations.
| [javac] Note: Recompile with -Xlint:unchecked for details.
| [javac] 2 errors
|
| BUILD FAILED
| /home/paatal/jboss-seam/build.xml:623: Compile failed; see the compiler error output for details.
|
| Total time: 12 seconds
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021034#4021034
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021034
19Â years, 2Â months
[Remoting] - SocketTimeout in client
by maheshp
Hello All
i am connecting to server using java client, after setting socket time out attribute in "invokers-service.xml" to 300000 milli sec. i am getting the Socket timeout error after 60 seconds of waiting time(default time out value).
Server Version : Jboss-4.0.3sp1
For information i have pasted complete stack strace below.
if any configuration is missed out in server/ client, please let me know.
java.rmi.ConnectException: Failed to communicate. Problem during marshalling/un
marshalling; nested exception is:
java.net.SocketTimeoutException: Read timed out
at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(Soc
ketClientInvoker.java:264)
at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.jav
a:112)
at org.jboss.remoting.Client.invoke(Client.java:226)
at org.jboss.remoting.Client.invoke(Client.java:189)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemot
eInterceptor.java:41)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:98)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPr
opagationInterceptor.java:46)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:98)
at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityC
lientInterceptor.java:40)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:98)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.
java:41)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:98)
at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteP
roxy.java:88)
at $Proxy5.getTreeObject(Unknown Source)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at java.io.ObjectInputStream$PeekInputStream.peek(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.peek(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Sourc
e)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read
(SerializableUnMarshaller.java:73)
at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(Soc
ketClientInvoker.java:242)
... 27 more
Thanks in advance
Thanks and Regards
Mahesh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021033#4021033
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021033
19Â years, 2Â months
[JBossWS] - .Net interoperability INFO
by ragsta
Hi all,
maybe this can help someone.
I'm involved in a project task that requires my jboss web application to connect to a remote Microsoft WebService.
The web service signature is:
public System.Xml.XmlElement HelloWorld(Request req)
The Microsoft way to describe this kind of return element in the WSDL is:
<s:element name="HelloWorldResponse">
| <s:complexType>
| <s:sequence>
| <s:element minOccurs="0" maxOccurs="1" name="HelloWorldResult">
| <s:complexType>
| <s:sequence>
| <s:any />
| </s:sequence>
| </s:complexType>
| </s:element>
| </s:sequence>
| </s:complexType>
| </s:element>
This is not well handled by Wstools (wsdl-->java).
The result is that you can call the webservice but the jboss webservice stack cannot handle the response.
To solve the problem you have to manually modify this wsdl fragment in:
<s:element name="HelloWorldResponse" type="s:anyType"/>
Note: this is not a Microsoft fault..infact XmlSpy validate this WSDL and different java web services stacks like Xfire handle it correctly.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021028#4021028
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021028
19Â years, 2Â months