Grails
  1. Grails
  2. GRAILS-1575

Fresh plugin can't be run with "grails run-app"

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0-RC1
    • Component/s: Plugins
    • Labels:
      None

      Description

      2007-09-02 19:13:16.981::WARN:  Failed startup of context org.mortbay.jetty.webapp.WebAppContext@4889f2{/interceptors,/Users/mike/Desktop/Temp/grails/interceptors/web-app}
      java.lang.IllegalArgumentException: Invalid 'log4jConfigLocation' parameter: Log4J config file [/Users/mike/Desktop/Temp/grails/interceptors/web-app/WEB-INF/classes/log4j.properties] not found
              at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:155)
              at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:51)
              at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530)
              at org.mortbay.jetty.servlet.Context.startContext(Context.java:135)
              at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
              at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
              at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
              at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
              at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
              at org.mortbay.jetty.Server.doStart(Server.java:220)
              at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
              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:585)
              at org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:58)
              at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:678)
              at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:689)
              at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:894)
              at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:531)
              ...
      

        Activity

        Hide
        Mike Aizatsky added a comment -

        Not sure if log4j.properties or Config.groovy should be created, or error eliminated at all.

        Graeme, your thoughts?

        Show
        Mike Aizatsky added a comment - Not sure if log4j.properties or Config.groovy should be created, or error eliminated at all. Graeme, your thoughts?
        Hide
        graham o'regan added a comment -

        to get a plugin working i had to;

        1. Create the $UrlMappings.groovy file in grails-app/conf (copied from another grails app)
        2. Copy a log4j.properties to grails-app/conf
        3. Copy an error.gsp from another app to grails-app/views (not essential, but useful)

        Then the plugin started as a standalone application.

        Show
        graham o'regan added a comment - to get a plugin working i had to; 1. Create the $UrlMappings.groovy file in grails-app/conf (copied from another grails app) 2. Copy a log4j.properties to grails-app/conf 3. Copy an error.gsp from another app to grails-app/views (not essential, but useful) Then the plugin started as a standalone application.

          People

          • Assignee:
            Graeme Rocher
            Reporter:
            Mike Aizatsky
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development