Hi guys,
According to what is sayed in OpenKM 6.3-CE documentation , i try to connect to a database table but when i use the following code , openkm cant be compiled and says "BUILD FAILURE".
this the code i use inside a java file :
According to what is sayed in OpenKM 6.3-CE documentation , i try to connect to a database table but when i use the following code , openkm cant be compiled and says "BUILD FAILURE".
this the code i use inside a java file :
Code: Select all
and this a summary of console log :
for (DatabaseMetadataValue dmv : DatabaseMetadataDAO.executeValueQuery(DatabaseMetadataUtils.buildQuery("country", "", "$country_name"))) {
Window.alert(dmv.toString();
}
Code: Select all
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenKM Web Application 6.3.7-DEV
[INFO] ------------------------------------------------------------------------
.
.
.
.
[INFO] --- gwt-maven-plugin:2.4.0:compile (default-cli) @ openkm ---
[INFO] Compiling module com.openkm.frontend.Main
[INFO] Validating newly compiled units
[INFO] Ignored 6 units with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO] [ERROR] Errors in 'file:/home/openkm/Development/workspace/openkm/src/main/java/com/openkm/extension/frontend/client/DBTest.java'
[INFO] [ERROR] Line 39: The import com.openkm.core.DatabaseException cannot be resolved
[INFO] [ERROR] Line 40: The import com.openkm.dao.DatabaseMetadataDAO cannot be resolved
[INFO] [ERROR] Line 41: The import com.openkm.dao.bean.DatabaseMetadataValue cannot be resolved
[INFO] [ERROR] Line 42: The import com.openkm.util.DatabaseMetadataUtils cannot be resolved
[INFO] [ERROR] Line 64: DatabaseMetadataValue cannot be resolved to a type
[INFO] [ERROR] Line 64: DatabaseMetadataDAO cannot be resolved
[INFO] [ERROR] Line 64: DatabaseMetadataUtils cannot be resolved
[INFO] [ERROR] Line 68: DatabaseException cannot be resolved to a type
[INFO] [ERROR] Line 73: DatabaseMetadataValue cannot be resolved to a type
[INFO] [ERROR] Line 73: DatabaseMetadataDAO cannot be resolved
[INFO] [ERROR] Line 77: DatabaseException cannot be resolved to a type
[INFO] [ERROR] Cannot proceed due to previous errors
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 41.321 s
[INFO] Finished at: 2018-07-25T11:17:50+02:00
[INFO] Final Memory: 23M/174M
[INFO] ------------------------------------------------------------------------
.
.
.
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException