• Test Failure testWorkflow(com.openkm.misc.FormsTest)

  • He we will discuss about how to make customization and improvement to the OpenKM source code.
He we will discuss about how to make customization and improvement to the OpenKM source code.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #11841  by murkein
 
Hello, I am compiling project but the command mvn install show this error in console:
Code: Select all
Results :

Failed tests:
  testWorkflow(com.openkm.misc.FormsTest)

Tests run: 10, Failures: 1, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to c:\dev\openkm\target\surefire-reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: There are test failures.

Please refer to c:\dev\openkm\target\surefire-reports for the individual test results.
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.

Please refer to c:\dev\openkm\target\surefire-reports for the individual test results.
        at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:575)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        ... 17 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19 seconds
[INFO] Finished at: Tue Aug 16 15:16:11 VET 2011
[INFO] Final Memory: 49M/1
Someone help me please
 #11875  by murkein
 
pavila wrote:Which OpenKM are you trying? You can disable test invoking:
Code: Select all
mvn -Dmaven.test.skip=true install
Hola paco de España, gracias por tu respuesta. Ahora si compila pero igual no puedo hacer que funcione. Yo lo que hice fue descargar el jboss+openkm que esta listo para funcionar, luego en mi eclipse cree un servidor que apuntara a ese directorio jboss, compile el proyecto, luego hice clic en Run as seleccionando el servidor jboss recien descargado pero igual muestra error 404. Que me puede faltar para que me funcione?
 #11900  by pavila
 
Una vez descomprimido el bundle JBoss + OpenKM, borrar el archivo $JBOSS_HOME/server/default/deploy/OpenKM.war. En el proyecto OpenKM que has descargado bien desde Eclipse o desde la línea de comandos, al compilarlo habrá creado un directorio $OPENKM/target/OpenKM. Lo que tienes que hacer es un soft link de esta forma:
Code: Select all
 $OPENKM/target/OpenKM -> $JBOSS_HOME/server/default/deploy/OpenKM.war
O sea, que ahora $JBOSS_HOME/server/default/deploy/OpenKM.war será un directorio (antes era un archivo) que apunta a $OPENKM/target/OpenKM. Ahora podrás arrancar JBoss desde Eclipse y podrás debugar y todo.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.