If your application is running on JDK 5.0, jconsole can only connect to an application with the management agent enabled. You need to start your application with -Dcom.sun.management.jmxremote.
JDK 6 supports attach-on-demand. jconsole can connect to any JDK 6 application running on the same machine without requiring it to start with any special option.