1 Reply Latest reply on Dec 10, 2007 8:56 PM by Pedro Luppi

    error in form generation

    Pedro Luppi Newbie

      Someone can help me ?
      I generate a form (request-entry.xhtml ) in generate form button, and deploy the process. When i started the process, i got this error:

      23:40:19,536 WARN [JpdlXmlReader] process xml warning: swimlane 'ernie' does not have an assignment
      23:40:48,642 WARN [ProxyWarnLog] Narrowing proxy to class org.jbpm.graph.node.StartState - this operation breaks ==
      23:40:48,703 INFO [STDOUT] null
      23:40:55,874 ERROR [STDERR] 10/12/2007 23:40:55 com.sun.facelets.FaceletViewHandler handleRenderException
      SEVERE: Error Rendering View[/common/taskform.xhtml]
      com.sun.facelets.tag.TagException: //request-entry.xhtml @14,20 <jbpm:dataform> Tag Library supports namespace: http://jbpm.org/jsf, but no tag was defined for name: dataform
      at com.sun.facelets.compiler.CompilationManager.pushTag(CompilationManager.java:193)
      at com.sun.facelets.compiler.SAXCompiler$CompilationHandler.startElement(SAXCompiler.java:189)
      at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(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.AbstractSAXParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      at javax.xml.parsers.SAXParser.parse(Unknown Source)
      at javax.xml.parsers.SAXParser.parse(Unknown Source)
      at com.sun.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:226)
      at com.sun.facelets.compiler.Compiler.compile(Compiler.java:104)
      at com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:192)
      at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:141)
      at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:293)
      at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
      at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:140)
      at com.sun.facelets.tag.ui.IncludeHandler.apply(IncludeHandler.java:60)
      at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      at com.sun.facelets.tag.ui.DefineHandler.apply(DefineHandler.java:58)
      at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:128)
      at com.sun.facelets.impl.DefaultFaceletContext$TemplateClientMomento.apply(DefaultFaceletContext.java:303)
      at com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:273)
      at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:63)
      at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
      at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
      at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
      at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
      at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:140)
      at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
      at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
      at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
      at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:481)
      at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:523)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:133)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:619)


      ***************************************************************************************************************************************************************************************

      the start state is:

      <start-state name="enter request">







      </start-state>

      ***************************************************************************************************************************************************************************************
      the form is:

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >

      <!-- the DOCTYPE means we are required to use html for a root element -->
      <html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:tf="http://jbpm.org/jsf/tf"
      xmlns:jbpm="http://jbpm.org/jsf">

      <ui:component>

      <jbpm:dataform>

      <f:facet name="header">
      <h:outputText value="#{taskName}"/>
      </f:facet>

      <!-- TASKFORM ROWS -->
      <jbpm:datacell>
      <f:facet name="header">
      <h:outputText value="start date"/>
      </f:facet>
      <h:inputText value="#{var['start date']}" />
      </jbpm:datacell>
      <jbpm:datacell>
      <f:facet name="header">
      <h:outputText value="duration"/>
      </f:facet>
      <h:inputText value="#{var['duration']}" />
      </jbpm:datacell>

      <jbpm:datacell>
      <f:facet name="header">
      <h:outputText value="Actions"/>
      </f:facet>
      <!-- TASKFORM BUTTONS -->
      <tf:saveButton value="Save"/>
      <tf:cancelButton value="Cancel"/>
      <tf:transitionButton value="Save and Close"/>
      </jbpm:datacell>

      </jbpm:dataform>

      </ui:component>



        • 1. Re: error in form generation
          Pedro Luppi Newbie

          the correct start state is :
          start-state name="enter request"
          task name="request entry" swimlane="ernie"
          controller
          variable name="start date" access="read,write,required"
          variable name="duration" access="read,write,required"
          /controller
          /task
          transition name="" to="evaluate request"
          /start-state