3 Replies Latest reply on Apr 10, 2008 3:32 AM by Ramanjaneyulu malisetti

    Cannot deploy BPEL version of HelloWorld

    Mark Lines-Davies Newbie

      Hello

      I'm trying to deploy the HelloWorld sample that comes with jBPM BPEL. I've downloaded the latest JBoss AS and got it running. The database schema has been generated and I can see the web console.

      But when I run "ant deploy.process" the console window I'm using says "deployment failed", and the AS window shows this:

      13:13:23,795 ERROR [[deploymentServlet]] Servlet.service() for servlet deploymentServlet threw exception
      javax.servlet.ServletException: parameter 'processArchive' is expected to have content type 'application/zip' or 'application/x-zip-compressed', found
      : application/octet-stream
      at org.jbpm.bpel.web.DeploymentServlet.parseProcessArchive(DeploymentServlet.java:138)
      at org.jbpm.bpel.web.DeploymentServlet.parseRequest(DeploymentServlet.java:114)
      at org.jbpm.bpel.web.DeploymentServlet.doPost(DeploymentServlet.java:91)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
      at java.lang.Thread.run(Thread.java:619)


      I wondered if Ant might be the problem, as googling suggests problems with Ant and Zip.

      I'm using Windows, by the way...

      regards

      Mark

        • 1. Re: Cannot deploy BPEL version of HelloWorld
          Alejandro Guizar Master

          The deployment page validates the uploaded file is in the ZIP format. However, not all clients seem to report the content type consistently.

          Please deploy using the web console instead of Ant. Let us know how it goes.

          • 2. Re: Cannot deploy BPEL version of HelloWorld
            Mark Lines-Davies Newbie

            Hello Alex

            If I try browsing to the zip file from the web console and then pressing Deploy, I get the display shown below. The AS window shows the same stack trace.

            regards

            Mark

            HTTP Status 500 -

            --------------------------------------------------------------------------------

            type Exception report

            message

            description The server encountered an internal error () that prevented it from fulfilling this request.

            exception

            java.lang.NullPointerException
            org.jbpm.bpel.tools.WscompileTool.getLocation(WscompileTool.java:240)
            org.jbpm.bpel.tools.WscompileTool.formatClasspath(WscompileTool.java:227)
            org.jbpm.bpel.tools.WscompileTool.callWscompile(WscompileTool.java:197)
            org.jbpm.bpel.tools.WscompileTool.generateJavaMappingImpl(WscompileTool.java:156)
            org.jbpm.bpel.tools.WscompileTool.generateJavaMapping(WscompileTool.java:143)
            org.jbpm.bpel.tools.WebModuleBuilder.callJavaMappingTool(WebModuleBuilder.java:264)
            org.jbpm.bpel.tools.WebModuleBuilder.buildModuleImpl(WebModuleBuilder.java:102)
            org.jbpm.bpel.tools.WebModuleBuilder.buildModule(WebModuleBuilder.java:84)
            org.jbpm.bpel.web.DeploymentServlet.deployWebModule(DeploymentServlet.java:205)
            org.jbpm.bpel.web.DeploymentServlet.doPost(DeploymentServlet.java:99)
            javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
            javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
            org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


            note The full stack trace of the root cause is available in the JBossWeb/2.0.1.GA logs.


            --------------------------------------------------------------------------------

            JBossWeb/2.0.1.GA

            • 3. Re: Cannot deploy BPEL version of HelloWorld
              Ramanjaneyulu malisetti Newbie

              This problem comes if you have Java-1.6. Please downgrade to java 1.5.

              Regards
              Raman