I'm trying to deploy the "Hello" example from the jBPM BPEL Extension tutorial 
using JBoss 4.0.2 which results in the following error: 


[java] [Fatal Error] hello.wsdl:2:473: The prefix "tns" for attribute "tns: 
dummy" associated with an element type "definitions" is not bound. 
[java] 14:44:09,944 ERROR ProblemCollector : could not read wsdl document 
[java] WSDLException: faultCode=PARSER_ERROR: Problem parsing '- WSDL Document 
-'.: The prefix "tns" for attribute "tns:dummy" associated with an element type 
"definitions" is not bound.: org.xml.sax.SAXParseException: The prefix "tns" 
for attribute "tns:dummy" associated with an element type "definitions" is not 
bound.


I have listed the wsdl file below.  Please note that the closing '>' on some 
lines has been changed to '*>' to keep the lines from being processed and 
subsequently failing to display - there are no '*>' chars in the real file.


<?xml version="1.0" encoding="UTF-8"?> 

<definitions targetNamespace="http://jbpm.org/examples/hello"; 
xmlns:tns="http://jbpm.org/examples/hello"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://schemas.xmlsoap.org/wsdl/ 
http://schemas.xmlsoap.org/wsdl/ 
http://schemas.xmlsoap.org/ws/2003/05/partner-link/ 
http://schemas.xmlsoap.org/ws/2003/05/partner-link/"; 
xmlns="http://schemas.xmlsoap.org/wsdl/";> 

<!-- characterizes the relationship between the process and its caller --> 
"<plt:partnerLinkType name="helloPLT"> 
<plt:role name="service"> 
<plt:portType name="tns:helloPT"/> 
</plt:role> 
</plt:partnerLinkType>" 

<message name="nameMessage"*> 
<part name="name" type="xsd:string"/*> 
</message*> 

<!-- carries the greeting --> 
<message name="greetingMessage"*> 
<part name="greeting" type="xsd:string"/*> 
</message*> 

<!-- describes the interface presented to callers --> 
<portType name="helloPT"*> 
<operation name="sayHello"*> 
<input message="tns:nameMessage"/*> 
<output message="tns:greetingMessage"/*> 
</operation*> 
</portType*> 

</definitions*> 


The complete error trace from the command "ant deploy-hello-definition" using 
the build.xml that came with the download is:


Buildfile: build.xml 

pack-hello-definition: 

deploy-hello-definition: 

deploy-definition: 
[java] 14:44:08,392 DEBUG JbpmConfiguration : 
jbpm.task.instance.class=org.jbpm.taskmgmt.exe.TaskInstance 
[java] 14:44:08,392 DEBUG JbpmConfiguration : 
jbpm.scheduler.service.factory=org.jbpm.scheduler.impl.SchedulerServiceImpl 
[java] 14:44:08,392 DEBUG JbpmConfiguration : 
jbpm.deploy.jndi.context=bpelProcesses 
[java] 14:44:09,173 DEBUG LocalEntityResolver : bpel_definition_1_0.xsd maps to 
URL: 
jar:file:/D:/fullerj/fullerj/jbpm-bpel-1.0-alpha2/build/jbpm-bpel-1.0-alpha2.jar!/org/jbpm/bpel/xml/util/bpel_definition_1_0.xsd
 
[java] 14:44:09,683 DEBUG BpelReader : read wsdl document: hello.wsdl 
[java] 14:44:09,683 DEBUG LocalEntityResolver : wsdl.xsd maps to URL: 
jar:file:/D:/fullerj/fullerj/jbpm-bpel-1.0-alpha2/build/jbpm-bpel-1.0-alpha2.jar!/org/jbpm/bpel/xml/util/wsdl.xsd
 
[java] 14:44:09,753 DEBUG LocalEntityResolver : plink_1_1.xsd maps to URL: 
jar:file:/D:/fullerj/fullerj/jbpm-bpel-1.0-alpha2/build/jbpm-bpel-1.0-alpha2.jar!/org/jbpm/bpel/xml/util/plink_1_1.xsd
 
[java] 14:44:09,914 DEBUG ImportWsdlLocator : upgraded wsdl document: 
hello.wsdl 
[java] [Fatal Error] hello.wsdl:2:473: The prefix "tns" for attribute "tns: 
dummy" associated with an element type "definitions" is not bound. 
[java] 14:44:09,944 ERROR ProblemCollector : could not read wsdl document 
[java] WSDLException: faultCode=PARSER_ERROR: Problem parsing '- WSDL Document 
-'.: The prefix "tns" for attribute "tns:dummy" associated with an element type 
"definitions" is not bound.: org.xml.sax.SAXParseException: The prefix "tns" 
for attribute "tns:dummy" associated with an element type "definitions" is not 
bound. 
[java] at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) 
[java] at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) 
[java] at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown Source) 
[java] at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) 
[java] at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) 
[java] at org.jbpm.bpel.xml.BpelReader.readWsdlDocument(BpelReader.java:304) 
[java] at 
org.jbpm.bpel.par.ParDescriptorArchiveParser.readDocuments(ParDescriptorArchiveParser.java:68)
 
[java] at 
org.jbpm.bpel.par.ParDescriptorArchiveParser.readFromArchive(ParDescriptorArchiveParser.java:47)
 
[java] at 
org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:46) 
[java] at 
org.jbpm.bpel.par.JndiProcessDeployer.deployProcessArchive(JndiProcessDeployer.java:53)
 
[java] at 
org.jbpm.bpel.par.JndiProcessDeployer.deployProcessArchives(JndiProcessDeployer.java:184)
 
[java] at 
org.jbpm.bpel.par.JndiProcessDeployer.main(JndiProcessDeployer.java:160) 

[java] at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown Source) 
[java] at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) 
[java] at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) 
[java] at org.jbpm.bpel.xml.BpelReader.readWsdlDocument(BpelReader.java:304) 
[java] at 
org.jbpm.bpel.par.ParDescriptorArchiveParser.readDocuments(ParDescriptorArchiveParser.java:68)
 
[java] at 
org.jbpm.bpel.par.ParDescriptorArchiveParser.readFromArchive(ParDescriptorArchiveParser.java:47)
 
[java] at 
org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:46) 
[java] at 
org.jbpm.bpel.par.JndiProcessDeployer.deployProcessArchive(JndiProcessDeployer.java:53)
 
[java] at 
org.jbpm.bpel.par.JndiProcessDeployer.deployProcessArchives(JndiProcessDeployer.java:184)
 
[java] at 
org.jbpm.bpel.par.JndiProcessDeployer.main(JndiProcessDeployer.java:160) 
[java] 14:44:09,964 DEBUG LocalEntityResolver : bpel_1_1.xsd maps to URL: 
jar:file:/D:/fullerj/fullerj/jbpm-bpel-1.0-alpha2/build/jbpm-bpel-1.0-alpha2.jar!/org/jbpm/bpel/xml/util/bpel_1_1.xsd
 
[java] 14:44:09,984 DEBUG LocalEntityResolver : wsdl.xsd maps to URL: 
jar:file:/D:/fullerj/fullerj/jbpm-bpel-1.0-alpha2/build/jbpm-bpel-1.0-alpha2.jar!/org/jbpm/bpel/xml/util/wsdl.xsd
 
[java] 14:44:10,134 DEBUG BpelReader : upgraded bpel document: hello.bpel 
[java] 14:44:10,134 ERROR JndiProcessDeployer : deployment failed 
[java] java.lang.NullPointerException 
[java] at 
org.jbpm.bpel.xml.BpelReader.registerPropertyAliases(BpelReader.java:217) 
[java] at 
org.jbpm.bpel.xml.BpelReader.registerPropertyAliases(BpelReader.java:210) 
[java] at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:190) 
[java] at org.jbpm.bpel.xml.BpelReader.read(BpelReader.java:148) 
[java] at 
org.jbpm.bpel.par.BpelArchiveParser.readFromArchive(BpelArchiveParser.java:25) 
[java] at 
org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:46) 
[java] at 
org.jbpm.bpel.par.JndiProcessDeployer.deployProcessArchive(JndiProcessDeployer.java:53)
 
[java] at 
org.jbpm.bpel.par.JndiProcessDeployer.deployProcessArchives(JndiProcessDeployer.java:184)
 
[java] at 
org.jbpm.bpel.par.JndiProcessDeployer.main(JndiProcessDeployer.java:160) 

BUILD SUCCESSFUL 
Total time: 3 seconds 


Has anyone dealt with this problem before or successfully run the example 
following the tutorial posted on the web? 

Any help is certainly appreciated. 

John

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883412#3883412

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3883412


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to