Starting Apache from XAMPP control it showing me error | Rest Assured Forum
A
Amit Haldar Posted on 10/12/2019

Hello, 

Error on XAMPP while starting apache

2:03:31 AM [Apache] Error: Apache shutdown unexpectedly.
2:03:31 AM [Apache] This may be due to a blocked port, missing dependencies,
2:03:31 AM [Apache] improper privileges, a crash, or a shutdown by another method.
2:03:31 AM [Apache] Press the Logs button to view error logs and check
2:03:31 AM [Apache] the Windows Event Viewer for more clues
2:03:31 AM [Apache] If you need more help, copy and post this
2:03:31 AM [Apache] entire log window on the forums

I am learning 19th module part 1 where I need to start Apache in XAMPP which showing me error and didn't get started. Also when I run my code its showing me below error

Please help me I am suck cannot proceed further 

java.lang.NoSuchMethodError: org.testng.TestRunner.addListener(Ljava/lang/Object;)V
at org.testng.remote.support.RemoteTestNG6_9_10$1.newTestRunner(RemoteTestNG6_9_10.java:32)
at org.testng.remote.support.RemoteTestNG6_9_10$DelegatingTestRunnerFactory.newTestRunner(RemoteTestNG6_9_10.java:61)
at org.testng.SuiteRunner$ProxyTestRunnerFactory.newTestRunner(SuiteRunner.java:713)
at org.testng.SuiteRunner.init(SuiteRunner.java:260)
at org.testng.SuiteRunner.<init>(SuiteRunner.java:198)
at org.testng.TestNG.createSuiteRunner(TestNG.java:1271)
at org.testng.TestNG.createSuiteRunners(TestNG.java:1249)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1107)
at org.testng.TestNG.runSuites(TestNG.java:1028)
at org.testng.TestNG.run(TestNG.java:996)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:126)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:152)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:57)

 

 

 

 


H
Hitesh Pande Replied on 11/12/2019

Apache by default tries to run on port 80 which i think is already being used in your system.

Make changes to the httpd.conf file update the port number there also update the listener command in the same file.

Hope this helps.


A
Amit Haldar Replied on 11/12/2019

Hello Hitesh/All,
My Xampp error has been resolved but I am not able to run the code, I am getting below error 



Please help me I am suck cannot proceed further 

java.lang.NoSuchMethodError: org.testng.TestRunner.addListener(Ljava/lang/Object;)V
at org.testng.remote.support.RemoteTestNG6_9_10$1.newTestRunner(RemoteTestNG6_9_10.java:32)
at org.testng.remote.support.RemoteTestNG6_9_10$DelegatingTestRunnerFactory.newTestRunner(RemoteTestNG6_9_10.java:61)
at org.testng.SuiteRunner$ProxyTestRunnerFactory.newTestRunner(SuiteRunner.java:713)
at org.testng.SuiteRunner.init(SuiteRunner.java:260)
at org.testng.SuiteRunner.<init>(SuiteRunner.java:198)
at org.testng.TestNG.createSuiteRunner(TestNG.java:1271)
at org.testng.TestNG.createSuiteRunners(TestNG.java:1249)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1107)
at org.testng.TestNG.runSuites(TestNG.java:1028)
at org.testng.TestNG.run(TestNG.java:996)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:126)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:152)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:57)

 


A
Ashish Thakur Replied on 11/12/2019

Paste code here