html - Web Service and Javascript request on the same localhost port -


i've got simple axis web service on apache tomcat server (e.g. localhost:9999). created , run eclipse java ee.

i want invoke web service on html page javascript (was made in aptana studio 3) - when open html, there's error because of cross-domain-policy.

how can solve this? or wrong way?

i tried run on same port web service using base-url in run configurations, not working (port used). can both running on same port?

would nice if can me out.

when download apache tomcat (doesn't matter version) choose port server run on.

if have tomcat tied in eclipse java ee, make sure tomcat isn't running. can check right clicking tomcat tool icon on task bar. if it's running, stop , try running tomcat again through eclipse.

if don't have tomcat tied in eclipse, here's tutorial video on how that: https://www.youtube.com/watch?v=ldthrersssi

hope helps


Comments