Announcement Announcement Module
Collapse
No announcement yet.
NoClassDefFoundError: org/springframework/jdbc/core/RowMapper Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    pvera

    Ideally you would use Ant or Maven to copy the relevant jars into your WEB-INF/lib ready for deployment.
    the DaveyS's commentary is my point

    Comment


    • #17
      wait, I assume you are building a webapp, since I've read that you put your libs in WEB-INF. Then, why are you trying to run the app with java.exe ? You should put your webapp in a servlet/app container, like Tomcat, JBoss, etc.

      Comment


      • #18
        anyway, shouldn't this post be in other subforum than Data?

        Comment


        • #19
          I use the run option from the ide and then run on server

          Comment


          • #20
            So you're creating a web app?

            Have you added the jars to WEB-INF/lib? If so, what, if any, errors do you see now?

            Comment


            • #21
              btw, if you're creating a web app, I'd recommend going through this tutorial first as it may help to explain everything to you.

              http://static.springsource.org/docs/...-step-by-step/

              Comment


              • #22
                I`ve manually created the lib folder because it wasn`t created, then I`ve copied the folling jars to that folder:

                commons-dbcp-1.2.2
                org.springframework.asm_3.0.5.RELEASE
                org.springframework.beans_3.0.5.RELEASE
                org.springframework.context_3.0.5.RELEASE
                org.springframework.core_3.0.5.RELEASE
                org.springframework.expression_3.0.5.RELEASE
                org.springframework.jdbc_3.0.5.RELEASE
                org.springframework.transaction_3.0.5.RELEASE
                org.springframework.web.servlet_3.0.5.RELEASE
                org.springframework.web_3.0.5.RELEASE

                I`m getting the same error:
                Code:
                Estado HTTP 500 - 
                
                --------------------------------------------------------------------------------
                
                type Informe de Excepción
                
                mensaje 
                
                descripción El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento.
                
                excepción 
                
                javax.servlet.ServletException: Servlet.init() para servlet appServlet lanzó excepción
                	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                	com.springsource.insight.collection.tcserver.request.HttpRequestOperationCollectionValve.invoke(HttpRequestOperationCollectionValve.java:64)
                	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
                	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
                	org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
                	org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:409)
                	java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                	java.lang.Thread.run(Thread.java:662)
                
                
                causa raíz 
                
                org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usuariosController' defined in file [C:\springsource\tc-server-developer-2.1.1.RELEASE\spring-insight-instance\wtpwebapps\GECODIMO\WEB-INF\classes\com\unlam\gecodimo\UsuariosController.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.unlam.gecodimo.UsuariosController]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/jdbc/core/RowMapper
                	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
                	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
                	org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
                	org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
                	org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
                	org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
                	org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
                	org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
                	org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
                	org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:442)
                	org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
                	org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
                	org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
                	org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
                	javax.servlet.GenericServlet.init(GenericServlet.java:212)
                	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                	com.springsource.insight.collection.tcserver.request.HttpRequestOperationCollectionValve.invoke(HttpRequestOperationCollectionValve.java:64)
                	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
                	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
                	org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
                	org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:409)
                	java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                	java.lang.Thread.run(Thread.java:662)
                
                
                causa raíz 
                
                org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usuariosController' defined in file [C:\springsource\tc-server-developer-2.1.1.RELEASE\spring-insight-instance\wtpwebapps\GECODIMO\WEB-INF\classes\com\unlam\gecodimo\UsuariosController.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.unlam.gecodimo.UsuariosController]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/jdbc/core/RowMapper
                	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:965)
                	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
                	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
                	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
                	org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
                	org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
                	org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
                	org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
                	org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)
                	org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:383)
                	org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:362)
                	org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.detectHandlers(AbstractDetectingUrlHandlerMapping.java:82)
                	org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.initApplicationContext(AbstractDetectingUrlHandlerMapping.java:58)
                	org.springframework.context.support.ApplicationObjectSupport.initApplicationContext(ApplicationObjectSupport.java:119)
                	org.springframework.web.context.support.WebApplicationObjectSupport.initApplicationContext(WebApplicationObjectSupport.java:72)
                	org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:73)
                	org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:106)
                	org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:85)
                	org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
                	
                ........

                Comment


                • #23
                  The MVC web app works when hardcoding values from the service, but it fails when trying to access database and fill a domain object with rowmapper

                  Comment

                  Working...
                  X