Is there a way to turn on / off Hibernate's SQL logging dynamically by changing
only log4j.xml? (I do not want keep updating hibernate.properties or
hibernate_service.xml since they have been packaged in a .har file)
My theory is to take out all SQL logging parameters from hibernate
configurati
Here is the hibernate-service.xml:
|
|
|
|
|
| java:/PostgresDS
| java:/org/hibernate/SessionFactory
| net.sf.hibernate.dialect.PostgreSQLDialect
| net.sf.hibernate.cache.HashtableCacheProvider
| create
| true
|
|
H
Here is what I see when I deploy the .har file:
15:34:51,203 INFO [Hibernate] Using JDBC batch size : null
15:34:51,203 INFO [Configuration] Searching for mapping documents in jar:
listenerHAR.har
15:34:51,203 INFO [Configuration] processing extends queue
15:34:51,203 INFO [Configuration] pr
Build .har, and deployed.
This is my hbm.xml file.
http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd";>
Built a .war and in a sevlet, had following code:
InitialContext ctx
There is the source of the problem if anyone is interested:
Class files along with ...hbm.xml files have to be JARed, insted of expanded
within the .HAR file.
A similar bug has been known but this one must be new.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&
"artemis" wrote : I have deployed .har based on the hibernate3 instructions
(jboss 4.0.2, hibernate 3.0)
|
| here is my directory structure in
|
| har folder
| WEB-INF
| .classes
| .ssi.listener.bean
| CWsm
I have deployed .har based on the hibernate3 instructions (jboss 4.0.2,
hibernate 3.0)
here is my directory structure in
har folder
WEB-INF
.classes
.ssi.listener.bean
WsmType.class
WsmType.hbm.xml
META-INF
HibernateSer
I want to build hello2 application (J2EE1.4 tutorial) by using ant1.6.5.
Error message is something like:
..n\targets.xml:10: The j2ee.home property is not properly set in
/j2eetutorial14/examples/common/build.properties.
:
j2ee.home is currently set to: C:\Program Files\jboss-4.0.3RC1