Skip to main content

Posts

Showing posts with the label tomcat

First CXF-RS service with Tomcat web-container

Looking to get started on CXF-RS, well that was what i was looking for and there are load of articles doing however none of them provide sufficient bullet points to make me understand how the control is following are how to debug the application if something is not working. Well that's what i am going to write here. Following are components you need to get started with first CXF-RS: Tomcat Eclipse (or some equivalent IDE) Spring Create a dynamic web project in the eclipse (this is nothing but a simple web project which can deployed and can run when deployed in the web container like Tomcat). Keep your eye on the bold terms featuring in the files... Start will writing the web.xml descriptor file. contextConfigLocation WEB-INF/ deploy-context.xml org.springframework.web.context.ContextLoaderListener CXFServlet CXF Servlet org.apache.cxf.transport.servlet.CXFServlet 1 ...

flXHR Error:15, securityError, A security sandbox error occured with the flXHR request.

Error: 15 Type: securityError Description: A security sandbox error occured with the flXHR request. Source Object Id: [your object id] I am trying to deploy my application on Tomcat and was continuously facing the issue. The solution to this problem is placing your crossdomain.xml in /webapps/ROOT. Just for reference attaching the sample crossdomain.xml on which I was working trying to workout my PoC:   <?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"> <cross-domain-policy> <site-control permitted-cross-domain-policies="master-only"/> <allow-access-from domain="*" secure="false"/> <allow-http-request-headers-from domain="*" headers="*" secure="false"/> </cross-domain-policy> Hope this will help.