AnsweredAssumed Answered

run.bat failed!How to deploy my custom Content Model?

Question asked by ryou123 on Jun 18, 2018

Following the tutorials of the Content Model

Working With Custom Content Types in Alfresco | ECMArchitect | Alfresco Developer Tutorials 

I ran the run.bat and I got a error.

I ran [mvn dependency::tree] , [mvn dependency::sources] ,[mvn dependency::resolve] ,[mvn test] and I got all SUCCESS.

Then I verify my project use [mvn verify] command and I got the error results by followings.

 

*******************************************************************************************

Results :

Tests in error:
CustomContentModelIT.testCreateAcmeDocument ≫ Throwable Unable to process resp...
CustomContentModelIT.testCustomContentModelPresence ≫ Throwable Unable to proc...
DemoComponentIT.testChildNodesCount ≫ Throwable Unable to process response for...
DemoComponentIT.testGetCompanyHome ≫ Throwable Unable to process response for ...

Tests run: 5, Failures: 0, Errors: 4, Skipped: 0

[WARNING] File encoding has not been set, using platform encoding MS932, i.e. build is platform dependent! The file encoding for reports output f
iles should be provided by the POM property ${project.reporting.outputEncoding}.
[INFO]
[INFO] --- maven-failsafe-plugin:2.19.1:verify (verify-test) @ integration-tests ---
[WARNING] File encoding has not been set, using platform encoding MS932, i.e. build is platform dependent! The file encoding for reports output f
iles should be provided by the POM property ${project.reporting.outputEncoding}.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] AIO - SDK 3.0 1.0-SNAPSHOT ......................... SUCCESS [ 0.966 s]
[INFO] Alfresco Platform/Repository JAR Module ............ SUCCESS [ 3.283 s]
[INFO] Alfresco Share JAR Module .......................... SUCCESS [ 0.602 s]
[INFO] Integration Tests Module 1.0-SNAPSHOT .............. FAILURE [ 4.900 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.356 s
[INFO] Finished at: 2018-06-18T15:57:40+09:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.19.1:verify (verify-test) on project integration-tests: There are
test failures.
[ERROR]
[ERROR] Please refer to C:\Users\---ABCD---\eclipse-workspace\sampleProjectArtifactId\integration-tests\target\failsafe-reports for the individual test
results.
[ERROR] -> [Help 1]
[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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :integration-tests

*******************************************************************************************

 

The error message in sampleProjectGroupId.sampleProjectArtifactId.platformsample.CustomContentModelIT.txt is by followings.

*******************************************************************************************

-------------------------------------------------------------------------------
Test set: sampleProjectGroupId.sampleProjectArtifactId.platformsample.CustomContentModelIT
-------------------------------------------------------------------------------
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.567 sec <<< FAILURE! - in sampleProjectGroupId.sampleProjectArtifactId.platformsample.CustomContentModelIT
testCustomContentModelPresence(sampleProjectGroupId.sampleProjectArtifactId.platformsample.CustomContentModelIT) Time elapsed: 0.548 sec <<< ERROR!
java.lang.Throwable:
Unable to process response for proxied test request: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Web Script Status 404 - Not Found</title>
<link rel="stylesheet" href="/alfresco/css/webscripts.css" type="text/css" />
</head>
<body>
<div>
<table>
<tr>
<td><img src="/alfresco/images/logo/AlfrescoLogo32.png" alt="Alfresco" /></td>
<td><span class="title">Web Script Status 404 - Not Found</span></td>
</tr>
</table>
<br/>
<table>
<tr><td>The Web Script <a href="%2Falfresco%2Fservice%2Ftesting%2Ftest.xml%3Fclazz%3DsampleProjectGroupId.sampleProjectArtifactId.platformsample.CustomContentModelIT%23testCustomContentModelPresence">/alfresco/service/testing/test.xml</a> has responded with a status of 404 - Not Found.</td></tr>
</table>
<br/>
<table>
<tr><td><b>404 Description:</b></td><td> Requested resource is not available.</td></tr>
<tr><td> </td></tr>
<tr><td><b>Message:</b></td><td>05180010 Script url /testing/test.xml does not map to a Web Script.</td></tr>
<tr><td><b>Server</b>:</td><td>Community v5.2.0 (re21f2be5-b22) schema 10,057</td></tr>
<tr><td><b>Time</b>:</td><td>2018/06/18 15:57:39</td></tr>
<tr><td></td><td> </td></tr>
</table>
</div>
</body>
</html>

 

testCreateAcmeDocument(sampleProjectGroupId.sampleProjectArtifactId.platformsample.CustomContentModelIT) Time elapsed: 0.016 sec <<< ERROR!
java.lang.Throwable:
Unable to process response for proxied test request: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Web Script Status 404 - Not Found</title>
<link rel="stylesheet" href="/alfresco/css/webscripts.css" type="text/css" />
</head>
<body>
<div>
<table>
<tr>
<td><img src="/alfresco/images/logo/AlfrescoLogo32.png" alt="Alfresco" /></td>
<td><span class="title">Web Script Status 404 - Not Found</span></td>
</tr>
</table>
<br/>
<table>
<tr><td>The Web Script <a href="%2Falfresco%2Fservice%2Ftesting%2Ftest.xml%3Fclazz%3DsampleProjectGroupId.sampleProjectArtifactId.platformsample.CustomContentModelIT%23testCreateAcmeDocument">/alfresco/service/testing/test.xml</a> has responded with a status of 404 - Not Found.</td></tr>
</table>
<br/>
<table>
<tr><td><b>404 Description:</b></td><td> Requested resource is not available.</td></tr>
<tr><td> </td></tr>
<tr><td><b>Message:</b></td><td>05180011 Script url /testing/test.xml does not map to a Web Script.</td></tr>
<tr><td><b>Server</b>:</td><td>Community v5.2.0 (re21f2be5-b22) schema 10,057</td></tr>
<tr><td><b>Time</b>:</td><td>2018/06/18 15:57:39</td></tr>
<tr><td></td><td> </td></tr>
</table>
</div>
</body>
</html>

*******************************************************************************************

 

How to deploy my custom Content Model?

Is the configuration problem?

Outcomes