Hi folks. I'm brand new to Hibernate and Struts, so I suspect I'm biting off a little more than I can easily chew here. Any help that can be provided is appreciated.
I'm using the StrutsStudio Eclipse Plugin. For my database schema, I've generated a set of .hbm.xml files. I've looked at the quickstart example and used it's Tomcat's server.xml additions, modifying them to talk to my (SQLServer2K) database (MS's JDBC driver and not the bridge :-). I've noticed some suggest putting the hibernate jar files in the global context, rather than the local one, but I've followed the instructions here, which say local. I've downloaded the struts-hibernate-src example from sourceforge and used it's HibernatePlugIn class almost verbatim (essentially I changed the references to addClass() to my own classes, and that was about it). I'd like to use this one rather than the one provided on the hibernate.org web site if possible. I've verified that my very simple struts example worked before I made the hibernate related changes. The JSP generated code is now throwing an exception (javax.servlet.ServletException: net/sf/hibernate/Session) to be thrown at the line indicated below, which doesn't tell my newbie self much. Changing the database connect string doesn't change this error. I'm wondering if it's not trying to get the wrong type of Session object in this snippet. Thoughts? TIA -Joe try { _jspxFactory = JspFactory.getDefaultFactory(); response.setContentType("text/html;charset=ISO-8859-1"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\r\n"); out.write("\r\n"); out.write("\r\n"); if (_jspx_meth_html_html_0(pageContext)) return; } catch (Throwable t) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) out.clearBuffer(); if (pageContext != null) pageContext.handlePageException(t); // THROWS EXCEPTION HERE } finally { if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext); } } ------------------------------------------------------- This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo The Event For Linux Datacenter Solutions & Strategies in The Enterprise Linux in the Boardroom; in the Front Office; & in the Server Room http://www.enterpriselinuxforum.com _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel