3 Replies Latest reply on Nov 13, 2005 4:37 PM by koen.aers

    Namespace for prefix 'plt' has not been declared

    koen.aers

      Hi everybody...

      For once a question from me here. I am playing with the BPEL extension pack. I am using the 1.0 alpha3 download. While trying to deploy the hello example I get a stacktrace that does not mean much to me (see below). It says that some namespace has not been declared. In the hello.wsdl file I have found this namespace declaration. Does it have to be somewhere else also? Has anybody else encountered this problem? I am feeling like a newbie here ;-))

      Regards,
      Koen


      [deploypar] 15:18:57,379 DEBUG LocalEntityResolver : wsdl.xsd maps to URL: jar:file:/C:/temp/bpel/build/jbpm-bpel-1.0-alpha3.jar!/org/jbpm/bpel/xml/util/wsdl.xsd
      [deploypar] 15:18:57,410 DEBUG LocalEntityResolver : plink_1_1.xsd maps to URL: jar:file:/C:/temp/bpel/build/jbpm-bpel-1.0-alpha3.jar!/org/jbpm/bpel/xml/util/plink_1_1.xsd
      [deploypar] 15:18:57,780 ERROR ProblemCollector : META-INF/bpel-definition.xml Namespace for prefix 'plt' has not been declared.
      [deploypar] 15:18:57,790 ERROR ProblemCollector : META-INF/bpel-definition.xml unable to upgrade wsdl document: hello.wsdl
      [deploypar] javax.xml.transform.TransformerException: java.lang.RuntimeException: Namespace for prefix 'plt' has not been declared.
      [deploypar] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:647)
      [deploypar] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:279)
      [deploypar] at org.jbpm.bpel.xml.ImportWsdlLocator.getInputSource(ImportWsdlLocator.java:114)
      [deploypar] at org.jbpm.bpel.xml.ImportWsdlLocator.getBaseInputSource(ImportWsdlLocator.java:77)
      [deploypar] at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
      [deploypar] at org.jbpm.bpel.xml.BpelReader.readWsdlDocument(BpelReader.java:337)
      [deploypar] at org.jbpm.bpel.par.DefinitionDescArchiveParser.readDocuments(DefinitionDescArchiveParser.java:67)
      [deploypar] at org.jbpm.bpel.par.DefinitionDescArchiveParser.readFromArchive(DefinitionDescArchiveParser.java:40)
      [deploypar] at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:46)
      [deploypar] at org.jbpm.graph.def.ProcessDefinition.parseParZipInputStream(ProcessDefinition.java:154)
      [deploypar] at org.jbpm.jpdl.par.ProcessArchiveDeployer.deployZipInputStream(ProcessArchiveDeployer.java:46)
      [deploypar] at org.jbpm.ant.DeployParTask.deploy(DeployParTask.java:69)
      [deploypar] at org.jbpm.ant.DeployParTask.execute(DeployParTask.java:57)
      [deploypar] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      [deploypar] at org.apache.tools.ant.Task.perform(Task.java:364)
      [deploypar] at org.apache.tools.ant.Target.execute(Target.java:341)
      [deploypar] at org.apache.tools.ant.Target.performTasks(Target.java:369)
      [deploypar] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
      [deploypar] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
      [deploypar] at org.apache.tools.ant.Main.runBuild(Main.java:673)
      [deploypar] at org.apache.tools.ant.Main.startAnt(Main.java:188)
      [deploypar] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
      [deploypar] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

        • 1. Re: Namespace for prefix 'plt' has not been declared
          kukeltje

          Dear Koen,

          Nice to hear you are using the jBPM BPEL extension pack. Unfortunately I have no knowledge of the jBPM BPEL extension (yet). We do have experts however on this subject and I will make sure one of them gets in contact with you, unless the community provide an answer on short notice.

          In other words, I think Alex should answer this :-)

          I hope I was of some help

          • 2. Re: Namespace for prefix 'plt' has not been declared
            aguizar

            Koen,

            Thanks for taking the time to check out the BPEL extension! I've also had the opportunity to work with the GPD recently. Sweet work!

            Coming back to the question, upon deployment, the BPEL extension upgrades process definitions conforming to v1.1 of the spec (in namespace http://schemas.xmlsoap.org/ws/2003/03/business-process/) to v2.0 (in namespace http://schemas.xmlsoap.org/ws/2004/03/business-process/) by means of an XSL transformation.

            Due to limitations in XSL to handle namespace declarations, the upgrader uses a hack that introduces a dummy attribute with the declared prefix so that the transformed is forced to write the namespace declaration in the target document. Strangely enough, it works with Xalan 2.4.1 (included in JRE 1.4.2) and 2.6.X, but not Xalan 2.5 (included in JRE 1.5).

            From section 2.3 of the jPBPM BPEL user guide:

            If you are using JDK 1.5, you should also copy the Xalan JAR from lib/xalan, as there are problems with the default TrAX implementation
            You might want to scan that page for extra set up pointers.

            • 3. Re: Namespace for prefix 'plt' has not been declared
              koen.aers

              Thanks Alex. I overlooked this part of the user guide as I had ant already installed.

              Regards,
              Koen