I have a grails(v1.2.1) app using the acegi plugin(v0.5.2) to authenticate users against an Active Directory domain.
Everything works perfectly as long as I run the app using "grails run-app"; The correct controller/actions are protected, users can successfully log in, they don't have to log in on each page request, etc.
When I run the...
I created simple domain class with map within it.
class Foo {
Map bar
}
Bar mapping will be created as sth like:
create table foo_bar (bar bigint, bar_idx varchar(255),
bar_elt varchar(255) not null);
...as stated in http://www.grails.org/GORM+-+Collection+Types:
The static hasMany property defines
the type of the eleme...
Hi, guys
I am developing a web app by using Grails and using Grails LDAP as my Authentication mechanism. However, i always get following error:
{Error 500: Cannot pass null or empty values to constructor
Servlet: default
URI: /ldap-app/j_spring_security_check
Exception Message: Cannot pass null or empty values to constructor
Caused by:...
I followed the code from this site. But I had to remove the caching part and was able to make it work.
When I viewed the generated PDF file, it only contains the login page. Does it mean that iText can't identify the current session? Note that I placed the 'create pdf' link in the page where it contains the layout that needs to be conve...
I am working on a backend Grails application that pulls information periodically from a RESTful service. To do this I installed the Grails Quartz plugin.
grails install-plugin quartz
I then created a job using
grails create-job My
which geneates a MyJob file which I configured with a cron trigger
static triggers = {
cron name...
Which log4j appender should I use and how do I configure it? I'm not too bothered about keeping old logs, so I don't care about truncating the existing one.
...
Hi,
I am using Grails (app-engine and gorm-jpa plugins) for the development.
I don't know why, But my application is running fine on local environment. But on Google App Engine, I am in-consistently (1 in 3 times) getting Error Code-500.
Also, in GAE logs - reason of request failure is its taking so long to execute the request (usuall...
I'm trying to do this, but I get the error.
"a different object with the same identifier value was already associated with the session"
It looks like I need to remove dbObject from the hibernate session.
def object = messageParserService.parseMessage(messageType, messageText)
def dbObject = object.getClass().findByIdentifier(object.id...
I have a gae application (created via GRAILS) which loaded up fine, though my first attempt is not working (due to me not testing locally first), but the point being that it loaded up fine.
Now when I try and do an update on windows:
"%APPENGINE_HOME%/bin/appcfg.cmd" update ./target/war
I get the message - You do not have permission ...
when deployed in tomcat , the log showing this .
I was using all jars in shared lib directory except jars with grails-*.jars
SEVERE: StandardWrapper.Throwable
java.lang.LinkageError: loader constraint violation: when resolving field "logger" the class loader (instance of org/apache/catalina/loader/WebappClassLoader) of the referring cl...
How can you have a grails application as well as other servlets defined in your web.xml?
I want to have it so that some url patterns are handled by a servlet while all others are handled by Sitemesh/grails.
The default configuration of web.xml generated by grails is:
<filter-mapping>
<filter-name>charEncodingFilter</filter-name>
...
This was taken nearly verbatim from IBM's Mastering Grails series.
DateTagLib.groovy:
class DateTagLib {
def thisYear = {
out << Calendar.getInstance().get(Calendar.YEAR)
}
}
DateTagLibTests.groovy:
class DateTagLibTests extends TagLibUnitTestCase {
def dateTagLib
protected void setUp() {
super.setUp()
...
I have a password protected internal maven repository I'd like to use to resolve dependencies in grails.
Does anyone know how to configure grails to use authentication when accessing a repository?
I'm running grails 1.2.1.
...
I'm working on implementing a URL token based authentication scheme (using Grails) and have been working off of Glen's very helpful example:
http://blogs.bytecode.com.au/glen/2010/01/15/hacking-custom-authentication-providers-with-grails-spring-security.html
The problem I've run into, is some of my requests are multipart/form-data and ...
I used an older grails version, latest that was out in November 2009, and upgraded to 1.2.1 now. Unfortunately. I did not touch the app, checked it out of VCS. Now the spring injection does not work anymore.
I depend on external libraries (JmsTemplate, ActiveMQ, ...) and define all the beans in my resources.xml file. To test if spring i...
I'm using mail 0.9 and it seems that the attachment feature is still not in? Was this item still not included until now?
If that's the case, please tell me how to extend a Grails plugin without hacking the code directly.
Thanks.
...
Hi, any experiences creating pdfs programmatically in Grails using some of the numerous java libs available ? Snippets are welcomed !
Thanks
...
I noticed that the Grails hibernate plugin does not support the hibernate load function? Does anybody know why that is? In all of the documentation that I have seen, it seems that the accepted way to delete an object from a db is to do a get() with the object id followed by a delete(). While this works it makes an unnecessary database...
I'm working a custom SpringSecurityFilter for my Grails application and I'm trying to use the commons upload library to process the request. I'm able to process the request in the filter but once it gets to my controller, none of the values are available.
Can the HttpRequest only be processed once by the upload library? I'm guessing it...
Hello,
I'm having a frustrating problem with my Grails application. I'm able to run the application using both run-app and run-war without any issues, but when I try to deploy to a container, I get an exception that I'm not sure how to interpret. I've tried deploying on Glassfish, Tomcat, and Jetty, and I have the same issue in all thre...