You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andreas Bulling <sp...@phoenix.hadiko.de> on 2006/03/02 01:05:07 UTC

Question concerning environment setup

Hi everybody,

as I'm still having problems with log4j and the hibernate logfile
output I would like to know how you've setup your development
environment (using Tapestry, perhaps Hibernate, Hivemind and
eclipse).

Do you use the WTP eclipse plugin or are you creating war
files which you deploy every time you change the sources?

Currently I just configured tomcat's docBase to point to
the eclipse workspace subfolder for my project
(which is /context/ as created by the Spindle wizard
for "Tapestry Web project").

Unfortunately log4j.properties (in WEB-INF/classes)
doesn't seem to be recognized as the Hibernate
output still displays ? instead of the bind parameters
(using loglevel debug).

Thanks in advance for any help!
Sincerly,
  Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Question concerning environment setup

Posted by Andreas Bulling <sp...@phoenix.hadiko.de>.
| That already looks different to your example and also the DEBUG binding output
| is missing. As I said: For some reason my log4j.properties isn't recognized
| (where I've set log4j.logger.org.hibernate.type=debug).

In the meanwhile I just added the settings to the main tomcat log4j.properties
file and it works now. But as context specific configurations should
work perhaps someone knows how to enable them/fix the problem?

Anyway I'm still very interested in your environment setups ;)

Sincerly,
  Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Question concerning environment setup

Posted by Andreas Bulling <sp...@phoenix.hadiko.de>.
On 01. Mär 2006 - 19:21:08, James Carman wrote:
| I think that's how Hibernate does it.  Do you have the "showsql" stuff
| turned on?  If you do, it will print out the actual SQL with the bind
| variables in there.  There should be statements following that something
| like "binding parameter 1 as yadda yadda"...

Well, that's exactly what's missing - for example I get (in catalina.out):

Hibernate: select person0_.id as id2_0_, person0_.version as version2_0_,
person0_.firstname as firstname2_0_, person0_.lastname as lastname2_0_,
person0_.password as password2_0_, person0_.usertype as usertype2_0_,
person0_.lastaccess as lastaccess2_0_, person0_.email as email2_0_,
person0_.city as city2_0_, person0_.enabled as enabled2_0_, person0_.fax as fax2_0_,
person0_.phone as phone2_0_, person0_.postcode as postcode2_0_,
person0_.street as street2_0_, person0_.streetnumber as streetn15_2_0_,
person0_.title as title2_0_ from person person0_ where person0_.id=?

That already looks different to your example and also the DEBUG binding output
is missing. As I said: For some reason my log4j.properties isn't recognized
(where I've set log4j.logger.org.hibernate.type=debug).
What's your environment setup if you don't mind to tell? ;)

Sincerly,
  Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


RE: Question concerning environment setup

Posted by James Carman <ja...@carmanconsulting.com>.
I think that's how Hibernate does it.  Do you have the "showsql" stuff
turned on?  If you do, it will print out the actual SQL with the bind
variables in there.  There should be statements following that something
like "binding parameter 1 as yadda yadda"...

03-01@19:19:51 DEBUG (org.hibernate.SQL)     - select user0_.id as id3_,
user0_.version as version3_, user0_.name as name3_, user0_.email as email3_,
user0_.encodedPassword as encodedP5_3_, user0_.userId as userId3_ from User
user0_ where user0_.userId=?
03-01@19:19:51 DEBUG (org.hibernate.jdbc.AbstractBatcher)     - preparing
statement
03-01@19:19:51 DEBUG (org.hibernate.type.StringType)     - binding 'jcarman'
to parameter: 1


-----Original Message-----
From: Andreas Bulling [mailto:andreas@phoenix.hadiko.de] On Behalf Of
Andreas Bulling
Sent: Wednesday, March 01, 2006 7:05 PM
To: Tapestry users
Subject: Question concerning environment setup

Hi everybody,

as I'm still having problems with log4j and the hibernate logfile
output I would like to know how you've setup your development
environment (using Tapestry, perhaps Hibernate, Hivemind and
eclipse).

Do you use the WTP eclipse plugin or are you creating war
files which you deploy every time you change the sources?

Currently I just configured tomcat's docBase to point to
the eclipse workspace subfolder for my project
(which is /context/ as created by the Spindle wizard
for "Tapestry Web project").

Unfortunately log4j.properties (in WEB-INF/classes)
doesn't seem to be recognized as the Hibernate
output still displays ? instead of the bind parameters
(using loglevel debug).

Thanks in advance for any help!
Sincerly,
  Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org