<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Wet Feet - Online Marketing and Technology Blog</title>
	<atom:link href="http://www.wetfeetblog.com/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wetfeetblog.com</link>
	<description></description>
	<lastBuildDate>Sun, 22 Jan 2012 04:28:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Google App Engine + JAVA + JDO + Inheritance + One-To-Many Relationships by Song Jing, Lim</title>
		<link>http://www.wetfeetblog.com/google-app-engine-java-jdo-inheritance-one-to-many-relationships/242/comment-page-1#comment-1122</link>
		<dc:creator>Song Jing, Lim</dc:creator>
		<pubDate>Sun, 22 Jan 2012 04:28:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.wetfeetblog.com/?p=242#comment-1122</guid>
		<description>Hi

Based on GAE JDO page (http://code.google.com/appengine/docs/java/datastore/jdo/relationships.html), I create Employee and ContactInfo objects with relation one to many.

    public class Employee implements Serializable{
        @Persistent(mappedBy = &quot;employee&quot;, defaultFetchGroup = &quot;true&quot;)
        @Element(dependent = &quot;true&quot;)
        private List contactInfoSets;
    ...

    public class ContactInfo implements Serializable{
        @Persistent
        private String streetAddress;
    ...

I try to exec below code always give me error (java.lang.AssertionError: expected: but was:) because but the return value is 0.

    String statement = &quot;SELECT FROM &quot; + Employee.class.getName() 
        + &quot; WHERE contactInfoSets.contains(i) &amp;&amp; i.streetAddress==&#039;myaddress&#039;&quot;
        + &quot; VARIABLES &quot; + ContactInfo.class.getName() + &quot; i &quot;;
    javax.jdo.Query query = pm.newQuery(statement);
    List companyProfiles = (List) query.execute();

Thanks...  
		

Here the code

**[Employee.java]**

    import java.io.Serializable;
    import java.util.List;
    
    import javax.jdo.annotations.IdGeneratorStrategy;
    import javax.jdo.annotations.IdentityType;
    import javax.jdo.annotations.PersistenceCapable;
    import javax.jdo.annotations.Persistent;
    import javax.jdo.annotations.PrimaryKey;
    import javax.jdo.annotations.Element;
    
    import com.google.appengine.api.datastore.Key;
    
    @SuppressWarnings(&quot;serial&quot;)
    @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = &quot;true&quot;)
    public class Employee implements Serializable{
    
        @PrimaryKey
        @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
        private Key key;
    
        @Persistent(mappedBy = &quot;employee&quot;, defaultFetchGroup = &quot;true&quot;)
        @Element(dependent = &quot;true&quot;)
        private List contactInfoSets;
    
    	public List getContactInfoSets() {
    		return contactInfoSets;
    	}
    	public void setContactInfoSets(List contactInfoSets) {
    		this.contactInfoSets = contactInfoSets;
    	}
    	public Key getKey() {
    		return key;
    	}
    	public void setKey(Key key) {
    		this.key = key;
    	}
    }


**[ContactInfo.java]**

    import java.io.Serializable;
    
    import javax.jdo.annotations.IdGeneratorStrategy;
    import javax.jdo.annotations.IdentityType;
    import javax.jdo.annotations.PersistenceCapable;
    import javax.jdo.annotations.Persistent;
    import javax.jdo.annotations.PrimaryKey;
    
    import com.google.appengine.api.datastore.Key;
    
    @SuppressWarnings(&quot;serial&quot;)
    @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = &quot;true&quot;)
    public class ContactInfo implements Serializable{
    
        @PrimaryKey
        @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
        private Key key;
    
    	
    	@Persistent
    	private String streetAddress;
    	
    	@Persistent
        private Employee employee;		
    
    	public Key getKey() {
    		return key;
    	}
    
    	public void setKey(Key key) {
    		this.key = key;
    	}	
    	
    	public String getStreetAddress() {
    		return streetAddress;
    	}
    
    	public void setStreetAddress(String streetAddress) {
    		this.streetAddress = streetAddress;
    	}
    
    	public Employee getEmployee() {
    		return employee;
    	}
    
    	public void setEmployee(Employee employee) {
    		this.employee = employee;
    	}	
    }

**[TestJdoCollection.java]**

    import static com.google.appengine.api.datastore.FetchOptions.Builder.withLimit;
    import static org.junit.Assert.assertEquals;
    
    import java.util.ArrayList;
    import java.util.List;
    
    import javax.jdo.PersistenceManager;
    import javax.jdo.PersistenceManagerFactory;
    
    import org.junit.After;
    import org.junit.Before;
    import org.junit.Test;
    
    import com.cea.common.service.CeaServiceFactory;
    import com.cea.common.service.PersistenceService;
    import com.google.appengine.api.datastore.DatastoreService;
    import com.google.appengine.api.datastore.DatastoreServiceFactory;
    import com.google.appengine.api.datastore.Query;
    import com.google.appengine.tools.development.testing.LocalDatastoreServiceTestConfig;
    import com.google.appengine.tools.development.testing.LocalServiceTestHelper;
    
    public class TestJdoCollection {
    private final LocalServiceTestHelper helper = new LocalServiceTestHelper(
			new LocalDatastoreServiceTestConfig());   
                    
    	private DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
    	
    	@Before
    	public void setUp() {
    		helper.setUp();
    	}
    
    	@After
    	public void tearDown() {
    		helper.tearDown();
    	}
    
        @Test	
    	public void test(){
        	CeaServiceFactory ceaServiceFactory = CeaServiceFactory.getInstance();
    		PersistenceService servicePersistance = (PersistenceService) ceaServiceFactory.getCeaService(CeaServiceFactory.SERVICE_PERSISTANCE);		
    		PersistenceManagerFactory pmf = servicePersistance.getPersistenceManagerFactory();
    		PersistenceManager pm = pmf.getPersistenceManager();
    		
        	ContactInfo contactInfo = new ContactInfo();
        	contactInfo.setStreetAddress(&quot;myaddress&quot;);
        	
        	Employee employee  = new Employee();
        	List contactInfoSets = new ArrayList();
        	contactInfoSets.add(contactInfo);
        	employee.setContactInfoSets(contactInfoSets);		
    
    		pm.makePersistent(employee);
    		
    		assertEquals(1, ds.prepare(new Query(&quot;Employee&quot;)).countEntities(withLimit(10)));
    		assertEquals(1, ds.prepare(new Query(&quot;ContactInfo&quot;)).countEntities(withLimit(10)));
    		
    		String statement = &quot;SELECT FROM &quot; + Employee.class.getName() + &quot; WHERE contactInfoSets.contains(i) &amp;&amp; i.streetAddress==&#039;myaddress&#039;&quot;
    				+ &quot; VARIABLES &quot; + ContactInfo.class.getName() + &quot; i &quot;;
    		javax.jdo.Query query = pm.newQuery(statement);
    	    List companyProfiles = (List) query.execute();		
    	    assertEquals(1, companyProfiles.size());
        	
    	}
    }</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Based on GAE JDO page (<a href="http://code.google.com/appengine/docs/java/datastore/jdo/relationships.html" rel="nofollow">http://code.google.com/appengine/docs/java/datastore/jdo/relationships.html</a>), I create Employee and ContactInfo objects with relation one to many.</p>
<p>    public class Employee implements Serializable{<br />
        @Persistent(mappedBy = &#8220;employee&#8221;, defaultFetchGroup = &#8220;true&#8221;)<br />
        @Element(dependent = &#8220;true&#8221;)<br />
        private List contactInfoSets;<br />
    &#8230;</p>
<p>    public class ContactInfo implements Serializable{<br />
        @Persistent<br />
        private String streetAddress;<br />
    &#8230;</p>
<p>I try to exec below code always give me error (java.lang.AssertionError: expected: but was:) because but the return value is 0.</p>
<p>    String statement = &#8220;SELECT FROM &#8221; + Employee.class.getName()<br />
        + &#8221; WHERE contactInfoSets.contains(i) &amp;&amp; i.streetAddress==&#8217;myaddress&#8217;&#8221;<br />
        + &#8221; VARIABLES &#8221; + ContactInfo.class.getName() + &#8221; i &#8220;;<br />
    javax.jdo.Query query = pm.newQuery(statement);<br />
    List companyProfiles = (List) query.execute();</p>
<p>Thanks&#8230;  </p>
<p>Here the code</p>
<p>**[Employee.java]**</p>
<p>    import java.io.Serializable;<br />
    import java.util.List;</p>
<p>    import javax.jdo.annotations.IdGeneratorStrategy;<br />
    import javax.jdo.annotations.IdentityType;<br />
    import javax.jdo.annotations.PersistenceCapable;<br />
    import javax.jdo.annotations.Persistent;<br />
    import javax.jdo.annotations.PrimaryKey;<br />
    import javax.jdo.annotations.Element;</p>
<p>    import com.google.appengine.api.datastore.Key;</p>
<p>    @SuppressWarnings(&#8220;serial&#8221;)<br />
    @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = &#8220;true&#8221;)<br />
    public class Employee implements Serializable{</p>
<p>        @PrimaryKey<br />
        @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)<br />
        private Key key;</p>
<p>        @Persistent(mappedBy = &#8220;employee&#8221;, defaultFetchGroup = &#8220;true&#8221;)<br />
        @Element(dependent = &#8220;true&#8221;)<br />
        private List contactInfoSets;</p>
<p>    	public List getContactInfoSets() {<br />
    		return contactInfoSets;<br />
    	}<br />
    	public void setContactInfoSets(List contactInfoSets) {<br />
    		this.contactInfoSets = contactInfoSets;<br />
    	}<br />
    	public Key getKey() {<br />
    		return key;<br />
    	}<br />
    	public void setKey(Key key) {<br />
    		this.key = key;<br />
    	}<br />
    }</p>
<p>**[ContactInfo.java]**</p>
<p>    import java.io.Serializable;</p>
<p>    import javax.jdo.annotations.IdGeneratorStrategy;<br />
    import javax.jdo.annotations.IdentityType;<br />
    import javax.jdo.annotations.PersistenceCapable;<br />
    import javax.jdo.annotations.Persistent;<br />
    import javax.jdo.annotations.PrimaryKey;</p>
<p>    import com.google.appengine.api.datastore.Key;</p>
<p>    @SuppressWarnings(&#8220;serial&#8221;)<br />
    @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = &#8220;true&#8221;)<br />
    public class ContactInfo implements Serializable{</p>
<p>        @PrimaryKey<br />
        @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)<br />
        private Key key;</p>
<p>    	@Persistent<br />
    	private String streetAddress;</p>
<p>    	@Persistent<br />
        private Employee employee;		</p>
<p>    	public Key getKey() {<br />
    		return key;<br />
    	}</p>
<p>    	public void setKey(Key key) {<br />
    		this.key = key;<br />
    	}	</p>
<p>    	public String getStreetAddress() {<br />
    		return streetAddress;<br />
    	}</p>
<p>    	public void setStreetAddress(String streetAddress) {<br />
    		this.streetAddress = streetAddress;<br />
    	}</p>
<p>    	public Employee getEmployee() {<br />
    		return employee;<br />
    	}</p>
<p>    	public void setEmployee(Employee employee) {<br />
    		this.employee = employee;<br />
    	}<br />
    }</p>
<p>**[TestJdoCollection.java]**</p>
<p>    import static com.google.appengine.api.datastore.FetchOptions.Builder.withLimit;<br />
    import static org.junit.Assert.assertEquals;</p>
<p>    import java.util.ArrayList;<br />
    import java.util.List;</p>
<p>    import javax.jdo.PersistenceManager;<br />
    import javax.jdo.PersistenceManagerFactory;</p>
<p>    import org.junit.After;<br />
    import org.junit.Before;<br />
    import org.junit.Test;</p>
<p>    import com.cea.common.service.CeaServiceFactory;<br />
    import com.cea.common.service.PersistenceService;<br />
    import com.google.appengine.api.datastore.DatastoreService;<br />
    import com.google.appengine.api.datastore.DatastoreServiceFactory;<br />
    import com.google.appengine.api.datastore.Query;<br />
    import com.google.appengine.tools.development.testing.LocalDatastoreServiceTestConfig;<br />
    import com.google.appengine.tools.development.testing.LocalServiceTestHelper;</p>
<p>    public class TestJdoCollection {<br />
    private final LocalServiceTestHelper helper = new LocalServiceTestHelper(<br />
			new LocalDatastoreServiceTestConfig());   </p>
<p>    	private DatastoreService ds = DatastoreServiceFactory.getDatastoreService();</p>
<p>    	@Before<br />
    	public void setUp() {<br />
    		helper.setUp();<br />
    	}</p>
<p>    	@After<br />
    	public void tearDown() {<br />
    		helper.tearDown();<br />
    	}</p>
<p>        @Test<br />
    	public void test(){<br />
        	CeaServiceFactory ceaServiceFactory = CeaServiceFactory.getInstance();<br />
    		PersistenceService servicePersistance = (PersistenceService) ceaServiceFactory.getCeaService(CeaServiceFactory.SERVICE_PERSISTANCE);<br />
    		PersistenceManagerFactory pmf = servicePersistance.getPersistenceManagerFactory();<br />
    		PersistenceManager pm = pmf.getPersistenceManager();</p>
<p>        	ContactInfo contactInfo = new ContactInfo();<br />
        	contactInfo.setStreetAddress(&#8220;myaddress&#8221;);</p>
<p>        	Employee employee  = new Employee();<br />
        	List contactInfoSets = new ArrayList();<br />
        	contactInfoSets.add(contactInfo);<br />
        	employee.setContactInfoSets(contactInfoSets);		</p>
<p>    		pm.makePersistent(employee);</p>
<p>    		assertEquals(1, ds.prepare(new Query(&#8220;Employee&#8221;)).countEntities(withLimit(10)));<br />
    		assertEquals(1, ds.prepare(new Query(&#8220;ContactInfo&#8221;)).countEntities(withLimit(10)));</p>
<p>    		String statement = &#8220;SELECT FROM &#8221; + Employee.class.getName() + &#8221; WHERE contactInfoSets.contains(i) &amp;&amp; i.streetAddress==&#8217;myaddress&#8217;&#8221;<br />
    				+ &#8221; VARIABLES &#8221; + ContactInfo.class.getName() + &#8221; i &#8220;;<br />
    		javax.jdo.Query query = pm.newQuery(statement);<br />
    	    List companyProfiles = (List) query.execute();<br />
    	    assertEquals(1, companyProfiles.size());</p>
<p>    	}<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Goolge app engine + java + spring + REST + JSON + Flex &#8211; Part 1 by unit</title>
		<link>http://www.wetfeetblog.com/goolge-app-engine-java-spring-rest-json-flex-part-1/87/comment-page-1#comment-1121</link>
		<dc:creator>unit</dc:creator>
		<pubDate>Sun, 08 Jan 2012 12:30:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.wetfeetblog.com/?p=87#comment-1121</guid>
		<description>Forget my comment, I just kept missing a slash in address, now it works. Thank you for your great post.</description>
		<content:encoded><![CDATA[<p>Forget my comment, I just kept missing a slash in address, now it works. Thank you for your great post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Goolge app engine + java + spring + REST + JSON + Flex &#8211; Part 1 by unit</title>
		<link>http://www.wetfeetblog.com/goolge-app-engine-java-spring-rest-json-flex-part-1/87/comment-page-1#comment-1120</link>
		<dc:creator>unit</dc:creator>
		<pubDate>Sun, 08 Jan 2012 12:19:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.wetfeetblog.com/?p=87#comment-1120</guid>
		<description>I tried to build your example (withnetbeans) and everything works fine in the local server, I get the right json on localhost:8080/api/user. I uploaded the app to GAE without errors but if I try to GET myapp.appspot.com/api/user it returns me a 404 Error: NOT_FOUND. Any idea of what I&#039;m missing?</description>
		<content:encoded><![CDATA[<p>I tried to build your example (withnetbeans) and everything works fine in the local server, I get the right json on localhost:8080/api/user. I uploaded the app to GAE without errors but if I try to GET myapp.appspot.com/api/user it returns me a 404 Error: NOT_FOUND. Any idea of what I&#8217;m missing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Google App Engine + JAVA + Spring + REST + Mapping Exceptions to Errors for JSON by anonym</title>
		<link>http://www.wetfeetblog.com/google-app-engine-java-spring-rest-mapping-exceptions-to-errors-for-json/212/comment-page-1#comment-1118</link>
		<dc:creator>anonym</dc:creator>
		<pubDate>Fri, 23 Dec 2011 15:55:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.wetfeetblog.com/?p=212#comment-1118</guid>
		<description>Thanks for pointing out how to use the exception resolver, but this aproach works if there is only JsonView (in your case it is named as MappingJacksonJsonView). Consider adding another media type (e.g. application/xml or text/plain), map for that content type a view. If there comes a request that accepts content type other than json, your exception resolver still will respond in a json format. This is beacause JsonExceptionResolver sets specifically JsonView.</description>
		<content:encoded><![CDATA[<p>Thanks for pointing out how to use the exception resolver, but this aproach works if there is only JsonView (in your case it is named as MappingJacksonJsonView). Consider adding another media type (e.g. application/xml or text/plain), map for that content type a view. If there comes a request that accepts content type other than json, your exception resolver still will respond in a json format. This is beacause JsonExceptionResolver sets specifically JsonView.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Google App Engine + JAVA + Spring + REST + Mapping Exceptions to Errors for JSON by Spring 3 One Approach to Exception Handling for MVC when using JSON &#171; In the Folds</title>
		<link>http://www.wetfeetblog.com/google-app-engine-java-spring-rest-mapping-exceptions-to-errors-for-json/212/comment-page-1#comment-1117</link>
		<dc:creator>Spring 3 One Approach to Exception Handling for MVC when using JSON &#171; In the Folds</dc:creator>
		<pubDate>Thu, 17 Nov 2011 21:49:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.wetfeetblog.com/?p=212#comment-1117</guid>
		<description>[...] hope to discover and understand them at some point, but this was actually fairly simple. Thanks to Google App Engine + JAVA + Spring + REST + Mapping Exceptions to Errors for JSON for providing me with a solution. The entry at Wet Feet is very well written. I&#8217;m just [...]</description>
		<content:encoded><![CDATA[<p>[...] hope to discover and understand them at some point, but this was actually fairly simple. Thanks to Google App Engine + JAVA + Spring + REST + Mapping Exceptions to Errors for JSON for providing me with a solution. The entry at Wet Feet is very well written. I&#8217;m just [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Spring JDBC Template &#8211; A leaner alternative to fat Hibernate by Aleksandar</title>
		<link>http://www.wetfeetblog.com/spring-jdbc-template-leaner-alternative-fat-hibernate/328/comment-page-1#comment-1116</link>
		<dc:creator>Aleksandar</dc:creator>
		<pubDate>Sat, 12 Nov 2011 13:36:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.wetfeetblog.com/?p=328#comment-1116</guid>
		<description>Very nice :)) When I use json.POJO Mapping . I get this error : http://stackoverflow.com/questions/5161466/how-do-i-use-the-jersey-json-pojo-support , so I commented that part out. It maps all my pojos to json perfectly fine without it. So I don&#039;t know why exactly I need it. 
When I load the beans from applicationContext.xml they usually print out some of the things they do in the tomcat console (like when c3p0 created its connection pool).  But this doesn&#039;t happen. Hm? 
And to actually use the beans I also created a common class like that.

public class Common {

	private static ApplicationContext context;

	public static ApplicationContext getContext() {
		if (context == null) {
			context = new FileSystemXmlApplicationContext(
					&quot;classpath:applicationContext.xml&quot;);
			return context;
		}
		return context;
	}
}

which actually seems to create the beans when from the applicationContext when i call it. 
I would really like even the first call of my webservice to use those already created beans.
Am I doing something wrong? :)
Thanks a lot for the help!</description>
		<content:encoded><![CDATA[<p>Very nice <img src='http://www.wetfeetblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ) When I use json.POJO Mapping . I get this error : <a href="http://stackoverflow.com/questions/5161466/how-do-i-use-the-jersey-json-pojo-support" rel="nofollow">http://stackoverflow.com/questions/5161466/how-do-i-use-the-jersey-json-pojo-support</a> , so I commented that part out. It maps all my pojos to json perfectly fine without it. So I don&#8217;t know why exactly I need it.<br />
When I load the beans from applicationContext.xml they usually print out some of the things they do in the tomcat console (like when c3p0 created its connection pool).  But this doesn&#8217;t happen. Hm?<br />
And to actually use the beans I also created a common class like that.</p>
<p>public class Common {</p>
<p>	private static ApplicationContext context;</p>
<p>	public static ApplicationContext getContext() {<br />
		if (context == null) {<br />
			context = new FileSystemXmlApplicationContext(<br />
					&#8220;classpath:applicationContext.xml&#8221;);<br />
			return context;<br />
		}<br />
		return context;<br />
	}<br />
}</p>
<p>which actually seems to create the beans when from the applicationContext when i call it.<br />
I would really like even the first call of my webservice to use those already created beans.<br />
Am I doing something wrong? <img src='http://www.wetfeetblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Thanks a lot for the help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Spring JDBC Template &#8211; A leaner alternative to fat Hibernate by Tomas Mazukna</title>
		<link>http://www.wetfeetblog.com/spring-jdbc-template-leaner-alternative-fat-hibernate/328/comment-page-1#comment-1115</link>
		<dc:creator>Tomas Mazukna</dc:creator>
		<pubDate>Fri, 11 Nov 2011 13:12:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.wetfeetblog.com/?p=328#comment-1115</guid>
		<description>You need to use spring specific jersey servlet ;)
Here is what I have used in the past:

	&lt;context-param&gt;
		&lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
		&lt;param-value&gt;classpath:applicationContext.xml&lt;/param-value&gt;
	&lt;/context-param&gt;
    
	&lt;listener&gt;
		&lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
	&lt;/listener&gt;

       
    &lt;servlet&gt;
        &lt;servlet-name&gt;archetype-api&lt;/servlet-name&gt;
        &lt;servlet-class&gt;com.sun.jersey.spi.spring.container.servlet.SpringServlet&lt;/servlet-class&gt;
        &lt;init-param&gt;
            &lt;param-name&gt;com.sun.jersey.config.property.packages&lt;/param-name&gt;
            &lt;param-value&gt;Your.package.name.for.rest.resources&lt;/param-value&gt;
        &lt;/init-param&gt;
 		&lt;init-param&gt;
 			&lt;param-name&gt;com.sun.jersey.api.json.POJOMappingFeature&lt;/param-name&gt;
			&lt;param-value&gt;true&lt;/param-value&gt;
		&lt;/init-param&gt;
		&lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
    &lt;/servlet&gt;

all spring beans where defined in applicationContext.xml found on the classpath. I used Json pojo marshaling feature.</description>
		<content:encoded><![CDATA[<p>You need to use spring specific jersey servlet <img src='http://www.wetfeetblog.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
Here is what I have used in the past:</p>
<p>	&lt;context-param&gt;<br />
		&lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;<br />
		&lt;param-value&gt;classpath:applicationContext.xml&lt;/param-value&gt;<br />
	&lt;/context-param&gt;</p>
<p>	&lt;listener&gt;<br />
		&lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;<br />
	&lt;/listener&gt;</p>
<p>    &lt;servlet&gt;<br />
        &lt;servlet-name&gt;archetype-api&lt;/servlet-name&gt;<br />
        &lt;servlet-class&gt;com.sun.jersey.spi.spring.container.servlet.SpringServlet&lt;/servlet-class&gt;<br />
        &lt;init-param&gt;<br />
            &lt;param-name&gt;com.sun.jersey.config.property.packages&lt;/param-name&gt;<br />
            &lt;param-value&gt;Your.package.name.for.rest.resources&lt;/param-value&gt;<br />
        &lt;/init-param&gt;<br />
 		&lt;init-param&gt;<br />
 			&lt;param-name&gt;com.sun.jersey.api.json.POJOMappingFeature&lt;/param-name&gt;<br />
			&lt;param-value&gt;true&lt;/param-value&gt;<br />
		&lt;/init-param&gt;<br />
		&lt;load-on-startup&gt;1&lt;/load-on-startup&gt;<br />
    &lt;/servlet&gt;</p>
<p>all spring beans where defined in applicationContext.xml found on the classpath. I used Json pojo marshaling feature.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Spring JDBC Template &#8211; A leaner alternative to fat Hibernate by Aleksandar</title>
		<link>http://www.wetfeetblog.com/spring-jdbc-template-leaner-alternative-fat-hibernate/328/comment-page-1#comment-1114</link>
		<dc:creator>Aleksandar</dc:creator>
		<pubDate>Fri, 11 Nov 2011 08:01:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.wetfeetblog.com/?p=328#comment-1114</guid>
		<description>Ok, it seems it doesn&#039;t like my xml here, but the structure is the same as in the tutorial i followed. here is a closer link: http://www.vogella.de/articles/REST/article.html#first_servletdispatcher</description>
		<content:encoded><![CDATA[<p>Ok, it seems it doesn&#8217;t like my xml here, but the structure is the same as in the tutorial i followed. here is a closer link: <a href="http://www.vogella.de/articles/REST/article.html#first_servletdispatcher" rel="nofollow">http://www.vogella.de/articles/REST/article.html#first_servletdispatcher</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Spring JDBC Template &#8211; A leaner alternative to fat Hibernate by Aleksandar</title>
		<link>http://www.wetfeetblog.com/spring-jdbc-template-leaner-alternative-fat-hibernate/328/comment-page-1#comment-1113</link>
		<dc:creator>Aleksandar</dc:creator>
		<pubDate>Fri, 11 Nov 2011 07:59:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.wetfeetblog.com/?p=328#comment-1113</guid>
		<description>Here is my web.xml configuration



	CabbieMagnet
	
		Jersey REST Service
		com.sun.jersey.spi.container.servlet.ServletContainer
		
			com.sun.jersey.config.property.packages
			com.cabbiemagnet.webservices
		
		1
	
	
		Jersey REST Service
		/rest/*
	
	

	
		index.html
		index.htm
		index.jsp
		default.html
		default.htm
		default.jsp
	


i followed the tutorial from here: http://www.vogella.de/articles/REST/article.html</description>
		<content:encoded><![CDATA[<p>Here is my web.xml configuration</p>
<p>	CabbieMagnet</p>
<p>		Jersey REST Service<br />
		com.sun.jersey.spi.container.servlet.ServletContainer</p>
<p>			com.sun.jersey.config.property.packages<br />
			com.cabbiemagnet.webservices</p>
<p>		1</p>
<p>		Jersey REST Service<br />
		/rest/*</p>
<p>		index.html<br />
		index.htm<br />
		index.jsp<br />
		default.html<br />
		default.htm<br />
		default.jsp</p>
<p>i followed the tutorial from here: <a href="http://www.vogella.de/articles/REST/article.html" rel="nofollow">http://www.vogella.de/articles/REST/article.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Spring JDBC Template &#8211; A leaner alternative to fat Hibernate by Tomas Mazukna</title>
		<link>http://www.wetfeetblog.com/spring-jdbc-template-leaner-alternative-fat-hibernate/328/comment-page-1#comment-1112</link>
		<dc:creator>Tomas Mazukna</dc:creator>
		<pubDate>Thu, 10 Nov 2011 01:35:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.wetfeetblog.com/?p=328#comment-1112</guid>
		<description>Post your servlet definitions section of the web.xml. Answer depends on the implementation you are using.</description>
		<content:encoded><![CDATA[<p>Post your servlet definitions section of the web.xml. Answer depends on the implementation you are using.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

