Hello, I'm trying to run camel-example-cxf-blueprint on OSGi container built from scratch, but I'm having 404. Everything is fine when I deploy this example on ServiceMix or Karaf.
On my environment WSDL is accessible under http://localhost:8080/cxf/camel-example-cxf-blueprint/webservices/incident?wsdl When I try to test it using SoapUI I get 404 response, but request is processed by camel (file defined using .setHeader(Exchange.FILE_NAME, constant("request-${date:now:yyyy-MM-dd-HHmmssSSS}")) gets created). 404 response: <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/> <title>Error 404 ProxyServlet: /cxf/camel-example-cxf-blueprint/webservices/incident</title> </head> <body> HTTP ERROR: 404 <p> Problem accessing /cxf/camel-example-cxf-blueprint/webservices/incident. Reason: <pre>ProxyServlet: /cxf/camel-example-cxf-blueprint/webservices/incident</pre> </p> <hr/> / <small>Powered by Jetty://</small> / </body> </html> When I set logging to DEBUG I see strange thing (I have taken only few lines from the whole processing) 23:26:14.784 [qtp2061704635-51 - /cxf/camel-example-cxf-blueprint/webservices/incident] DEBUG org.eclipse.jetty.server.Server - REQUEST /cxf/camel-example-cxf-blueprint/webservices/incident on AsyncHttpConnection@11abb694,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=2,l=34,c=625},r=2 .... a lot of logs from jetty, camel, cxf 23:26:14.794 [qtp2061704635-51 - /cxf/camel-example-cxf-blueprint/webservices/incident] DEBUG o.a.camel.component.bean.MethodInfo - Setting bean invocation result on the OUT message: Christian [qtp2061704635-51 - /cxf/camel-example-cxf-blueprint/webservices/incident] DEBUG org.apache.cxf.transport.servlet.ServletController - Finished servicing http request on thread: Thread[qtp2061704635-51 - /cxf/camel-example-cxf-blueprint/webservices/incident,5,main] 23:26:14.795 [qtp2061704635-51 - /cxf/camel-example-cxf-blueprint/webservices/incident] DEBUG org.eclipse.jetty.server.Server - RESPONSE /cxf/camel-example-cxf-blueprint/webservices/incident 200 23:26:14.795 [Camel (camel) thread #1 - WireTap] DEBUG o.a.c.component.file.FileOperations - Using InputStream to write file: target\inbox\request-2014-10-01-232614792 23:26:14.796 [qtp2061704635-51 - /cxf/camel-example-cxf-blueprint/webservices/incident] DEBUG org.eclipse.jetty.server.Server - REQUEST /cxf/camel-example-cxf-blueprint/webservices/incident on AsyncHttpConnection@11abb694,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=2,l=34,c=625},r=2 ... some more logs from jetty 23:26:14.797 [qtp2061704635-51 - /cxf/camel-example-cxf-blueprint/webservices/incident] DEBUG org.eclipse.jetty.server.Server - RESPONSE /cxf/camel-example-cxf-blueprint/webservices/incident 404 As you can see - request is somehow processed twice by jetty - for the first time it creates 200 RESPONSE, then 404 response and the second response is returned to SoapUI. List of my bundles: id State Bundle 0 ACTIVE org.eclipse.osgi_3.8.1.v20120830-144521 1 ACTIVE org.apache.camel.camel-blueprint_2.13.2 2 ACTIVE org.apache.felix.gogo.shell_0.8.0.v201110170705 3 ACTIVE org.apache.aries.jmx.whiteboard_1.0.0 6 ACTIVE org.apache.camel.camel-cxf_2.13.2 7 ACTIVE org.springframework.transaction_3.2.4.RELEASE 8 ACTIVE com.springsource.serp_1.13.1 9 ACTIVE cxf-dosgi-ri-discovery-distributed_1.6.0 11 ACTIVE org.apache.cxf.cxf-rt-rs-extension-search_2.7.8 12 ACTIVE org.apache.aries.jmx.blueprint.core_1.1.0 13 ACTIVE org.apache.cxf.cxf-rt-frontend-simple_2.7.8 14 ACTIVE org.apache.ws.xmlschema.core_2.0.3 15 ACTIVE org.apache.aries.blueprint.api_1.0.0 16 ACTIVE cxf-dosgi-ri-osgi-api_1.6.0 17 ACTIVE org.apache.camel.camel-core-osgi_2.13.2 18 ACTIVE org.apache.cxf.cxf-rt-rs-extension-providers_2.7.8 19 ACTIVE slf4j.api_1.7.2 20 ACTIVE stax2-api_3.1.1 22 ACTIVE org.apache.aries.proxy.api_1.0.0 23 ACTIVE org.apache.geronimo.specs.geronimo-jpa_2.0_spec_1.1.0 25 ACTIVE org.springframework.expression_3.2.4.RELEASE 26 ACTIVE org.eclipse.equinox.common_3.6.100.v20120522-1841 27 ACTIVE org.springframework.core_3.2.4.RELEASE 28 ACTIVE org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841 29 ACTIVE org.eclipse.equinox.http.registry_1.1.200.v20120522-2049 30 ACTIVE cxf-dosgi-ri-topology-manager_1.6.0 31 ACTIVE org.apache.servicemix.specs.jsr339-api-m10_2.2.0 32 ACTIVE woodstox-core-asl_4.2.0 33 ACTIVE org.apache.aries.proxy.impl_1.0.2 34 ACTIVE org.eclipse.equinox.console_1.0.0.v20120522-1841 35 ACTIVE org.springframework.beans_3.2.4.RELEASE 36 ACTIVE org.apache.servicemix.specs.saaj-api-1.3_2.2.0 37 ACTIVE org.ops4j.pax.web.pax-web-api_1.1.14 38 ACTIVE org.apache.felix.gogo.runtime_0.8.0.v201108120515 39 ACTIVE org.ops4j.pax.logging.pax-logging-service_1.7.0 42 ACTIVE cxf-dosgi-ri-dsw-cxf_1.6.0 43 ACTIVE com.ibm.icu.base_4.4.2.v20110831 44 ACTIVE org.eclipse.equinox.preferences_3.5.0.v20120522-1841 45 ACTIVE org.apache.cxf.cxf-api_2.7.8 46 ACTIVE org.apache.servicemix.specs.jaxws-api-2.2_2.2.0 47 ACTIVE org.apache.cxf.cxf-rt-core_2.7.8 48 ACTIVE org.eclipse.core.expressions_3.4.401.v20120627-124442 49 ACTIVE org.eclipse.osgi.services_3.3.100.v20120522-1822 51 ACTIVE org.eclipse.core.databinding.property_1.4.100.v20120523-1955 52 ACTIVE org.springframework.jms_3.2.4.RELEASE 53 ACTIVE org.apache.servicemix.bundles.wsdl4j_1.6.3.1 54 ACTIVE org.apache.aries.blueprint.core_1.3.0 Fragments=62 55 ACTIVE org.eclipse.core.runtime_3.8.0.v20120521-2346 56 ACTIVE org.ops4j.pax.web.pax-web-spi_1.1.14 57 ACTIVE com.springsource.org.objectweb.asm_3.2.0 58 ACTIVE org.apache.servicemix.specs.jaxb-api-2.2_2.2.0 59 ACTIVE org.apache.cxf.cxf-rt-databinding-aegis_2.7.8 60 ACTIVE org.apache.hadoop.zookeeper_3.3.2 61 ACTIVE org.apache.aries.jmx.blueprint.api_1.1.0 62 RESOLVED org.apache.aries.blueprint.core.compatibility_1.0.0 Master=54 63 ACTIVE org.apache.aries.quiesce.api_1.0.0 65 ACTIVE org.springframework.osgi.extender_1.2.1 66 ACTIVE org.apache.cxf.cxf-rt-frontend-jaxrs_2.7.8 67 ACTIVE jline_2.11.0 68 ACTIVE org.eclipse.equinox.app_1.3.100.v20120522-1841 69 ACTIVE org.eclipse.equinox.registry_3.5.200.v20120522-1841 70 ACTIVE javax.xml_1.3.4.v201005080400 71 ACTIVE org.eclipse.core.databinding.beans_1.2.200.v20120523-1955 72 ACTIVE javax.mail_1.4.4 73 ACTIVE javax.mail_1.4.5 74 ACTIVE org.apache.camel.camel-cxf-transport_2.13.2 75 RESOLVED com.mc.logback.fragment_1.0.0.qualifier Master=101 76 ACTIVE org.apache.servicemix.bundles.aopalliance_1.0.0.6 77 ACTIVE org.fusesource.jansi_1.11.0 78 ACTIVE cxf-dosgi-ri-discovery-local_1.6.0 79 ACTIVE org.eclipse.core.jobs_3.5.300.v20120622-204750 80 ACTIVE cxf-camel_1.0.0.qualifier 81 ACTIVE org.apache.felix.gogo.command_0.8.0.v201108120515 82 ACTIVE org.apache.cxf.cxf-rt-bindings-soap_2.7.8 83 ACTIVE org.apache.cxf.cxf-rt-frontend-jaxws_2.7.8 84 ACTIVE org.apache.servicemix.bundles.xmlresolver_1.2.0.5 85 ACTIVE org.apache.aries.jmx.core_1.1.1 86 ACTIVE org.apache.camel.camel-spring_2.13.2 87 ACTIVE org.ops4j.pax.web.pax-web-extender-whiteboard_1.1.14 88 ACTIVE org.apache.servicemix.bundles.jaxb-xjc_2.2.1.1_2 90 ACTIVE org.apache.felix.configadmin_1.6.0 91 ACTIVE org.apache.servicemix.bundles.jaxb-impl_2.2.1.1_2 92 ACTIVE org.ops4j.pax.logging.pax-logging-api_1.7.0 93 ACTIVE org.eclipse.core.databinding_1.4.1.v20120521-2329 94 ACTIVE org.springframework.context.support_3.2.4.RELEASE 95 ACTIVE org.apache.cxf.cxf-rt-bindings-xml_2.7.8 96 ACTIVE org.springframework.aop_3.2.4.RELEASE 97 ACTIVE ch.qos.logback.core_1.0.7 98 ACTIVE org.apache.cxf.cxf-rt-transports-http-jetty_2.7.8 99 ACTIVE javax.servlet_3.0.0.v201112011016 101 ACTIVE ch.qos.logback.classic_1.0.7 Fragments=75 102 ACTIVE org.apache.camel.camel-core_2.13.2 104 ACTIVE org.apache.aries.blueprint.cm_1.0.3 105 ACTIVE org.apache.camel.camel-jaxb_2.13.2 106 ACTIVE org.eclipse.core.commands_3.6.1.v20120814-150512 107 ACTIVE org.eclipse.equinox.cm_1.0.400.v20120522-1841 108 ACTIVE org.springframework.osgi.io_1.2.1 109 ACTIVE org.apache.aries.jmx.api_1.1.0 110 ACTIVE org.ops4j.pax.web.pax-web-runtime_1.1.14 111 ACTIVE org.apache.servicemix.specs.stax-api-1.0_2.2.0 112 ACTIVE org.apache.servicemix.specs.activation-api-1.1_2.2.0 113 ACTIVE org.eclipse.core.contenttype_3.4.200.v20120523-2004 114 ACTIVE org.springframework.osgi.core_1.2.1 115 ACTIVE org.apache.cxf.cxf-rt-management_2.7.8 116 ACTIVE org.eclipse.core.databinding.observable_1.4.1.v20120521-2329 117 ACTIVE org.apache.servicemix.bundles.fastinfoset_1.2.13.1 118 ACTIVE org.apache.felix.fileinstall_3.2.6 119 ACTIVE org.apache.aries.util_1.1.0 120 ACTIVE org.springframework.osgi.extensions.annotations_1.2.1 121 ACTIVE cxf-dosgi-ri-discovery-distributed-zookeeper-server_1.6.0 122 ACTIVE org.springframework.context_3.2.4.RELEASE 123 ACTIVE org.apache.cxf.cxf-rt-databinding-jaxb_2.7.8 125 ACTIVE org.apache.cxf.cxf-rt-transports-http_2.7.8 137 ACTIVE org.apache.geronimo.specs.geronimo-jta_1.1_spec_1.1.1 141 ACTIVE org.eclipse.jetty.http_8.1.3.v20120522 142 ACTIVE org.eclipse.jetty.io_8.1.3.v20120522 143 ACTIVE org.eclipse.equinox.http.jetty_3.0.0.v20120522-1841 144 ACTIVE org.eclipse.jetty.server_8.1.3.v20120522 145 ACTIVE org.eclipse.jetty.continuation_8.1.3.v20120522 146 ACTIVE org.eclipse.jetty.util_8.1.3.v20120522 147 ACTIVE org.eclipse.jetty.servlet_8.1.3.v20120522 148 ACTIVE org.eclipse.jetty.security_8.1.3.v20120522 149 ACTIVE org.apache.geronimo.specs.geronimo-jms_1.1_spec_1.1.1 150 ACTIVE cxf-greeter_1.0.0.qualifier -- View this message in context: http://camel.465427.n5.nabble.com/Camel-CXF-OSGi-404-tp5757295.html Sent from the Camel - Users mailing list archive at Nabble.com.
