Re: struts integrate with hibernate and spring

2014-10-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 凤凰, On 10/20/14 1:49 AM, 凤凰 wrote: > I want to integrate struts2 with hibernate4 and spring4,but i > don't know if i need to use spring to manager struts action, is > spring manager struts action better than struts manage action > itself? Which met

struts integrate with hibernate and spring

2014-10-19 Thread 凤凰
I want to integrate struts2 with hibernate4 and spring4,but i don't know if i need to use spring to manager struts action, is spring manager struts action better than struts manage action itself? Which method is better? I am puzzled with how to integrate struts2 with hibernate4 and spring4, An

Re: (OT) Hibernate question

2013-01-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Martin, On 1/3/13 6:03 PM, Martin Gainty wrote: > Does anyone know how to hint a Hibernate predicate with something > like select /*+ index(emp_alias ix_emp) */ ... from scott.emp > emp_alias Short answer: you can't. Long answ

Re: (OT) Hibernate question

2013-01-04 Thread Pid *
On 3 Jan 2013, at 23:04, Martin Gainty wrote: > Martin > __ If computers were self-aware > they would'nt need human beingsAuthor Unknown Indeed. - To unsubscribe, e-mail: users-

(OT) Hibernate question

2013-01-03 Thread Martin Gainty
Gentlemen This has been asked many times but i havent found an answer Does anyone know how to hint a Hibernate predicate with something like select /*+ index(emp_alias ix_emp) */ ... from scott.emp emp_alias Martin __ If computers were self-aware

[OT] Re: Hibernate in Tomcat

2011-04-03 Thread Mark Eggers
- Original Message From: הילה - צוות אגורה To: Tomcat Users List Sent: Sat, April 2, 2011 11:35:36 PM Subject: Re: Hibernate in Tomcat what is the hibernate mailing list address? hibern...@tomcat.apache.org? :] Thanks Hila - Original Message Google is your friend: https

Re: Hibernate in Tomcat

2011-04-02 Thread הילה - צוות אגורה
what is the hibernate mailing list address? hibern...@tomcat.apache.org? :] Thanks Hila 2011/4/3 Mark Eggers > - Original Message start (edited) > Hey guys, > > I tried to explore a bit the possibility of hibernate in tomcat, but some > things aren't that cl

Re: Hibernate in Tomcat

2011-04-02 Thread Mark Eggers
- Original Message start (edited) Hey guys, I tried to explore a bit the possibility of hibernate in tomcat, but some things aren't that clear for me. Before hitting the specific questions, please explain what is hibernate in Tomcat, when do we want to use it, how do I u

Hibernate in Tomcat

2011-04-02 Thread הילה
Hey guys, I tried to explore a bit the possibility of hibernate in tomcat, but some things aren't that clear for me. Before hitting the specific questions, please explain what is hibernate in Tomcat, when do we want to use it, how do I use it specifically with the JDBC connection pool (inste

Re: hibernate not finding global resource datasource defined by tomcat

2010-06-15 Thread Mark Eggers
My bad. Copy and paste laziness led to a stray localDataSource="true" attribute winding up in my server.xml Realm definition. Fixed, and now everything works as expected. Back to writing. /mde/ --- On Mon, 6/14/10, Mark Thomas wrote: > From: Mark Thomas > Subject: Re: hiber

Re: tomcat hibernate wiki

2010-06-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yucca Nel, On 6/15/2010 1:25 PM, yucca...@live.co.za wrote: > Much appreciated, Very nice wiki that got me up and running apart from > some odd exception (does not happen in development only production) > > root cause > > org.apache.tomcat.dbcp.

Re: tomcat hibernate wiki

2010-06-15 Thread yuccanel
acesServlet.java:265) -- From: "Mark Eggers" Sent: Tuesday, June 15, 2010 7:13 PM To: "Tomcat Users List" Subject: Re: tomcat hibernate wiki I've added a sentence clarifying that, saying that you still need the dialect property. --- On Tue, 6/15/10, yucca...@live

Re: tomcat hibernate wiki

2010-06-15 Thread Mark Eggers
I've added a sentence clarifying that, saying that you still need the dialect property. --- On Tue, 6/15/10, yucca...@live.co.za wrote: > Please add to the wiki that hibernate > dialect must still be set. Wiki says, > must have NO database configuration properties but just got

Re: hibernate not finding global resource datasource defined by tomcat

2010-06-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yucca Nel, On 6/15/2010 1:23 AM, yucca...@live.co.za wrote: > -- >> From: "Christopher Schultz" >> Subject: Re: hibernate not finding global resource datasource defined by

tomcat hibernate wiki

2010-06-15 Thread yuccanel
Please add to the wiki that hibernate dialect must still be set. Wiki says, must have NO database configuration properties but just got an exception complaining om missing dialect properties -- From: "Mark Eggers" Sent: Monday, June 1

Re: hibernate not finding global resource datasource defined by tomcat

2010-06-15 Thread yuccanel
010 11:45 PM To: "Tomcat Users List" Subject: Re: hibernate not finding global resource datasource defined by tomcat Please read the following for a detailed description on how to configure Hibernate to use JNDI resources supplied by Tomcat. http://wiki.apache.org/tomcat/TomcatHibe

Re: hibernate not finding global resource datasource defined by tomcat

2010-06-14 Thread Mark Thomas
On 15/06/2010 02:21, Mark Eggers wrote: Sure, I can make an attempt at it. I'd like to finish the wiki entry first. What I'm writing though will have to be drastically shortened for the documentation page I think. I just ran into a bit of a puzzle though. I was trying to unravel what happens

Re: hibernate not finding global resource datasource defined by tomcat

2010-06-14 Thread yuccanel
-- From: "Christopher Schultz" Sent: Tuesday, June 15, 2010 12:03 AM To: "Tomcat Users List" Subject: Re: hibernate not finding global resource datasource defined by tomcat -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

Re: hibernate not finding global resource datasource defined by tomcat

2010-06-14 Thread Mark Eggers
- Realm, server.xml Resource in GlobalNamingResources ResourceLink needed (obviously) 3. Server.xml - CombinedRealm, Resource in GlobalNamingResources ResourceLink needed (??) thanks for clearing things up . . . . /mde/ --- On Mon, 6/14/10, Mark Thomas wrote: > From: Mark Thomas >

Re: hibernate not finding global resource datasource defined by tomcat

2010-06-14 Thread Mark Thomas
On 14/06/2010 22:45, Mark Eggers wrote: I'm trying to finish up a document on DataSourceRealms. Hopefully that will get posted on Tomcat's Wiki today or tomorrow, depending on other time constraints. I don't suppose you fancy providing a patch for the Tomcat docs as well... (or instead of)

Re: hibernate not finding global resource datasource defined by tomcat

2010-06-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yuccal Nel, On 6/14/2010 4:26 PM, yucca...@live.co.za wrote: > Please advise as to why hibernate us unable to find jndi datasource > configured in tomcat? I'm not sure why Hibernate can't find your JNDI resource, but... > n

Re: hibernate not finding global resource datasource defined by tomcat

2010-06-14 Thread Mark Eggers
Please read the following for a detailed description on how to configure Hibernate to use JNDI resources supplied by Tomcat. http://wiki.apache.org/tomcat/TomcatHibernate Then you will need a element in META-INF/context.xml to make the resource in available to your application. The

hibernate not finding global resource datasource defined by tomcat

2010-06-14 Thread yuccanel
Hello tomcats!! Please advise as to why hibernate us unable to find jndi datasource configured in tomcat? Trying 2 different setups here: 1) server.xml resource as follows: throws: Jun 14, 2010 10:13:20 PM org.apache.catalina.core.ApplicationContext log Jun 14, 2010 10:13

How to bind jndi realm datasource so that my hibernate can find it can find it

2010-06-14 Thread yuccanel
Hello tomcats !! I learnt a lot since last discussion(problems at thejarbar.org) and am moving on... I now wish to configure the datasource used by the realm to also be used by hibernate Currently my server.xml looks as follows

RE: help with hibernate (Iknow it's off topic)

2010-05-17 Thread Caldarale, Charles R
> From: Yucca Nel [mailto:yucca...@live.co.za] > Subject: help with hibernate (Iknow it's off topic) > > I am horrified by the following code causing a untime exception Someone call Stephen Hawking so we can get details about "untime"... > I want to make sure h

help with hibernate (Iknow it's off topic)

2010-05-17 Thread Yucca Nel
but the following forums seem dead. I am horrified by the following code causing a untime exception because I want to make sure hibernate session is closed but even though the session is null, it appears to be open still? finally { if(session!=null){ session.close

Re: Hibernate validator in webapp?

2010-05-04 Thread Pid
On 04/05/2010 21:27, Yucca Nel wrote: > Anyone can explain if I can use hibernate validator in tomcat 6 webapp? > Current use case tests are not failing using validator annotations but is it > because it will only work in EE container? Erm, yes? Without more information I can't a

RE: Hibernate validator in webapp?

2010-05-04 Thread Martin Gainty
post one code sample with one validation also post version number of annotated jars and hibernate you are using and where you put them contents of hibernate.cfg.xml which container are you using..ARE you SURE you are using Tomcat..if so which version of Tomcat? Martin Gainty

Hibernate validator in webapp?

2010-05-04 Thread Yucca Nel
Anyone can explain if I can use hibernate validator in tomcat 6 webapp? Current use case tests are not failing using validator annotations but is it because it will only work in EE container?

RE: please hwlp with hibernate strategy

2010-05-01 Thread Jason Pyeron
:yucca...@live.co.za] > Sent: Saturday, May 01, 2010 13:38 > To: Tomcat Users List > Subject: please hwlp with hibernate strategy > > I am planning on using hibernate (1st time) in tomcat webapp. > It would appear that it is common to use hibernate util class > to load the

please hwlp with hibernate strategy

2010-05-01 Thread Yucca Nel
I am planning on using hibernate (1st time) in tomcat webapp. It would appear that it is common to use hibernate util class to load the session factory but I have yet to see this done using Servlet ContextListener. I have also only seen very bad example where someone used hibernate directly in

Re: Encoding problem with Tomcat (hibernate) + Postgres

2010-02-24 Thread André Warnier
davefu wrote: Hi, this is my setup: - Debian Lenny - Tomcat 5.5 - Postgres 8.3 I'm running an app which is failing everytime it tries to get some data from the DB with characters like [ÁÉÍÓÚáéíóú]. By "failing" I mean the application isn't showing the data it should when Tomcat throws querys

Encoding problem with Tomcat (hibernate) + Postgres

2010-02-24 Thread davefu
Hi, this is my setup: - Debian Lenny - Tomcat 5.5 - Postgres 8.3 I'm running an app which is failing everytime it tries to get some data from the DB with characters like [ÁÉÍÓÚáéíóú]. By "failing" I mean the application isn't showing the data it should when Tomcat throws querys to Postgres. -

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-10 Thread Bradley Wagner
a lot more into memory and inducing garbage collection with Hibernate and Spring in the mix. I think I'm going to try a Hibernate or Spring sample webapp to see if it has similar problems. On Thu, Sep 10, 2009 at 4:43 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > >

RE: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-10 Thread Caldarale, Charles R
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > The *only option* that did not cause the startup process to > halt indefinitely on startup was the Serial G

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-10 Thread Bradley Wagner
Charles R < chuck.caldar...@unisys.com> wrote: > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > > in Tomcat 5.5 on Ubuntu 7 > > > > And again in a new place on subseque

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-07 Thread lmk
rs-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/100--usage-and-hanging-on-startup-of-Spring-Hibernate-app-in-Tomcat--5.5-on-Ubuntu-7-tp25194606p25331069.html Sent from the Tomcat - User ma

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Mark Thomas
Bradley Wagner wrote: > Ok, I'll try that next. Two things: > - Did some searching, but couldn't find how to determine the default GC > method for my Java version http://blogs.sun.com/watt/resource/jvm-options-list.html is a useful reference > - Would you recommend I move this problem elsewhere,

RE: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Caldarale, Charles R
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > - Did some searching, but couldn't find how to determine the default GC > method for my Java version You a

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Bradley Wagner
ks, Bradley On Thu, Sep 3, 2009 at 4:24 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > > in Tomcat 5.5 on Ubunt

RE: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Caldarale, Charles R
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > And again in a new place on subsequent attempt. There's nothing unusual that I can see in the traces, so it

RE: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Caldarale, Charles R
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > What's odd is that the PermGen space appears to be totally used > up at 26MB and not expanding, unle

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Bradley Wagner
m> wrote: > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > > in Tomcat 5.5 on Ubuntu 7 > > > > Hmm, I'm going to try again with more explicit PermGen space as it > &g

RE: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Caldarale, Charles R
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > Hmm, I'm going to try again with more explicit PermGen space as it > seems to be out of it. Try it, but

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Bradley Wagner
annonhill.com] >> > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app >> > in Tomcat 5.5 on Ubuntu 7 >> > >> > Maybe it can't connect when it's hung. >> >> Quite possible; GC stops all threads, so the JMX agent may well be >&

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Bradley Wagner
gt; From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > > in Tomcat 5.5 on Ubuntu 7 > > > > Maybe it can't connect when it's hung. > > Quite possible; GC stops all threads, so

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Bradley Wagner
, 2009 at 1:49 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > > in Tomcat 5.5 on Ubuntu 7 > > > > Maybe

RE: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Caldarale, Charles R
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > Maybe it can't connect when it's hung. Quite possible; GC stops all threads, so the JMX agent may well

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Bradley Wagner
2009 at 11:17 AM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > > in Tomcat 5.5 on Ubuntu 7 > > > > Hmm, so JCo

RE: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Caldarale, Charles R
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > Hmm, so JConsole appears to need a GUI which I don't have in this case. You can run it remotely by set

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Bradley Wagner
les R < chuck.caldar...@unisys.com> wrote: > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > > in Tomcat 5.5 on Ubuntu 7 > > > > Probably unrelated, but... when setting JAVA

RE: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Caldarale, Charles R
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > Probably unrelated, but... when setting JAVA_HOME for Tomcat in Ubuntu > what's the difference between:

RE: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Caldarale, Charles R
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > Is JConsole something that comes bundled with the JRE or JDK or a > separate application. It's part of t

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Mark Thomas
Bradley Wagner wrote: > Probably unrelated, but... when setting JAVA_HOME for Tomcat in Ubuntu > what's the difference between: > - /usr/lib/jvm/java-6-sun, and > - /usr/lib/jvm/java-6-sun/jre > > It doesn't seem to have any effect on my problem, but does it make a > difference? I believe I have t

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Bradley Wagner
.@unisys.com> wrote: > > > > > > > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > > > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate > > app > > > > > in Tomcat 5.5 on Ubuntu 7 > &

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Bradley Wagner
wrote: > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > > in Tomcat 5.5 on Ubuntu 7 > > > > java version "1.6.0_14" > > Java(TM) SE Runtime Environment (build 1.6.0_14

RE: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Caldarale, Charles R
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > java version "1.6.0_14" > Java(TM) SE Runtime Environment (build 1.6.0_14-b08) > Java HotSpot(TM) S

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Ziggy
at 3:13 PM, Caldarale, Charles R < > > chuck.caldar...@unisys.com> wrote: > > > > > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate > app > > > > in Tomca

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread ramzi khlil
3:13 PM, Caldarale, Charles R < > chuck.caldar...@unisys.com> wrote: > > > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > > > in Tomcat 5.5 on Ubuntu 7 >

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Bradley Wagner
> > > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > > > in Tomcat 5.5 on Ubuntu 7 > > > > > > are you saying that the JRE I'm getting when doing "apt-get

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Ziggy
nnonhill.com] > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > > in Tomcat 5.5 on Ubuntu 7 > > > > are you saying that the JRE I'm getting when doing "apt-get > > install sun-java6-jdk" is not actually a Sun certified version &g

RE: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Caldarale, Charles R
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > are you saying that the JRE I'm getting when doing "apt-get > install sun-java6-jdk" is not actua

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Bradley Wagner
that you are using the community version of the > Java runtime environment which i think is what you get when you do an > apt-get. > > I have never honestly been able to use this version of the JVM > successfully. > I had a similar problem recently where i was running an applicatio

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Ziggy
application (That uses Hibernate) using this version of the JDK and was always getting memory exceptions. What i did was to download sun's version of the JDK and that seem to have solved the problem. Did you try to use the SUN's version of the JDK from the SUN website? It might be usefull to try

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-02 Thread Mark Thomas
Bradley Wagner wrote: > Any thoughts on which GC parameters I should change. See what the default collector is for your platform and switch to s different one. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.or

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-02 Thread Bradley Wagner
cs] [Times: user=0.01 sys=0.01, real=0.01 secs] [GC On Wed, Sep 2, 2009 at 4:27 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate ap

RE: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-02 Thread Caldarale, Charles R
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > I've also attached the catalina.out log which shows the GC > basically freezing. Unfortunately, that lo

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-02 Thread Bradley Wagner
finished) some kind of hibernate initialization but the blocked thread (the only thread doing anything but sleeping) doesn't really indicate this. - Bradley On Mon, Aug 31, 2009 at 6:19 PM, Leon Rosenberg < rosenberg.l...@googlemail.com> wrote: > Hello, > This indeed sounds like y

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 9/1/2009 11:18 AM, Peter Crowther wrote: > 2009/9/1 Christopher Schultz > >> Hmm. Do you trust your hardware? >> [...] > > How much physical memory does your machine have? How much swap space? >> Try running badblocks on your swap partiti

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-01 Thread Peter Crowther
2009/9/1 Christopher Schultz > Hmm. Do you trust your hardware? > [...] How much physical memory does your machine have? How much swap space? > Try running badblocks on your swap partition. Try running memtest86+ on > your hardware (if it's x86... you didn't say). > The OP stated this was in a

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bradley, On 8/31/2009 5:27 PM, Bradley Wagner wrote: > The three thread dumps were from three different occurrences of the same > problem and three consecutive startup attempts. > > With each occurrence, the startup process hangs in the middle of > i

RE: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-08-31 Thread Caldarale, Charles R
> From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com] > Subject: Re: 100% usage and hanging on startup of Spring/Hibernate app > in Tomcat 5.5 on Ubuntu 7 > > So, while it's not hanging in the same place every time, it's > definitely hanging every time. Try

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-08-31 Thread Leon Rosenberg
Hello, This indeed sounds like you have problems with one of the spaces, please add following option to the JAVA_OPTS (or whatever you are using) to seubmit jvm parameters: -XX:+PrintGCDetails And, no tomcat's initial heap size don't default to 64Mb. The JVM allocateds a heap dependent on your com

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-08-31 Thread Bradley Wagner
> > The other interesting point is that all of those are hung in places where they would naturally be allocating an object or have very recently allocated an object, and the JVM *might* in theory be growing the heap. Bradley, are your initial and maximum heap sizes identical (I suspect not from

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-08-31 Thread Bradley Wagner
> > I agree with Mark: the three threads you showed were different (different ids), and showing different call stacks. Are you saying that each thread dump you took represents multiple thread dumps where that particular thread didn't progress /at all/ over your multi-dump sample? The three thr

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-08-31 Thread Bradley Wagner
> > - use a 1.6 JVM Tried with Sun 1.6 JVM. Same problems. Not the same exact stack traces but for example: Thread 24427: (state = BLOCKED) - java.lang.String.toCharArray() @bci=4, line=2725 (Compiled frame) - java.beans.Introspector.decapitalize(java.lang.String) @bci=46, line=252 (Compiled fra

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-08-31 Thread Peter Crowther
2009/8/31 Christopher Schultz > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Bradley, > > On 8/31/2009 4:02 PM, Bradley Wagner wrote: > > Sorry, I should have mentioned this before, but in all cases I tried the > > thread dumps 2-3 times at least 30s apart and none of the threads have > >

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-08-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bradley, On 8/31/2009 4:02 PM, Bradley Wagner wrote: > Sorry, I should have mentioned this before, but in all cases I tried the > thread dumps 2-3 times at least 30s apart and none of the threads have > progressed at all. I agree with Mark: the three

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-08-31 Thread Mark Thomas
Bradley Wagner wrote: > Mark, > Sorry, I should have mentioned this before, but in all cases I tried the > thread dumps 2-3 times at least 30s apart and none of the threads have > progressed at all. Hmm. That smells like a JVM issue to me, particularly if it goes away when you use JPDA. Things to

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-08-31 Thread Bradley Wagner
Mark, Sorry, I should have mentioned this before, but in all cases I tried the thread dumps 2-3 times at least 30s apart and none of the threads have progressed at all. - Bradley On Mon, Aug 31, 2009 at 3:52 PM, Mark Thomas wrote: > Bradley Wagner wrote: > > Ok, I have some information to add h

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-08-31 Thread Mark Thomas
Bradley Wagner wrote: > Ok, I have some information to add here. I was able to get thread dumps with > "jstack " (very handy!) because "kill -3" wouldn't work on a hung > process. > I've listed 3 consecutive tests that I run and the thread is blocked at the > time the process is hung. That isn't t

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-08-31 Thread Bradley Wagner
airly innocuous methods in the java framework itself. Test 1 and 2 both originate from calls in the IO package and the third test from the CGlib framework that we used from Hibernate. In all instances, there is a call to a method/constructor on the String object in the stack. I'm about to try Java 6

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-08-29 Thread Peter Crowther
2009/8/28 Bradley Wagner > I have a Spring/Hibernate app running in Tomcat 5.5.20 that we've tested in > many environments that is currently faltering when running in a Ubuntu 7 > VM. > Basically on startup, frequently, the startup process will halt when trying > to read H

100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-08-28 Thread Bradley Wagner
I have a Spring/Hibernate app running in Tomcat 5.5.20 that we've tested in many environments that is currently faltering when running in a Ubuntu 7 VM. Basically on startup, frequently, the startup process will halt when trying to read Hibernate's HBM files and in various other places

RE: Hibernate

2009-06-05 Thread Martin Gainty
hibernate.dialect org.hibernate.dialect.HSQLDialect hibernate.connection.driver_class org.hsqldb.jdbcDriver hibernate.connection.username sa hibernate.connection.password hibernate.connection.url jdbc:hsqldb:./build/db/hsqldb/hibernate #hibernate.connection.url jdbc:hsqldb:hsql://localhost

RE: Hibernate

2009-06-05 Thread Chris Lenart
THANKS -Original Message- From: Jason Pyeron [mailto:jpye...@pdinc.us] Sent: Friday, June 05, 2009 1:29 PM To: 'Tomcat Users List' Subject: RE: Hibernate Mail the hibernate users list, and I will help there. https://lists.jboss.org/mailman/listinfo/hibernate-users >

RE: Hibernate

2009-06-05 Thread Jason Pyeron
Mail the hibernate users list, and I will help there. https://lists.jboss.org/mailman/listinfo/hibernate-users > -Original Message- > From: Chris Lenart [mailto:clen...@comcast.net] > Sent: Friday, June 05, 2009 14:13 > To: users@tomcat.apache.org > Subject: Hibernat

Hibernate

2009-06-05 Thread Chris Lenart
I am learning Hibernate and doing examples from a book. I have all of the jars the book has, but can't import perstistence.*. It will HSQL too. Which jar ha S this? Thanks Chris Lenart

Re: Hibernate Exception...

2009-03-12 Thread Christopher Schultz
oundError > Could not initialize class org.hibernate.ejb.Ejb3Configuration You probably forgot to put your hibernate JDBC driver into Tomcat's lib directory. If you are using Tomcat's JNDI DataSource, I believe you must put the JDBC driver into Tomcat's lib directory. You didn't m

Hibernate Exception

2009-03-09 Thread Neil B. Cohen
Hi Ken - I forgot to include the version - it is Hibernate 3.2. I did include hibernate-entitymanager.jar... Turns out, when I rebuilt my machine, I downloaded Netbeans, including Tomcat 6.0.18. On my Fedora 8 system, I had downloaded Tomcat separately, direct from apache.org. After trying

Re: Hibernate Exception...

2009-03-09 Thread Ken Bowen
Clearly you're missing org.hibernate.ejb.Ejb3Configuration (and friends). I'm running hibernate 3.2 (you should tell people your versions...it helps). My eclipse tells me that org.hibernate.ejb.Ejb3Configuration lives in hibernate-entitymanager.jar. I seem to recall there bein

Hibernate Exception...

2009-03-09 Thread Neil B. Cohen
I hope this is a trivial problem that someone can help me with... I have been running a web app, built using Netbeans with Tomcat for months now. The system uses Hibernate for database access. This week, I erased and rebuilt my desktop system - moved it from Fedora 8 to Fedora 10. I re

Re: JPA/Hibernate persistence and MySQL connection timeout

2008-12-30 Thread Frank Castellucci
n the query and hibernate.cfg.xml properties, you have given > so that we can know little more better the error. > wishes, >Prasad DTR > > > - Original Message > From: Kees de Kooter > To: Tomcat Users List > Sent: Monday, 29 December, 2008 20:50:05 > Subject: Re: J

Re: JPA/Hibernate persistence and MySQL connection timeout

2008-12-30 Thread tarakarajendra prasad
Subject: Re: JPA/Hibernate persistence and MySQL connection timeout Hi Ken, Take a look at this page: http://www.hibernate.org/hib_docs/entitymanager/reference/en/html/configuration.html As you can see the datasource is obtained using JNDI: java:/DefaultDS Cheers, Kees de Kooter http

Re: JPA/Hibernate persistence and MySQL connection timeout

2008-12-29 Thread Kees de Kooter
gt;> Kees >> >> >> On Mon, Dec 29, 2008 at 00:50, Ken Bowen wrote: >>> >>> Hi All, >>> >>> I'm using: Tomcat 6.0.18; Mysql 5.0.51a; Java 1.5; Hibernate 3.2; (no >>> spring) >>> >>> MyApp utilizes five (5)

Re: JPA/Hibernate persistence and MySQL connection timeout

2008-12-29 Thread Ken Bowen
i All, I'm using: Tomcat 6.0.18; Mysql 5.0.51a; Java 1.5; Hibernate 3.2; (no spring) MyApp utilizes five (5) distinct mysql catalogs (databases). Originally all 5 were accessed using JDBC/JNDI with Resources that all look like this (in webapps/MyApp/META-INF): Everything w

Re: JPA/Hibernate persistence and MySQL connection timeout

2008-12-29 Thread Kees de Kooter
Why don't u use the existing datasources for JPA (instead of setting the hibernate.connection properties)? Kees On Mon, Dec 29, 2008 at 00:50, Ken Bowen wrote: > Hi All, > > I'm using: Tomcat 6.0.18; Mysql 5.0.51a; Java 1.5; Hibernate 3.2; (no > spring) > > MyAp

JPA/Hibernate persistence and MySQL connection timeout

2008-12-28 Thread Ken Bowen
Hi All, I'm using: Tomcat 6.0.18; Mysql 5.0.51a; Java 1.5; Hibernate 3.2; (no spring) MyApp utilizes five (5) distinct mysql catalogs (databases). Originally all 5 were accessed using JDBC/JNDI with Resources that all look like this (in webapps/MyApp/META-INF):

RE: Datasource and Hibernate

2008-04-24 Thread Dubois, Fabien
It's working, thank you all for your help :) -Message d'origine- De : Caldarale, Charles R [mailto:[EMAIL PROTECTED] Envoyé : jeudi 24 avril 2008 14:32 À : Tomcat Users List Objet : RE: Datasource and Hibernate > From: Dubois, Fabien [mailto:[EMAIL PROTECTED] > Subject

RE: Datasource and Hibernate

2008-04-24 Thread Dubois, Fabien
/jdbc/hibernate WARN [http-8080-1] (SettingsFactory.java:117) - Could not obtain connection metadata org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' at org.apache.tomcat.dbcp.dbcp.BasicDataSou

  1   2   >