Hi,
1. add <import
resource="classpath:META-INF/cxf/cxf-extension-jaxrs-binding.xml" /> to
beans.xml. I think the httpbinding resource could be removed since you
are not using http binding.
2. add http://cxf.apache.org/jaxrs in the schemalocation property of
beans tag.
3. Don't mix and match jax-rs and jax-ws tags,i.e. javax.ws.rs.GET and
org.codehaus.jra.Get
4. I'm not sure how your complex objects would fit in the path as param,
especially for POST. shouldn't it be in the payload of POST?
How do you define the web.xml file?
Gabo
P.S. I'm attaching the objects sent earlier.
Forum Specific wrote:
Hi,
I have attached my cxf-rest.xml file which contains jaxrs:server
mapping and also the java classes which will be required for the
mapping of bean. When I moved cxf.xml file in to WEB-INF/classes
folder then tomcat container is not giving cxf.xml not found
warning.All the XML file whichever is mentioned in cxf-rest.xml
file is under WEB-INF folder.
But still giving the warning on Tomcat console :
Oct 29, 2008 12:58:19 PM org.apache.cxf.transport.servlet.CXFServlet
updateContext
INFO: Load the bus without application context
Regards,
forum specific
On Wed, Oct 29, 2008 at 12:53 PM, Gabo Manuel
<[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
Hi,
How does tomcat unwrap the war file? what does the cxf.xml
(and other xmls) look like and where are they located after
start up? Could you paste a section of the configuration files?
Gabo
Forum Specific wrote:
Hi All,
My second problem(INFO: No cxf.xml configuration file
detected, relying on
defaults) hasbeen solved but my first problem is still
there("INFO: Load the
bus without application context")
Please help me out this is very urgent :(.
Reagrds,
FS
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxrs="http://cxf.apache.org/jaxrs"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd">
<import resource="cxf.xml" />
<import resource="cxf-extension-http-binding.xml"/>
<import resource="cxf-servlet.xml" />
<jaxrs:server id="orderProcess" address="/">
<jaxrs:serviceBeans>
<ref bean="customerService"/>
</jaxrs:serviceBeans>
</jaxrs:server>
<bean id="customerService" class="demo.order.OrderProcessImpl"/>
<!--bean id="customerService" class="demo.jaxrs.server.CustomerService"/-->
</beans>