4 Replies Latest reply on Jul 13, 2010 11:09 AM by dsalam

    Error deploying simple process jbpm3.3.1 jboss4.2.3 jdk6

      I cannot seem to deploy a process from Eclipse to jBPM. Any suggestions would be much appreciated.

      If I click the "Test Connection..." button it says "The server connection was successfully tested."

      If I click the "Deploy Process Archive..." button I get the following.

      Reason:
      An unexpected exception caused the deployment to fail
      Details:
      Error while deploying, look in the Error Log for more info

      What log am I supposed to be looking at here? Clicking the deploy button does not seem to put anything in c:\jboss-4.2.3.GA\server\default\log\server.log.

      However I did notice that when I click the test connection button this server.log is updated. Here is what it puts in there, I cut out the left side of it...


      jsf.lifecycle] execute(com.sun.faces.context.FacesContextImpl@7ee722)
      jsf.lifecycle] Entering RestoreViewPhase
      jsf.lifecycle] New request: creating a view for /ua/login-example.jsf
      jsf.application] Created component with component type of 'javax.faces.ViewRoot'
      jsf.application] servletPath /ua/login-example.jsf
      jsf.application] pathInfo null
      jsf.application] URL pattern of the FacesServlet executing the current request .jsf
      jsf.application] viewId after appending the context suffix /ua/login-example.xhtml
      jsf.application] Created new view for /ua/login-example.xhtml
      jsf.application] Locale for this view as determined by calculateLocale en
      jsf.application] RenderKitId for this view as determined by calculateRenderKitId HTML_BASIC
      jsf.lifecycle] Exiting RestoreViewPhase
      jsf.timing] [TIMING] - [0ms] : Execution time for phase (including any PhaseListeners) -> RESTORE_VIEW 1
      jsf.lifecycle] render(com.sun.faces.context.FacesContextImpl@7ee722)
      jsf.lifecycle] Entering RenderResponsePhase
      jsf.lifecycle] About to render view /ua/login-example.xhtml
      jsf.application] Created component with component type of 'javax.faces.HtmlOutputText'
      jsf.application] Created component with component type of 'javax.faces.HtmlOutputText'
      jsf.application] Created component with component type of 'gravel.action.ResponseActions'
      jsf.application] processAction(j_id9)
      jsf.application] Created component with component type of 'gravel.Simple'
      jsf.application] Created component with component type of 'gravel.action.ResponseActions'
      jsf.application] processAction(j_id13)
      jsf.application] Created component with component type of 'javax.faces.HtmlOutputText'
      jsf.application] Created component with component type of 'javax.faces.HtmlOutputText'
      jsf.application] Created component with component type of 'gravel.Repeat'
      jsf.application] Created component with component type of 'javax.faces.HtmlOutputText'
      jsf.application] Created component with component type of 'javax.faces.HtmlOutputText'
      jsf.application] Created component with component type of 'gravel.Repeat'
      jsf.application] Created component with component type of 'javax.faces.HtmlOutputText'
      jsf.application] Created component with component type of 'javax.faces.HtmlOutputText'
      jsf.application] Created component with component type of 'gravel.Repeat'
      jsf.application] Created component with component type of 'javax.faces.HtmlOutputText'
      jsf.application] Created component with component type of 'javax.faces.HtmlOutputText'
      jsf.application] Created component with component type of 'gravel.Repeat'
      jsf.application] Created component with component type of 'gravel.Simple'
      jsf.application] Created component with component type of 'javax.faces.HtmlOutputText'
      jsf.application] Created component with component type of 'javax.faces.HtmlOutputText'
      jsf.renderkit] component.getValue() returned JBoss jBPM Administration Console
      jsf.renderkit] Value to be rendered JBoss jBPM Administration Console
      jsf.renderkit] component.getValue() returned Welcome to the jBPM Console
      jsf.renderkit] Value to be rendered Welcome to the jBPM Console
      jsf.renderkit] component.getValue() returned JBoss jBPM Administration Console
      jsf.renderkit] Value to be rendered JBoss jBPM Administration Console
      jsf.lifecycle] Exiting RenderResponsePhase
      jsf.timing] [TIMING] - [50ms] : Execution time for phase (including any PhaseListeners) -> RENDER_RESPONSE 6

        • 1. Re: Error deploying simple process jbpm3.3.1 jboss4.2.3 jdk6

          I think I figured it out. It seems that Eclipse does not really care what you put in the "Server Deployer:" field. It seems that it will use this for the test button, but not the deploy button. I am guessing this is hard coded somewhere...

          I updated this field to be /jbpm-console/app/upload and the test button would work, but the deploy button would not. I then updated my web.xml to move upload back to /jbpm-console/upload. Now it works.

          To anyone having trouble with deploying from eclipse I'd recommend the following change to your web.xml.

          from
          <url-pattern>/app/upload/*</url-pattern>
          to
          <url-pattern>/upload/*</url-pattern>

          • 2. Re: Error deploying simple process jbpm3.3.1 jboss4.2.3 jdk6
            kukeltje

            first of all, it is the eclipse log in .metadata in your workspace that is meant.

            if it is hardcoded somewhere can be checked in the sourcecode. If you care to do so, you might file a bug in jira if it turns out you are correct in your assumption

            • 3. Re: Error deploying simple process jbpm3.3.1 jboss4.2.3 jdk6

              Hello Rob,

               

              I face a similar problem trying to deploy a jBPM workflow for alfresco. When I did a web.xml search on my local drive, I found so many instances. Could you specify which web.xml you meant?

               

              BR

              Amar

              • 4. Re: Error deploying simple process jbpm3.3.1 jboss4.2.3 jdk6
                dsalam

                Amar, you are supposed to have one web.xml for your application. Ensure the web.xml is associated with the application (project) you are working with where you are having that problem.

                 

                Other web.xmls can be for other projects you have created

                 

                good luck