开发者

Grails - Development advice - Where do I find Plugin APIs / Troubleshoot errors / Make life easy for myself

Hello fellow Grails Developers!

I was wondering if you could help me with what must be a very common issue. I have come from a world of Java and eclipse where JavaDocs and APIs are at your fingertips. Grails has some great features and plugins but I find their inner workings completely undescoverable and that makes me sad.

Take for example the excellent authentication plugin, I set this up using the brief but accurate doc. Now I'm in eclipse with STS and I'm staring at a method;

applicationContext.authenticationService.filterRequest(
request, response, "${request.contextPath}/authentication/index" )

Which is throwing an exception;

2010-05-01 01:17:07,292 [http-8080-1] ERROR [/grailsapp].[default]  - Servlet.service() for servlet default threw exception
java.lang.IllegalStateException
    at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:407)
    at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:118)
    at org.codehaus.groovy.grails.web.sitemesh.GrailsPageResponseWrapper.sendError(GrailsPageResponseWrapper.java:91)

And I have no idea where to start. I would love to have eclipse link to the source but there must be other manageable alternatives too as I know some people use TextMate or vim for development, they can't all have discovered the APIs for the plugins through trial and error!?! Is there any way of making the core Grails API more accessible / searchable? Autocomplete also开发者_如何学C doesn't seem to work for me in eclipse so if anyone has this working that would be ideal (It's an extension of the same question really).

What's your approach? (Please don't say intelliJ, I can't afford it) I'm sure it's obvious and I'm just missing it, please put me out of my misery!

Thanks in advance,

Gav


You can find the source code for all the plugins you're using under

<home dir>/.grails/<grails version>/projects/<project name>/plugins

To navigate or debug into the plugin sources within eclipse, add the source folders under the dir above to the project's source path.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜