<?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 on: Unit Test JAX-RS using Java 6 and JUnit 4</title>
	<atom:link href="http://www.tmro.net/2009/03/unit-test-jax-rs-using-java-6-and-junit-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tmro.net/2009/03/unit-test-jax-rs-using-java-6-and-junit-4/</link>
	<description>Mobilise your business</description>
	<lastBuildDate>Wed, 01 Sep 2010 13:08:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Nick</title>
		<link>http://www.tmro.net/2009/03/unit-test-jax-rs-using-java-6-and-junit-4/comment-page-1/#comment-76</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Tue, 05 May 2009 21:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.tmro.net/?p=93#comment-76</guid>
		<description>Thanks Bruno! That&#039;s helpful.</description>
		<content:encoded><![CDATA[<p>Thanks Bruno! That&#8217;s helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruno Vernay</title>
		<link>http://www.tmro.net/2009/03/unit-test-jax-rs-using-java-6-and-junit-4/comment-page-1/#comment-75</link>
		<dc:creator>Bruno Vernay</dc:creator>
		<pubDate>Tue, 05 May 2009 16:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.tmro.net/?p=93#comment-75</guid>
		<description>Hi,&lt;br /&gt;Your post was very helpful !&lt;br /&gt;&lt;br /&gt;If you just want to get resources, you can use url.openStream() (see http://java.sun.com/docs/books/tutorial/networking/urls/readingURL.html)&lt;br /&gt;&lt;br /&gt;There are some problems if you try to run it with Eclipse:&lt;br /&gt;- You might see compile errors saying Access restriction: The type ... is not accessible due to restriction on required library ... &lt;br /&gt;The problem here is that the HTTP server used in that project is part of the Sun JRE6 but not part of standardized Java. &lt;br /&gt;Eclipse therefore blocks access to it. &lt;br /&gt;This can be fixed by going to the Window-&gt;Preferences window, selecting Java-&gt;Compiler-&gt;Errors/Warnings, &lt;br /&gt;selecting Deprecated and Restricted API and then changing the setting for Forbidden Reference and Discouraged Reference to Warning instead of Error.  &lt;br /&gt;&lt;br /&gt;- Running it with the embedded maven gives an error: INFO: Scanning for root resource and provider classes in the paths:&lt;br /&gt;  /usr/local/eclipse-3.4.2/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/plexus-classworlds-1.2-alpha-12.jar&lt;br /&gt;May 5, 2009 6:41:42 PM com.sun.jersey.server.impl.application.WebApplicationImpl processRootResources&lt;br /&gt;SEVERE: The ResourceConfig instance does not contain any root resource classes.&lt;br /&gt;The solution is to configure an external Maven install.&lt;br /&gt;&lt;br /&gt;- Running it with JUnit in Eclipse works (doesn&#039;t) uses Maven.&lt;br /&gt;&lt;br /&gt;Bruno</description>
		<content:encoded><![CDATA[<p>Hi,<br />Your post was very helpful !</p>
<p>If you just want to get resources, you can use url.openStream() (see <a href="http://java.sun.com/docs/books/tutorial/networking/urls/readingURL.html)" rel="nofollow">http://java.sun.com/docs/books/tutorial/networking/urls/readingURL.html)</a></p>
<p>There are some problems if you try to run it with Eclipse:<br />- You might see compile errors saying Access restriction: The type &#8230; is not accessible due to restriction on required library &#8230; <br />The problem here is that the HTTP server used in that project is part of the Sun JRE6 but not part of standardized Java. <br />Eclipse therefore blocks access to it. <br />This can be fixed by going to the Window-&gt;Preferences window, selecting Java-&gt;Compiler-&gt;Errors/Warnings, <br />selecting Deprecated and Restricted API and then changing the setting for Forbidden Reference and Discouraged Reference to Warning instead of Error.  </p>
<p>- Running it with the embedded maven gives an error: INFO: Scanning for root resource and provider classes in the paths:<br />  /usr/local/eclipse-3.4.2/plugins/org.maven.ide.components.maven_embedder_2.1.0.20080530-2300/jars/plexus-classworlds-1.2-alpha-12.jar<br />May 5, 2009 6:41:42 PM com.sun.jersey.server.impl.application.WebApplicationImpl processRootResources<br />SEVERE: The ResourceConfig instance does not contain any root resource classes.<br />The solution is to configure an external Maven install.</p>
<p>- Running it with JUnit in Eclipse works (doesn&#39;t) uses Maven.</p>
<p>Bruno</p>
]]></content:encoded>
	</item>
</channel>
</rss>
