Our Blog

Let us find tech solutions together

Mar 02

Here at Mystic, we do a lot of different types of development. It’s not all web development. I found myself writing a simple document parser that takes files uploaded by automated process, processes them by adding to a database, and finishes. One of the components we used to tie everything together, the Spring Framework, it’s great for that.

Since this would be a command line app running via cron most likely, we pulled Maven and the assembly plugin from our bag-of-tricks. Simply adding something like so:

1
2
3
4
5
6
7
8
9
10
11
12
13
<plugin>
              <artifactId>maven-assembly-plugin</artifactId>
              <configuration>
                  <descriptorRefs>
                    <descriptorRef>jar-with-dependencies</descriptorRef>
                  </descriptorRefs>
                  <archive>
                    <manifest>
                      <mainClass>com.your.main.class.file</mainClass>
                    </manifest>
                  </archive>
              </configuration>
            </plugin>

All was right with the world, until we ran it from the dependency included jar on the server, and BAM!

Exception in thread “main” org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace http://www.springframework.org/schema/context

Ouch, how frustrating, this worked in the IDE “Works on my machine â„¢”. After a bit of googling I realized, we were using separate dependencies for the Spring jars that we needed, and the contents of META-INF/ were getting overwritten (only a single JAR remember?). So the solution was to swap out all the separate Spring dependencies in Maven, and use the all-in-one like so:

1
2
3
4
5
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring</artifactId>
            <version>${spring.version}</version>
        </dependency>
Read more
Feb 27

AeroSimulators had a booth in this years Heli-Expo 2009 and was showing off the mobile simulator and other simulation products. Mystic has been working closely with AeroSimulators for the past 9 months on some very cool stuff. While we were there, I took the liberty of a few photos of the booth and the giant helicopters in the Anaheim Convention Center.

[imagebrowser id=1]

Read more
Feb 10

and it lost this round.

I was on the phone, with one of our kick ass java wizards talking about one of our projects, when it happened. I don’t know what the cement said to my beloved Macbook Pro to make it so angry, whatever it was it made her very very angry. And you won’t like her when she’s angry. The MBP slid off of its “secure” holder, and got hit square in the lip. The scuff marks on the beautiful unibody not at issue, but the separation in the battery / hard drive cover definitely is.

I rushed her to the Apple Store with my ProCare card in tow, and they examined. Patiently waiting, wondering, hope filled … yes we can … fix it. And due to my ProCare member status, it would only take a few days, and $350 + tax. Not bad for a trip to Apple Store emergency. The machine is going in for plastic surgery on Thursday night, and I’m told, I can pick it up on Monday.

IMG_0012.JPG IMG_0013.JPG

Read more