2 Replies Latest reply on Nov 27, 2006 8:57 AM by Frank Zartmann

    jboss-4.0.5.GA gets into a loop after calling http://localho

    Frank Zartmann Newbie

      Hi,

      I've installed jboss-4.0.5.GA together with jbpm-3.1.2.

      For the installation I made two modifications:

      1) I commented out the libraries in the directory lib/dom4j and the file jaxen-*.jar in the build file jbpm-starters-kit-3.1.2/jbpm/build.deploy.xml

      <!-- ============= -->
       <!-- === BUILD === -->
       <!-- ============= -->
       <target name="build.webapp" description="builds jbpm.war">
       <ant antfile="build.xml" target="build.webapp" />
       <mkdir dir="build/jbpm.war.dir" />
       <copy todir="build/jbpm.war.dir">
       <fileset dir="src/resources/jbpm.war" />
       </copy>
       <copy todir="build/jbpm.war.dir/WEB-INF/lib">
       <fileset dir="build" includes="jbpm-webapp-${jbpm.version}.jar" />
       <fileset dir="lib/jsf" includes="*.jar" />
       <!--
       <fileset dir="lib/dom4j" includes="*.jar" />
       <fileset dir="lib/hibernate" includes="jaxen-*.jar" />
       -->
       <fileset dir="lib/commons" includes="commons-digester-*.jar, commons-beanutils-*.jar, commons-fileupload-*.jar" />
       </copy>
       <jar destfile="build/jbpm.war">
       <fileset dir="build/jbpm.war.dir" />
       </jar>
       </target>


      2) I made modifications in the file hibernate.cfg.xml, which is part of the jar-file jbpm.sar.cfg.jar because of my mysql database. The file jbpm.sar.cfg.jar resides in the directory jboss-4.0.5.GA/server/jbpm/deploy/jbpm.sar
      <property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>
      <property name="hibernate.connection.datasource">java:/MySqlDS</property>
      <property name="hibernate.cache.use_second_level_cache">false</property>
      <property name="hibernate.cache.use_query_cache">false</property>


      Afterwards I was able to start the application server with the command
      jboss-4.0.5.GA/bin/run.sh -c jbpm

      Furthermore I deployed a simple process archive with the following ant task:
       <target name="deploy.par"
       description="deploys the process archive myprocess.par">
       <taskdef name="deploypar"
       classname="org.jbpm.ant.DeployProcessTask"
       classpathref="lib" />
       <deploypar process="${deploy.dir}/myprocess.par"
       cfg="${src.dir}/main/config/hibernate.cfg.xml"/>
       </target>


      I found on the following addresses information about my process:

      http://localhost:8080/jbpm/faces/home.jsp
      http://localhost:8080/jbpm/faces/admin.jsp
      http://localhost:8080/jbpm/faces/monitor.jsp

      I do not know why there is the part "faces" in the middle of these addresses.
      Furthermore the application server raises an exception and gets into a loop
      when I call the address

      http://localhost:8080/jbpm/faces

      In the console I can see:

      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
      at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
      at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
      ...
      


      You can see the block beginning with javax.faces.webapp.FacesServlet.service(FacesServlet.java:95) up to
      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300) twice in the code above. It comes again and again.

      What is wrong?