Announcement Announcement Module
Collapse
No announcement yet.
spring roo database reverse engineer error listener of class ContextLoaderList Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • spring roo database reverse engineer error listener of class ContextLoaderList

    Hello
    I am playing and learning spring roo , when I tried to build application from existing database its gave error on initializing application

    I simply created two tables schema with name of test db script is below

    I ran the following commands on fresh STS 2.5.0 M3 IDE using spring roo 1.1.0 M3 after created a roo project from IDE

    Roo Script
    Code:
    persistence setup --database MYSQL --provider HIBERNATE --databaseName test --password root --userName root
    
    database properties set --key database.url --value jdbc:mysql://localhost:3306/test
    
    database reverse engineer --package ~.model --schema test
    
    controller all --package ~.web
    Deploy it on tomcat 6.018 version

    it gave me the following error

    SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListe ner
    java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListe ner
    at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1387)
    at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1233)
    at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:3786)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4342)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1045)
    at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:719)
    at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(Sta ndardService.java:516)
    at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalin a.java:578)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:413)


    Database Schema Script
    Code:
    --
    -- Create schema test
    --
    
    CREATE DATABASE IF NOT EXISTS test;
    USE test;
    
    --
    -- Definition of table `test`.`product`
    --
    
    DROP TABLE IF EXISTS `test`.`product`;
    CREATE TABLE  `test`.`product` (
      `id` int(11) NOT NULL AUTO_INCREMENT,
      `name` varchar(255) NOT NULL,
      `createdDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    
    --
    -- Definition of table `test`.`orders`
    --
    
    DROP TABLE IF EXISTS `test`.`orders`;
    CREATE TABLE  `test`.`orders` (
      `id` int(11) NOT NULL,
      `rate` int(11) NOT NULL,
      `quantity` int(11) NOT NULL,
      `productId` int(11) NOT NULL,
      PRIMARY KEY (`id`),
      KEY `new_fk_constraint` (`productId`),
      CONSTRAINT `new_fk_constraint` FOREIGN KEY (`productId`) REFERENCES `product` (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    
    --
    -- Dumping data for table `test`.`orders`
    --
    Regards
    Thanks in advance for your help ,I am new in spring roo please help by identifying this error

  • #2
    Looks like someone else had a problem with STS IDE and ROO and someone posted some information in a different post if you want to check it out.
    http://forum.springsource.org/showthread.php?t=92609

    Comment


    • #3
      This has since been fixed in STS and will be included STS 2.5.0.M4. In the meantime you can resolve it by selecting Maven > Update Project Configuration.

      Comment

      Working...
      X