java.lang.IllegalArgumentException: '/Users/krimple/roo_demos/demos/multi-module/business-tier/src/main/webapp/WEB-INF/spring/webmvc-config.xml' does not exist

Spring JIRA | Ken Rimple | 5 years ago
  1. 0

    When I use this script: {code} project --topLevelPackage org.chariot.multimodule.demo --projectName multi-module module create --moduleName business-tier --topLevelPackage ~.business module focus --moduleName ~ module create --moduleName web-tier --topLevelPackage ~.web module focus --moduleName business-tier jpa setup --database HYPERSONIC_PERSISTENT --provider HIBERNATE entity jpa --class ~.model.Course --activeRecord false field string --fieldName name repository jpa --interface ~.orm.CourseRepository --entity ~.model.Course service --interface ~.service.CourseService --entity ~.model.Course module focus --moduleName ~ module focus --moduleName web-tier web mvc setup web mvc scaffold --class ~.controller.CourseController --backingType business-tier|~.model.Course business-tier|~.model.Course roo> {code} I get this exception with the current trunk build as of the spring-roo-1.2.0.BUILD-SNAPSHOT_20111108.053941-75f95ca.zip snapshot and pulling / building Roo from trunk. It appears that the scaffold fails because it is attempting to add the converters to the business project, not the web one. It then sets the focus of the shell to the business tier. Is this a bug, or something you're working on in-flight that I'm seeing not completely sewn up in trunk? Thanks, Ken {code} roo> module focus --moduleName web-tier web-tier roo> web mvc scaffold --class web-tier|~.controller.CourseController --backingType business-tier|~.model.Course '/Users/krimple/roo_demos/demos/multi-module/business-tier/src/main/webapp/WEB-INF/spring/webmvc-config.xml' does not exist java.lang.IllegalArgumentException: '/Users/krimple/roo_demos/demos/multi-module/business-tier/src/main/webapp/WEB-INF/spring/webmvc-config.xml' does not exist at org.springframework.roo.support.util.Assert.isTrue(Assert.java:65) at org.springframework.roo.addon.web.mvc.controller.WebMvcOperationsImpl.installConversionService(WebMvcOperationsImpl.java:71) at org.springframework.roo.addon.web.mvc.controller.ControllerOperationsImpl.createAutomaticController(ControllerOperationsImpl.java:120) at org.springframework.roo.addon.web.mvc.controller.ControllerCommands.webMvcScaffold(ControllerCommands.java:115) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:49) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:183) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:146) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:204) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:403) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:158) at java.lang.Thread.run(Thread.java:680) {code}

    Spring JIRA | 5 years ago | Ken Rimple
    java.lang.IllegalArgumentException: '/Users/krimple/roo_demos/demos/multi-module/business-tier/src/main/webapp/WEB-INF/spring/webmvc-config.xml' does not exist
  2. 0

    When I use this script: {code} project --topLevelPackage org.chariot.multimodule.demo --projectName multi-module module create --moduleName business-tier --topLevelPackage ~.business module focus --moduleName ~ module create --moduleName web-tier --topLevelPackage ~.web module focus --moduleName business-tier jpa setup --database HYPERSONIC_PERSISTENT --provider HIBERNATE entity jpa --class ~.model.Course --activeRecord false field string --fieldName name repository jpa --interface ~.orm.CourseRepository --entity ~.model.Course service --interface ~.service.CourseService --entity ~.model.Course module focus --moduleName ~ module focus --moduleName web-tier web mvc setup web mvc scaffold --class ~.controller.CourseController --backingType business-tier|~.model.Course business-tier|~.model.Course roo> {code} I get this exception with the current trunk build as of the spring-roo-1.2.0.BUILD-SNAPSHOT_20111108.053941-75f95ca.zip snapshot and pulling / building Roo from trunk. It appears that the scaffold fails because it is attempting to add the converters to the business project, not the web one. It then sets the focus of the shell to the business tier. Is this a bug, or something you're working on in-flight that I'm seeing not completely sewn up in trunk? Thanks, Ken {code} roo> module focus --moduleName web-tier web-tier roo> web mvc scaffold --class web-tier|~.controller.CourseController --backingType business-tier|~.model.Course '/Users/krimple/roo_demos/demos/multi-module/business-tier/src/main/webapp/WEB-INF/spring/webmvc-config.xml' does not exist java.lang.IllegalArgumentException: '/Users/krimple/roo_demos/demos/multi-module/business-tier/src/main/webapp/WEB-INF/spring/webmvc-config.xml' does not exist at org.springframework.roo.support.util.Assert.isTrue(Assert.java:65) at org.springframework.roo.addon.web.mvc.controller.WebMvcOperationsImpl.installConversionService(WebMvcOperationsImpl.java:71) at org.springframework.roo.addon.web.mvc.controller.ControllerOperationsImpl.createAutomaticController(ControllerOperationsImpl.java:120) at org.springframework.roo.addon.web.mvc.controller.ControllerCommands.webMvcScaffold(ControllerCommands.java:115) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:49) at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:183) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:146) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:204) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:403) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:158) at java.lang.Thread.run(Thread.java:680) {code}

    Spring JIRA | 5 years ago | Ken Rimple
    java.lang.IllegalArgumentException: '/Users/krimple/roo_demos/demos/multi-module/business-tier/src/main/webapp/WEB-INF/spring/webmvc-config.xml' does not exist
  3. 0
    I was missing a partitioning column because I did not specify the "basePath" option on read
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    TagCloudDemo not working with Jetty `mvn gwt:run -Pjetty`

    GitHub | 2 months ago | BenDol
    java.lang.IllegalArgumentException: Object of class 'com.google.gwt.dev.shell.jetty.JettyLauncher.WebAppContextWithReload' is not of type 'org.mortbay.jetty.webapp.WebAppContext'. Object Class and type Class are from different loaders. in file:/C:/Projects/errai/errai-demos/errai-cdi-demo-tagcloud/src/main/webapp/WEB-INF/jetty-env.xml
  6. 0

    [j2ee validation] IllegalArgumentException during WAR validation

    Eclipse Bugzilla | 1 decade ago | fgiust
    java.lang.IllegalArgumentException: Attempted to beginRule: F/magnolia/src/main/webapp/WEB-INF, does not match outer scope rule: org.eclipse.wst.validation.internal.core.EmptySchedulingRule@66f52c

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      '/Users/krimple/roo_demos/demos/multi-module/business-tier/src/main/webapp/WEB-INF/spring/webmvc-config.xml' does not exist

      at org.springframework.roo.support.util.Assert.isTrue()
    2. org.springframework.roo
      ControllerCommands.webMvcScaffold
      1. org.springframework.roo.support.util.Assert.isTrue(Assert.java:65)
      2. org.springframework.roo.addon.web.mvc.controller.WebMvcOperationsImpl.installConversionService(WebMvcOperationsImpl.java:71)
      3. org.springframework.roo.addon.web.mvc.controller.ControllerOperationsImpl.createAutomaticController(ControllerOperationsImpl.java:120)
      4. org.springframework.roo.addon.web.mvc.controller.ControllerCommands.webMvcScaffold(ControllerCommands.java:115)
      4 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    4. org.springframework.roo
      JLineShell.run
      1. org.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191)
      2. org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:49)
      3. org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:183)
      4. org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:146)
      5. org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47)
      6. org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:204)
      7. org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:403)
      8. org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:158)
      8 frames
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:680)
      1 frame