If you are just getting started using unit testing in general, or jUnit in particular, you should really check out this challenge!
http://xp123.com/xplor/xp0201/
This is a really nice way to learn a good insight into TDD.
Give it a try!
Writing about myself, my work and other stuff that happens to interest me right for the moment. Yes, I’m fickle.
If you are just getting started using unit testing in general, or jUnit in particular, you should really check out this challenge!
http://xp123.com/xplor/xp0201/
This is a really nice way to learn a good insight into TDD.
Give it a try!
If you, like me recieve this mysterious problem when shutting down Apache Tomcat, read on!
org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@9ed927 for org.apache.commons.logging.impl.Log4JLogger
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414)
at org.apache.commons.digester.Digester.(Digester.java:346)
at org.apache.catalina.startup.Catalina.createStopDigester(Catalina.java:376)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:563)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@9ed927 for org.apache.commons.logging.impl.Log4JLogger
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:432)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)
... 12 more
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
at java.lang.Class.getConstructor0(Class.java:1922)
at java.lang.Class.getConstructor(Class.java:1019)
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:429)
... 13 more
Well, I naturally tried to make sure Tomcat had Log4J jars in $CATALINA_HOME/common/lib but this was a dead end. Seems you have to remove log4j jars from that same directory. Also make sure you remove commons-logging.jar and commons-logging-api.jar and then try to shutdown again.
If you do need these jars, make sure you put them in $CATALINA_HOME/shared/lib.
I had a similar trouble, kept getting java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer, and this was taken care of by moving commons-digester.jar to the shared lib directory.
This worked like a charm for me at least, hope it helps someone out there.
My brother wanted to use the phpNuke module NukeC for a classifieds section, but he couldn’t get it to work correctly. Images were not uploaded ok, the script was complaining about: Warning: getimagesize(): Unable to access Array and some more stuff.
Seems the author of NukeC depended on php’s register_globals being turned on, which is was not at this site.
Too bad he didn’t code using the preferred method as described by php.net, but I helped him fix the places where it troubled him.
Since NukeC 2.1 is still GPL, I’d be happy to supply any interested parties with my fixed version. Just let me know and I’ll put it up on the site for you.
Wow.
I went to see the G3 concert last night, and let me tell you, those guys can play! The show started off with Robert Fripp, sitting on one side of the stage, barely noticable. He was playing some very weird, almost ambient sounds on his guitar (looked like a Les Paul, can’t be sure though). The whole thing was very odd, especially since you could not see him on stage…
Well, after that 40 minute introduction, Steve Vai took to the stage. Talk about contrasts! Steve Vai is so enigmatic and vibrant, he could fill a 20 000 seat arena with emotion all by himself! He came in with his 3-headed cerebus of a guitar (see the special Jem here), and took the stage with storm.
He was also in what appeared to be a very good mood, and was showing off some mad axe skills for the crowd. Not being shy about his music, he played a good selection of songs, quite a few from Passion and Warfare, but also more recent work. There was also a new song (at least for me), which was a really rugged, strong rock song.
After Vai, and a short break, Joe Satriani came on stage in his usual attire, jeans, tour-shirt, sunglasses and his hat. He sported a beautiful Ibanez JS, looked like a JS 1200, but was probably some custom built guitar. Nice red finish though!
As you know, Joe is an awesome guitar player, and his performance was practically flawless. He has a more bluesy touch to his music than does Vai, and also a bit more melody oriented. While Vai had the legendary Billy Sheehan on bass (he’s one crazy character), Satriani’s bassist also held his own. He was accompanied by Matt Bissonette (too bad he didn’t bring his brother!).
When Joe had done some songs from “Surfing With the Alien” and “The Extremist”, he went on to perform some of the new songs from his latest album, and also some stuff from “Engines of Creation”. Wonderfully fused together, he really left you wanting more.
When the show was coming to an end, Satriani invited Steve Vai on stage (Fripp had been playing along to Satriani from the side of the stage all along), and they went on to do some massive playing, complete with challenges and interlocking solos. Sweet, sweet moments…
All in all, it was a truly great concert, the only minor smudge would be my great expectations of hearing them perform a Zappa-tune, but they choose to play some King Crimson instead, which was also beautifully performed. Sadly, there was no extras, and the crowd gave up quickly as the lights went on, and the roadies invaded the stage. A truly great evening at Göta Lejon, Stockholm.
You better not miss them the next time they come, you will be sorry.
Oohh, I can’t hardly wait for the concert tomorrow!
Me and my brother are going to see G3 (Joe Satriani, Steve Vai & Robert Fripp) play at Göta Lejon in Stockholm, Sweden tomorrow night. You can bet that it will be a massive guitar-extravaganza!
My only regret is that I missed when they had John Petrucci (of Dream Theater) with them, that would’ve been awesome. Maybe someday they can trick the awesome Greg Howe into joining the G3 tour, now that would have been even spicier, or why not make it G4! ![]()
So, now I’m eager to hear them, and to see if Fripp can surprise me, ’cause the (very) little I’ve heard was not very convincing.
Report to follow!
So, MovableType (the software that used to run this site) is going pay ware. That for us means bye ware.
I was a little doubtful from the beginning about using software that’s not open source, and it looks like I was correct. Once again, if it (MovableType) was open source, someone else could just pick up the ball and keep the project going when the original authors have lost interest, or go nuts.
So, I’m now making room for WordPress, which is GPL, let’s see if things work out!
Hey, at least it can import from MT!
The company I work for, Eminds, has decided to release a small utility we created long time ago as Open Source. This is just a small GIF-generator to create buttons and images with text in your typeface of choice.
You can try the program and download the source from http://www.eminds.se/generator/.
Have you tried Apache Maven yet? If not, go have a look. It’s a really nifty tool to streamline your project and gives you many nice features including centralized Ant-scripts, central repository of dependancies, lots of great plugins and much more!
One plugin that I’m using at the moment is the Eclipse plugin. It will help you generate .classpath and .project files for Eclipse among other things.
I did however find a shortcoming, but since Maven is Open Source, I could deal with it myself. Nice.
When creating the .classpath file, the plugin doesn’t include Maven’s support for resources directories. Now, Eclipse has support for this, and Maven has support for this, so I just had to add it to the plugin.
Here’s my addition, as added at Maven’s bug tracker:
Continue reading ‘Hacking on Maven’
Recent Comments