Search Results

Search found 645 results on 26 pages for 'grails'.

Page 5/26 | < Previous Page | 1 2 3 4 5 6 7 8 9 10 11 12  | Next Page >

  • Grails not executing on IntelliJ (NoClassDefFoundError)

    - by fabien7474
    Hi, I have upgraded my application from grails 1.2.2 to 1.3.1-RC1. While things seem to work when executing grails from command prompt, I cannot make it run from my IDE IntelliJ (last development version). The error I got is: Error executing script RunApp: net/sf/json/JSONException ... Caused by: java.lang.ClassNotFoundException: net.sf.json.JSONException It seems that the library json-lib.jar is not in the IntelliJ classpath. Do you know how can I solve this?

    Read the article

  • Using grails service in domain class

    - by BlackPanther
    In my grails application I want use service.However it is always coming as null.I am using grails 1.1 version.How to solve this problem. Sample code: class A{ String name; def testService; static transients=['testService'] } Can we use service inside domain class?

    Read the article

  • JSON output of a view in Grails

    - by daliz
    Ok, I have a very simple app created in Grails. I have a generated domain class (Person) and its generated controller, using the automatic Grails scaffold: package contacts class PersonController { def scaffold = Person } Now I'd like to get a JSON representation of a Person object. Do I have to change the view or the controller? And how? Thank you.

    Read the article

  • grails set bean value from radio button

    - by Jeff Storey
    I'm somewhat new to grails (not groovy though) and I'm working on a sample CRUD application. The issue I'm trying to solve is how to set a property on a bean based on a radio button before I update it in the database. Is the Form Helper http://www.grails.org/plugin/form-helper plugin the way to go? Will the bean have its value set regardless of if the button is actually clicked by the user or if it is left at its default value? thanks, Jeff

    Read the article

  • Grails benchmarks compared to other web MVC platform (Rails, Django, ASP MVC)?

    - by fabien7474
    I have been searching the web for recent benchmarks measuring Grails overall performance compared to its competitors (Rails, Django, ASP.NET MVC...), but I didn't find anything more recent than a 3 years-old article with obsolete grails version (0.5). See here and here. So, starting from grails 1.2, are there any more recent grails benchmarks you are aware of ? Or do you have your own performance tests for grails (compared to others if possible) ?

    Read the article

  • Can Grails output error messages in emacs format?

    - by ataylor
    Ant has a -e option for outputting error messages that can be parsed by emacs' compile command. For example, it is possible to do M-x compile, ant -e, then nagivate to any errors with C-x `. Is it possible to make grails output its compilation errors in this format? Alternatively, is there an emacs variable that can be customized to handle error messages in the format that grails uses?

    Read the article

  • Protecting melody monitoring with acegi in grails

    - by xain
    Hi, I have a Grails 1.2 app secured with acegi that I'm monitoring with the melody plugin for grails. I need to protect the url so only the "admin" role can access it but I'm having trouble with it - the rest of the acegi rules work just fine. In the BootStrap, I set def secureReqMap = new Requestmap(url: '/monitoring/**', configAttribute:'ROLE_ADMIN').save() Also tried with def secureReqMap = new Requestmap(url: '/monitoring', configAttribute:'ROLE_ADMIN').save() With no luck, it keeps being public. Any hints? Thanks

    Read the article

  • Grails exploded under tomcat

    - by xain
    Hi, is there a way to use Grails in "exploded" mode on tomcat in order to make individual changes in a running application (like a gif) without having to regenerate the entire war and upload it ? Something like adding an xml file in tomcat's conf/Catalina/localhost that points to an exploded grails application ? Thanks in advance.

    Read the article

  • Grails Portlets for Liferay

    - by Srinath
    Hi all, I'm actively developing grails portlets for liferay till today . I was wondering is there a future road map for next plugin releases and updates for portlet support, because i was not finding people developing portlet applications on grails on net. Is there any portlet applications running under production ?? . could any one please provide links if any ? thanks, srinath

    Read the article

  • Best practice to modularise a large Grails app?

    - by Mulone
    Hi all, A Grails app I'm working on is becoming pretty big, and it would be good to refactor it into several modules, so that we don't have to redeploy the whole thing every time. In your opinion, what is the best practice to split a Grails app in several modules? In particular I'd like to create a package of domain classes + relevant services and use it in the app as a module. Is this possible? Is it possible to do it with plugins? Cheers, Mulone

    Read the article

  • grails find first

    - by srinath
    I know this is simple question but taking more time How to find first record from table in grails . I need to get only the first record with out knowing the id number . Is there any method like find :first in grails ? thanks in advance .

    Read the article

  • Not getting content in Excel sheet after exporting using DynamicJasper in grails

    - by Ravi
    Hi. I am new to grails and jasper reports. Please help me with the issue. I am trying one example on how to save in excel format the data that we display in grails. I am able to save as excel but not able to get anything inside excel sheet after opening it, not even columns. Refer the link http://www.wysmedia.com/2009/05/dance-with-dynamic-jasper-report/ for the example I am trying. Many thanks.

    Read the article

  • Using @Secured Annotation causes IS_FULLY_AUTHENTICATED problem in grails

    - by TripWired
    I'm using Acegi/Spring Security in grails and when i use the annotations like @Secured(['ROLE_ADMIN']) it denies my login even though the user is part of ROLE_ADMIN. In looking through the login is it seems that it's getting an IS_AUTHENTICATED_FULLY role also but I have never added that to a page so i'm not sure how to bypass that. I read somewhere to preauthorize the user, but i'm not sure how to do that with grails.

    Read the article

  • Access Grails domain class from GroovyShell script

    - by Martin Dow
    I'm trying to use GroovyShell to evaluate some snippets of code from within a Grails application, but I don't seem to be able to access our Grails domain classes. For example when I try to evaluate something like this: Eval.me("my.package.MyDomainClass.get(1)") I see an error like this: groovy.lang.MissingPropertyException: No such property: my for class: Script1 Any thoughts on how I can get this to work? Thanks.

    Read the article

  • Resolving the path of 'web-app/file/misc' from 'src' in Grails

    - by firnnauriel
    I created a class under 'src' dir. I'm using this code to access the 'images' directory for all files inside 'grails-app': ApplicationHolder.application.parentContext.getResource("file/misc").file; I'm having this error when I access it in a 'src' class: application has private access in org.codehaus.groovy.grails.commons.ApplicationHolder Any comment on why is this happening? How can I access "file/misc" when app is deployed to tomcat?

    Read the article

  • Grails query not using GORM

    - by Tihom
    What is the best way to query for something without using GORM in grails? I have query that doesn't seem to fit in the GORM model, the query has a subquery and a computed field. I posted on stackoverflow already with no response so I decided to take a different approach. I want to query for something not using GORM within a grails application. Is there an easy way to get the connection and go through the result set?

    Read the article

  • How to log sql statements in grails

    - by damian
    Hi I want to log in the console or in a file, all the queries that Grails do, to check performance. I had configured [this][1] without success. Any idea would help. [1]: http://www.grails.org/FAQ#Q: How can I turn on logging for hibernate in order to see SQL statements, input parameters and output results?

    Read the article

  • error of grails project from svn : GroovyObject cannot be resolved

    - by atian25
    when i check out a new grails project from svn, i got some error: 1.The project was not built since its build path is incomplete. Cannot find the class file for groovy.lang.GroovyObject. Fix the build path then try building this project 2.The type groovy.lang.GroovyObject cannot be resolved. It is indirectly referenced from required .class files i had config the grails path, and it can run-app well. but,still error warning.

    Read the article

  • Grails populate params with XML from POST request

    - by othman
    I have a RestFull grails api that i expose through grails Controller. I need to automatically bind the xml data sent in a POST request. I don't think using groovy bindData(object,params) works as the params reference seems not having the xml elements. i use the parseRequest=true in the UrlMappings but yet the params Object does'nt have the xml elements. am i missing some other config so that my params object get automatically populated with the xml body elements?

    Read the article

  • Questions about grails filters

    - by manojsingh
    Basically I have 2 questions regarding grails filters. According to grails documentation you can do something like below in a filter if (userId != paramsUserId) { flash.message = "You can only modify yourself" redirect(action: 'list') return false } If the above condition is true then how will the return statement get executed ? Can I have a redirect in my filter to a some action which also has a redirect ?

    Read the article

  • Modifying groovy code at runtime in grails application

    - by parasjain01
    When I run my grails application using embedded jetty server(tomcat for grails 1.2), I can make changes to my controllers, services and other java files on-the-fly at runtime without restarting the application. How can I achieve the same functionality on my application deployed on Tomcat(or any server) for that matter. I have observed the exploded war folder under webapps has gsp files but not the groovy files.

    Read the article

  • Grails automatic constraint update

    - by Prakash
    Does grails have an automatic constraint update. If we change the field in domain class to be nullable by adding constraint, it is not getting reflected in database without schema export. Is it possible to do get grails do this update automatically.

    Read the article

< Previous Page | 1 2 3 4 5 6 7 8 9 10 11 12  | Next Page >