Monday, 14 May 2007

JBoss 4.0.2 under Java 1.5 / 1.6

I had a slight problem with this combination and was getting the following exception:


provider org.apache.xalan.processor.TransformerFactoryImpl not found


After some searching it turns out that the provider class has moved and it's now necessary to set a property to locate the new location. I did this with a JAVA_OPTS switch in the setenv.bat:

set JAVA_OPTS=-Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl

Friday, 11 May 2007

Terminal Services / Remote Desktop commands

I was looking for a way to see who is logged on before I bounce a Windows server. There are some useful commands for managing sessions:
  • mstsc: start new session
  • shadow: join a session
  • qwinsta: query window station e.g. show sessions
  • tskill: kill a session
  • tsdisconn: disconnect current session.b