2013-01-04 13:16:00,841 [7] ERROR HibernatingRhinos.Profiler.Client.Services.QueryPlan.QueryPlanService [(null)] - Could not get query planSystem.Data.SqlClient.SqlException (0x80131904): Incorrect syntax near '?'.
<prop key="hibernate.connection.url">jdbc:log4jdbc:sqlserver://localhost;instanceName=SQLExpress;user=sa;password=pass</prop>
To manually configure the driver spy, you need to modify your connection URL (this is done by both the programmatic configure method and Spring automatically) by appending 'jdbc:log4jdbc' to the front of your JDBC URL.
Error accessing statistics
org.hibernate.impl.SessionFactoryObjectFactory
java.lang.ClassNotFoundException: org.hibernate.impl.SessionFactoryObjectFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at hibernatingrhinos.hibernate.profiler.appender.HibernateStatisticsProvider.initialize(HibernateStatisticsProvider.java:37)