Announcement Announcement Module
No announcement yet.
new controller (automatic and manual) has stopped working Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • new controller (automatic and manual) has stopped working

    When trying to create a new controller I am now getting "application context does not exist" errors.

    roo> new controller manual -name ~.web.SecurityBrowser
    Created SRC_MAIN_JAVA\org\stjude\ri\bwfp\web\SecurityBrows
    Undo create SRC_MAIN_JAVA\org\stjude\ri\bwfp\web\SecurityBrows
    Application context does not exist
    java.lang.IllegalArgumentException: Application context does not exist
    at (
    at org.springframework.roo.addon.web.mvc.controller.W ebMvcOperations.createWebApplicationContext(WebMvc
    at org.springframework.roo.addon.web.mvc.controller.W ebMvcOperations.install
    at org.springframework.roo.addon.web.mvc.controller.C ontrollerOperations.cre
    at org.springframework.roo.addon.web.mvc.controller.C ontrollerCommands.newController(ControllerCommands .java:71)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at ls.invokeMethod(
    at org.springframework.roo.bootstrap.ProcessManagerHo stedExecutionStrategy$1.callback(ProcessManagerHos
    at org.springframework.roo.process.manager.internal.D efaultProcessManager.doTransactionally(DefaultProc
    at org.springframework.roo.process.manager.internal.D efaultProcessManager.execute(DefaultProcessManager .java:90)
    at org.springframework.roo.bootstrap.ProcessManagerHo stedExecutionStrategy.e
    xecute( 31)
    at ll.executeCommand(Abstr
    at mptLoop(
    at org.springframework.roo.bootstrap.Bootstrap.main(B

    I still have an applicationcontext xml file and my mvn tomcat:run still works and brings up the application. New persistance class also works.

    I remember that something strange did happen when I moved the list operation from the aspect into the controller to customize it. It deleted the whole aspect, so I had to use eclipse undo to copy all of the aspect methods into the class.

    I have attached my application context.

    Dan Alford

  • #2
    I found the solution in Jira.

    The project structure changed between m2 and rc1. I moved my application context from $ROO_PROJECT\src\main\resources to $ROO_PROJECT\src\main\resources\META-INF\spring and that fixed the issue.