Very Confused : Part 2 :)
Hello, Thanks for the replies to my Ibatis inquiry... My OS is Windows 2000, I'm using Java version "1.5.0_03", I do my compiling/coding with Eclipse V3.02. I'm really just interested in getting the most basic query functional and working from there... I'll look at the links already generously supplied in replies to my post, but any *simple* (talk to me like I'm 4 -grin-) examples would also be welcome. I've been trying toget the example in the tutorial working and itgrants me a lovely 500 InternalServer Error...type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Cannot allocate servlet instance for path /servlet/itest org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:388) org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.lang.NoClassDefFoundError sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) I assume by this error java is looking for something...? Thanks again, Dave
Re: Very Confused : Part 2 :)
Dave, I seriously recommend you learn JUnit before attempting to go any further. Simple unit tests to verify each layer of your application's functionality will make your life a lot easier and your learning experience a lot more enjoyable. Cheers, Clinton On 5/18/05, Dave Guzda [EMAIL PROTECTED] wrote: Hello, Thanks for the replies to my Ibatis inquiry... My OS is Windows 2000, I'm using Java version 1.5.0_03, I do my compiling/coding with Eclipse V3.02. I'm really just interested in getting the most basic query functional and working from there... I'll look at the links already generously supplied in replies to my post, but any *simple* (talk to me like I'm 4 -grin-) examples would also be welcome. I've been trying toget the example in the tutorial working and itgrants me a lovely 500 InternalServer Error...type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Cannot allocate servlet instance for path /servlet/itest org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:388) org.apache.catalina.servlets.InvokerServlet.doGet (InvokerServlet.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.lang.NoClassDefFoundError sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) I assume by this error java is looking for something...? Thanks again, Dave
Re: Very Confused : Part 2 :)
Dave,First off I would try to get things working in a plain old java environment. This means leave the servlet and web stuff out first.Second off the error you are getting is a common java error. A NoClassDefFoundError means only one thing, you are missing a jar file. Make sure that you have all necessary libraries. My suggestion start back from scratch and use the documentation.If you get stuck feel free to contact me with specific questions/errors.Nathan On May 18, 2005, at 12:44 PM, Dave Guzda wrote:Hello, Thanks for the replies to my Ibatis inquiry... My OS is Windows 2000, I'm using Java version "1.5.0_03", I do my compiling/coding with Eclipse V3.02. I'm really just interested in getting the most basic query functional and working from there... I'll look at the links already generously supplied in replies to my post, but any *simple* (talk to me like I'm 4 -grin-) examples would also be welcome. I've been trying to get the example in the tutorial working and it grants me a lovely 500 Internal Server Error...type Exception reportmessagedescription The server encountered an internal error () that prevented it from fulfilling this request.exceptionjavax.servlet.ServletException: Cannot allocate servlet instance for path /servlet/itest org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:388) org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root causejava.lang.NoClassDefFoundError sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) I assume by this error java is looking for something...? Thanks again,Dave