5 Replies Latest reply on Sep 26, 2005 1:14 AM by Cassio Freire

    JBPM_BPEL -

    Cassio Freire Newbie

      Hi ALL,

      I downloaded the jbpm-bpel-1.0-alpha3 and When I run the task "deploy- definition" happen the error: Namespace for prefix 'plt' has not been declared (example hello) and Namespace for prefix 'bpel' has not been declared (example atm).

      Please help me

        • 1. Re: JBPM_BPEL -
          Cassio Freire Newbie

          Sorry,

          The title doesn´t show. [Re: JBPM_BPEL - Namespace has not been declared].

          • 2. Re: JBPM_BPEL -
            Alejandro Guizar Master

            I think the problem is caused by the issue mentioned in section 2.3 of the jBPM BPEL user guide: there are problems with the TrAX implementation embedded in JDK 1.5, so you should include the Apache Xalan library in your Ant classpath.

            If you provide the exception stack trace, I will be able to help you better.

            • 3. Re: JBPM_BPEL - Namespace for prefix 'plt' has not been decl
              Cassio Freire Newbie

              Dear Alejandro,

              I followed step-by-step the document (...\jbpm-bpel-1.0-alpha3\doc\userguide\en\html\index.html), but the error continue.
              I already observed the section 2.3 and copied the jar (junit-3.8.1.jar / xalan.jar) to ANT_HOME\lib but doesn't solved.
              In my computer, I have install Java 1.5, Jboss 4.0.2, Ant 1.6.5 and JBPM_BPEL alpha 3.

              Waiting answer.

              Thanks,

              Keep on the error

              .....
              [deploypar] 18:06:06,187 ERROR ProblemCollector : META-INF/bpel-definition.xml
              Namespace for prefix 'plt' has not been declared.
              [deploypar] 18:06:06,203 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(ImportWsdl
              Locator.java:114)
              [deploypar] at org.jbpm.bpel.xml.ImportWsdlLocator.getBaseInputSource(Import
              WsdlLocator.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(D
              efinitionDescArchiveParser.java:67)
              [deploypar] at org.jbpm.bpel.par.DefinitionDescArchiveParser.readFromArchive
              (DefinitionDescArchiveParser.java:40)
              [deploypar] at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(Proce
              ssArchive.java:46)
              [deploypar] at org.jbpm.graph.def.ProcessDefinition.parseParZipInputStream(P
              rocessDefinition.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.ja
              va: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.executeSortedTargets(Project.jav
              a:1216)
              [deploypar] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

              [deploypar] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
              faultExecutor.java:40)
              [deploypar] at org.apache.tools.ant.Project.executeTargets(Project.java:1068
              )
              [deploypar] at org.apache.tools.ant.Main.runBuild(Main.java:668)
              [deploypar] at org.apache.tools.ant.Main.startAnt(Main.java:187)
              [deploypar] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
              [deploypar] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
              [deploypar] Caused by: java.lang.RuntimeException: Namespace for prefix 'plt' ha
              s not been declared.
              [deploypar] at com.sun.org.apache.xml.internal.serializer.SerializerBase.get
              NamespaceURI(SerializerBase.java:866)
              [deploypar] at com.sun.org.apache.xml.internal.serializer.SerializerBase.add
              Attribute(SerializerBase.java:406)
              [deploypar] at GregorSamsa.copyNamespaces()
              [deploypar] at GregorSamsa.template$dot$2()
              [deploypar] at GregorSamsa.applyTemplates()
              [deploypar] at GregorSamsa.applyTemplates()
              [deploypar] at GregorSamsa.transform()
              [deploypar] at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTrans
              let.transform(AbstractTranslet.java:594)
              [deploypar] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.
              transform(TransformerImpl.java:640)
              [deploypar] ... 24 more
              [deploypar] ---------
              [deploypar] java.lang.RuntimeException: Namespace for prefix 'plt' has not been
              declared.
              [deploypar] at com.sun.org.apache.xml.internal.serializer.SerializerBase.get
              NamespaceURI(SerializerBase.java:866)
              [deploypar] at com.sun.org.apache.xml.internal.serializer.SerializerBase.add
              Attribute(SerializerBase.java:406)
              [deploypar] at GregorSamsa.copyNamespaces()
              [deploypar] at GregorSamsa.template$dot$2()
              [deploypar] at GregorSamsa.applyTemplates()
              [deploypar] at GregorSamsa.applyTemplates()
              [deploypar] at GregorSamsa.transform()
              [deploypar] at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTrans
              let.transform(AbstractTranslet.java:594)
              [deploypar] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.
              transform(TransformerImpl.java:640)
              [deploypar] at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.
              transform(TransformerImpl.java:279)
              [deploypar] at org.jbpm.bpel.xml.ImportWsdlLocator.getInputSource(ImportWsdl
              Locator.java:114)
              [deploypar] at org.jbpm.bpel.xml.ImportWsdlLocator.getBaseInputSource(Import
              WsdlLocator.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(D
              efinitionDescArchiveParser.java:67)
              [deploypar] at org.jbpm.bpel.par.DefinitionDescArchiveParser.readFromArchive
              (DefinitionDescArchiveParser.java:40)
              [deploypar] at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(Proce
              ssArchive.java:46)
              [deploypar] at org.jbpm.graph.def.ProcessDefinition.parseParZipInputStream(P
              rocessDefinition.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.ja
              va: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.executeSortedTargets(Project.jav
              a:1216)
              [deploypar] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

              [deploypar] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
              faultExecutor.java:40)
              [deploypar] at org.apache.tools.ant.Project.executeTargets(Project.java:1068
              )
              [deploypar] at org.apache.tools.ant.Main.runBuild(Main.java:668)
              [deploypar] at org.apache.tools.ant.Main.startAnt(Main.java:187)
              [deploypar] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
              [deploypar] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
              [deploypar] [Fatal Error] :-1:-1: Premature end of file.
              [deploypar] 18:06:06,937 DEBUG ProcessArchiveDeployer : starting transaction to
              deploy process BpelDefinition(c58af4)
              [deploypar] 18:06:07,218 DEBUG ProcessArchiveDeployer : flushing...
              [deploypar] 18:06:07,296 DEBUG ProcessArchiveDeployer : committing transaction t
              o deploy process BpelDefinition(c58af4)

              BUILD SUCCESSFUL
              Total time: 37 seconds

              • 4. Re: JBPM_BPEL - Namespace for prefix not declared
                Alejandro Guizar Master

                I extracted a fresh copy of Ant 1.6.5 and run the deploy-definition target. Got the same error as you. After that, I copied xalan.jar to ANT_HOME/lib. I re-ran the target and the problem dissapeared.

                I'd say the Ant installation where you copied the libraries is not the same that executes the tasks. You aren't using an IDE, right?

                • 5. Re: JBPM_BPEL -
                  Cassio Freire Newbie

                  I'm not using an IDE. I already was running the examples via command line, but to install the Java WSDP, I copied these jar (dom.jar, jaxp-api.jar, sax.jar, xalan.jar, xercesImpl.jar) to JAVA_HOME/jre/lib/endorsed, in agreement with installation instructions of WSDP.
                  I deleted these files and run the deploy-definition target. I think that due the precede order of classpath to Java, it's doesn't worked. Now, the problem disapeared. But, when I ran the deploy-definition target, happened the exception.

                  thankful

                  _0_2 date=200505022023)] Started in 1m:46s:687ms
                  01:39:46,109 INFO [EARDeployer] Init J2EE application: file:/D:/Java/JBPM/jboss
                  -4.0.2/server/default/deploy/hello-application.ear
                  01:39:48,093 INFO [TomcatDeployer] deploy, ctxPath=/hello, warUrl=file:/D:/Java
                  /JBPM/jboss-4.0.2/server/default/tmp/deploy/tmp7217hello-application.ear-content
                  s/hello-web-exp.war/
                  01:39:51,359 WARN [JDBCExceptionReporter] SQL Error: 1116, SQLState: HY000
                  01:39:51,359 ERROR [JDBCExceptionReporter] Too many tables. MySQL can only use 3
                  1 tables in a join

                  01:39:51,406 ERROR [[/hello]] StandardWrapper.Throwable
                  org.hibernate.exception.GenericJDBCException: could not initialize a collection:
                  [org.jbpm.graph.def.ProcessDefinition.nodes#3]
                  at org.hibernate.exception.ErrorCodeConverter.handledNonSpecificExceptio
                  n(ErrorCodeConverter.java:92)
                  at org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter
                  .java:80)
                  at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelp
                  er.java:43)
                  at org.hibernate.loader.Loader.loadCollection(Loader.java:1407)
                  at org.hibernate.loader.collection.OneToManyLoader.initialize(OneToManyL
                  oader.java:107)
                  at org.hibernate.persister.collection.AbstractCollectionPersister.initia
                  lize(AbstractCollectionPersister.java:483)
                  at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onIn
                  itializeCollection(DefaultInitializeCollectionEventListener.java:60)
                  at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:
                  1412)
                  at org.hibernate.collection.AbstractPersistentCollection.initialize(Abst
                  ractPersistentCollection.java:171)
                  at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPe
                  rsistentCollection.java:48)
                  at org.hibernate.collection.PersistentList.get(PersistentList.java:218)
                  at org.jbpm.bpel.def.BpelDefinition.getScope(BpelDefinition.java:120)
                  at org.jbpm.bpel.application.ScopeMatcher.match(ScopeMatcher.java:30)
                  at org.jbpm.bpel.service.messager.Messager.buildMessager(Messager.java:1
                  55)
                  ................
                  Caused by: java.sql.SQLException: Too many tables. MySQL can only use 31 tables
                  in a join

                  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2921)
                  at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1570)
                  at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665)
                  at com.mysql.jdbc.Connection.execSQL(Connection.java:2978)
                  at com.mysql.jdbc.Connection.execSQL(Connection.java:2902)
                  at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.ja
                  va:930)
                  at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:
                  1024)
                  at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery
                  (WrappedPreparedStatement.java:296)
                  at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:
                  118)
                  at org.hibernate.loader.Loader.getResultSet(Loader.java:1237)
                  at org.hibernate.loader.Loader.doQuery(Loader.java:374)
                  at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Lo
                  ader.java:210)
                  at org.hibernate.loader.Loader.loadCollection(Loader.java:1400)
                  ... 84 more