4 Replies Latest reply on Nov 30, 2005 11:12 AM by Atul Pandey

    jBPM deployment problems !!

    Atul Pandey Newbie

      Hi,
      I managed to get jBPM up and running and got the webapp example from the jbpm starters kit started without any problems. I have also used the eclipse plugin to view the processdefinition files and source code files for the websales example... how ever i'm not sure of what all i need to do in order to modify this example and redeploy it back onto the jBOSS server in the startup kit to view the changes that i have made ..
      i tried deploying the websales example (without making any changes to the code) from the source code from eclipse but got the following error . .can someone tell me whats going wrong here.
      Thanks.
      mav

      13:09:30,125 DEBUG [LogFilter] request http://localhost:8080/jbpm/deploy
      13:09:30,125 DEBUG [LogFilter] request parameter [archive]=file://C:\DOCUME~1\ADMINI~1.IQS\LOCALS~1\Temp\1\websale.par43159.tmp
      13:09:30,171 DEBUG [PersistenceContext] beginning transaction
      13:09:30,187 DEBUG [DeployServlet] deploying archive file://C:\DOCUME~1\ADMINI~1.IQS\LOCALS~1\Temp\1\websale.par43159.tmp
      13:09:30,203 INFO [STDOUT] java.io.FileNotFoundException: \DOCUME~1\ADMINI~1.IQS\LOCALS~1\Temp\1\websale.par43159.tmp
      13:09:30,203 INFO [STDOUT] at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:82)
      13:09:30,203 INFO [STDOUT] at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:91)
      13:09:30,203 INFO [STDOUT] at java.net.URL.openStream(URL.java:1007)
      13:09:30,203 INFO [STDOUT] at org.jbpm.webapp.servlet.DeployServlet.doGet(DeployServlet.java:31)
      13:09:30,203 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      13:09:30,203 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      13:09:30,203 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      13:09:30,203 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      13:09:30,203 INFO [STDOUT] at org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:25)
      13:09:30,203 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      13:09:30,203 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      13:09:30,203 INFO [STDOUT] at org.jbpm.webapp.filter.PersistenceFilter.doFilter(PersistenceFilter.java:28)
      13:09:30,203 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      13:09:30,203 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      13:09:30,203 INFO [STDOUT] at org.jbpm.webapp.filter.ContextFilter.doFilter(ContextFilter.java:19)
      13:09:30,203 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      13:09:30,203 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      13:09:30,203 INFO [STDOUT] at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:38)
      13:09:30,203 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      13:09:30,203 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      13:09:30,203 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
      13:09:30,203 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      13:09:30,203 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      13:09:30,203 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      13:09:30,203 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      13:09:30,203 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
      13:09:30,203 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
      13:09:30,203 INFO [STDOUT] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
      13:09:30,203 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      13:09:30,203 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      13:09:30,218 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      13:09:30,218 INFO [STDOUT] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      13:09:30,218 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
      13:09:30,218 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
      13:09:30,218 INFO [STDOUT] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      13:09:30,218 INFO [STDOUT] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      13:09:30,218 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)
      13:09:30,218 DEBUG [PersistenceContext] committing transaction
      


        • 1. Re: jBPM deployment problems !!
          Ronald van Kuijk Master

          does your tmp directory name contain some special character? A space does not seem to mind, but an ë or someting like that has been the suspect of a similar issuehttp://www.jboss.org/index.html?module=bb&op=viewtopic&t=72137&postdays=0&postorder=asc&start=0. Can you try setting the tmp or temp variable to something else and try again.

          • 2. Re: jBPM deployment problems !!
            Atul Pandey Newbie

            I changed the TMP TEMP variables in my environment variable settings but i still get teh same error ..
            i even checked the new temp folder path (C:\temp\TMP) for the file websale.par13265.tmp that the error message says it couldnt find .. but the file exists in that location..
            please help
            thanks

            14:58:58,484 DEBUG [DeployServlet] deploying archive file://C:\Temp\TMP\websale.par13265.tmp
            14:58:58,484 INFO [STDOUT] java.io.FileNotFoundException: \Temp\TMP\websale.par13265.tmp
            14:58:58,484 INFO [STDOUT] at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:82)
            14:58:58,484 INFO [STDOUT] at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:91)
            14:58:58,484 INFO [STDOUT] at java.net.URL.openStream(URL.java:1007)
            14:58:58,484 INFO [STDOUT] at org.jbpm.webapp.servlet.DeployServlet.doGet(DeployServlet.java:31)
            14:58:58,484 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
            14:58:58,484 INFO [STDOUT] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
            14:58:58,484 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
            14:58:58,484 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            14:58:58,484 INFO [STDOUT] at org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:25)
            14:58:58,484 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
            14:58:58,484 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            14:58:58,484 INFO [STDOUT] at org.jbpm.webapp.filter.PersistenceFilter.doFilter(PersistenceFilter.java:28)
            14:58:58,484 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
            14:58:58,484 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            14:58:58,484 INFO [STDOUT] at org.jbpm.webapp.filter.ContextFilter.doFilter(ContextFilter.java:19)
            14:58:58,484 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
            14:58:58,484 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            14:58:58,484 INFO [STDOUT] at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:38)
            14:58:58,484 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
            14:58:58,484 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            14:58:58,484 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
            14:58:58,484 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
            14:58:58,484 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            14:58:58,484 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
            14:58:58,484 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
            14:58:58,484 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
            14:58:58,484 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
            14:58:58,484 INFO [STDOUT] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
            14:58:58,484 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
            14:58:58,484 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
            14:58:58,484 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
            14:58:58,484 INFO [STDOUT] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
            14:58:58,484 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
            14:58:58,484 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
            14:58:58,484 INFO [STDOUT] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
            14:58:58,484 INFO [STDOUT] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
            14:58:58,484 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)
            14:58:58,484 DEBUG [PersistenceContext] committing transaction
            


            • 3. Re: jBPM deployment problems !!
              Nagisetty Deepa Newbie

              Append par file path to real path got from servlet context.
              Eg: String path = getServletContext().getRealPath(".") + parFilePath;



              Deepa

              • 4. Re: jBPM deployment problems !!
                Atul Pandey Newbie

                the problem got solved somehow .. (the scary part is i dont know how) .. maybe it was the TMP file path or something i changed later .. I use eclipse only to make changes to my process definition file .. i use ant to build my web app now .. i build the webapp , sevice.archieve and create the db with the new/changed configuration .. to deploy my application i simply copy the jbpm.sar and jbpm.war into the deploy folder.. it all works .. although i wish i could do all this with just 1 button click but never-the-less i'm happy that atleast i've got it running