<?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: Getting Started With JPA in Spring 2.0</title>
	<atom:link href="http://blog.springsource.org/2006/05/30/getting-started-with-jpa-in-spring-20/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.springsource.org/2006/05/30/getting-started-with-jpa-in-spring-20/</link>
	<description>The voice of SpringSource</description>
	<lastBuildDate>Wed, 08 Feb 2012 17:31:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: salish</title>
		<link>http://blog.springsource.org/2006/05/30/getting-started-with-jpa-in-spring-20/comment-page-2/#comment-199201</link>
		<dc:creator>salish</dc:creator>
		<pubDate>Tue, 26 Jul 2011 13:34:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/05/30/getting-started-with-jpa-in-spring-20/#comment-199201</guid>
		<description>hi i&#039;m new in spring and spring mvc
for an application i&#039;m using the jpa the tables are by mysql and i created the entity class by netbeans,and for the spring binding in the jsp page we has to use the &quot;&quot;  but the prblem is what about the multiple entity class ,means a class A inside that class B i want to bind the field in the class B but onsubmit action is not working for the case when i use b.email in the jsp

what is the problem please help me 


thanks 
in advance</description>
		<content:encoded><![CDATA[<p>hi i&#039;m new in spring and spring mvc<br />
for an application i&#039;m using the jpa the tables are by mysql and i created the entity class by netbeans,and for the spring binding in the jsp page we has to use the &#034;&#034;  but the prblem is what about the multiple entity class ,means a class A inside that class B i want to bind the field in the class B but onsubmit action is not working for the case when i use b.email in the jsp</p>
<p>what is the problem please help me </p>
<p>thanks<br />
in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dinesh</title>
		<link>http://blog.springsource.org/2006/05/30/getting-started-with-jpa-in-spring-20/comment-page-2/#comment-191993</link>
		<dc:creator>dinesh</dc:creator>
		<pubDate>Thu, 07 Apr 2011 12:30:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/05/30/getting-started-with-jpa-in-spring-20/#comment-191993</guid>
		<description>Hi all,

i am getting the error 

org.springframework.dao.InvalidDataAccessApiUsageException: Unknown entity: com.dell.spring.jpa.domain.Persons; nested exception is java.lang.IllegalArgumentException: Unknown entity: com.dell.spring.jpa.domain.Persons.............


and my applicationcontext.xml is



	

	 
	  
	    &lt;!--
	    --&gt;
	    
          
             
          
         
	  
	  
          
      

	 
   
	    
	    
	    
	    
	   
	 
	  
	    
	    

	  
	  
	       
	  
	 
	

and my domain class is

package com.dell.spring.jpa.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = &quot;persons&quot;)
public class Persons {

	
		@Id
		@GeneratedValue
		@Column(name = &quot;P_ID&quot;)
		private int P_ID;
		@Column(name = &quot;FIRSTNAME&quot;)
		private String FIRSTNAME; 
		@Column(name = &quot;LASTNAME&quot;)
		private String LASTNAME;       
		@Column(name = &quot;ADDRESS&quot;)
		private String ADDRESS;        
		@Column(name = &quot;CITY&quot;)
		private String CITY;           
		@Column(name = &quot;AGE&quot;)
		private int AGE;            
		@Column(name = &quot;GENDER&quot;)
		private String GENDER;
		public int getP_ID() {
			return P_ID;
		}
		public void setP_ID(int p_ID) {
			P_ID = p_ID;
		}
		public String getFIRSTNAME() {
			return FIRSTNAME;
		}
		public void setFIRSTNAME(String fIRSTNAME) {
			FIRSTNAME = fIRSTNAME;
		}
		public String getLASTNAME() {
			return LASTNAME;
		}
		public void setLASTNAME(String lASTNAME) {
			LASTNAME = lASTNAME;
		}
		public String getADDRESS() {
			return ADDRESS;
		}
		public void setADDRESS(String aDDRESS) {
			ADDRESS = aDDRESS;
		}
		public String getCITY() {
			return CITY;
		}
		public void setCITY(String cITY) {
			CITY = cITY;
		}
		public int getAGE() {
			return AGE;
		}
		public void setAGE(int aGE) {
			AGE = aGE;
		}
		public String getGENDER() {
			return GENDER;
		}
		public void setGENDER(String gENDER) {
			GENDER = gENDER;
		}
		
		

}

and my persistence.xml is


    


any body can help me.
thanks in advance</description>
		<content:encoded><![CDATA[<p>Hi all,</p>
<p>i am getting the error </p>
<p>org.springframework.dao.InvalidDataAccessApiUsageException: Unknown entity: com.dell.spring.jpa.domain.Persons; nested exception is java.lang.IllegalArgumentException: Unknown entity: com.dell.spring.jpa.domain.Persons&#8230;&#8230;&#8230;&#8230;.</p>
<p>and my applicationcontext.xml is</p>
<p>	    &lt;!&#8211;<br />
	    &#8211;&gt;</p>
<p>and my domain class is</p>
<p>package com.dell.spring.jpa.domain;</p>
<p>import javax.persistence.Column;<br />
import javax.persistence.Entity;<br />
import javax.persistence.GeneratedValue;<br />
import javax.persistence.Id;<br />
import javax.persistence.Table;</p>
<p>@Entity<br />
@Table(name = &#034;persons&#034;)<br />
public class Persons {</p>
<p>		@Id<br />
		@GeneratedValue<br />
		@Column(name = &#034;P_ID&#034;)<br />
		private int P_ID;<br />
		@Column(name = &#034;FIRSTNAME&#034;)<br />
		private String FIRSTNAME;<br />
		@Column(name = &#034;LASTNAME&#034;)<br />
		private String LASTNAME;<br />
		@Column(name = &#034;ADDRESS&#034;)<br />
		private String ADDRESS;<br />
		@Column(name = &#034;CITY&#034;)<br />
		private String CITY;<br />
		@Column(name = &#034;AGE&#034;)<br />
		private int AGE;<br />
		@Column(name = &#034;GENDER&#034;)<br />
		private String GENDER;<br />
		public int getP_ID() {<br />
			return P_ID;<br />
		}<br />
		public void setP_ID(int p_ID) {<br />
			P_ID = p_ID;<br />
		}<br />
		public String getFIRSTNAME() {<br />
			return FIRSTNAME;<br />
		}<br />
		public void setFIRSTNAME(String fIRSTNAME) {<br />
			FIRSTNAME = fIRSTNAME;<br />
		}<br />
		public String getLASTNAME() {<br />
			return LASTNAME;<br />
		}<br />
		public void setLASTNAME(String lASTNAME) {<br />
			LASTNAME = lASTNAME;<br />
		}<br />
		public String getADDRESS() {<br />
			return ADDRESS;<br />
		}<br />
		public void setADDRESS(String aDDRESS) {<br />
			ADDRESS = aDDRESS;<br />
		}<br />
		public String getCITY() {<br />
			return CITY;<br />
		}<br />
		public void setCITY(String cITY) {<br />
			CITY = cITY;<br />
		}<br />
		public int getAGE() {<br />
			return AGE;<br />
		}<br />
		public void setAGE(int aGE) {<br />
			AGE = aGE;<br />
		}<br />
		public String getGENDER() {<br />
			return GENDER;<br />
		}<br />
		public void setGENDER(String gENDER) {<br />
			GENDER = gENDER;<br />
		}</p>
<p>}</p>
<p>and my persistence.xml is</p>
<p>any body can help me.<br />
thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fatih</title>
		<link>http://blog.springsource.org/2006/05/30/getting-started-with-jpa-in-spring-20/comment-page-2/#comment-179744</link>
		<dc:creator>fatih</dc:creator>
		<pubDate>Thu, 02 Dec 2010 13:10:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/05/30/getting-started-with-jpa-in-spring-20/#comment-179744</guid>
		<description>Hie,
just one question : the &quot;save&quot; service is not tested, why not ?</description>
		<content:encoded><![CDATA[<p>Hie,<br />
just one question : the &#034;save&#034; service is not tested, why not ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paul</title>
		<link>http://blog.springsource.org/2006/05/30/getting-started-with-jpa-in-spring-20/comment-page-2/#comment-178716</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Mon, 15 Nov 2010 05:38:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/05/30/getting-started-with-jpa-in-spring-20/#comment-178716</guid>
		<description>cool, very informative post! i also wanna share this very spoon fed version of Spring   Hibernate   JPA combo

http://www.adobocode.com/spring/spring-with-hibernate-annotations

tnx</description>
		<content:encoded><![CDATA[<p>cool, very informative post! i also wanna share this very spoon fed version of Spring   Hibernate   JPA combo</p>
<p><a href="http://www.adobocode.com/spring/spring-with-hibernate-annotations" rel="nofollow">http://www.adobocode.com/spring/spring-with-hibernate-annotations</a></p>
<p>tnx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohd Adnan</title>
		<link>http://blog.springsource.org/2006/05/30/getting-started-with-jpa-in-spring-20/comment-page-2/#comment-176560</link>
		<dc:creator>Mohd Adnan</dc:creator>
		<pubDate>Mon, 20 Sep 2010 11:46:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/05/30/getting-started-with-jpa-in-spring-20/#comment-176560</guid>
		<description>in spring mvc when i submit data from my form then the exception occurs as given below.

The situation is like i have Entity class and i have taken anther Entity in it as part of relationship. when i send data to display it is working properly but when i post data after editing exception occurs. i have tried initbinding as well but doesn&#039;t work. help me...

rg.springframework.beans.NullValueInNestedPathException: Invalid property &#039;user&#039; of bean class [org.mkcl.iforum.adnan.domain.UsersCredentials]: Value of nested property &#039;user&#039; is null
	at org.springframework.beans.BeanWrapperImpl.getNestedBeanWrapper(BeanWrapperImpl.java:453)
	at org.springframework.beans.BeanWrapperImpl.getBeanWrapperForPropertyPath(BeanWrapperImpl.java:428)
	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:645)
	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)
	at org.springframework.validation.DataBinder.applyPropertyValues(DataBinder.java:532)
	at org.springframework.validation.DataBinder.doBind(DataBinder.java:434)
	at org.springframework.web.bind.WebDataBinder.doBind(WebDataBinder.java:147)
	at org.springframework.web.bind.ServletRequestDataBinder.bind(ServletRequestDataBinder.java:108)
	at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter$ArgumentsResolver.resolveArguments(AnnotationMethodHandlerAdapter.java:598)
	at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:242)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:874)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:808)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
	at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:359)
	at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
	at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
	at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
	at org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
	at org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:116)
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
	at org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
	at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:268)
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
	at org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:87)
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
	at org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:61)
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
	at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
	at org.springframework.security.securechannel.ChannelProcessingFilter.doFilterHttp(ChannelProcessingFilter.java:116)
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
	at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:174)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:183)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at test.HttpsCookieFilter.doFilter(HttpsCookieFilter.java:37)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	at java.lang.Thread.run(Thread.java:595)</description>
		<content:encoded><![CDATA[<p>in spring mvc when i submit data from my form then the exception occurs as given below.</p>
<p>The situation is like i have Entity class and i have taken anther Entity in it as part of relationship. when i send data to display it is working properly but when i post data after editing exception occurs. i have tried initbinding as well but doesn&#039;t work. help me&#8230;</p>
<p>rg.springframework.beans.NullValueInNestedPathException: Invalid property &#039;user&#039; of bean class [org.mkcl.iforum.adnan.domain.UsersCredentials]: Value of nested property &#039;user&#039; is null<br />
	at org.springframework.beans.BeanWrapperImpl.getNestedBeanWrapper(BeanWrapperImpl.java:453)<br />
	at org.springframework.beans.BeanWrapperImpl.getBeanWrapperForPropertyPath(BeanWrapperImpl.java:428)<br />
	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:645)<br />
	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)<br />
	at org.springframework.validation.DataBinder.applyPropertyValues(DataBinder.java:532)<br />
	at org.springframework.validation.DataBinder.doBind(DataBinder.java:434)<br />
	at org.springframework.web.bind.WebDataBinder.doBind(WebDataBinder.java:147)<br />
	at org.springframework.web.bind.ServletRequestDataBinder.bind(ServletRequestDataBinder.java:108)<br />
	at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter$ArgumentsResolver.resolveArguments(AnnotationMethodHandlerAdapter.java:598)<br />
	at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:242)<br />
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:874)<br />
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:808)<br />
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)<br />
	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441)<br />
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)<br />
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br />
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<br />
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br />
	at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)<br />
	at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)<br />
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br />
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br />
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:359)<br />
	at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)<br />
	at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)<br />
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)<br />
	at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)<br />
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)<br />
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)<br />
	at org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)<br />
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)<br />
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)<br />
	at org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:116)<br />
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)<br />
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)<br />
	at org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)<br />
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)<br />
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)<br />
	at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:268)<br />
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)<br />
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)<br />
	at org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:87)<br />
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)<br />
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)<br />
	at org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:61)<br />
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)<br />
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)<br />
	at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)<br />
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)<br />
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)<br />
	at org.springframework.security.securechannel.ChannelProcessingFilter.doFilterHttp(ChannelProcessingFilter.java:116)<br />
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)<br />
	at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)<br />
	at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:174)<br />
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:183)<br />
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138)<br />
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br />
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br />
	at test.HttpsCookieFilter.doFilter(HttpsCookieFilter.java:37)<br />
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br />
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br />
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<br />
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)<br />
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)<br />
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)<br />
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<br />
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br />
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)<br />
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)<br />
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)<br />
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)<br />
	at java.lang.Thread.run(Thread.java:595)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JJ</title>
		<link>http://blog.springsource.org/2006/05/30/getting-started-with-jpa-in-spring-20/comment-page-2/#comment-175654</link>
		<dc:creator>JJ</dc:creator>
		<pubDate>Tue, 31 Aug 2010 10:24:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/05/30/getting-started-with-jpa-in-spring-20/#comment-175654</guid>
		<description>Hello,

I am having an issue with JpaRestaurantDaoTests.

protected void onSetUpInTransaction() runs before every test.
So the 2nd test fails because of a duplicate primary key.
Also I notice the data isn&#039;t being rolled back after all the tests are done.
Do I need to have a onTearDownAfterTransaction() method [that was omitted from the blog code]as well or am I missing a setting?</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I am having an issue with JpaRestaurantDaoTests.</p>
<p>protected void onSetUpInTransaction() runs before every test.<br />
So the 2nd test fails because of a duplicate primary key.<br />
Also I notice the data isn&#039;t being rolled back after all the tests are done.<br />
Do I need to have a onTearDownAfterTransaction() method [that was omitted from the blog code]as well or am I missing a setting?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Getting Started With JPA in Spring 2.0 &#124; Ringo&#39;s Blog</title>
		<link>http://blog.springsource.org/2006/05/30/getting-started-with-jpa-in-spring-20/comment-page-2/#comment-174336</link>
		<dc:creator>Getting Started With JPA in Spring 2.0 &#124; Ringo&#39;s Blog</dc:creator>
		<pubDate>Sat, 17 Jul 2010 14:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/05/30/getting-started-with-jpa-in-spring-20/#comment-174336</guid>
		<description>[...] The motivation behind this blog entry is to provide a simple step-by-step guide for getting started with JPA in a standalone environment with the Spring Framework. While the JPA specification originated as the persistence mechanism for EJB 3.0, it was fortunately recognized that any such mechanism should in fact be able to persist simple POJOs. Therefore, with a handful of JARs in your classpath and a few Spring-configured beans, you can begin experimenting with JPA code within your favorite IDE. I will be using Glassfish JPA – which is the reference implementation and is based upon Oracle’s TopLink ORM framework. [Read More] [...]</description>
		<content:encoded><![CDATA[<p>[...] The motivation behind this blog entry is to provide a simple step-by-step guide for getting started with JPA in a standalone environment with the Spring Framework. While the JPA specification originated as the persistence mechanism for EJB 3.0, it was fortunately recognized that any such mechanism should in fact be able to persist simple POJOs. Therefore, with a handful of JARs in your classpath and a few Spring-configured beans, you can begin experimenting with JPA code within your favorite IDE. I will be using Glassfish JPA – which is the reference implementation and is based upon Oracle’s TopLink ORM framework. [Read More] [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damian Miranda</title>
		<link>http://blog.springsource.org/2006/05/30/getting-started-with-jpa-in-spring-20/comment-page-2/#comment-174153</link>
		<dc:creator>Damian Miranda</dc:creator>
		<pubDate>Thu, 08 Jul 2010 03:11:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/05/30/getting-started-with-jpa-in-spring-20/#comment-174153</guid>
		<description>I&#039;ve written a getting started tutorial of these two technologies (JPA and Spring) in spanish, you can visit on:

http://damianmigo.wordpress.com/2010/07/07/tutorial-jpa-hibernate-spring-orm-usando-eclipse/</description>
		<content:encoded><![CDATA[<p>I&#039;ve written a getting started tutorial of these two technologies (JPA and Spring) in spanish, you can visit on:</p>
<p><a href="http://damianmigo.wordpress.com/2010/07/07/tutorial-jpa-hibernate-spring-orm-usando-eclipse/" rel="nofollow">http://damianmigo.wordpress.com/2010/07/07/tutorial-jpa-hibernate-spring-orm-usando-eclipse/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco Massenzio</title>
		<link>http://blog.springsource.org/2006/05/30/getting-started-with-jpa-in-spring-20/comment-page-2/#comment-170813</link>
		<dc:creator>Marco Massenzio</dc:creator>
		<pubDate>Sat, 02 Jan 2010 23:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/05/30/getting-started-with-jpa-in-spring-20/#comment-170813</guid>
		<description>Update:
Using loadtime weaving like this:

  
  
    
    
      
        
        
        
      
    

    
      
    
  

solves the problem.
However, this cannot be used in production, as GWT (Jetty) does not seem to pick the -javaagent VM option.</description>
		<content:encoded><![CDATA[<p>Update:<br />
Using loadtime weaving like this:</p>
<p>solves the problem.<br />
However, this cannot be used in production, as GWT (Jetty) does not seem to pick the -javaagent VM option.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco Massenzio</title>
		<link>http://blog.springsource.org/2006/05/30/getting-started-with-jpa-in-spring-20/comment-page-2/#comment-170812</link>
		<dc:creator>Marco Massenzio</dc:creator>
		<pubDate>Sat, 02 Jan 2010 21:58:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/05/30/getting-started-with-jpa-in-spring-20/#comment-170812</guid>
		<description>I&#039;ve got it all working nicely (JPA   Spring   MySQL JDBC driver etc.) but I have run into this weird problem and I&#039;m just wondering whether anyone has seen this anywhere else: essentially, the VERY FIRST Junit test that I run, fails with the trace below; then, all the others work fine and pass without a problem.

It looks as if the very first time the JDBC driver from the mysql jar is not loaded, but I can&#039;t quite understand why (note, it does not matter which test runs first, or from which class/package, regardless, the first one will always fail).

Trace is here:
---
org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#039;currencyService&#039; defined in class path resource [com/ibw/stocks/beans.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property &#039;entityManagerFactory&#039; threw exception; nested exception is Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: No suitable driver found for jdbc:mysql://fangorn:3306/stocks_dev
Error Code: 0
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are:
PropertyAccessException 1:
org.springframework.beans.MethodInvocationException: Property &#039;entityManagerFactory&#039; threw exception; nested exception is Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: No suitable driver found for jdbc:mysql://fangorn:3306/stocks_dev
Error Code: 0
Caused by: Local Exception Stack: 
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: No suitable driver found for jdbc:mysql://fangorn:3306/stocks_dev
Error Code: 0
	at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:305)
	at oracle.toplink.essentials.sessions.DefaultConnector.connect(DefaultConnector.java:102)
	at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:184)
	at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:582)
	at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:280)
	at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:229)
	at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:93)
	at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:126)
	at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:120)
	at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:91)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean$ManagedEntityManagerFactoryInvocationHandler.invoke(AbstractEntityManagerFactoryBean.java:375)
	at $Proxy10.createEntityManager(Unknown Source)
	at com.ibw.stocks.data.AbstractDao.setEntityManagerFactory(AbstractDao.java:36)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:821)
	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:645)
	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)
	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1126)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.springframework.test.jpa.AbstractJpaTests.runBare(AbstractJpaTests.java:229)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:120)
	at junit.framework.TestSuite.runTest(TestSuite.java:230)
	at junit.framework.TestSuite.run(TestSuite.java:225)
	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.sql.SQLException: No suitable driver found for jdbc:mysql://fangorn:3306/stocks_dev
	at java.sql.DriverManager.getConnection(DriverManager.java:602)
	at java.sql.DriverManager.getConnection(DriverManager.java:154)
	at oracle.toplink.essentials.sessions.DefaultConnector.connect(DefaultConnector.java:100)
	... 49 more
---

The actual test is trivial:

 /*
   * For some mysterious reason, the very first test, when using JPA, fails because it
   * cannot find the MySQL driver.  All the others then pass.
   * 
   * TODO (marco) find the root cause of this weird behaviour and fix it
   */
  public void testDummy() {
    assertTrue(true);
  }

Any ideas?</description>
		<content:encoded><![CDATA[<p>I&#039;ve got it all working nicely (JPA   Spring   MySQL JDBC driver etc.) but I have run into this weird problem and I&#039;m just wondering whether anyone has seen this anywhere else: essentially, the VERY FIRST Junit test that I run, fails with the trace below; then, all the others work fine and pass without a problem.</p>
<p>It looks as if the very first time the JDBC driver from the mysql jar is not loaded, but I can&#039;t quite understand why (note, it does not matter which test runs first, or from which class/package, regardless, the first one will always fail).</p>
<p>Trace is here:<br />
&#8212;<br />
org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#039;currencyService&#039; defined in class path resource [com/ibw/stocks/beans.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:<br />
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property &#039;entityManagerFactory&#039; threw exception; nested exception is Exception [TOPLINK-4002] (Oracle TopLink Essentials &#8211; 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException<br />
Internal Exception: java.sql.SQLException: No suitable driver found for jdbc:mysql://fangorn:3306/stocks_dev<br />
Error Code: 0<br />
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are:<br />
PropertyAccessException 1:<br />
org.springframework.beans.MethodInvocationException: Property &#039;entityManagerFactory&#039; threw exception; nested exception is Exception [TOPLINK-4002] (Oracle TopLink Essentials &#8211; 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException<br />
Internal Exception: java.sql.SQLException: No suitable driver found for jdbc:mysql://fangorn:3306/stocks_dev<br />
Error Code: 0<br />
Caused by: Local Exception Stack:<br />
Exception [TOPLINK-4002] (Oracle TopLink Essentials &#8211; 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException<br />
Internal Exception: java.sql.SQLException: No suitable driver found for jdbc:mysql://fangorn:3306/stocks_dev<br />
Error Code: 0<br />
	at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:305)<br />
	at oracle.toplink.essentials.sessions.DefaultConnector.connect(DefaultConnector.java:102)<br />
	at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:184)<br />
	at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:582)<br />
	at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:280)<br />
	at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:229)<br />
	at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:93)<br />
	at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:126)<br />
	at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:120)<br />
	at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:91)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br />
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />
	at java.lang.reflect.Method.invoke(Method.java:597)<br />
	at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean$ManagedEntityManagerFactoryInvocationHandler.invoke(AbstractEntityManagerFactoryBean.java:375)<br />
	at $Proxy10.createEntityManager(Unknown Source)<br />
	at com.ibw.stocks.data.AbstractDao.setEntityManagerFactory(AbstractDao.java:36)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br />
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />
	at java.lang.reflect.Method.invoke(Method.java:597)<br />
	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:821)<br />
	at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:645)<br />
	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)<br />
	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)<br />
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1126)<br />
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)<br />
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)<br />
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)<br />
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)<br />
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)<br />
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)<br />
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)<br />
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br />
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br />
	at java.lang.reflect.Method.invoke(Method.java:597)<br />
	at org.springframework.test.jpa.AbstractJpaTests.runBare(AbstractJpaTests.java:229)<br />
	at junit.framework.TestResult$1.protect(TestResult.java:106)<br />
	at junit.framework.TestResult.runProtected(TestResult.java:124)<br />
	at junit.framework.TestResult.run(TestResult.java:109)<br />
	at junit.framework.TestCase.run(TestCase.java:120)<br />
	at junit.framework.TestSuite.runTest(TestSuite.java:230)<br />
	at junit.framework.TestSuite.run(TestSuite.java:225)<br />
	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)<br />
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)<br />
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)<br />
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)<br />
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)<br />
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)<br />
Caused by: java.sql.SQLException: No suitable driver found for jdbc:mysql://fangorn:3306/stocks_dev<br />
	at java.sql.DriverManager.getConnection(DriverManager.java:602)<br />
	at java.sql.DriverManager.getConnection(DriverManager.java:154)<br />
	at oracle.toplink.essentials.sessions.DefaultConnector.connect(DefaultConnector.java:100)<br />
	&#8230; 49 more<br />
&#8212;</p>
<p>The actual test is trivial:</p>
<p> /*<br />
   * For some mysterious reason, the very first test, when using JPA, fails because it<br />
   * cannot find the MySQL driver.  All the others then pass.<br />
   *<br />
   * TODO (marco) find the root cause of this weird behaviour and fix it<br />
   */<br />
  public void testDummy() {<br />
    assertTrue(true);<br />
  }</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

