12-23-2016 12:14 AM
Hi,
I am new to Alfresco development. I am following ecmarchitect tutorial by Jeff Potts at About the Alfresco Developer Tutorial Series | ECM Architect. While working out the sample content model as describe in - "Working with Custom Content Types in Alfresco" and deploying it using Maven 3.3.9. I am encountering problem HTTP Error: 500, Problem accessing /com.someco.demoamp.test.DemoComponentTest.
Please find the complete stack trace of the problem.
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.someco.demoamp.test.DemoComponentTest
java.lang.RuntimeException: Unable to send request to http://localhost:4578/com.someco.demoamp.test.DemoCompon
entTest?method=testChildNodesCount&runner=org.springframework.test.context.junit4.SpringJUnit4ClassRunner: <ht
ml>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 com.someco.demoamp.test.DemoComponentTest</title>
</head>
<body>
<h2>HTTP ERROR: 500</h2>
<p>Problem accessing /com.someco.demoamp.test.DemoComponentTest. Reason:
<pre> com.someco.demoamp.test.DemoComponentTest</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
</body>
</html>
at com.tradeshift.test.remote.internal.InternalRemoteRunner.handleError(InternalRemoteRunner.java:189)
at com.tradeshift.test.remote.internal.InternalRemoteRunner.runChild(InternalRemoteRunner.java:143)
at com.tradeshift.test.remote.internal.InternalRemoteRunner.runChild(InternalRemoteRunner.java:41)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
java.lang.RuntimeException: Unable to send request to http://localhost:4578/com.someco.demoamp.test.DemoCompon
entTest?method=testWiring&runner=org.springframework.test.context.junit4.SpringJUnit4ClassRunner: <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 com.someco.demoamp.test.DemoComponentTest</title>
</head>
<body>
<h2>HTTP ERROR: 500</h2>
<p>Problem accessing /com.someco.demoamp.test.DemoComponentTest. Reason:
<pre> com.someco.demoamp.test.DemoComponentTest</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
If I try http://localhost:4578 on browser, it gives me HTTP 500 error.
Any help in this direction will be helpful.
Thanks
Amitabh
12-23-2016 02:22 PM
It is because of that sample component that comes with Alfresco mvn project and related test class.
You can remove entries related to that from those context files and you should be good to go.
Other way is just skip test class execution by appending following command at that end of your maven command.
-DskipTests=true
12-24-2016 01:46 AM
Thanks a lot. Appending -DskipTests=true at the end of mvn install command
worked.
Regarding the first option, could you let me know the context files from
which entries needs to be removed?
Regards
Amitabh
On Sat, Dec 24, 2016 at 12:53 AM, mitpatoliya <community@alfresco.com>
12-24-2016 07:40 AM
Just search using your IDE and remove those entries from all xml files where you find it.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.