[jboss-user] [JBoss jBPM] - Problem deploy new process
Christy
do-not-reply at jboss.com
Fri Nov 7 10:40:56 EST 2008
Hi,
I would like to deploy new process, which invoking web-service.
Using Eclipse pluging I created following files:
bpel-file:
anonymous wrote : <?xml version="1.0" encoding="UTF-8"?>
| <bpws:process exitOnStandardFault="yes" name="proc"
| suppressJoinFailure="yes" targetNamespace="new"
| xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
| xmlns:ns="newArtifacts" xmlns:ns0="http://dictionary.ws.esimo/" xmlns:tns="new">
| <bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
| location="proc.wsdl" namespace="new"/>
| <bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
| location="http://127.0.0.1:8080/dictionaryws?wsdl" namespace="http://dictionary.ws.esimo/"/>
| <bpws:import importType="http://schemas.xmlsoap.org/wsdl/" namespace="newArtifacts"/>
| <bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
| location="procArtifacts.wsdl" namespace="newArtifacts"/>
| <bpws:partnerLinks>
| <bpws:partnerLink myRole="procProvider" name="client" partnerLinkType="tns:proc"/>
| <bpws:partnerLink name="dictionaryLink"
| partnerLinkType="ns:dicttype" partnerRole="dictrole"/>
| </bpws:partnerLinks>
| <bpws:variables>
| <bpws:variable messageType="tns:procRequestMessage" name="input"/>
| <bpws:variable messageType="tns:procResponseMessage" name="output"/>
| <bpws:variable
| messageType="ns0:DictionaryWSJaxWS_countIdsByTypeResponse" name="dictionaryLinkResponse"/>
| <bpws:variable
| messageType="ns0:DictionaryWSJaxWS_countIdsByType" name="dictionaryLinkRequest"/>
| </bpws:variables>
| <bpws:sequence name="main">
| <bpws:receive createInstance="yes" name="receiveInput"
| operation="process" partnerLink="client" portType="tns:proc" variable="input"/>
| <bpws:invoke inputVariable="dictionaryLinkRequest" name="Invoke"
| operation="countIdsByType"
| outputVariable="dictionaryLinkResponse"
| partnerLink="dictionaryLink" portType="ns0:DictionaryWSJaxWS"/>
| <bpws:reply name="replyOutput" operation="process"
| partnerLink="client" portType="tns:proc" variable="output"/>
| </bpws:sequence>
| </bpws:process>
|
wsdl-file:
anonymous wrote : <?xml version="1.0"?>
| <definitions name="proc"
| targetNamespace="new" xmlns:tns="new" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
| <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| TYPE DEFINITION - List of types participating in this BPEL process
| The BPEL Designer will generate default request and response types
| but you can define or import any XML Schema type and use them as part
| of the message types.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MESSAGE TYPE DEFINITION - Definition of the message types used as
| part of the port type defintions
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
|
|
|
|
|
|
|
| <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| PORT TYPE DEFINITION - A port type groups a set of operations into
| a logical service unit.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
|
| <!-- portType implemented by the proc BPEL process -->
|
|
|
|
|
|
|
|
| <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| PARTNER LINK TYPE DEFINITION
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
| <plnk:partnerLinkType name="proc">
| <plnk:role name="procProvider" portType="tns:proc"/>
| </plnk:partnerLinkType>
|
|
|
wsdl artifacts:
anonymous wrote : <?xml version="1.0" encoding="UTF-8" standalone="no"?>
| <definitions xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:tns="newArtifacts" xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop" xmlns:wsdl="http://dictionary.ws.esimo/" name="procArtifacts" targetNamespace="newArtifacts" xmlns="http://schemas.xmlsoap.org/wsdl/">
| <plnk:partnerLinkType name="dicttype">
| <plnk:role name="dictrole" portType="wsdl:DictionaryWSJaxWS"/>
| </plnk:partnerLinkType>
|
|
Then I built these three files into .zip and tryed to deploy using http://localhost:8080/jbpm-bpel/processes.jsp .
But I have the error:
anonymous wrote : ERROR [org.jbpm.bpel.xml.ProblemHandler] document is not readable ()
| java.io.FileNotFoundException: C:\jboss-4.2.2.GA\bin (ÐÑказано в доÑÑÑпе)
| at java.io.FileInputStream.open(Native Method)
| at java.io.FileInputStream.(FileInputStream.java:106)
| at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:105)
| at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
| at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
| at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
| at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
| at org.jbpm.bpel.xml.ProcessWsdlLocator.upgradeWsdlDocumentIfNeeded(ProcessWsdlLocator.java:153)
| at org.jbpm.bpel.xml.ProcessWsdlLocator.getBaseInputSource(ProcessWsdlLocator.java:109)
| at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2316)
| at org.jbpm.bpel.xml.BpelReader.readImportWsdlDefinition(BpelReader.java:519)
| at org.jbpm.bpel.xml.BpelReader.readImports(BpelReader.java:447)
| at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:296)
| at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:204)
| at org.jbpm.bpel.par.BpelArchiveParser.readFromArchive(BpelArchiveParser.java:49)
| at org.jbpm.bpel.par.GenericArchiveParser.callProcessArchiveParsers(GenericArchiveParser.java:134)
| at org.jbpm.bpel.par.GenericArchiveParser.readFromArchive(GenericArchiveParser.java:54)
| at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:81)
| at org.jbpm.bpel.web.DeploymentServlet.readProcessDefinition(DeploymentServlet.java:169)
| at org.jbpm.bpel.web.DeploymentServlet.doPost(DeploymentServlet.java:95)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:595)
| 2008-11-07 18:31:55,284 ERROR [org.jbpm.bpel.xml.ProblemHandler] could not read wsdl document (proc.bpel)
| javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing ''.: java.io.FileNotFoundException: C:\jboss-4.2.2.GA\bin (ÐÑказано в доÑÑÑпе)
| at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2111)
| at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2303)
| at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2335)
| at org.jbpm.bpel.xml.BpelReader.readImportWsdlDefinition(BpelReader.java:519)
| at org.jbpm.bpel.xml.BpelReader.readImports(BpelReader.java:447)
| at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:296)
| at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:204)
| at org.jbpm.bpel.par.BpelArchiveParser.readFromArchive(BpelArchiveParser.java:49)
| at org.jbpm.bpel.par.GenericArchiveParser.callProcessArchiveParsers(GenericArchiveParser.java:134)
| at org.jbpm.bpel.par.GenericArchiveParser.readFromArchive(GenericArchiveParser.java:54)
| at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:81)
| at org.jbpm.bpel.web.DeploymentServlet.readProcessDefinition(DeploymentServlet.java:169)
| at org.jbpm.bpel.web.DeploymentServlet.doPost(DeploymentServlet.java:95)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.io.FileNotFoundException: C:\jboss-4.2.2.GA\bin (ÐÑказано в доÑÑÑпе)
| at java.io.FileInputStream.open(Native Method)
| at java.io.FileInputStream.(FileInputStream.java:106)
| at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:105)
| at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
| at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
| at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
| at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
| at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2101)
| ... 32 more
| 2008-11-07 18:31:55,300 ERROR [STDERR] [Fatal Error] :-1:-1: Premature end of file.
| 2008-11-07 18:31:55,300 ERROR [org.jbpm.bpel.xml.ProblemHandler] could not read wsdl document (proc.bpel)
| javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing 'procArtifacts.wsdl'.: org.xml.sax.SAXParseException: Premature end of file.
| at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2111)
| at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2303)
| at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2335)
| at org.jbpm.bpel.xml.BpelReader.readImportWsdlDefinition(BpelReader.java:519)
| at org.jbpm.bpel.xml.BpelReader.readImports(BpelReader.java:447)
| at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:296)
| at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:204)
| at org.jbpm.bpel.par.BpelArchiveParser.readFromArchive(BpelArchiveParser.java:49)
| at org.jbpm.bpel.par.GenericArchiveParser.callProcessArchiveParsers(GenericArchiveParser.java:134)
| at org.jbpm.bpel.par.GenericArchiveParser.readFromArchive(GenericArchiveParser.java:54)
| at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:81)
| at org.jbpm.bpel.web.DeploymentServlet.readProcessDefinition(DeploymentServlet.java:169)
| at org.jbpm.bpel.web.DeploymentServlet.doPost(DeploymentServlet.java:95)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: org.xml.sax.SAXParseException: Premature end of file.
| at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
| at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
| at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2101)
| ... 32 more
| 2008-11-07 18:31:55,300 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jbpm-bpel].[deploymentServlet]] Servlet.service() for servlet deploymentServlet threw exception
| org.jbpm.bpel.xml.BpelParseException: 3 problem(s) found
| at org.jbpm.bpel.par.GenericArchiveParser.readFromArchive(GenericArchiveParser.java:59)
| at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:81)
| at org.jbpm.bpel.web.DeploymentServlet.readProcessDefinition(DeploymentServlet.java:169)
| at org.jbpm.bpel.web.DeploymentServlet.doPost(DeploymentServlet.java:95)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
| at java.lang.Thread.run(Thread.java:595)
| 2008-11-07 18:32:19,941 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic
Before i tryed to build a process which simply return: "Hello, ". It did not invoke any web-services. This process deployed without any problems.
Where is my mistake?
Thank you!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187754#4187754
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187754
More information about the jboss-user
mailing list