watch out for those big transactions and solr

I have a quartz job that will periodically call a grails service to tell it import data located within csv files.  For reasons unknown, the jobs were failing with the following stacktrace (which really didn't tell me anything)


My first GWT library

Learn something new everyday...

GWT libraries need to have the JAVA code distributed with them.  As it turns out the GWT compiler needs the JAVA source in order to compile your GWT application.

Never had to bundle source in with the jar, but maven made it easy;)



mysql binding to all ip's

I want to run some of my grails script against my production database (mysql).  In order to do this, I need to expose the mysql server on an ip that isn't localhost.
My server is behind a firewall...
By just commenting the following line my /etc/mysql/my.conf and restarting mysql, my mysql is now visible on my local network.
bind-address            =

apache-tomcat-5.5.28 change root webapp

I found the easiest way to replace the default context "/" for tomcat.
Just delete/move the existing "ROOT" folder in the webapps, and put your war there, make sure it's named "ROOT.war", Restart tomcat, and you are done.
No dealing with xml config files, cause we got better things to do!

Apache 2.2, Tomcat6 -mod_proxy_ajp

Just wasted a couple of hours trying to get mod_proxy_ajp working to connect apache 2.2 to my tomcat 6 instance.  I was getting an error in the apache logs:
[Thu Apr 15 23:02:37 2010] [error] (120007)APR does not understand this error code: proxy: read response failed from (null) (localhost)[Fri Apr 16 09:33:16 2010] [error] ajp_read_header: ajp_ilink_receive failed
I shutdown tomcat 6, fired up apache-tomcat-5.5.28 and all is well.  NO problems.

GROOVY Console java.lang.NoClassDefFoundError: org/apache/xerces/parsers/AbstractSAXParser

I installed the Groovy Console.  It's a pretty nifty and easy way to quickly run some java that you need to quickly iterate through the write/test/fix cycle.

I was trying to parse some html into xml, and I got the following error:

java.lang.NoClassDefFoundError: org/apache/xerces/parsers/AbstractSAXParser

I tried adding 3 different versions of xercesImpl to my Groovy Console classpath, to no avail.  While adding to the groovy classpath worked for some jars (i.e. commons-io), it did not work for the xercesImpl jar.

Mozilla FireFox Modify Headers plugin for mobile browser testing

I learned something today, and it was painful!

I am using the Mozilla FireFox Modify Headers plugin for mobile browser testing to test a very large enterprise application and the mobile screens were not functioning as expected.

I rebuilt/re-checked out/restarted for several hours.

spatial solr classnotfoundexception

I am installing the jteam solr plugin for spatial search.  I dropped the spatial-solr-1.0-RC3.jar into the example/lib directory and got the following error:


Partitioning vs. Parallel Processing

Just spent more time reading the "Spring Batch" documentation.   It's taking a while to sink in.  What's kind of struck me as amusing is that I trying to understand the difference between "Remote Chunking" and Partitioning, and I had forgotten that that I had read how they are different just yesterday...

To summarize my learning, in non-PHD terminology:

org.apache.commons.lang.SerializationException: java.lang.ClassNotFoundException

Working on the spring batch examples, and got the following error. To summarize, the classloader that the serializationtutils is using is not able to find this class.  I got around this error by creating my own copy of "" in a new package and using this.  Since my SerializationUtils is in my webapp, there are no classloader issues.

Syndicate content