Hey, I use restlet for interaction between my clients(simple java programs) and server(tomcat). I defined some server resources and implemented post and get methods and I call them using clientResource in my client applications. Sometimes my get methods give following warning:
WARNING: A response with a 200 (Ok) status should have an entity. Make sure that resource ... returns one or sets the status to 204 (No content). This doesn't happen all the times. Sometimes it happen but the overall number of this warning is too much for me (7104 in the latest day). And this doesn't happen in just one serverResource. It happens in all of them that Get method is being used. I read in different web sites that Restlet with maven had this problem before, but I don't use maven. I deployed reslet attached to Spring in my tomcat server and my applicationContext.xml includes the following xml that is related to reslet : <?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" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd "> <import resource="classpath:ApplicationContext.xml" /> <bean id="LogsServerResource" class="com.ar.restlet.resources.LogsServerResource"> </bean> <bean id="CandidateListsServerResource" class="com.ar.restlet.resources.CandidateListsServerResource"> </bean> <bean id="CandidateListServerResource" class="com.ar.restlet.resources.CandidateListServerResource"> </bean> <bean id="StatusServerResource" class="com.ar.restlet.resources.StatusServerResource"> </bean> <bean id="ConfigServerResource" class="com.ar.restlet.resources.ConfigServerResource"> </bean> <bean id="PatientListServerResource" class="com.ar.restlet.resources.PatientListServerResource"> </bean> <bean id="ReportingProductionServerResource" class="com.ar.restlet.resources.ReportingProductionServerResource"> </bean> <util:map id="propertiesMap"> <entry key="jaxb.formatted.output"> <value type="java.lang.Boolean">true</value> </entry> </util:map> <bean id="router" class="org.restlet.ext.spring.SpringRouter"> <property name="attachments"> <map> <entry key="/offices/{officeId}/logs"> <bean class="org.restlet.ext.spring.SpringFinder"> <lookup-method name="create" bean="LogsServerResource" /> </bean> </entry> <entry key="/offices/{officeId}/candidate-lists"> <bean class="org.restlet.ext.spring.SpringFinder"> <lookup-method name="create" bean="CandidateListsServerResource" /> </bean> </entry> <entry key="/offices/{officeId}/candidate-lists/{candidateListId}/status"> <bean class="org.restlet.ext.spring.SpringFinder"> <lookup-method name="create" bean="StatusServerResource" /> </bean> </entry> <entry key="/offices/{officeId}/candidate-lists/{candidateListId}"> <bean class="org.restlet.ext.spring.SpringFinder"> <lookup-method name="create" bean="CandidateListServerResource" /> </bean> </entry> <entry key="/offices/{officeId}/configuration"> <bean class="org.restlet.ext.spring.SpringFinder"> <lookup-method name="create" bean="ConfigServerResource" /> </bean> </entry> <entry key="/offices/{officeId}/reports/reporting-production"> <bean class="org.restlet.ext.spring.SpringFinder"> <lookup-method name="create" bean="ReportingProductionServerResource" /> </bean> </entry> <entry key="/offices/{officeId}/patient-list"> <bean class="org.restlet.ext.spring.SpringFinder"> <lookup-method name="create" bean="PatientListServerResource" /> </bean> </entry> </map> </property> </bean> <bean id="application" class="com.ar.restlet.PortalRestletApplication" scope="prototype"> <property name="root" ref="router"/> </bean> </beans> ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2931255

