java.lang.IllegalArgumentException: web.xml not found; cannot continue

Spring JIRA | Stefan Schmidt | 6 years ago
  1. 0

    For some reason GwtMetadataProviderImpl also acts as FileEventListener (James would know why) which triggers an exception (see below) when running the 'project' command. To reproduce paste the following lines into a fresh project while the Roo shell still loads (the command execution will be deferred until the shell has completely loaded but it will still fail): {code} project --topLevelPackage com.testing.teststuff --projectName Stuff --java 5 persistence setup --database MYSQL --provider HIBERNATE --databaseName stuff --userName sa entity --class ~.Stuff --testAutomatically {code} Exception: {code} Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER. roo> project --topLevelPackage com.testing.teststuff --projectName Stuff --java 5 5838c4e Created ROOT/pom.xml 01b61c5 Updated ROOT/pom.xml [Added dependencies javax.annotation:jsr250-api:1.0, javax.xml.bind:jaxb-api:2.1] 2ad3c24 Updated ROOT/pom.xml 5742550 Updated ROOT/pom.xml [Added dependencies com.google.gwt:gwt-servlet:2.2.0, com.google.gwt:gwt-user:2.2.0, org.json:json:20090211, com.googlecode.gwt.inject:gin:1.5, javax.validation:validation-api:1.0.0.GA, xalan:xalan:2.7.1] a4a412a Updated ROOT/pom.xml [Added plugin gwt-maven-plugin] web.xml not found; cannot continue java.lang.IllegalArgumentException: web.xml not found; cannot continue at org.springframework.roo.support.util.Assert.isTrue(Assert.java:65) at org.springframework.roo.addon.gwt.GwtConfigServiceImpl.updateWebXml(GwtConfigServiceImpl.java:257) at org.springframework.roo.addon.gwt.GwtConfigServiceImpl.updateConfiguration(GwtConfigServiceImpl.java:78) at org.springframework.roo.addon.gwt.GwtMetadataProviderImpl.onFileEvent(GwtMetadataProviderImpl.java:94) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:330) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanNotified(PollingFileMonitorService.java:213) at org.springframework.roo.process.manager.internal.DefaultFileManager.scan(DefaultFileManager.java:141) at org.springframework.roo.project.MavenOperationsImpl.createProject(MavenOperationsImpl.java:108) at org.springframework.roo.project.MavenCommands.createProject(MavenCommands.java:36) 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:180) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:143) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:181) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:358) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:132) at java.lang.Thread.run(Thread.java:680) {code} Does this MD provider really need to listen to File events?

    Spring JIRA | 6 years ago | Stefan Schmidt
    java.lang.IllegalArgumentException: web.xml not found; cannot continue
  2. 0

    For some reason GwtMetadataProviderImpl also acts as FileEventListener (James would know why) which triggers an exception (see below) when running the 'project' command. To reproduce paste the following lines into a fresh project while the Roo shell still loads (the command execution will be deferred until the shell has completely loaded but it will still fail): {code} project --topLevelPackage com.testing.teststuff --projectName Stuff --java 5 persistence setup --database MYSQL --provider HIBERNATE --databaseName stuff --userName sa entity --class ~.Stuff --testAutomatically {code} Exception: {code} Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER. roo> project --topLevelPackage com.testing.teststuff --projectName Stuff --java 5 5838c4e Created ROOT/pom.xml 01b61c5 Updated ROOT/pom.xml [Added dependencies javax.annotation:jsr250-api:1.0, javax.xml.bind:jaxb-api:2.1] 2ad3c24 Updated ROOT/pom.xml 5742550 Updated ROOT/pom.xml [Added dependencies com.google.gwt:gwt-servlet:2.2.0, com.google.gwt:gwt-user:2.2.0, org.json:json:20090211, com.googlecode.gwt.inject:gin:1.5, javax.validation:validation-api:1.0.0.GA, xalan:xalan:2.7.1] a4a412a Updated ROOT/pom.xml [Added plugin gwt-maven-plugin] web.xml not found; cannot continue java.lang.IllegalArgumentException: web.xml not found; cannot continue at org.springframework.roo.support.util.Assert.isTrue(Assert.java:65) at org.springframework.roo.addon.gwt.GwtConfigServiceImpl.updateWebXml(GwtConfigServiceImpl.java:257) at org.springframework.roo.addon.gwt.GwtConfigServiceImpl.updateConfiguration(GwtConfigServiceImpl.java:78) at org.springframework.roo.addon.gwt.GwtMetadataProviderImpl.onFileEvent(GwtMetadataProviderImpl.java:94) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:330) at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanNotified(PollingFileMonitorService.java:213) at org.springframework.roo.process.manager.internal.DefaultFileManager.scan(DefaultFileManager.java:141) at org.springframework.roo.project.MavenOperationsImpl.createProject(MavenOperationsImpl.java:108) at org.springframework.roo.project.MavenCommands.createProject(MavenCommands.java:36) 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:180) at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:143) at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47) at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:181) at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:358) at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:132) at java.lang.Thread.run(Thread.java:680) {code} Does this MD provider really need to listen to File events?

    Spring JIRA | 6 years ago | Stefan Schmidt
    java.lang.IllegalArgumentException: web.xml not found; cannot continue
  3. 0
    samebug tip
    Some bots are sending malformed HTTP requests to your site. Try to find their IP addresses in the access logs and ask them to fix the bots or blacklist them.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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

      web.xml not found; cannot continue

      at org.springframework.roo.support.util.Assert.isTrue()
    2. org.springframework.roo
      Assert.isTrue
      1. org.springframework.roo.support.util.Assert.isTrue(Assert.java:65)
      1 frame
    3. Spring Roo - Annotations (ASLv2 Licensed)
      GwtMetadataProviderImpl.onFileEvent
      1. org.springframework.roo.addon.gwt.GwtConfigServiceImpl.updateWebXml(GwtConfigServiceImpl.java:257)
      2. org.springframework.roo.addon.gwt.GwtConfigServiceImpl.updateConfiguration(GwtConfigServiceImpl.java:78)
      3. org.springframework.roo.addon.gwt.GwtMetadataProviderImpl.onFileEvent(GwtMetadataProviderImpl.java:94)
      3 frames
    4. org.springframework.roo
      MavenCommands.createProject
      1. org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:330)
      2. org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanNotified(PollingFileMonitorService.java:213)
      3. org.springframework.roo.process.manager.internal.DefaultFileManager.scan(DefaultFileManager.java:141)
      4. org.springframework.roo.project.MavenOperationsImpl.createProject(MavenOperationsImpl.java:108)
      5. org.springframework.roo.project.MavenCommands.createProject(MavenCommands.java:36)
      5 frames
    5. 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
    6. 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:180)
      4. org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:143)
      5. org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47)
      6. org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:181)
      7. org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:358)
      8. org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:132)
      8 frames
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:680)
      1 frame