java - PhantomJS page not found on tomcat -


i writing automated tests applications located on tomcat on glassfish in spring mvc .

when i'm testing app works , when want connect application beside gets 404

example:

glassfish it's app 127.0.0.1:8080/webpage

tomcat: 127.0.0.1:9206/site

logs:

info:   executable: */bin/phantomjs info:   port: 5223 info:   arguments: [--ignore-ssl-errors=true, --webdriver=5223, --webdriver-logfile=*/phantomjsdriver.log] info:   environment: {} severe:   [info  - 2015-05-29t14:57:15.628z] ghostdriver - main - running on port 5223 severe:   [info  - 2015-05-29t14:57:15.721z] session [feb4d4f0-0612-11e5-a39c-15224a5e9e7b] - page.settings - {"xssauditingenabled":false,"javascriptcanclosewindows":true,"javascriptcanopenwindows":true,"javascriptenabled":true,"loadimages":true,"localtoremoteurlaccessenabled":false,"useragent":"mozilla/5.0 (unknown; linux i686) applewebkit/538.1 (khtml, gecko) phantomjs/2.0.0 safari/538.1","websecurityenabled":true} severe:   [info  - 2015-05-29t14:57:15.721z] session [feb4d4f0-0612-11e5-a39c-15224a5e9e7b] - page.customheaders:  - {} severe:   [info  - 2015-05-29t14:57:15.722z] session [feb4d4f0-0612-11e5-a39c-15224a5e9e7b] - session.negotiatedcapabilities - {"browsername":"phantomjs","version":"2.0.0","drivername":"ghostdriver","driverversion":"1.2.0","platform":"linux-unknown-32bit","javascriptenabled":true,"takesscreenshot":true,"handlesalerts":false,"databaseenabled":false,"locationcontextenabled":false,"applicationcacheenabled":false,"browserconnectionenabled":false,"cssselectorsenabled":true,"webstorageenabled":false,"rotatable":false,"acceptsslcerts":false,"nativeevents":true,"proxy":{"proxytype":"direct"}} severe:   [info  - 2015-05-29t14:57:15.722z] sessionmanagerreqhand - _postnewsessioncommand - new session created: feb4d4f0-0612-11e5-a39c-15224a5e9e7b info:   <!doctype html><html lang="en"><head>   <meta charset="utf-8">   <title>404 error</title> </head> <body> <h1>page not found!!!</h1> <p>the page requested not found in site.</p> </body></html> 

capabilities:

    desiredcapabilities caps = new desiredcapabilities();      caps.setcapability(phantomjsdriverservice.phantomjs_cli_args, new string[]{"--ssl-protocol=any"});     caps.setcapability(phantomjsdriverservice.phantomjs_cli_args, new string[]{"--web-security=false"});     caps.setcapability(phantomjsdriverservice.phantomjs_cli_args, new string[]{"--ignore-ssl-errors=true"});     caps.setcapability(phantomjsdriverservice.phantomjs_executable_path_property, configurls.phantomjs_home);     caps.setcapability("page.settings.loadimages", false);     caps.setcapability("trustallsslcertificates", true);     caps.setjavascriptenabled(true);      driver = new phantomjsdriver(caps); 


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -