-
1. Re: jetty, cxfEndpoint: how to expose crossdomain.xml file?
concombremasqué Sep 24, 2009 12:01 PM (in response to concombremasqué)I am really stuck here.
Nobody knows?
I have tried to configure jetty in the bundle context file as follows but I don't know how to set 'resourceBase' property:
I would like to be able to give jetty the location of my crossdomain.xml file in my bundle (e.g. classpath:META-INF/crossdomain.xml)
-
2. Re: jetty, cxfEndpoint: how to expose crossdomain.xml file?
davestanley Sep 24, 2009 12:27 PM (in response to concombremasqué)Hi,
Here's one way to do it that I think should work ..
1) Grab the attached jetty.xml file and set it to listen on the same port as your webservice
2) Create a directory called '/deploy directory
Jetty should come up on the configured port and expose the files in that directory.
Regards
/Dave
-
jetty.xml 2.6 KB
-
-
3. Re: jetty, cxfEndpoint: how to expose crossdomain.xml file?
concombremasqué Sep 24, 2009 1:14 PM (in response to davestanley)Thanks so much Dave.
I am not able to test it right now (back to office next tuesday ) but it feels good. Anyway I'll keep you informed on whether it is a success or not next week.
Thanks again.
-
4. Re: jetty, cxfEndpoint: how to expose crossdomain.xml file?
concombremasqué Sep 29, 2009 5:45 AM (in response to concombremasqué)Ok here is the status as I have some issues:
Dave, I've tried your solution. If I start ServiceMix, waiting for my web services to be ready and then if I copy the jetty.xml file into the 'deploy' folder I can successfully access the crossdomain.xml file at for e.g. http://localhost:9090/crossdomain.xml. The big issue is: I then cannot access the web service listening on port 9090 (it was possible just before deploying jetty.xml).
It seems it is not possible to have several jetty configurations on a same port: the last deployed configuration "wins". If I uninstall the jetty bundle I am again able to access the web service.
I have also tried to start ServiceMix with the jetty.xml file already in place in the 'deploy' folder but then I got an error in the log and the web service sharing the port number cannot be properly deployed.
I use camel-cxf for my Web Services.
Is this a known issue regarding jetty or camel?
Thanks
-
5. Re: jetty, cxfEndpoint: how to expose crossdomain.xml file?
dhillahbelo Nov 9, 2009 5:55 PM (in response to concombremasqué)Did this get resolved? I am also interested in a general/simple solution for serving crossdomain.xml out of an http-su or cxf-su for web services.
-
6. Re: jetty, cxfEndpoint: how to expose crossdomain.xml file?
concombremasqué Nov 10, 2009 12:51 PM (in response to dhillahbelo)Hi,
Well I resolved it by including the jetty declaration right into my bundle context. I had then to deal with some issue to be able to set the port number through configuration (have a look at http://fusesource.com/forums/thread.jspa?threadID=1256&tstart=0).
I was then forced to modify the jetty schema but, as Dan Kulp mentions it in the thread, the latest 2.2.x CXF snapshot should be able to directly accept configurable port number (several schemas have been modified).