Kengkaj Sathianpantarit wrote:It happened in which page? form view or success view?
16:13:24,217 ERROR [[i550imports]] Servlet.service() for servlet i550imports threw exception
java.lang.StackOverflowError
at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:210)
at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222)
at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222)
at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222)
at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222)
at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222)
Danny Rebello wrote:
C:\danny\hibernate\FirstHibernateExample\
my java,class and xml files are under
C:\danny\hibernate\FirstHibernateExample\src\com\test\example\
When I compile the java files everything is fine.
When I run the application I get the following error :
net.sf.hibernate.HibernateException: hibernate.cfg.xml not found.
In my code I have specified
private static String CONFIG_FILE_LOCATION = "/hibernate.cfg.xml";
Paul Clapham wrote:
Mike Tihonchik wrote:I moved it to the source directory [where my hibernate.cfg.xml and derby.cfg.xml are located] and still the same error persist...
But doesn't your configuration say it's in a directory called "database" under that?
Paul Clapham wrote:So no matter what you put in servers.hbm.xml, you still get the same error? (Hint: try putting rubbish in it.) If so, that simply means that Hibernate can't find it.
Paul Clapham wrote:Problem solved, then?
Paul Clapham wrote:You say you have a file named "server.hbm.xml" but you also have an XML document which refers to "servers.hbm.xml".