Just updated the grails based pastebin.
I got fed up (read embarrassed) by the autogenerated URLs. They were simply too long as it was using UUID to generate the URLs.
When importing a maven pom that uses the gmaven plugins - remember to go into project structure settings and set src/main/groovy as sources and src/test/groovy as test sources.
I'd also like to know why on import of a project that has had mvn install run on it causes Idea to have issues about generated source mismatch etc - mvn clean then a rebuild in Idea will fix this but I can't pin down what is not right.
I needed to generate a new certificate for glassfish's admin pages.
Instead of using the normal OpenSSL self-signed certificate it was easier just to use the java keystore keytool
keytool -genkey -keyalg RSA -alias
<alias_referred_to_in_glassfish>
-keystore glassfish/domains/domain1/config/keystore.jks
-storepass changeit
Note the -keyalg RSA - keytool by default uses DSA and firefox 3.0 will not accept this even with an added security exception.
Why do most people use Load Time Weaving (LTW)? It requires replacing the javaagent/classloader of your JVM which can lead to all sorts of issues.
Let's take a look at getting Compile Time Weaving (CTW) instead.
This post is using spring 2.5.2, aspectj 1.5.4, java 1.5. (Spring 2.5.4 uses a later version of weaver (3.0 vs. 5.0) - I assume AspectJ 1.6.0 but the aspectj-maven-plugin is also based around 1.5.4 - so for now we'll stick with this combination.)
I use a plugin to Aperture to send mail to gmail. It was failing due to a
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
To enable compile time weaving of the spring aspects (spring-aspects.jar) in Intellij IDEA (I am using 7.0.3 - but I assume this to be similar for other versions):
Normally you deploy to a third party repository with a command similar to:
mvn deploy:deploy-file -Dfile=/path/to/file -DrepositoryId=repositoryId -Durl=wagon:protocol://path/to/repo -DgroupId=groupId -DartifactId=artifactId -Dversion=version -Dpackaging=packageType
But - to deploy via webdav needs a snapshot wagon.
There are several reasons you may need to add a self-signed https ssl certificate to your local java keystore.
For me - its so that maven can access DAV shares for repository deployment.
After adding
CATALINA_OPTS=-javaagent:/path/to/aspectweaver-1.5.3.jar
tomcat started failing - giving an "Illegal type in constant pool" about log4j.
When using spring-ldap - if you get a NoClassDefFoundError for com.sun.jndi.ldap.ctl.ResponseControlFactory then you need the ldap booster pack (currently 1.0).