4 Replies Latest reply on Jan 27, 2008 9:24 AM by kukeltje

    ajax4jsf support for JBPM

    mr.sathya

      Hi All...

      Good Evening..

      I am trying to use the ajax4jsf tags in my jbpm application.i added ajax4jsf jar to lib..and made necessary configs in web.xml as mentioned..

      But it is not working for jbpm..Let me know is Ajax4jsf support jbpm..

      if yes..please refer some documentation regarding this....

      I am using jbpm-3.1.4 and jboss-4.0.2

      seeking ur help...

      thanks & Regards,
      Sathya,
      Bangalore,
      India

        • 1. Re: ajax4jsf support for JBPM
          kukeltje

          What is not working?How do you intent to use it? In the jbpm console? The latter has been completely redesigned for jbpm 3.2 and uses ajax4jsf extensively.

          • 2. Re: ajax4jsf support for JBPM
            mr.sathya

            Hi All...

            I added ajax4jsf-1.1.1.jar,oscache-2.3.2.jar to lib..and i made the entries in the web.xml like this..

            <context-param>
             <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
             <param-value>server</param-value>
             </context-param>
             <context-param>
             <param-name>org.ajax4jsf.SKIN</param-name>
             <param-value>classic</param-value>
             </context-param>
             <filter>
             <display-name>Ajax4jsf Filter</display-name>
             <filter-name>ajax4jsf</filter-name>
             <filter-class>org.ajax4jsf.Filter</filter-class>
             </filter>
             <filter-mapping>
             <filter-name>ajax4jsf</filter-name>
             <servlet-name>Faces Servlet</servlet-name>
             <dispatcher>REQUEST</dispatcher>
             <dispatcher>FORWARD</dispatcher>
             <dispatcher>INCLUDE</dispatcher>
             </filter-mapping>

            while starting the server the following problem occured..
            pls note that I am using JBPM-3.1.4,jboss-4.0.2
            pls help me in this...it is urgent....
            the error is
            15:51:02,389 ERROR [StandardContext] Error filterStart
            15:51:02,389 ERROR [StandardContext] Context [/jbpm] startup failed due to previous errors
            15:51:02,405 ERROR [WebModule] Starting failed jboss.web.deployment:war=jbpm.war,id=-254946322
            org.jboss.deployment.DeploymentException: URL file:/E:/jboss-4.0.2/server/jbpm/tmp/deploy/tmp41808jbpm-exp.war/ deplo
            yment failed
             at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:356)
             at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:91)
             at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:357)
             at org.jboss.web.WebModule.startModule(WebModule.java:68)
             at org.jboss.web.WebModule.startService(WebModule.java:46)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
             at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
             at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:897)
             at $Proxy0.start(Unknown Source)
             at org.jboss.system.ServiceController.start(ServiceController.java:418)
             at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            


            Let me know JBPM-3.1.4 supports Ajax4jsf tag

            pls I am seeking ur help

            Thanks in Advance..

            Regards,
            Sathya

            • 3. Re: ajax4jsf support for JBPM
              mr.sathya

              This is the complete web.xml file

              <?xml version="1.0"?>
              <web-app version="2.4"
               xmlns="http://java.sun.com/xml/ns/j2ee"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
              
               <!-- JbpmThreadsServlet -->
               <servlet>
               <servlet-name>JbpmThreadsServlet</servlet-name>
               <servlet-class>org.jbpm.web.JbpmThreadsServlet</servlet-class>
               <load-on-startup>1</load-on-startup>
               </servlet>
               <servlet-mapping>
               <servlet-name>JbpmThreadsServlet</servlet-name>
               <url-pattern>/threads</url-pattern>
               </servlet-mapping>
              
               <!-- jBPM FileServlet -->
               <servlet>
               <servlet-name>ProcessImageServlet</servlet-name>
               <servlet-class>org.jbpm.webapp.servlet.ProcessImageServlet</servlet-class>
               </servlet>
               <servlet-mapping>
               <servlet-name>ProcessImageServlet</servlet-name>
               <url-pattern>/processimage</url-pattern>
               </servlet-mapping>
              
               <!-- jBPM DeployServlet -->
               <servlet>
               <servlet-name>DeployServlet</servlet-name>
               <servlet-class>org.jbpm.webapp.servlet.DeployServlet</servlet-class>
               </servlet>
               <servlet-mapping>
               <servlet-name>DeployServlet</servlet-name>
               <url-pattern>/deploy</url-pattern>
               </servlet-mapping>
               <servlet>
               <servlet-name>UploadServlet</servlet-name>
               <servlet-class>org.jbpm.webapp.servlet.UploadServlet</servlet-class>
               </servlet>
               <servlet-mapping>
               <servlet-name>UploadServlet</servlet-name>
               <url-pattern>/upload</url-pattern>
               </servlet-mapping>
              
               <!-- MyFaces JSF -->
               <listener>
               <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
               </listener>
               <servlet>
               <servlet-name>FacesServlet</servlet-name>
               <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
               <load-on-startup>1</load-on-startup>
               </servlet>
               <servlet-mapping>
               <servlet-name>FacesServlet</servlet-name>
               <url-pattern>/faces/*</url-pattern>
               </servlet-mapping>
              <!--ajax implementation-->
               <context-param>
               <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
               <param-value>server</param-value>
               </context-param>
               <context-param>
               <param-name>org.ajax4jsf.SKIN</param-name>
               <param-value>classic</param-value>
               </context-param>
               <filter>
               <display-name>Ajax4jsf Filter</display-name>
               <filter-name>ajax4jsf</filter-name>
               <filter-class>org.ajax4jsf.Filter</filter-class>
               </filter>
               <filter-mapping>
               <filter-name>ajax4jsf</filter-name>
               <servlet-name>Faces Servlet</servlet-name>
               <dispatcher>REQUEST</dispatcher>
               <dispatcher>FORWARD</dispatcher>
               <dispatcher>INCLUDE</dispatcher>
               </filter-mapping>
               <!--ajax implementation-->
              
              
               <filter>
               <filter-name>LogFilter</filter-name>
               <filter-class>org.jbpm.webapp.filter.LogFilter</filter-class>
               </filter>
               <filter-mapping>
               <filter-name>LogFilter</filter-name>
               <url-pattern>/*</url-pattern>
               </filter-mapping>
              
               <filter>
               <filter-name>JbpmContextFilter</filter-name>
               <filter-class>org.jbpm.web.JbpmContextFilter</filter-class>
               </filter>
               <filter-mapping>
               <filter-name>JbpmContextFilter</filter-name>
               <url-pattern>/*</url-pattern>
               </filter-mapping>
              
               <filter>
               <filter-name>AuthenticationFilter</filter-name>
               <filter-class>org.jbpm.webapp.filter.AuthenticationFilter</filter-class>
               </filter>
               <filter-mapping>
               <filter-name>AuthenticationFilter</filter-name>
               <url-pattern>/*</url-pattern>
               </filter-mapping>
              
               <!--tomahawk editings-->
               <context-param>
               <param-name>facelets.LIBRARIES</param-name>
               <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
               </context-param>
              
               <!--<filter>
               <filter-name>extensionsFilter</filter-name>
               <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
               </filter>-->
              
               <!-- Filter Mappings -->
               <!--<filter-mapping>
               <filter-name>extensionsFilter</filter-name>
               <url-pattern>*.jsf</url-pattern>
               </filter-mapping>
               <filter-mapping>
               <filter-name>extensionsFilter</filter-name>
               <url-pattern>/*</url-pattern>
               </filter-mapping>-->
              
              
               <filter>
               <filter-name>MyFacesExtensionsFilter</filter-name>
               <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
               <init-param>
               <param-name>maxFileSize</param-name>
               <param-value>20m</param-value>
               <description>Set the size limit for uploaded files.
               Format: 10 - 10 bytes
               10k - 10 KB
               10m - 10 MB
               1g - 1 GB
               </description>
               </init-param>
               </filter>
              
               <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
               <filter-mapping>
               <filter-name>MyFacesExtensionsFilter</filter-name>
               <url-pattern>*.jsp</url-pattern>
              </filter-mapping>
              
              <!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -->
              <filter-mapping>
               <filter-name>MyFacesExtensionsFilter</filter-name>
               <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
              </filter-mapping>
              
              
              
              </web-app>
              


              pls help me with proper documentation on ajax4jsf integration with jbpm..
              Thanks In advance...

              Regards,
              Sathya,
              India

              • 4. Re: ajax4jsf support for JBPM
                kukeltje

                ajax4jsf is *totally independent* of jBPM, certainly for 3.1.x. Could be that your config is not correct, but that is The error you post is most likely incomplete and totally useless for us to try to determine the cause of this error.

                Sorry, I doubt you'll get an answer to your problem since it can be caused by so many things most of all not jBPM related...