Hi,

Whatever you have suggested I made changes according to that.But still
facing the same prob.I am sending you my web.xml,cxf-rest.xml files also
please find it in the attachment.I think some prob is in the CXF-rest.xml
file only. I am not having  any  document for <jaxrs:server> tag.So i am not
clear abt this particular tag .How this tag is work around.
Please help me out this is really very urgent.


FS




On Wed, Oct 29, 2008 at 1:22 PM, Gabo Manuel <[EMAIL PROTECTED]>wrote:

> 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]>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
>>>>
>>>
>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
    
    <display-name>rest</display-name>
    <distributable/>
    <context-param>
        <param-name>csstheme</param-name>
        <param-value>simplicity</param-value>
    </context-param>
  

    <!-- Context Configuration locations for Spring XML files -->
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>          
             /WEB-INF/cxf-rest.xml
        </param-value>
    </context-param>
    <filter>
        <filter-name>encodingFilter</filter-name>
        <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
        <init-param>
            <param-name>encoding</param-name>
            <param-value>UTF-8</param-value>
        </init-param>
        <init-param>
            <param-name>forceEncoding</param-name>
            <param-value>true</param-value>
        </init-param>
    </filter>  
    <!--<filter>
        <filter-name>lazyLoadingFilter</filter-name>
        <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
    </filter>-->
    <!-- Use "org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter" if you're using JPA -->
   


 
    <!-- Commented out for 2 reasons: 1) it's a pain when developing JSPs, and
                                      2) it causes the Signup webtest to fail -->
    <servlet>
		<servlet-name>CXFServlet</servlet-name>
		
		<servlet-class>
			org.apache.cxf.transport.servlet.CXFServlet
		</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>

	<servlet-mapping>
		<servlet-name>CXFServlet</servlet-name>
		<url-pattern>/*</url-pattern>
	</servlet-mapping>


    <session-config>
        <session-timeout>10</session-timeout>
    </session-config>

    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>

    <error-page>
        <error-code>500</error-code>
        <location>/error.jsp</location>
    </error-page>
    <error-page>
        <error-code>400</error-code>
        <location>/index.jsp</location>
    </error-page>
    <error-page>
        <error-code>403</error-code>
        <location>/403.jsp</location>
    </error-page>
    <error-page>
        <error-code>404</error-code>
        <location>/404.jsp</location>
    </error-page>
</web-app>
<?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"/>
	<import resource="cxf-extension-jaxrs-binding.xml"/> 

	
<jaxrs:server id="orderProcess" address="/">
    <jaxrs:serviceBeans>
      <ref bean="customerService"/>
    </jaxrs:serviceBeans>
  </jaxrs:server>
  <bean id="customerService" class="demo.order.OrderProcessImpl"/>

	
</beans>

Reply via email to