TOMCAT + MYSQL + ECLIPSE + FALLO.

2009-03-27
2012-11-26
  • Alejandro T.

    Alejandro T. - 2009-03-27

    Hola buenas.

    Estoy intentando desplegar en casa el openxava en eclipse con tomcat y mysql. He visto que hay post relacionados con este problema pero en ninguno de ellos se daba una solucion o se mencionaba como finalmente lo habian solucionado. El fallo que me da al intentar lanzar uno de los .java es igual al mencionado en otro post, no se encuentra el datasource y el driver jdbc no es valido. Tengo copiado el conector mysql tanto en el lib de common de tomcat como en el de server y la configuracion que tengo es la siguiente:

    persistence.xml:

    <persistence-unit name="default">
        <non-jta-data-source>jdbc/GESTIONVENTA</non-jta-data-source>
        <class>org.openxava.session.GalleryImage</class>
        <properties>
        <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" />
            </properties>
        </persistence-unit>

    En este caso he probado tanto con jdbc/GESTIONVENTA, como con java:comp/env/jdbc/GESTIONVENTA

    Context.xml:

    <Resource name="jdbc/GESTIONVENTA" auth="Container" type="javax.sql.DataSource"
            maxActive="20" maxIdle="5" maxWait="10000" username="root" password="lalox"
            driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3307/test" />

    web.xml:

    <resource-ref>
        <res-ref-name>jdbc/GESTIONVENTA</res-ref-name>
        <res-type>javax.sql.DataSource</res-type>
        <res-auth>Container</res-auth>
    </resource-ref>

    server.xml:

        <Resource auth="Container" driverClassName="com.mysql.jdbc.Driver" maxActive="20" maxIdle="5" maxWait="10000" name="jdbc/GESTIONVENTA" password="lalox" type="javax.sql.DataSource" url="jdbc:mysql://localhost:3307/test" username="root"/>

    A parte de todo esto al iniciar el tomcat en eclipse me da un classNotFoundException relacionado con DwrServlet:

    ClassNotFoundException: org.directwebremoting.servlet.DwrServlet

    Que hago mal?? Como puedo solucionar esto. Un saludo y gracias

     
    • Alfonso Bullon

      Alfonso Bullon - 2009-03-28

      Seria util q publiques todo el trace de la excepcion

       
    • Alejandro T.

      Alejandro T. - 2009-03-28

      ESTE ES EL LOG DEL ARRANQUE DEL TOMCAT:

      28-mar-2009 12:36:24 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
      INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Archivos de programa\Genuitec\Common\binary\com.sun.java.jre.win32.x86_1.5.0.011\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:/Archivos de programa/Java/jre6/bin/client;C:/Archivos de programa/Java/jre6/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Archivos de programa\QuickTime\QTSystem\ 28-mar-2009 12:36:24 org.apache.coyote.http11.Http11BaseProtocol init
      INFO: Inicializando Coyote HTTP/1.1 en puerto http-8080
      28-mar-2009 12:36:24 org.apache.catalina.startup.Catalina load
      INFO: Initialization processed in 641 ms
      28-mar-2009 12:36:24 org.apache.catalina.core.StandardService start
      INFO: Arrancando servicio Catalina
      28-mar-2009 12:36:24 org.apache.catalina.core.StandardEngine start
      INFO: Starting Servlet Engine: Apache Tomcat/5.5.27
      28-mar-2009 12:36:24 org.apache.catalina.core.StandardHost start
      INFO: Desactivada la validación XML
      28-mar-2009 12:36:24 org.apache.catalina.core.ApplicationContext log
      INFO: Marcando el servlet dwrInvoker como no disponible
      28-mar-2009 12:36:24 org.apache.catalina.core.ApplicationContext log
      GRAVE: Error loading WebappClassLoader
        delegate: false
        repositories:
          /WEB-INF/classes/
      ----------> Parent Classloader:
      org.apache.catalina.loader.StandardClassLoader@16c79d7
      org.directwebremoting.servlet.DwrServlet
      java.lang.ClassNotFoundException: org.directwebremoting.servlet.DwrServlet
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
          at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
          at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
          at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
          at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
          at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
          at org.apache.catalina.core.StandardService.start(StandardService.java:448)
          at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
          at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
      28-mar-2009 12:36:24 org.apache.catalina.core.StandardContext loadOnStartup
      GRAVE: El Servlet /MiEscuela lanzó excepción de load()
      java.lang.ClassNotFoundException: org.directwebremoting.servlet.DwrServlet
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
          at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
          at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
          at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
          at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
          at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
          at org.apache.catalina.core.StandardService.start(StandardService.java:448)
          at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
          at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
      28-mar-2009 12:36:24 org.apache.catalina.core.ApplicationContext log
      INFO: Marcando el servlet dwrInvoker como no disponible
      28-mar-2009 12:36:24 org.apache.catalina.core.ApplicationContext log
      GRAVE: Error loading WebappClassLoader
        delegate: false
        repositories:
          /WEB-INF/classes/
      ----------> Parent Classloader:
      org.apache.catalina.loader.StandardClassLoader@16c79d7
      org.directwebremoting.servlet.DwrServlet
      java.lang.ClassNotFoundException: org.directwebremoting.servlet.DwrServlet
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
          at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
          at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
          at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
          at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
          at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
          at org.apache.catalina.core.StandardService.start(StandardService.java:448)
          at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
          at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
      28-mar-2009 12:36:24 org.apache.catalina.core.StandardContext loadOnStartup
      GRAVE: El Servlet /AccessTracking lanzó excepción de load()
      java.lang.ClassNotFoundException: org.directwebremoting.servlet.DwrServlet
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
          at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
          at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
          at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
          at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
          at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
          at org.apache.catalina.core.StandardService.start(StandardService.java:448)
          at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
          at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
      28-mar-2009 12:36:25 org.apache.catalina.core.ApplicationContext log
      INFO: Marcando el servlet dwrInvoker como no disponible
      28-mar-2009 12:36:25 org.apache.catalina.core.ApplicationContext log
      GRAVE: Error loading WebappClassLoader
        delegate: false
        repositories:
          /WEB-INF/classes/
      ----------> Parent Classloader:
      org.apache.catalina.loader.StandardClassLoader@16c79d7
      org.directwebremoting.servlet.DwrServlet
      java.lang.ClassNotFoundException: org.directwebremoting.servlet.DwrServlet
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
          at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
          at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
          at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
          at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
          at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
          at org.apache.catalina.core.StandardService.start(StandardService.java:448)
          at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
          at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
      28-mar-2009 12:36:25 org.apache.catalina.core.StandardContext loadOnStartup
      GRAVE: El Servlet /MySchool lanzó excepción de load()
      java.lang.ClassNotFoundException: org.directwebremoting.servlet.DwrServlet
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
          at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
          at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
          at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
          at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
          at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
          at org.apache.catalina.core.StandardService.start(StandardService.java:448)
          at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
          at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
      28-mar-2009 12:36:25 org.apache.catalina.core.ApplicationContext log
      INFO: Marcando el servlet dwrInvoker como no disponible
      28-mar-2009 12:36:25 org.apache.catalina.core.ApplicationContext log
      GRAVE: Error loading WebappClassLoader
        delegate: false
        repositories:
          /WEB-INF/classes/
      ----------> Parent Classloader:
      org.apache.catalina.loader.StandardClassLoader@16c79d7
      org.directwebremoting.servlet.DwrServlet
      java.lang.ClassNotFoundException: org.directwebremoting.servlet.DwrServlet
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
          at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
          at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
          at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
          at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
          at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
          at org.apache.catalina.core.StandardService.start(StandardService.java:448)
          at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
          at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
      28-mar-2009 12:36:25 org.apache.catalina.core.StandardContext loadOnStartup
      GRAVE: El Servlet /OpenXavaTest lanzó excepción de load()
      java.lang.ClassNotFoundException: org.directwebremoting.servlet.DwrServlet
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
          at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
          at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
          at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
          at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
          at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
          at org.apache.catalina.core.StandardService.start(StandardService.java:448)
          at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
          at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
      28-mar-2009 12:36:25 org.directwebremoting.util.CommonsLoggingOutput info
      INFO: DWR Version 2.0.5 starting.
      28-mar-2009 12:36:25 org.directwebremoting.util.CommonsLoggingOutput info
      INFO: - Servlet Engine: Apache Tomcat/5.5.27
      28-mar-2009 12:36:25 org.directwebremoting.util.CommonsLoggingOutput info
      INFO: - Java Version:   1.5.0_11
      28-mar-2009 12:36:25 org.directwebremoting.util.CommonsLoggingOutput info
      INFO: - Java Vendor:    Sun Microsystems Inc.
      28-mar-2009 12:36:25 org.directwebremoting.util.CommonsLoggingOutput info
      INFO: Probably not an issue: org.jdom.Document is not available so the jdom converter will not load. This is only an problem if you wanted to use it.
      28-mar-2009 12:36:25 org.directwebremoting.util.CommonsLoggingOutput info
      INFO: Probably not an issue: org.jdom.Element is not available so the jdom converter will not load. This is only an problem if you wanted to use it.
      28-mar-2009 12:36:25 org.apache.coyote.http11.Http11BaseProtocol start
      INFO: Arrancando Coyote HTTP/1.1 en puerto http-8080
      28-mar-2009 12:36:25 org.apache.jk.common.ChannelSocket init
      INFO: JK: ajp13 listening on /0.0.0.0:8009
      28-mar-2009 12:36:25 org.apache.jk.server.JkMain start
      INFO: Jk running ID=0 time=0/31  config=null
      28-mar-2009 12:36:25 org.apache.catalina.storeconfig.StoreLoader load
      INFO: Find registry server-registry.xml at classpath resource
      28-mar-2009 12:36:25 org.apache.catalina.startup.Catalina start
      INFO: Server startup in 1422 ms

      EN CUANTO AL DEL DATA SOURCE VARÍA SOLO SIN EXPLICACION, HAY VECES QUE ME DA EL FALLO Y VECES QUE NO. SON MAS VECES LAS QUE SI. DE CUALQUIER MODO NUNCA FUNCIONA:

      28-mar-2009 12:38:08 org.openxava.controller.ModuleManager <clinit>
      INFO: OpenXava 3.1.1 (2009-2-23)
      28-mar-2009 12:38:09 org.openxava.annotations.parse.AnnotatedClassParser getManagedClassNames
      ADVERTENCIA: Conexión de Hibernate no funciona, por lo tanto obtenemos las clases gestionadas por JPA directamente del classpath
      javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build EntityManagerFactory
          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)
          at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)
          at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51)
          at org.openxava.jpa.XPersistence.getEntityManagerFactory(XPersistence.java:180)
          at org.openxava.jpa.XPersistence.createManager(XPersistence.java:108)
          at org.openxava.annotations.parse.AnnotatedClassParser.obtainManagedClassNamesUsingHibernate(AnnotatedClassParser.java:2170)
          at org.openxava.annotations.parse.AnnotatedClassParser.getManagedClassNames(AnnotatedClassParser.java:2086)
          at org.openxava.annotations.parse.AnnotatedClassParser.getClassNameFor(AnnotatedClassParser.java:2048)
          at org.openxava.annotations.parse.AnnotatedClassParser.parse(AnnotatedClassParser.java:53)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.openxava.util.Objects.execute(Objects.java:193)
          at org.openxava.util.Objects.execute(Objects.java:112)
          at org.openxava.component.ComponentParser.parseAnnotatedClass(ComponentParser.java:54)
          at org.openxava.component.ComponentParser.parse(ComponentParser.java:34)
          at org.openxava.component.MetaComponent.get(MetaComponent.java:60)
          at org.openxava.component.MetaComponent.exists(MetaComponent.java:75)
          at org.openxava.application.meta.MetaApplication.existsModel(MetaApplication.java:161)
          at org.openxava.application.meta.MetaApplication.getMetaModule(MetaApplication.java:149)
          at org.openxava.controller.ModuleManager.getMetaModule(ModuleManager.java:776)
          at org.openxava.controller.ModuleManager.setupModuleControllers(ModuleManager.java:158)
          at org.openxava.controller.ModuleManager.setModuleName(ModuleManager.java:753)
          at org.apache.jsp.xava.module_jsp._jspService(module_jsp.java:121)
          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
          at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
          at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
          at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
          at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
          at java.lang.Thread.run(Unknown Source)
      Caused by: org.hibernate.HibernateException: Could not find datasource
          at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:79)
          at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137)
          at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)
          at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89)
          at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101)
          at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325)
          at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
          ... 44 more
      Caused by: javax.naming.NameNotFoundException: El nombre jdbc no este asociado a este contexto
          at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
          at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
          at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
          at javax.naming.InitialContext.lookup(Unknown Source)
          at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75)
          ... 51 more
      28-mar-2009 12:38:09 org.openxava.annotations.parse.AnnotatedClassParser obtainManagedClassNamesFromFileClassPath
      ADVERTENCIA: Ficheros ancla para obtener clases gestionadas por JPA no encontrados: xava.properties, application.xml, aplicacion.xml
      28-mar-2009 12:38:09 org.openxava.component.ComponentParser parseAnnotatedClass
      GRAVE: Parece ser que Provincias no es una entidad EJB3 ni una clase transitoria del modelo
      org.openxava.util.XavaException: Parece ser que Provincias no es una entidad EJB3 ni una clase transitoria del modelo
          at org.openxava.annotations.parse.AnnotatedClassParser.getClassNameFor(AnnotatedClassParser.java:2062)
          at org.openxava.annotations.parse.AnnotatedClassParser.parse(AnnotatedClassParser.java:53)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.openxava.util.Objects.execute(Objects.java:193)
          at org.openxava.util.Objects.execute(Objects.java:112)
          at org.openxava.component.ComponentParser.parseAnnotatedClass(ComponentParser.java:54)
          at org.openxava.component.ComponentParser.parse(ComponentParser.java:34)
          at org.openxava.component.MetaComponent.get(MetaComponent.java:60)
          at org.openxava.component.MetaComponent.exists(MetaComponent.java:75)
          at org.openxava.application.meta.MetaApplication.existsModel(MetaApplication.java:161)
          at org.openxava.application.meta.MetaApplication.getMetaModule(MetaApplication.java:149)
          at org.openxava.controller.ModuleManager.getMetaModule(ModuleManager.java:776)
          at org.openxava.controller.ModuleManager.setupModuleControllers(ModuleManager.java:158)
          at org.openxava.controller.ModuleManager.setModuleName(ModuleManager.java:753)
          at org.apache.jsp.xava.module_jsp._jspService(module_jsp.java:121)
          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
          at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
          at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
          at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
          at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
          at java.lang.Thread.run(Unknown Source)
      28-mar-2009 12:38:09 org.apache.catalina.core.StandardWrapperValve invoke
      GRAVE: Servlet.service() para servlet jsp lanzó excepción
      org.openxava.util.ElementNotFoundException: El módulo Provincias no está definido
          at org.openxava.application.meta.MetaApplication.getMetaModule(MetaApplication.java:154)
          at org.openxava.controller.ModuleManager.getMetaModule(ModuleManager.java:776)
          at org.openxava.controller.ModuleManager.setupModuleControllers(ModuleManager.java:158)
          at org.openxava.controller.ModuleManager.setModuleName(ModuleManager.java:753)
          at org.apache.jsp.xava.module_jsp._jspService(module_jsp.java:121)
          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
          at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
          at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
          at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
          at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
          at java.lang.Thread.run(Unknown Source)

      A VER SI ENCONTRAIS ALGO. UN SALUDO Y GRACIAS

       
    • Javier Paniza

      Javier Paniza - 2009-03-31

      > org.directwebremoting.servlet.DwrServlet

      Te falta el dwr.jar (y supongo que muchos mas jars) en WEB-INF/lib. Esto puede ocurrir si empiezas a trabajar con WTP en tu proyecto sin haber llamado primero a desplegarWar, o actualizarOX al menos una vez.

      Solución:
      1. Ejecuta la tarea ant actualizarOX de tu proyecto
      2. Refresca el proyecto con F5 desde del Eclipse.
      3. Comprueba que web/WEB-INF/lib está lleno de jars, entre los cuales ha de estar dwr.jar

       
    • Alejandro T.

      Alejandro T. - 2009-03-31

      Hola Javier.

      Gracias por la informacion.

      Efectivamente así habia sido. Al hacer eclipse el despliegue no pensé que hubiera que llamar a esas dos tareas.

      Al decir "al menos una vez" debo pensar entonces no tengo que estar ejecutandolo cada vez que realice cambios verdad?

      De momento está andando y bastante bien.

      Un saludo y gracias.

       
      • Javier Paniza

        Javier Paniza - 2009-04-02

        > Al decir "al menos una vez"
        > debo pensar entonces no tengo
        > que estar ejecutandolo cada
        > vez que realice cambios verdad?
        Exacto. Solo cuando te actualices a la siguiente versión de OpenXava. Esta tarea copia los JSPs y los jars desde OpenXava a tu proyecto.

         
    • Alejandro T.

      Alejandro T. - 2009-04-03

      Estupendo. Gracias por la ayuda Javier.
      Un saludo

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks