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
Very Confused.
Hello, I'm trying to get *anything* to work with the iBatis setup and I'm having very little success... I've tried to follow the tutorial and setup the PetStore example but nothing runs for me. I'm sure it is some sort of configuration issue... I'm very new to Java ... so I'm sure that isn't helping. (Other applets and .java files do successfully access my database) When I try to enter the store (JPetStore) I get : HTTP Status 400 - Invalid path /pet/shop/index was requested I also tried the example from this mailing list found here. It also won't run for me.http://www.mail-archive.com/ibatis-user-java@incubator.apache.org/msg01759.html Any guidance would be greatly appreciated. Dave
Re: Very Confused.
I've created a couple of web applications designed to help you get started using frameworks like iBATIS quickly. http://equinox.dev.java.net http://appfuse.dev.java.net Let me know if you'd like me to build one with a particular web framework (Struts, JSF, Spring, WebWork or Tapestry) and I'll upload it for you (or provide a link). Matt On May 17, 2005, at 12:08 PM, Dave Guzda wrote: Hello, I'm trying to get *anything* to work with the iBatis setup and I'm having very little success... I've tried to follow the tutorial and setup the PetStore example but nothing runs for me. I'm sure it is some sort of configuration issue... I'm very new to Java ... so I'm sure that isn't helping. (Other applets and .java files do successfully access my database) When I try to enter the store (JPetStore) I get : HTTP Status 400 - Invalid path /pet/shop/index was requested I also tried the example from this mailing list found here. It also won't run for me. http://www.mail-archive.com/ibatis-user-java@incubator.apache.org/ msg01759.html Any guidance would be greatly appreciated. Dave
Re: Very Confused.
Hi Dave, If you're new to Java, I wouldn't suggest trying to setup jPetstore ... that can be kinda tricky even for folks who've been around Java for a while. I would suggest setting up your SqlMap.xml and sql-map-config.xml files, as provided in the tutorial, and then creating a SqlConfig file that initializes the configuration and provides a static method that returns the SqlMapClient instance. Then, create a very simple application that gets a SqlMapClient instance and calls a query and verifies the results. Let me know if that works for you - if you need more guidance (e.g. code), I can help you with that, too. Brice On 5/17/05, Dave Guzda [EMAIL PROTECTED] wrote: Hello, I'm trying to get *anything* to work with the iBatis setup and I'm having very little success... I've tried to follow the tutorial and setup the PetStore example but nothing runs for me. I'm sure it is some sort of configuration issue... I'm very new to Java ... so I'm sure that isn't helping. (Other applets and .java files do successfully access my database) When I try to enter the store (JPetStore) I get : HTTP Status 400 - Invalid path /pet/shop/index was requested I also tried the example from this mailing list found here. It also won't run for me. http://www.mail-archive.com/ibatis-user-java@incubator.apache.org/msg01759.html Any guidance would be greatly appreciated. Dave -- Brice Ruth Software Engineer, Madison WI