Archive for July, 2006

Reflector

Wednesday, July 12th, 2006

When I was doing a lot of Java development, every now and then I would need to decompile something to see how it worked. Jad works very well. It can be very enlightening to see what’s happening under the covers.

For .NET, there is a great tool by Lutz Roeder named Reflector. Load any .NET assembly into Reflector and you can look at the classes in that assembly. It also has a disassembly view that immediately displays the decompiled source for any class.

Jetty 6 and Jetspeed 2

Thursday, July 6th, 2006

Ok, so I wanted to run Jetspeed 2 in Jetty 6. I need to do something with Jetspeed, and like Jetty much better than the other servlet containers.

So, I started by reading this article that covers just this (Jetty 6 and Jetspeed 2). There were a couple other tweaks, though:

  • I didn’t want to clutter up jetty/lib with all the Jetspeed libraries, so I added jetty/lib/jetspeed and added “$(jetty.home)/lib/jetspeed/*” to start.config in start.jar.
  • In addition to making the changes to jetty.xml (I’m not using jetty-plus), you need to change jetspeed/WEB-INF/assembly/boot/datasource.xml. Change the jndiName for JetspeedDS from java:comp/env/jdbc/jetspeed to jdbc/jetspeed. This references the datasource you created in jetty.xml when you followed the directions in the article.
  • Copy demo.war and j2-admin.war to jetty/webapps.
  • Start Jetty.

Myghty

Tuesday, July 4th, 2006

I’ve only begun using Myghty, but it looks to be a great framework. Here is a great article that gives you an introduction to Myghty.