> > I know there is some way to make Hibernate dump out lots of debugging
> > info about what it's doing, but I can't figure out how to turn that
[quoted text clipped - 5 lines]
> Use -Dlog4j.configuration=file:///C:/log4j.properties to
> tell log4j where it is if it can not find it.
Where do I add that -D line? I don't start log4j explicity. The only
place I see it is as a JAR file.
> BTW putting
>
> <property name="show_sql">true</property>
>
> in your hibernate config xml could be all you need.
Sometimes that's not enough for me to see what's going on, when
something is not working right.
Arne Vajhøj - 21 Feb 2007 03:26 GMT
>>> I know there is some way to make Hibernate dump out lots of debugging
>>> info about what it's doing, but I can't figure out how to turn that
[quoted text clipped - 7 lines]
> Where do I add that -D line? I don't start log4j explicity. The only
> place I see it is as a JAR file.
It is not for starting log4j but for starting the JVM that runs your
app.
If you place it the right place then log4j can find it without,
but unless it is within an app server doing it explicit is
usually easier.
Arne