Joined: Wed Feb 20, 2013 11:34 am Posts: 1
|
here is my stack trace,
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.hibernate.TransactionException: Could not find UserTransaction in JNDI: org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:927) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:811) javax.servlet.http.HttpServlet.service(HttpServlet.java:621) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796) javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
root cause
org.hibernate.TransactionException: Could not find UserTransaction in JNDI: org.hibernate.transaction.JTATransaction.<init>(JTATransaction.java:64) org.hibernate.transaction.JTATransactionFactory.createTransaction(JTATransactionFactory.java:57) org.hibernate.jdbc.JDBCContext.getTransaction(JDBCContext.java:193) org.hibernate.impl.SessionImpl.getTransaction(SessionImpl.java:1315) org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1325) com.java.shivaprakash.myprofile.login.controller.LoginController.testMapping(LoginController.java:30) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176) org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:439) org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:427) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:915) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:811) javax.servlet.http.HttpServlet.service(HttpServlet.java:621) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796) javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
root cause
javax.naming.NamingException: Cannot create resource instance org.apache.naming.factory.TransactionFactory.getObjectInstance(TransactionFactory.java:116) javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304) org.apache.naming.NamingContext.lookup(NamingContext.java:843) org.apache.naming.NamingContext.lookup(NamingContext.java:154) org.apache.naming.NamingContext.lookup(NamingContext.java:831) org.apache.naming.NamingContext.lookup(NamingContext.java:168) org.apache.naming.SelectorContext.lookup(SelectorContext.java:158) javax.naming.InitialContext.lookup(InitialContext.java:392) org.hibernate.transaction.JTATransaction.<init>(JTATransaction.java:60) org.hibernate.transaction.JTATransactionFactory.createTransaction(JTATransactionFactory.java:57) org.hibernate.jdbc.JDBCContext.getTransaction(JDBCContext.java:193) org.hibernate.impl.SessionImpl.getTransaction(SessionImpl.java:1315) org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1325) com.java.shivaprakash.myprofile.login.controller.LoginController.testMapping(LoginController.java:30) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176) org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:439) org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:427) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:915) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:811) javax.servlet.http.HttpServlet.service(HttpServlet.java:621) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796) javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
Please help me resolving this issue.
|
|